google-cloud-vm_migration-v1 0.9.0 → 1.0.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -34,6 +34,9 @@ module Google
34
34
  # VM Migration Service
35
35
  #
36
36
  class Client
37
+ # @private
38
+ API_VERSION = ""
39
+
37
40
  # @private
38
41
  DEFAULT_ENDPOINT_TEMPLATE = "vmmigration.$UNIVERSE_DOMAIN$"
39
42
 
@@ -279,12 +282,13 @@ module Google
279
282
  # Customize the options with defaults
280
283
  call_metadata = @config.rpcs.list_sources.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
  call_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::VMMigration::V1::VERSION,
286
289
  transports_version_send: [:rest]
287
290
 
291
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
288
292
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
289
293
 
290
294
  options.apply_defaults timeout: @config.rpcs.list_sources.timeout,
@@ -357,12 +361,13 @@ module Google
357
361
  # Customize the options with defaults
358
362
  call_metadata = @config.rpcs.get_source.metadata.to_h
359
363
 
360
- # Set x-goog-api-client and x-goog-user-project headers
364
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
361
365
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
362
366
  lib_name: @config.lib_name, lib_version: @config.lib_version,
363
367
  gapic_version: ::Google::Cloud::VMMigration::V1::VERSION,
364
368
  transports_version_send: [:rest]
365
369
 
370
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
366
371
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
367
372
 
368
373
  options.apply_defaults timeout: @config.rpcs.get_source.timeout,
@@ -460,12 +465,13 @@ module Google
460
465
  # Customize the options with defaults
461
466
  call_metadata = @config.rpcs.create_source.metadata.to_h
462
467
 
463
- # Set x-goog-api-client and x-goog-user-project headers
468
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
464
469
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
465
470
  lib_name: @config.lib_name, lib_version: @config.lib_version,
466
471
  gapic_version: ::Google::Cloud::VMMigration::V1::VERSION,
467
472
  transports_version_send: [:rest]
468
473
 
474
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
469
475
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
470
476
 
471
477
  options.apply_defaults timeout: @config.rpcs.create_source.timeout,
@@ -566,12 +572,13 @@ module Google
566
572
  # Customize the options with defaults
567
573
  call_metadata = @config.rpcs.update_source.metadata.to_h
568
574
 
569
- # Set x-goog-api-client and x-goog-user-project headers
575
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
570
576
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
571
577
  lib_name: @config.lib_name, lib_version: @config.lib_version,
572
578
  gapic_version: ::Google::Cloud::VMMigration::V1::VERSION,
573
579
  transports_version_send: [:rest]
574
580
 
581
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
575
582
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
576
583
 
577
584
  options.apply_defaults timeout: @config.rpcs.update_source.timeout,
@@ -666,12 +673,13 @@ module Google
666
673
  # Customize the options with defaults
667
674
  call_metadata = @config.rpcs.delete_source.metadata.to_h
668
675
 
669
- # Set x-goog-api-client and x-goog-user-project headers
676
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
670
677
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
671
678
  lib_name: @config.lib_name, lib_version: @config.lib_version,
672
679
  gapic_version: ::Google::Cloud::VMMigration::V1::VERSION,
673
680
  transports_version_send: [:rest]
674
681
 
682
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
675
683
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
676
684
 
677
685
  options.apply_defaults timeout: @config.rpcs.delete_source.timeout,
@@ -752,12 +760,13 @@ module Google
752
760
  # Customize the options with defaults
753
761
  call_metadata = @config.rpcs.fetch_inventory.metadata.to_h
754
762
 
755
- # Set x-goog-api-client and x-goog-user-project headers
763
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
756
764
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
757
765
  lib_name: @config.lib_name, lib_version: @config.lib_version,
758
766
  gapic_version: ::Google::Cloud::VMMigration::V1::VERSION,
759
767
  transports_version_send: [:rest]
760
768
 
769
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
761
770
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
762
771
 
763
772
  options.apply_defaults timeout: @config.rpcs.fetch_inventory.timeout,
