google-cloud-bare_metal_solution-v2 0.7.2 → 0.8.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/README.md +1 -1
- data/lib/google/cloud/bare_metal_solution/v2/bare_metal_solution/client.rb +91 -44
- data/lib/google/cloud/bare_metal_solution/v2/bare_metal_solution/operations.rb +13 -5
- data/lib/google/cloud/bare_metal_solution/v2/bare_metal_solution/rest/client.rb +91 -44
- data/lib/google/cloud/bare_metal_solution/v2/bare_metal_solution/rest/operations.rb +11 -4
- data/lib/google/cloud/bare_metal_solution/v2/version.rb +1 -1
- data/lib/google/cloud/baremetalsolution/v2/baremetalsolution_pb.rb +1 -1
- data/lib/google/cloud/baremetalsolution/v2/instance_pb.rb +1 -1
- data/lib/google/cloud/baremetalsolution/v2/lun_pb.rb +1 -1
- data/lib/google/cloud/baremetalsolution/v2/network_pb.rb +1 -1
- data/lib/google/cloud/baremetalsolution/v2/nfs_share_pb.rb +1 -1
- data/lib/google/cloud/baremetalsolution/v2/osimage_pb.rb +1 -1
- data/lib/google/cloud/baremetalsolution/v2/provisioning_pb.rb +1 -1
- data/lib/google/cloud/baremetalsolution/v2/ssh_key_pb.rb +1 -1
- data/lib/google/cloud/baremetalsolution/v2/volume_pb.rb +1 -1
- data/lib/google/cloud/baremetalsolution/v2/volume_snapshot_pb.rb +1 -1
- data/proto_docs/google/api/client.rb +35 -10
- data/proto_docs/google/api/resource.rb +7 -2
- metadata +4 -116
@@ -41,6 +41,9 @@ module Google
|
|
41
41
|
# upon specific servers in your Bare Metal Solution environment.
|
42
42
|
#
|
43
43
|
class Client
|
44
|
+
# @private
|
45
|
+
API_VERSION = ""
|
46
|
+
|
44
47
|
# @private
|
45
48
|
DEFAULT_ENDPOINT_TEMPLATE = "baremetalsolution.$UNIVERSE_DOMAIN$"
|
46
49
|
|
@@ -272,12 +275,13 @@ module Google
|
|
272
275
|
# Customize the options with defaults
|
273
276
|
call_metadata = @config.rpcs.list_instances.metadata.to_h
|
274
277
|
|
275
|
-
# Set x-goog-api-client
|
278
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
276
279
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
277
280
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
278
281
|
gapic_version: ::Google::Cloud::BareMetalSolution::V2::VERSION,
|
279
282
|
transports_version_send: [:rest]
|
280
283
|
|
284
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
281
285
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
282
286
|
|
283
287
|
options.apply_defaults timeout: @config.rpcs.list_instances.timeout,
|
@@ -350,12 +354,13 @@ module Google
|
|
350
354
|
# Customize the options with defaults
|
351
355
|
call_metadata = @config.rpcs.get_instance.metadata.to_h
|
352
356
|
|
353
|
-
# Set x-goog-api-client
|
357
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
354
358
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
355
359
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
356
360
|
gapic_version: ::Google::Cloud::BareMetalSolution::V2::VERSION,
|
357
361
|
transports_version_send: [:rest]
|
358
362
|
|
363
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
359
364
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
360
365
|
|
361
366
|
options.apply_defaults timeout: @config.rpcs.get_instance.timeout,
|
@@ -444,12 +449,13 @@ module Google
|
|
444
449
|
# Customize the options with defaults
|
445
450
|
call_metadata = @config.rpcs.update_instance.metadata.to_h
|
446
451
|
|
447
|
-
# Set x-goog-api-client
|
452
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
448
453
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
449
454
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
450
455
|
gapic_version: ::Google::Cloud::BareMetalSolution::V2::VERSION,
|
451
456
|
transports_version_send: [:rest]
|
452
457
|
|
458
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
453
459
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
454
460
|
|
455
461
|
options.apply_defaults timeout: @config.rpcs.update_instance.timeout,
|
@@ -527,12 +533,13 @@ module Google
|
|
527
533
|
# Customize the options with defaults
|
528
534
|
call_metadata = @config.rpcs.rename_instance.metadata.to_h
|
529
535
|
|
530
|
-
# Set x-goog-api-client
|
536
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
531
537
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
532
538
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
533
539
|
gapic_version: ::Google::Cloud::BareMetalSolution::V2::VERSION,
|
534
540
|
transports_version_send: [:rest]
|
535
541
|
|
542
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
536
543
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
537
544
|
|
538
545
|
options.apply_defaults timeout: @config.rpcs.rename_instance.timeout,
|
@@ -613,12 +620,13 @@ module Google
|
|
613
620
|
# Customize the options with defaults
|
614
621
|
call_metadata = @config.rpcs.reset_instance.metadata.to_h
|
615
622
|
|
616
|
-
# Set x-goog-api-client
|
623
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
617
624
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
618
625
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
619
626
|
gapic_version: ::Google::Cloud::BareMetalSolution::V2::VERSION,
|
620
627
|
transports_version_send: [:rest]
|
621
628
|
|
629
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
622
630
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
623
631
|
|
624
632
|
options.apply_defaults timeout: @config.rpcs.reset_instance.timeout,
|
@@ -699,12 +707,13 @@ module Google
|
|
699
707
|
# Customize the options with defaults
|
700
708
|
call_metadata = @config.rpcs.start_instance.metadata.to_h
|
701
709
|
|
702
|
-
# Set x-goog-api-client
|
710
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
703
711
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
704
712
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
705
713
|
gapic_version: ::Google::Cloud::BareMetalSolution::V2::VERSION,
|
706
714
|
transports_version_send: [:rest]
|
707
715
|
|
716
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
708
717
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
709
718
|
|
710
719
|
options.apply_defaults timeout: @config.rpcs.start_instance.timeout,
|
@@ -785,12 +794,13 @@ module Google
|
|
785
794
|
# Customize the options with defaults
|
786
795
|
call_metadata = @config.rpcs.stop_instance.metadata.to_h
|
787
796
|
|
788
|
-
# Set x-goog-api-client
|
797
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
789
798
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
790
799
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
791
800
|
gapic_version: ::Google::Cloud::BareMetalSolution::V2::VERSION,
|
792
801
|
transports_version_send: [:rest]
|
793
802
|
|
803
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
794
804
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
795
805
|
|
796
806
|
options.apply_defaults timeout: @config.rpcs.stop_instance.timeout,
|
@@ -871,12 +881,13 @@ module Google
|
|
871
881
|
# Customize the options with defaults
|
872
882
|
call_metadata = @config.rpcs.enable_interactive_serial_console.metadata.to_h
|
873
883
|
|
874
|
-
# Set x-goog-api-client
|
884
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
875
885
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
876
886
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
877
887
|
gapic_version: ::Google::Cloud::BareMetalSolution::V2::VERSION,
|
878
888
|
transports_version_send: [:rest]
|
879
889
|
|
890
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
880
891
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
881
892
|
|
882
893
|
options.apply_defaults timeout: @config.rpcs.enable_interactive_serial_console.timeout,
|
@@ -957,12 +968,13 @@ module Google
|
|
957
968
|
# Customize the options with defaults
|
958
969
|
call_metadata = @config.rpcs.disable_interactive_serial_console.metadata.to_h
|
959
970
|
|
960
|
-
# Set x-goog-api-client
|
971
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
961
972
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
962
973
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
963
974
|
gapic_version: ::Google::Cloud::BareMetalSolution::V2::VERSION,
|
964
975
|
transports_version_send: [:rest]
|
965
976
|
|
977
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
966
978
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
967
979
|
|
968
980
|
options.apply_defaults timeout: @config.rpcs.disable_interactive_serial_console.timeout,
|
@@ -1047,12 +1059,13 @@ module Google
|
|
1047
1059
|
# Customize the options with defaults
|
1048
1060
|
call_metadata = @config.rpcs.detach_lun.metadata.to_h
|
1049
1061
|
|
1050
|
-
# Set x-goog-api-client
|
1062
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
1051
1063
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
1052
1064
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
1053
1065
|
gapic_version: ::Google::Cloud::BareMetalSolution::V2::VERSION,
|
1054
1066
|
transports_version_send: [:rest]
|
1055
1067
|
|
1068
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
1056
1069
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
1057
1070
|
|
1058
1071
|
options.apply_defaults timeout: @config.rpcs.detach_lun.timeout,
|
@@ -1136,12 +1149,13 @@ module Google
|
|
1136
1149
|
# Customize the options with defaults
|
1137
1150
|
call_metadata = @config.rpcs.list_ssh_keys.metadata.to_h
|
1138
1151
|
|
1139
|
-
# Set x-goog-api-client
|
1152
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
1140
1153
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
1141
1154
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
1142
1155
|
gapic_version: ::Google::Cloud::BareMetalSolution::V2::VERSION,
|
1143
1156
|
transports_version_send: [:rest]
|
1144
1157
|
|
1158
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
1145
1159
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
1146
1160
|
|
1147
1161
|
options.apply_defaults timeout: @config.rpcs.list_ssh_keys.timeout,
|
@@ -1224,12 +1238,13 @@ module Google
|
|
1224
1238
|
# Customize the options with defaults
|
1225
1239
|
call_metadata = @config.rpcs.create_ssh_key.metadata.to_h
|
1226
1240
|
|
1227
|
-
# Set x-goog-api-client
|
1241
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
1228
1242
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
1229
1243
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
1230
1244
|
gapic_version: ::Google::Cloud::BareMetalSolution::V2::VERSION,
|
1231
1245
|
transports_version_send: [:rest]
|
1232
1246
|
|
1247
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
1233
1248
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
1234
1249
|
|
1235
1250
|
options.apply_defaults timeout: @config.rpcs.create_ssh_key.timeout,
|
@@ -1303,12 +1318,13 @@ module Google
|
|
1303
1318
|
# Customize the options with defaults
|
1304
1319
|
call_metadata = @config.rpcs.delete_ssh_key.metadata.to_h
|
1305
1320
|
|
1306
|
-
# Set x-goog-api-client
|
1321
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
1307
1322
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
1308
1323
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
1309
1324
|
gapic_version: ::Google::Cloud::BareMetalSolution::V2::VERSION,
|
1310
1325
|
transports_version_send: [:rest]
|
1311
1326
|
|
1327
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
1312
1328
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
1313
1329
|
|
1314
1330
|
options.apply_defaults timeout: @config.rpcs.delete_ssh_key.timeout,
|
@@ -1392,12 +1408,13 @@ module Google
|
|
1392
1408
|
# Customize the options with defaults
|
1393
1409
|
call_metadata = @config.rpcs.list_volumes.metadata.to_h
|
1394
1410
|
|
1395
|
-
# Set x-goog-api-client
|
1411
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
1396
1412
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
1397
1413
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
1398
1414
|
gapic_version: ::Google::Cloud::BareMetalSolution::V2::VERSION,
|
1399
1415
|
transports_version_send: [:rest]
|
1400
1416
|
|
1417
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
1401
1418
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
1402
1419
|
|
1403
1420
|
options.apply_defaults timeout: @config.rpcs.list_volumes.timeout,
|
@@ -1470,12 +1487,13 @@ module Google
|
|
1470
1487
|
# Customize the options with defaults
|
1471
1488
|
call_metadata = @config.rpcs.get_volume.metadata.to_h
|
1472
1489
|
|
1473
|
-
# Set x-goog-api-client
|
1490
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
1474
1491
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
1475
1492
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
1476
1493
|
gapic_version: ::Google::Cloud::BareMetalSolution::V2::VERSION,
|
1477
1494
|
transports_version_send: [:rest]
|
1478
1495
|
|
1496
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
1479
1497
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
1480
1498
|
|
1481
1499
|
options.apply_defaults timeout: @config.rpcs.get_volume.timeout,
|
@@ -1562,12 +1580,13 @@ module Google
|
|
1562
1580
|
# Customize the options with defaults
|
1563
1581
|
call_metadata = @config.rpcs.update_volume.metadata.to_h
|
1564
1582
|
|
1565
|
-
# Set x-goog-api-client
|
1583
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
1566
1584
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
1567
1585
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
1568
1586
|
gapic_version: ::Google::Cloud::BareMetalSolution::V2::VERSION,
|
1569
1587
|
transports_version_send: [:rest]
|
1570
1588
|
|
1589
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
1571
1590
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
1572
1591
|
|
1573
1592
|
options.apply_defaults timeout: @config.rpcs.update_volume.timeout,
|
@@ -1645,12 +1664,13 @@ module Google
|
|
1645
1664
|
# Customize the options with defaults
|
1646
1665
|
call_metadata = @config.rpcs.rename_volume.metadata.to_h
|
1647
1666
|
|
1648
|
-
# Set x-goog-api-client
|
1667
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
1649
1668
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
1650
1669
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
1651
1670
|
gapic_version: ::Google::Cloud::BareMetalSolution::V2::VERSION,
|
1652
1671
|
transports_version_send: [:rest]
|
1653
1672
|
|
1673
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
1654
1674
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
1655
1675
|
|
1656
1676
|
options.apply_defaults timeout: @config.rpcs.rename_volume.timeout,
|
@@ -1731,12 +1751,13 @@ module Google
|
|
1731
1751
|
# Customize the options with defaults
|
1732
1752
|
call_metadata = @config.rpcs.evict_volume.metadata.to_h
|
1733
1753
|
|
1734
|
-
# Set x-goog-api-client
|
1754
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
1735
1755
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
1736
1756
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
1737
1757
|
gapic_version: ::Google::Cloud::BareMetalSolution::V2::VERSION,
|
1738
1758
|
transports_version_send: [:rest]
|
1739
1759
|
|
1760
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
1740
1761
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
1741
1762
|
|
1742
1763
|
options.apply_defaults timeout: @config.rpcs.evict_volume.timeout,
|
@@ -1819,12 +1840,13 @@ module Google
|
|
1819
1840
|
# Customize the options with defaults
|
1820
1841
|
call_metadata = @config.rpcs.resize_volume.metadata.to_h
|
1821
1842
|
|
1822
|
-
# Set x-goog-api-client
|
1843
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
1823
1844
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
1824
1845
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
1825
1846
|
gapic_version: ::Google::Cloud::BareMetalSolution::V2::VERSION,
|
1826
1847
|
transports_version_send: [:rest]
|
1827
1848
|
|
1849
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
1828
1850
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
1829
1851
|
|
1830
1852
|
options.apply_defaults timeout: @config.rpcs.resize_volume.timeout,
|
@@ -1909,12 +1931,13 @@ module Google
|
|
1909
1931
|
# Customize the options with defaults
|
1910
1932
|
call_metadata = @config.rpcs.list_networks.metadata.to_h
|
1911
1933
|
|
1912
|
-
# Set x-goog-api-client
|
1934
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
1913
1935
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
1914
1936
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
1915
1937
|
gapic_version: ::Google::Cloud::BareMetalSolution::V2::VERSION,
|
1916
1938
|
transports_version_send: [:rest]
|
1917
1939
|
|
1940
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
1918
1941
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
1919
1942
|
|
1920
1943
|
options.apply_defaults timeout: @config.rpcs.list_networks.timeout,
|
@@ -1988,12 +2011,13 @@ module Google
|
|
1988
2011
|
# Customize the options with defaults
|
1989
2012
|
call_metadata = @config.rpcs.list_network_usage.metadata.to_h
|
1990
2013
|
|
1991
|
-
# Set x-goog-api-client
|
2014
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
1992
2015
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
1993
2016
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
1994
2017
|
gapic_version: ::Google::Cloud::BareMetalSolution::V2::VERSION,
|
1995
2018
|
transports_version_send: [:rest]
|
1996
2019
|
|
2020
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
1997
2021
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
1998
2022
|
|
1999
2023
|
options.apply_defaults timeout: @config.rpcs.list_network_usage.timeout,
|
@@ -2066,12 +2090,13 @@ module Google
|
|
2066
2090
|
# Customize the options with defaults
|
2067
2091
|
call_metadata = @config.rpcs.get_network.metadata.to_h
|
2068
2092
|
|
2069
|
-
# Set x-goog-api-client
|
2093
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
2070
2094
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
2071
2095
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
2072
2096
|
gapic_version: ::Google::Cloud::BareMetalSolution::V2::VERSION,
|
2073
2097
|
transports_version_send: [:rest]
|
2074
2098
|
|
2099
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
2075
2100
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
2076
2101
|
|
2077
2102
|
options.apply_defaults timeout: @config.rpcs.get_network.timeout,
|
@@ -2158,12 +2183,13 @@ module Google
|
|
2158
2183
|
# Customize the options with defaults
|
2159
2184
|
call_metadata = @config.rpcs.update_network.metadata.to_h
|
2160
2185
|
|
2161
|
-
# Set x-goog-api-client
|
2186
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
2162
2187
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
2163
2188
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
2164
2189
|
gapic_version: ::Google::Cloud::BareMetalSolution::V2::VERSION,
|
2165
2190
|
transports_version_send: [:rest]
|
2166
2191
|
|
2192
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
2167
2193
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
2168
2194
|
|
2169
2195
|
options.apply_defaults timeout: @config.rpcs.update_network.timeout,
|
@@ -2240,12 +2266,13 @@ module Google
|
|
2240
2266
|
# Customize the options with defaults
|
2241
2267
|
call_metadata = @config.rpcs.create_volume_snapshot.metadata.to_h
|
2242
2268
|
|
2243
|
-
# Set x-goog-api-client
|
2269
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
2244
2270
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
2245
2271
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
2246
2272
|
gapic_version: ::Google::Cloud::BareMetalSolution::V2::VERSION,
|
2247
2273
|
transports_version_send: [:rest]
|
2248
2274
|
|
2275
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
2249
2276
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
2250
2277
|
|
2251
2278
|
options.apply_defaults timeout: @config.rpcs.create_volume_snapshot.timeout,
|
@@ -2327,12 +2354,13 @@ module Google
|
|
2327
2354
|
# Customize the options with defaults
|
2328
2355
|
call_metadata = @config.rpcs.restore_volume_snapshot.metadata.to_h
|
2329
2356
|
|
2330
|
-
# Set x-goog-api-client
|
2357
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
2331
2358
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
2332
2359
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
2333
2360
|
gapic_version: ::Google::Cloud::BareMetalSolution::V2::VERSION,
|
2334
2361
|
transports_version_send: [:rest]
|
2335
2362
|
|
2363
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
2336
2364
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
2337
2365
|
|
2338
2366
|
options.apply_defaults timeout: @config.rpcs.restore_volume_snapshot.timeout,
|
@@ -2407,12 +2435,13 @@ module Google
|
|
2407
2435
|
# Customize the options with defaults
|
2408
2436
|
call_metadata = @config.rpcs.delete_volume_snapshot.metadata.to_h
|
2409
2437
|
|
2410
|
-
# Set x-goog-api-client
|
2438
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
2411
2439
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
2412
2440
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
2413
2441
|
gapic_version: ::Google::Cloud::BareMetalSolution::V2::VERSION,
|
2414
2442
|
transports_version_send: [:rest]
|
2415
2443
|
|
2444
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
2416
2445
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
2417
2446
|
|
2418
2447
|
options.apply_defaults timeout: @config.rpcs.delete_volume_snapshot.timeout,
|
@@ -2486,12 +2515,13 @@ module Google
|
|
2486
2515
|
# Customize the options with defaults
|
2487
2516
|
call_metadata = @config.rpcs.get_volume_snapshot.metadata.to_h
|
2488
2517
|
|
2489
|
-
# Set x-goog-api-client
|
2518
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
2490
2519
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
2491
2520
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
2492
2521
|
gapic_version: ::Google::Cloud::BareMetalSolution::V2::VERSION,
|
2493
2522
|
transports_version_send: [:rest]
|
2494
2523
|
|
2524
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
2495
2525
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
2496
2526
|
|
2497
2527
|
options.apply_defaults timeout: @config.rpcs.get_volume_snapshot.timeout,
|
@@ -2575,12 +2605,13 @@ module Google
|
|
2575
2605
|
# Customize the options with defaults
|
2576
2606
|
call_metadata = @config.rpcs.list_volume_snapshots.metadata.to_h
|
2577
2607
|
|
2578
|
-
# Set x-goog-api-client
|
2608
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
2579
2609
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
2580
2610
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
2581
2611
|
gapic_version: ::Google::Cloud::BareMetalSolution::V2::VERSION,
|
2582
2612
|
transports_version_send: [:rest]
|
2583
2613
|
|
2614
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
2584
2615
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
2585
2616
|
|
2586
2617
|
options.apply_defaults timeout: @config.rpcs.list_volume_snapshots.timeout,
|
@@ -2653,12 +2684,13 @@ module Google
|
|
2653
2684
|
# Customize the options with defaults
|
2654
2685
|
call_metadata = @config.rpcs.get_lun.metadata.to_h
|
2655
2686
|
|
2656
|
-
# Set x-goog-api-client
|
2687
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
2657
2688
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
2658
2689
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
2659
2690
|
gapic_version: ::Google::Cloud::BareMetalSolution::V2::VERSION,
|
2660
2691
|
transports_version_send: [:rest]
|
2661
2692
|
|
2693
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
2662
2694
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
2663
2695
|
|
2664
2696
|
options.apply_defaults timeout: @config.rpcs.get_lun.timeout,
|
@@ -2740,12 +2772,13 @@ module Google
|
|
2740
2772
|
# Customize the options with defaults
|
2741
2773
|
call_metadata = @config.rpcs.list_luns.metadata.to_h
|
2742
2774
|
|
2743
|
-
# Set x-goog-api-client
|
2775
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
2744
2776
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
2745
2777
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
2746
2778
|
gapic_version: ::Google::Cloud::BareMetalSolution::V2::VERSION,
|
2747
2779
|
transports_version_send: [:rest]
|
2748
2780
|
|
2781
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
2749
2782
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
2750
2783
|
|
2751
2784
|
options.apply_defaults timeout: @config.rpcs.list_luns.timeout,
|
@@ -2826,12 +2859,13 @@ module Google
|
|
2826
2859
|
# Customize the options with defaults
|
2827
2860
|
call_metadata = @config.rpcs.evict_lun.metadata.to_h
|
2828
2861
|
|
2829
|
-
# Set x-goog-api-client
|
2862
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
2830
2863
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
2831
2864
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
2832
2865
|
gapic_version: ::Google::Cloud::BareMetalSolution::V2::VERSION,
|
2833
2866
|
transports_version_send: [:rest]
|
2834
2867
|
|
2868
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
2835
2869
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
2836
2870
|
|
2837
2871
|
options.apply_defaults timeout: @config.rpcs.evict_lun.timeout,
|
@@ -2905,12 +2939,13 @@ module Google
|
|
2905
2939
|
# Customize the options with defaults
|
2906
2940
|
call_metadata = @config.rpcs.get_nfs_share.metadata.to_h
|
2907
2941
|
|
2908
|
-
# Set x-goog-api-client
|
2942
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
2909
2943
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
2910
2944
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
2911
2945
|
gapic_version: ::Google::Cloud::BareMetalSolution::V2::VERSION,
|
2912
2946
|
transports_version_send: [:rest]
|
2913
2947
|
|
2948
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
2914
2949
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
2915
2950
|
|
2916
2951
|
options.apply_defaults timeout: @config.rpcs.get_nfs_share.timeout,
|
@@ -2994,12 +3029,13 @@ module Google
|
|
2994
3029
|
# Customize the options with defaults
|
2995
3030
|
call_metadata = @config.rpcs.list_nfs_shares.metadata.to_h
|
2996
3031
|
|
2997
|
-
# Set x-goog-api-client
|
3032
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
2998
3033
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
2999
3034
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
3000
3035
|
gapic_version: ::Google::Cloud::BareMetalSolution::V2::VERSION,
|
3001
3036
|
transports_version_send: [:rest]
|
3002
3037
|
|
3038
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
3003
3039
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
3004
3040
|
|
3005
3041
|
options.apply_defaults timeout: @config.rpcs.list_nfs_shares.timeout,
|
@@ -3087,12 +3123,13 @@ module Google
|
|
3087
3123
|
# Customize the options with defaults
|
3088
3124
|
call_metadata = @config.rpcs.update_nfs_share.metadata.to_h
|
3089
3125
|
|
3090
|
-
# Set x-goog-api-client
|
3126
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
3091
3127
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
3092
3128
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
3093
3129
|
gapic_version: ::Google::Cloud::BareMetalSolution::V2::VERSION,
|
3094
3130
|
transports_version_send: [:rest]
|
3095
3131
|
|
3132
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
3096
3133
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
3097
3134
|
|
3098
3135
|
options.apply_defaults timeout: @config.rpcs.update_nfs_share.timeout,
|
@@ -3175,12 +3212,13 @@ module Google
|
|
3175
3212
|
# Customize the options with defaults
|
3176
3213
|
call_metadata = @config.rpcs.create_nfs_share.metadata.to_h
|
3177
3214
|
|
3178
|
-
# Set x-goog-api-client
|
3215
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
3179
3216
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
3180
3217
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
3181
3218
|
gapic_version: ::Google::Cloud::BareMetalSolution::V2::VERSION,
|
3182
3219
|
transports_version_send: [:rest]
|
3183
3220
|
|
3221
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
3184
3222
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
3185
3223
|
|
3186
3224
|
options.apply_defaults timeout: @config.rpcs.create_nfs_share.timeout,
|
@@ -3258,12 +3296,13 @@ module Google
|
|
3258
3296
|
# Customize the options with defaults
|
3259
3297
|
call_metadata = @config.rpcs.rename_nfs_share.metadata.to_h
|
3260
3298
|
|
3261
|
-
# Set x-goog-api-client
|
3299
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
3262
3300
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
3263
3301
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
3264
3302
|
gapic_version: ::Google::Cloud::BareMetalSolution::V2::VERSION,
|
3265
3303
|
transports_version_send: [:rest]
|
3266
3304
|
|
3305
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
3267
3306
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
3268
3307
|
|
3269
3308
|
options.apply_defaults timeout: @config.rpcs.rename_nfs_share.timeout,
|
@@ -3343,12 +3382,13 @@ module Google
|
|
3343
3382
|
# Customize the options with defaults
|
3344
3383
|
call_metadata = @config.rpcs.delete_nfs_share.metadata.to_h
|
3345
3384
|
|
3346
|
-
# Set x-goog-api-client
|
3385
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
3347
3386
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
3348
3387
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
3349
3388
|
gapic_version: ::Google::Cloud::BareMetalSolution::V2::VERSION,
|
3350
3389
|
transports_version_send: [:rest]
|
3351
3390
|
|
3391
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
3352
3392
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
3353
3393
|
|
3354
3394
|
options.apply_defaults timeout: @config.rpcs.delete_nfs_share.timeout,
|
@@ -3433,12 +3473,13 @@ module Google
|
|
3433
3473
|
# Customize the options with defaults
|
3434
3474
|
call_metadata = @config.rpcs.list_provisioning_quotas.metadata.to_h
|
3435
3475
|
|
3436
|
-
# Set x-goog-api-client
|
3476
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
3437
3477
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
3438
3478
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
3439
3479
|
gapic_version: ::Google::Cloud::BareMetalSolution::V2::VERSION,
|
3440
3480
|
transports_version_send: [:rest]
|
3441
3481
|
|
3482
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
3442
3483
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
3443
3484
|
|
3444
3485
|
options.apply_defaults timeout: @config.rpcs.list_provisioning_quotas.timeout,
|
@@ -3518,12 +3559,13 @@ module Google
|
|
3518
3559
|
# Customize the options with defaults
|
3519
3560
|
call_metadata = @config.rpcs.submit_provisioning_config.metadata.to_h
|
3520
3561
|
|
3521
|
-
# Set x-goog-api-client
|
3562
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
3522
3563
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
3523
3564
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
3524
3565
|
gapic_version: ::Google::Cloud::BareMetalSolution::V2::VERSION,
|
3525
3566
|
transports_version_send: [:rest]
|
3526
3567
|
|
3568
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
3527
3569
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
3528
3570
|
|
3529
3571
|
options.apply_defaults timeout: @config.rpcs.submit_provisioning_config.timeout,
|
@@ -3596,12 +3638,13 @@ module Google
|
|
3596
3638
|
# Customize the options with defaults
|
3597
3639
|
call_metadata = @config.rpcs.get_provisioning_config.metadata.to_h
|
3598
3640
|
|
3599
|
-
# Set x-goog-api-client
|
3641
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
3600
3642
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
3601
3643
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
3602
3644
|
gapic_version: ::Google::Cloud::BareMetalSolution::V2::VERSION,
|
3603
3645
|
transports_version_send: [:rest]
|
3604
3646
|
|
3647
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
3605
3648
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
3606
3649
|
|
3607
3650
|
options.apply_defaults timeout: @config.rpcs.get_provisioning_config.timeout,
|
@@ -3680,12 +3723,13 @@ module Google
|
|
3680
3723
|
# Customize the options with defaults
|
3681
3724
|
call_metadata = @config.rpcs.create_provisioning_config.metadata.to_h
|
3682
3725
|
|
3683
|
-
# Set x-goog-api-client
|
3726
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
3684
3727
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
3685
3728
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
3686
3729
|
gapic_version: ::Google::Cloud::BareMetalSolution::V2::VERSION,
|
3687
3730
|
transports_version_send: [:rest]
|
3688
3731
|
|
3732
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
3689
3733
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
3690
3734
|
|
3691
3735
|
options.apply_defaults timeout: @config.rpcs.create_provisioning_config.timeout,
|
@@ -3763,12 +3807,13 @@ module Google
|
|
3763
3807
|
# Customize the options with defaults
|
3764
3808
|
call_metadata = @config.rpcs.update_provisioning_config.metadata.to_h
|
3765
3809
|
|
3766
|
-
# Set x-goog-api-client
|
3810
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
3767
3811
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
3768
3812
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
3769
3813
|
gapic_version: ::Google::Cloud::BareMetalSolution::V2::VERSION,
|
3770
3814
|
transports_version_send: [:rest]
|
3771
3815
|
|
3816
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
3772
3817
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
3773
3818
|
|
3774
3819
|
options.apply_defaults timeout: @config.rpcs.update_provisioning_config.timeout,
|
@@ -3845,12 +3890,13 @@ module Google
|
|
3845
3890
|
# Customize the options with defaults
|
3846
3891
|
call_metadata = @config.rpcs.rename_network.metadata.to_h
|
3847
3892
|
|
3848
|
-
# Set x-goog-api-client
|
3893
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
3849
3894
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
3850
3895
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
3851
3896
|
gapic_version: ::Google::Cloud::BareMetalSolution::V2::VERSION,
|
3852
3897
|
transports_version_send: [:rest]
|
3853
3898
|
|
3899
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
3854
3900
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
3855
3901
|
|
3856
3902
|
options.apply_defaults timeout: @config.rpcs.rename_network.timeout,
|
@@ -3934,12 +3980,13 @@ module Google
|
|
3934
3980
|
# Customize the options with defaults
|
3935
3981
|
call_metadata = @config.rpcs.list_os_images.metadata.to_h
|
3936
3982
|
|
3937
|
-
# Set x-goog-api-client
|
3983
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
3938
3984
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
3939
3985
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
3940
3986
|
gapic_version: ::Google::Cloud::BareMetalSolution::V2::VERSION,
|
3941
3987
|
transports_version_send: [:rest]
|
3942
3988
|
|
3989
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
3943
3990
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
3944
3991
|
|
3945
3992
|
options.apply_defaults timeout: @config.rpcs.list_os_images.timeout,
|