@@ -852,12 +861,13 @@ module Google
852
861
  # Customize the options with defaults
853
862
  call_metadata = @config.rpcs.list_utilization_reports.metadata.to_h
854
863
 
855
- # Set x-goog-api-client and x-goog-user-project headers
864
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
856
865
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
857
866
  lib_name: @config.lib_name, lib_version: @config.lib_version,
858
867
  gapic_version: ::Google::Cloud::VMMigration::V1::VERSION,
859
868
  transports_version_send: [:rest]
860
869
 
870
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
861
871
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
862
872
 
863
873
  options.apply_defaults timeout: @config.rpcs.list_utilization_reports.timeout,
@@ -933,12 +943,13 @@ module Google
933
943
  # Customize the options with defaults
934
944
  call_metadata = @config.rpcs.get_utilization_report.metadata.to_h
935
945
 
936
- # Set x-goog-api-client and x-goog-user-project headers
946
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
937
947
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
938
948
  lib_name: @config.lib_name, lib_version: @config.lib_version,
939
949
  gapic_version: ::Google::Cloud::VMMigration::V1::VERSION,
940
950
  transports_version_send: [:rest]
941
951
 
952
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
942
953
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
943
954
 
944
955
  options.apply_defaults timeout: @config.rpcs.get_utilization_report.timeout,
@@ -1041,12 +1052,13 @@ module Google
1041
1052
  # Customize the options with defaults
1042
1053
  call_metadata = @config.rpcs.create_utilization_report.metadata.to_h
1043
1054
 
1044
- # Set x-goog-api-client and x-goog-user-project headers
1055
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1045
1056
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1046
1057
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1047
1058
  gapic_version: ::Google::Cloud::VMMigration::V1::VERSION,
1048
1059
  transports_version_send: [:rest]
1049
1060
 
1061
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1050
1062
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1051
1063
 
1052
1064
  options.apply_defaults timeout: @config.rpcs.create_utilization_report.timeout,
@@ -1141,12 +1153,13 @@ module Google
1141
1153
  # Customize the options with defaults
1142
1154
  call_metadata = @config.rpcs.delete_utilization_report.metadata.to_h
1143
1155
 
1144
- # Set x-goog-api-client and x-goog-user-project headers
1156
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1145
1157
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1146
1158
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1147
1159
  gapic_version: ::Google::Cloud::VMMigration::V1::VERSION,
1148
1160
  transports_version_send: [:rest]
1149
1161
 
1162
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1150
1163
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1151
1164
 
1152
1165
  options.apply_defaults timeout: @config.rpcs.delete_utilization_report.timeout,
@@ -1240,12 +1253,13 @@ module Google
1240
1253
  # Customize the options with defaults
1241
1254
  call_metadata = @config.rpcs.list_datacenter_connectors.metadata.to_h
1242
1255
 
1243
- # Set x-goog-api-client and x-goog-user-project headers
1256
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1244
1257
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1245
1258
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1246
1259
  gapic_version: ::Google::Cloud::VMMigration::V1::VERSION,
1247
1260
  transports_version_send: [:rest]
1248
1261
 
1262
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1249
1263
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1250
1264
 
1251
1265
  options.apply_defaults timeout: @config.rpcs.list_datacenter_connectors.timeout,
@@ -1318,12 +1332,13 @@ module Google
1318
1332
  # Customize the options with defaults
1319
1333
  call_metadata = @config.rpcs.get_datacenter_connector.metadata.to_h
1320
1334
 
1321
- # Set x-goog-api-client and x-goog-user-project headers
1335
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1322
1336
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1323
1337
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1324
1338
  gapic_version: ::Google::Cloud::VMMigration::V1::VERSION,
1325
1339
  transports_version_send: [:rest]
1326
1340
 
1341
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1327
1342
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1328
1343
 
1329
1344
  options.apply_defaults timeout: @config.rpcs.get_datacenter_connector.timeout,
@@ -1424,12 +1439,13 @@ module Google
1424
1439
  # Customize the options with defaults
1425
1440
  call_metadata = @config.rpcs.create_datacenter_connector.metadata.to_h
1426
1441
 
1427
- # Set x-goog-api-client and x-goog-user-project headers
1442
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1428
1443
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1429
1444
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1430
1445
  gapic_version: ::Google::Cloud::VMMigration::V1::VERSION,
1431
1446
  transports_version_send: [:rest]
1432
1447
 
1448
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1433
1449
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1434
1450
 
1435
1451
  options.apply_defaults timeout: @config.rpcs.create_datacenter_connector.timeout,
@@ -1524,12 +1540,13 @@ module Google
1524
1540
  # Customize the options with defaults
1525
1541
  call_metadata = @config.rpcs.delete_datacenter_connector.metadata.to_h
1526
1542
 
1527
- # Set x-goog-api-client and x-goog-user-project headers
1543
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1528
1544
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1529
1545
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1530
1546
  gapic_version: ::Google::Cloud::VMMigration::V1::VERSION,
1531
1547
  transports_version_send: [:rest]
1532
1548
 
1549
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1533
1550
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1534
1551
 
1535
1552
  options.apply_defaults timeout: @config.rpcs.delete_datacenter_connector.timeout,
@@ -1625,12 +1642,13 @@ module Google
1625
1642
  # Customize the options with defaults
1626
1643
  call_metadata = @config.rpcs.upgrade_appliance.metadata.to_h
1627
1644
 
1628
- # Set x-goog-api-client and x-goog-user-project headers
1645
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1629
1646
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1630
1647
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1631
1648
  gapic_version: ::Google::Cloud::VMMigration::V1::VERSION,
1632
1649
  transports_version_send: [:rest]
1633
1650
 
1651
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1634
1652
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1635
1653
 
1636
1654
  options.apply_defaults timeout: @config.rpcs.upgrade_appliance.timeout,
@@ -1729,12 +1747,13 @@ module Google
1729
1747
  # Customize the options with defaults
1730
1748
  call_metadata = @config.rpcs.create_migrating_vm.metadata.to_h
1731
1749
 
1732
- # Set x-goog-api-client and x-goog-user-project headers
1750
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1733
1751
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1734
1752
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1735
1753
  gapic_version: ::Google::Cloud::VMMigration::V1::VERSION,
1736
1754
  transports_version_send: [:rest]
1737
1755
 
1756
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1738
1757
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1739
1758
 
1740
1759
  options.apply_defaults timeout: @config.rpcs.create_migrating_vm.timeout,
@@ -1829,12 +1848,13 @@ module Google
1829
1848
  # Customize the options with defaults
1830
1849
  call_metadata = @config.rpcs.list_migrating_vms.metadata.to_h
1831
1850
 
1832
- # Set x-goog-api-client and x-goog-user-project headers
1851
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1833
1852
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1834
1853
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1835
1854
  gapic_version: ::Google::Cloud::VMMigration::V1::VERSION,
1836
1855
  transports_version_send: [:rest]
1837
1856
 
1857
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1838
1858
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1839
1859
 
1840
1860
  options.apply_defaults timeout: @config.rpcs.list_migrating_vms.timeout,
@@ -1909,12 +1929,13 @@ module Google
1909
1929
  # Customize the options with defaults
1910
1930
  call_metadata = @config.rpcs.get_migrating_vm.metadata.to_h
1911
1931
 
1912
- # Set x-goog-api-client and x-goog-user-project headers
1932
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1913
1933
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1914
1934
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1915
1935
  gapic_version: ::Google::Cloud::VMMigration::V1::VERSION,
1916
1936
  transports_version_send: [:rest]
1917
1937
 
1938
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1918
1939
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1919
1940
 
1920
1941
  options.apply_defaults timeout: @config.rpcs.get_migrating_vm.timeout,
@@ -2014,12 +2035,13 @@ module Google
2014
2035
  # Customize the options with defaults
2015
2036
  call_metadata = @config.rpcs.update_migrating_vm.metadata.to_h
2016
2037
 
2017
- # Set x-goog-api-client and x-goog-user-project headers
2038
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
2018
2039
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
2019
2040
  lib_name: @config.lib_name, lib_version: @config.lib_version,
2020
2041
  gapic_version: ::Google::Cloud::VMMigration::V1::VERSION,
2021
2042
  transports_version_send: [:rest]
2022
2043
 
2044
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
2023
2045
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
2024
2046
 
2025
2047
  options.apply_defaults timeout: @config.rpcs.update_migrating_vm.timeout,
@@ -2100,12 +2122,13 @@ module Google
2100
2122
  # Customize the options with defaults
2101
2123
  call_metadata = @config.rpcs.delete_migrating_vm.metadata.to_h
2102
2124
 
2103
- # Set x-goog-api-client and x-goog-user-project headers
2125
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
2104
2126
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
2105
2127
  lib_name: @config.lib_name, lib_version: @config.lib_version,
2106
2128
  gapic_version: ::Google::Cloud::VMMigration::V1::VERSION,
2107
2129
  transports_version_send: [:rest]
2108
2130
 
2131
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
2109
2132
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
2110
2133
 
2111
2134
  options.apply_defaults timeout: @config.rpcs.delete_migrating_vm.timeout,
@@ -2187,12 +2210,13 @@ module Google
2187
2210
  # Customize the options with defaults
2188
2211
  call_metadata = @config.rpcs.start_migration.metadata.to_h
2189
2212
 
2190
- # Set x-goog-api-client and x-goog-user-project headers
2213
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
2191
2214
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
2192
2215
  lib_name: @config.lib_name, lib_version: @config.lib_version,
2193
2216
  gapic_version: ::Google::Cloud::VMMigration::V1::VERSION,
2194
2217
  transports_version_send: [:rest]
2195
2218
 
2219
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
2196
2220
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
2197
2221
 
2198
2222
  options.apply_defaults timeout: @config.rpcs.start_migration.timeout,
@@ -2276,12 +2300,13 @@ module Google
2276
2300
  # Customize the options with defaults
2277
2301
  call_metadata = @config.rpcs.resume_migration.metadata.to_h
2278
2302
 
2279
- # Set x-goog-api-client and x-goog-user-project headers
2303
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
2280
2304
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
2281
2305
  lib_name: @config.lib_name, lib_version: @config.lib_version,
2282
2306
  gapic_version: ::Google::Cloud::VMMigration::V1::VERSION,
2283
2307
  transports_version_send: [:rest]
2284
2308
 
2309
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
2285
2310
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
2286
2311
 
2287
2312
  options.apply_defaults timeout: @config.rpcs.resume_migration.timeout,
@@ -2364,12 +2389,13 @@ module Google
2364
2389
  # Customize the options with defaults
2365
2390
  call_metadata = @config.rpcs.pause_migration.metadata.to_h
2366
2391
 
2367
- # Set x-goog-api-client and x-goog-user-project headers
2392
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
2368
2393
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
2369
2394
  lib_name: @config.lib_name, lib_version: @config.lib_version,
2370
2395
  gapic_version: ::Google::Cloud::VMMigration::V1::VERSION,
2371
2396
  transports_version_send: [:rest]
2372
2397
 
2398
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
2373
2399
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
2374
2400
 
2375
2401
  options.apply_defaults timeout: @config.rpcs.pause_migration.timeout,
@@ -2451,12 +2477,13 @@ module Google
2451
2477
  # Customize the options with defaults
2452
2478
  call_metadata = @config.rpcs.finalize_migration.metadata.to_h
2453
2479
 
2454
- # Set x-goog-api-client and x-goog-user-project headers
2480
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
2455
2481
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
2456
2482
  lib_name: @config.lib_name, lib_version: @config.lib_version,
2457
2483
  gapic_version: ::Google::Cloud::VMMigration::V1::VERSION,
2458
2484
  transports_version_send: [:rest]
2459
2485
 
2486
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
2460
2487
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
2461
2488
 
2462
2489
  options.apply_defaults timeout: @config.rpcs.finalize_migration.timeout,
@@ -2555,12 +2582,13 @@ module Google
2555
2582
  # Customize the options with defaults
2556
2583
  call_metadata = @config.rpcs.create_clone_job.metadata.to_h
2557
2584
 
2558
- # Set x-goog-api-client and x-goog-user-project headers
2585
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
2559
2586
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
2560
2587
  lib_name: @config.lib_name, lib_version: @config.lib_version,
2561
2588
  gapic_version: ::Google::Cloud::VMMigration::V1::VERSION,
2562
2589
  transports_version_send: [:rest]
2563
2590
 
2591
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
2564
2592
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
2565
2593
 
2566
2594
  options.apply_defaults timeout: @config.rpcs.create_clone_job.timeout,
@@ -2641,12 +2669,13 @@ module Google
2641
2669
  # Customize the options with defaults
2642
2670
  call_metadata = @config.rpcs.cancel_clone_job.metadata.to_h
2643
2671
 
2644
- # Set x-goog-api-client and x-goog-user-project headers
2672
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
2645
2673
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
2646
2674
  lib_name: @config.lib_name, lib_version: @config.lib_version,
2647
2675
  gapic_version: ::Google::Cloud::VMMigration::V1::VERSION,
2648
2676
  transports_version_send: [:rest]
2649
2677
 
2678
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
2650
2679
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
2651
2680
 
2652
2681
  options.apply_defaults timeout: @config.rpcs.cancel_clone_job.timeout,
@@ -2739,12 +2768,13 @@ module Google
2739
2768
  # Customize the options with defaults
2740
2769
  call_metadata = @config.rpcs.list_clone_jobs.metadata.to_h
2741
2770
 
2742
- # Set x-goog-api-client and x-goog-user-project headers
2771
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
2743
2772
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
2744
2773
  lib_name: @config.lib_name, lib_version: @config.lib_version,
2745
2774
  gapic_version: ::Google::Cloud::VMMigration::V1::VERSION,
2746
2775
  transports_version_send: [:rest]
2747
2776
 
2777
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
2748
2778
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
2749
2779
 
2750
2780
  options.apply_defaults timeout: @config.rpcs.list_clone_jobs.timeout,
@@ -2817,12 +2847,13 @@ module Google
2817
2847
  # Customize the options with defaults
2818
2848
  call_metadata = @config.rpcs.get_clone_job.metadata.to_h
2819
2849
 
2820
- # Set x-goog-api-client and x-goog-user-project headers
2850
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
2821
2851
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
2822
2852
  lib_name: @config.lib_name, lib_version: @config.lib_version,
2823
2853
  gapic_version: ::Google::Cloud::VMMigration::V1::VERSION,
2824
2854
  transports_version_send: [:rest]
2825
2855
 
2856
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
2826
2857
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
2827
2858
 
2828
2859
  options.apply_defaults timeout: @config.rpcs.get_clone_job.timeout,
@@ -2922,12 +2953,13 @@ module Google
2922
2953
  # Customize the options with defaults
2923
2954
  call_metadata = @config.rpcs.create_cutover_job.metadata.to_h
2924
2955
 
2925
- # Set x-goog-api-client and x-goog-user-project headers
2956
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
2926
2957
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
2927
2958
  lib_name: @config.lib_name, lib_version: @config.lib_version,
2928
2959
  gapic_version: ::Google::Cloud::VMMigration::V1::VERSION,
2929
2960
  transports_version_send: [:rest]
2930
2961
 
2962
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
2931
2963
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
2932
2964
 
2933
2965
  options.apply_defaults timeout: @config.rpcs.create_cutover_job.timeout,
@@ -3008,12 +3040,13 @@ module Google
3008
3040
  # Customize the options with defaults
3009
3041
  call_metadata = @config.rpcs.cancel_cutover_job.metadata.to_h
3010
3042
 
3011
- # Set x-goog-api-client and x-goog-user-project headers
3043
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
3012
3044
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
3013
3045
  lib_name: @config.lib_name, lib_version: @config.lib_version,
3014
3046
  gapic_version: ::Google::Cloud::VMMigration::V1::VERSION,
3015
3047
  transports_version_send: [:rest]
3016
3048
 
3049
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
3017
3050
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
3018
3051
 
3019
3052
  options.apply_defaults timeout: @config.rpcs.cancel_cutover_job.timeout,
@@ -3106,12 +3139,13 @@ module Google
3106
3139
  # Customize the options with defaults
3107
3140
  call_metadata = @config.rpcs.list_cutover_jobs.metadata.to_h
3108
3141
 
3109
- # Set x-goog-api-client and x-goog-user-project headers
3142
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
3110
3143
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
3111
3144
  lib_name: @config.lib_name, lib_version: @config.lib_version,
3112
3145
  gapic_version: ::Google::Cloud::VMMigration::V1::VERSION,
3113
3146
  transports_version_send: [:rest]
3114
3147
 
3148
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
3115
3149
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
3116
3150
 
3117
3151
  options.apply_defaults timeout: @config.rpcs.list_cutover_jobs.timeout,
@@ -3184,12 +3218,13 @@ module Google
3184
3218
  # Customize the options with defaults
3185
3219
  call_metadata = @config.rpcs.get_cutover_job.metadata.to_h
3186
3220
 
3187
- # Set x-goog-api-client and x-goog-user-project headers
3221
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
3188
3222
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
3189
3223
  lib_name: @config.lib_name, lib_version: @config.lib_version,
3190
3224
  gapic_version: ::Google::Cloud::VMMigration::V1::VERSION,
3191
3225
  transports_version_send: [:rest]
3192
3226
 
3227
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
3193
3228
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
3194
3229
 
3195
3230
  options.apply_defaults timeout: @config.rpcs.get_cutover_job.timeout,
@@ -3281,12 +3316,13 @@ module Google
3281
3316
  # Customize the options with defaults
3282
3317
  call_metadata = @config.rpcs.list_groups.metadata.to_h
3283
3318
 
3284
- # Set x-goog-api-client and x-goog-user-project headers
3319
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
3285
3320
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
3286
3321
  lib_name: @config.lib_name, lib_version: @config.lib_version,
3287
3322
  gapic_version: ::Google::Cloud::VMMigration::V1::VERSION,
3288
3323
  transports_version_send: [:rest]
3289
3324
 
3325
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
3290
3326
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
3291
3327
 
3292
3328
  options.apply_defaults timeout: @config.rpcs.list_groups.timeout,
@@ -3359,12 +3395,13 @@ module Google
3359
3395
  # Customize the options with defaults
3360
3396
  call_metadata = @config.rpcs.get_group.metadata.to_h
3361
3397
 
3362
- # Set x-goog-api-client and x-goog-user-project headers
3398
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
3363
3399
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
3364
3400
  lib_name: @config.lib_name, lib_version: @config.lib_version,
3365
3401
  gapic_version: ::Google::Cloud::VMMigration::V1::VERSION,
3366
3402
  transports_version_send: [:rest]
3367
3403
 
3404
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
3368
3405
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
3369
3406
 
3370
3407
  options.apply_defaults timeout: @config.rpcs.get_group.timeout,
@@ -3462,12 +3499,13 @@ module Google
3462
3499
  # Customize the options with defaults
3463
3500
  call_metadata = @config.rpcs.create_group.metadata.to_h
3464
3501
 
3465
- # Set x-goog-api-client and x-goog-user-project headers
3502
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
3466
3503
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
3467
3504
  lib_name: @config.lib_name, lib_version: @config.lib_version,
3468
3505
  gapic_version: ::Google::Cloud::VMMigration::V1::VERSION,
3469
3506
  transports_version_send: [:rest]
3470
3507
 
3508
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
3471
3509
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
3472
3510
 
3473
3511
  options.apply_defaults timeout: @config.rpcs.create_group.timeout,
@@ -3568,12 +3606,13 @@ module Google
3568
3606
  # Customize the options with defaults
3569
3607
  call_metadata = @config.rpcs.update_group.metadata.to_h
3570
3608
 
3571
- # Set x-goog-api-client and x-goog-user-project headers
3609
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
3572
3610
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
3573
3611
  lib_name: @config.lib_name, lib_version: @config.lib_version,
3574
3612
  gapic_version: ::Google::Cloud::VMMigration::V1::VERSION,
3575
3613
  transports_version_send: [:rest]
3576
3614
 
3615
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
3577
3616
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
3578
3617
 
3579
3618
  options.apply_defaults timeout: @config.rpcs.update_group.timeout,
@@ -3668,12 +3707,13 @@ module Google
3668
3707
  # Customize the options with defaults
3669
3708
  call_metadata = @config.rpcs.delete_group.metadata.to_h
3670
3709
 
3671
- # Set x-goog-api-client and x-goog-user-project headers
3710
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
3672
3711
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
3673
3712
  lib_name: @config.lib_name, lib_version: @config.lib_version,
3674
3713
  gapic_version: ::Google::Cloud::VMMigration::V1::VERSION,
3675
3714
  transports_version_send: [:rest]
3676
3715
 
3716
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
3677
3717
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
3678
3718
 
3679
3719
  options.apply_defaults timeout: @config.rpcs.delete_group.timeout,
@@ -3756,12 +3796,13 @@ module Google
3756
3796
  # Customize the options with defaults
3757
3797
  call_metadata = @config.rpcs.add_group_migration.metadata.to_h
3758
3798
 
3759
- # Set x-goog-api-client and x-goog-user-project headers
3799
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
3760
3800
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
3761
3801
  lib_name: @config.lib_name, lib_version: @config.lib_version,
3762
3802
  gapic_version: ::Google::Cloud::VMMigration::V1::VERSION,
3763
3803
  transports_version_send: [:rest]
3764
3804
 
3805
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
3765
3806
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
3766
3807
 
3767
3808
  options.apply_defaults timeout: @config.rpcs.add_group_migration.timeout,
@@ -3844,12 +3885,13 @@ module Google
3844
3885
  # Customize the options with defaults
3845
3886
  call_metadata = @config.rpcs.remove_group_migration.metadata.to_h
3846
3887
 
3847
- # Set x-goog-api-client and x-goog-user-project headers
3888
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
3848
3889
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
3849
3890
  lib_name: @config.lib_name, lib_version: @config.lib_version,
3850
3891
  gapic_version: ::Google::Cloud::VMMigration::V1::VERSION,
3851
3892
  transports_version_send: [:rest]
3852
3893
 
3894
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
3853
3895
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
3854
3896
 
3855
3897
  options.apply_defaults timeout: @config.rpcs.remove_group_migration.timeout,
@@ -3945,12 +3987,13 @@ module Google
3945
3987
  # Customize the options with defaults
3946
3988
  call_metadata = @config.rpcs.list_target_projects.metadata.to_h
3947
3989
 
3948
- # Set x-goog-api-client and x-goog-user-project headers
3990
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
3949
3991
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
3950
3992
  lib_name: @config.lib_name, lib_version: @config.lib_version,
3951
3993
  gapic_version: ::Google::Cloud::VMMigration::V1::VERSION,
3952
3994
  transports_version_send: [:rest]
3953
3995
 
3996
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
3954
3997
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
3955
3998
 
3956
3999
  options.apply_defaults timeout: @config.rpcs.list_target_projects.timeout,
@@ -4026,12 +4069,13 @@ module Google
4026
4069
  # Customize the options with defaults
4027
4070
  call_metadata = @config.rpcs.get_target_project.metadata.to_h
4028
4071
 
4029
- # Set x-goog-api-client and x-goog-user-project headers
4072
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
4030
4073
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
4031
4074
  lib_name: @config.lib_name, lib_version: @config.lib_version,
4032
4075
  gapic_version: ::Google::Cloud::VMMigration::V1::VERSION,
4033
4076
  transports_version_send: [:rest]
4034
4077
 
4078
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
4035
4079
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
4036
4080
 
4037
4081
  options.apply_defaults timeout: @config.rpcs.get_target_project.timeout,
@@ -4132,12 +4176,13 @@ module Google
4132
4176
  # Customize the options with defaults
4133
4177
  call_metadata = @config.rpcs.create_target_project.metadata.to_h
4134
4178
 
4135
- # Set x-goog-api-client and x-goog-user-project headers
4179
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
4136
4180
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
4137
4181
  lib_name: @config.lib_name, lib_version: @config.lib_version,
4138
4182
  gapic_version: ::Google::Cloud::VMMigration::V1::VERSION,
4139
4183
  transports_version_send: [:rest]
4140
4184
 
4185
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
4141
4186
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
4142
4187
 
4143
4188
  options.apply_defaults timeout: @config.rpcs.create_target_project.timeout,
@@ -4241,12 +4286,13 @@ module Google
4241
4286
  # Customize the options with defaults
4242
4287
  call_metadata = @config.rpcs.update_target_project.metadata.to_h
4243
4288
 
4244
- # Set x-goog-api-client and x-goog-user-project headers
4289
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
4245
4290
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
4246
4291
  lib_name: @config.lib_name, lib_version: @config.lib_version,
4247
4292
  gapic_version: ::Google::Cloud::VMMigration::V1::VERSION,
4248
4293
  transports_version_send: [:rest]
4249
4294
 
4295
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
4250
4296
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
4251
4297
 
4252
4298
  options.apply_defaults timeout: @config.rpcs.update_target_project.timeout,
@@ -4344,12 +4390,13 @@ module Google
4344
4390
  # Customize the options with defaults
4345
4391
  call_metadata = @config.rpcs.delete_target_project.metadata.to_h
4346
4392
 
4347
- # Set x-goog-api-client and x-goog-user-project headers
4393
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
4348
4394
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
4349
4395
  lib_name: @config.lib_name, lib_version: @config.lib_version,
4350
4396
  gapic_version: ::Google::Cloud::VMMigration::V1::VERSION,
4351
4397
  transports_version_send: [:rest]
4352
4398
 
4399
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
4353
4400
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
4354
4401
 
4355
4402
  options.apply_defaults timeout: @config.rpcs.delete_target_project.timeout,
@@ -4442,12 +4489,13 @@ module Google
4442
4489
  # Customize the options with defaults
4443
4490
  call_metadata = @config.rpcs.list_replication_cycles.metadata.to_h
4444
4491
 
4445
- # Set x-goog-api-client and x-goog-user-project headers
4492
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
4446
4493
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
4447
4494
  lib_name: @config.lib_name, lib_version: @config.lib_version,
4448
4495
  gapic_version: ::Google::Cloud::VMMigration::V1::VERSION,
4449
4496
  transports_version_send: [:rest]
4450
4497
 
4498
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
4451
4499
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
4452
4500
 
4453
4501
  options.apply_defaults timeout: @config.rpcs.list_replication_cycles.timeout,
@@ -4520,12 +4568,13 @@ module Google
4520
4568
  # Customize the options with defaults
4521
4569
  call_metadata = @config.rpcs.get_replication_cycle.metadata.to_h
4522
4570
 
4523
- # Set x-goog-api-client and x-goog-user-project headers
4571
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
4524
4572
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
4525
4573
  lib_name: @config.lib_name, lib_version: @config.lib_version,
4526
4574
  gapic_version: ::Google::Cloud::VMMigration::V1::VERSION,
4527
4575
  transports_version_send: [:rest]
4528
4576
 
4577
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
4529
4578
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
4530
4579
 
4531
4580
  options.apply_defaults timeout: @config.rpcs.get_replication_cycle.timeout,