google-cloud-vm_migration-v1 0.9.0 → 1.0.0

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 615594b42b7ac06cafced1729ddb7e8d239ac41f848d66c6654d472d7261c782
4
- data.tar.gz: 5b4e7947bc8e57d69531bd47ec08cafc6e953c8e655af03360ecba5468047b2d
3
+ metadata.gz: b7683260b4bacfe45e9bc1edaabcf79b2ea2d6dd65a82fda98cd59607bebbf40
4
+ data.tar.gz: fa73dfc870122517712487792bdfcb35583c0a1c41ea1802244cf9aab383b5ae
5
5
  SHA512:
6
- metadata.gz: '0849db2300c265d004101c45fd9905d2e5d3a30485f4f143ac2b9282de6806a4da849635f469f40866867978db2ccd29f4cf9201bb0319fc9d60ed33591bdae8'
7
- data.tar.gz: 8c1f10e2fce524d63a87a97e1d94e38bc02ebbc3ccb73466c4bd13394dfc3058c72228a13bb655be28255618278ed7fb91a7977ed9cc3df72ddeb831b3857a4b
6
+ metadata.gz: c33de4f1070e1d23d1143cd6a2b0f9566b86e670a49c40c3cd70f16f92491e2730e960d091be570bb894718c1a38538421ca441ad634532e6f0eb4dd35c4861d
7
+ data.tar.gz: '0158cfa9d25340409c7995f115826fd196c7b1d04083448514f8f58fdba28ca80bd4f42240d9974dcf3da2bbc0b1b7ec9d404b0717906ac13459747ff2563c75'
@@ -21,7 +21,7 @@ module Google
21
21
  module Cloud
22
22
  module VMMigration
23
23
  module V1
24
- VERSION = "0.9.0"
24
+ VERSION = "1.0.0"
25
25
  end
26
26
  end
27
27
  end
@@ -32,6 +32,9 @@ module Google
32
32
  # VM Migration Service
33
33
  #
34
34
  class Client
35
+ # @private
36
+ API_VERSION = ""
37
+
35
38
  # @private
36
39
  DEFAULT_ENDPOINT_TEMPLATE = "vmmigration.$UNIVERSE_DOMAIN$"
37
40
 
@@ -286,10 +289,11 @@ module Google
286
289
  # Customize the options with defaults
287
290
  metadata = @config.rpcs.list_sources.metadata.to_h
288
291
 
289
- # Set x-goog-api-client and x-goog-user-project headers
292
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
290
293
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
291
294
  lib_name: @config.lib_name, lib_version: @config.lib_version,
292
295
  gapic_version: ::Google::Cloud::VMMigration::V1::VERSION
296
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
293
297
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
294
298
 
295
299
  header_params = {}
@@ -372,10 +376,11 @@ module Google
372
376
  # Customize the options with defaults
373
377
  metadata = @config.rpcs.get_source.metadata.to_h
374
378
 
375
- # Set x-goog-api-client and x-goog-user-project headers
379
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
376
380
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
377
381
  lib_name: @config.lib_name, lib_version: @config.lib_version,
378
382
  gapic_version: ::Google::Cloud::VMMigration::V1::VERSION
383
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
379
384
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
380
385
 
381
386
  header_params = {}
@@ -482,10 +487,11 @@ module Google
482
487
  # Customize the options with defaults
483
488
  metadata = @config.rpcs.create_source.metadata.to_h
484
489
 
485
- # Set x-goog-api-client and x-goog-user-project headers
490
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
486
491
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
487
492
  lib_name: @config.lib_name, lib_version: @config.lib_version,
488
493
  gapic_version: ::Google::Cloud::VMMigration::V1::VERSION
494
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
489
495
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
490
496
 
491
497
  header_params = {}
@@ -595,10 +601,11 @@ module Google
595
601
  # Customize the options with defaults
596
602
  metadata = @config.rpcs.update_source.metadata.to_h
597
603
 
598
- # Set x-goog-api-client and x-goog-user-project headers
604
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
599
605
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
600
606
  lib_name: @config.lib_name, lib_version: @config.lib_version,
601
607
  gapic_version: ::Google::Cloud::VMMigration::V1::VERSION
608
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
602
609
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
603
610
 
604
611
  header_params = {}
@@ -702,10 +709,11 @@ module Google
702
709
  # Customize the options with defaults
703
710
  metadata = @config.rpcs.delete_source.metadata.to_h
704
711
 
705
- # Set x-goog-api-client and x-goog-user-project headers
712
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
706
713
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
707
714
  lib_name: @config.lib_name, lib_version: @config.lib_version,
708
715
  gapic_version: ::Google::Cloud::VMMigration::V1::VERSION
716
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
709
717
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
710
718
 
711
719
  header_params = {}
@@ -795,10 +803,11 @@ module Google
795
803
  # Customize the options with defaults
796
804
  metadata = @config.rpcs.fetch_inventory.metadata.to_h
797
805
 
798
- # Set x-goog-api-client and x-goog-user-project headers
806
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
799
807
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
800
808
  lib_name: @config.lib_name, lib_version: @config.lib_version,
801
809
  gapic_version: ::Google::Cloud::VMMigration::V1::VERSION
810
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
802
811
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
803
812
 
804
813
  header_params = {}
@@ -902,10 +911,11 @@ module Google
902
911
  # Customize the options with defaults
903
912
  metadata = @config.rpcs.list_utilization_reports.metadata.to_h
904
913
 
905
- # Set x-goog-api-client and x-goog-user-project headers
914
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
906
915
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
907
916
  lib_name: @config.lib_name, lib_version: @config.lib_version,
908
917
  gapic_version: ::Google::Cloud::VMMigration::V1::VERSION
918
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
909
919
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
910
920
 
911
921
  header_params = {}
@@ -991,10 +1001,11 @@ module Google
991
1001
  # Customize the options with defaults
992
1002
  metadata = @config.rpcs.get_utilization_report.metadata.to_h
993
1003
 
994
- # Set x-goog-api-client and x-goog-user-project headers
1004
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
995
1005
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
996
1006
  lib_name: @config.lib_name, lib_version: @config.lib_version,
997
1007
  gapic_version: ::Google::Cloud::VMMigration::V1::VERSION
1008
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
998
1009
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
999
1010
 
1000
1011
  header_params = {}
@@ -1106,10 +1117,11 @@ module Google
1106
1117
  # Customize the options with defaults
1107
1118
  metadata = @config.rpcs.create_utilization_report.metadata.to_h
1108
1119
 
1109
- # Set x-goog-api-client and x-goog-user-project headers
1120
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1110
1121
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1111
1122
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1112
1123
  gapic_version: ::Google::Cloud::VMMigration::V1::VERSION
1124
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1113
1125
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1114
1126
 
1115
1127
  header_params = {}
@@ -1213,10 +1225,11 @@ module Google
1213
1225
  # Customize the options with defaults
1214
1226
  metadata = @config.rpcs.delete_utilization_report.metadata.to_h
1215
1227
 
1216
- # Set x-goog-api-client and x-goog-user-project headers
1228
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1217
1229
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1218
1230
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1219
1231
  gapic_version: ::Google::Cloud::VMMigration::V1::VERSION
1232
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1220
1233
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1221
1234
 
1222
1235
  header_params = {}
@@ -1319,10 +1332,11 @@ module Google
1319
1332
  # Customize the options with defaults
1320
1333
  metadata = @config.rpcs.list_datacenter_connectors.metadata.to_h
1321
1334
 
1322
- # 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
1323
1336
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1324
1337
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1325
1338
  gapic_version: ::Google::Cloud::VMMigration::V1::VERSION
1339
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1326
1340
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1327
1341
 
1328
1342
  header_params = {}
@@ -1405,10 +1419,11 @@ module Google
1405
1419
  # Customize the options with defaults
1406
1420
  metadata = @config.rpcs.get_datacenter_connector.metadata.to_h
1407
1421
 
1408
- # Set x-goog-api-client and x-goog-user-project headers
1422
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1409
1423
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1410
1424
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1411
1425
  gapic_version: ::Google::Cloud::VMMigration::V1::VERSION
1426
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1412
1427
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1413
1428
 
1414
1429
  header_params = {}
@@ -1518,10 +1533,11 @@ module Google
1518
1533
  # Customize the options with defaults
1519
1534
  metadata = @config.rpcs.create_datacenter_connector.metadata.to_h
1520
1535
 
1521
- # Set x-goog-api-client and x-goog-user-project headers
1536
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1522
1537
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1523
1538
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1524
1539
  gapic_version: ::Google::Cloud::VMMigration::V1::VERSION
1540
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1525
1541
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1526
1542
 
1527
1543
  header_params = {}
@@ -1625,10 +1641,11 @@ module Google
1625
1641
  # Customize the options with defaults
1626
1642
  metadata = @config.rpcs.delete_datacenter_connector.metadata.to_h
1627
1643
 
1628
- # Set x-goog-api-client and x-goog-user-project headers
1644
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1629
1645
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1630
1646
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1631
1647
  gapic_version: ::Google::Cloud::VMMigration::V1::VERSION
1648
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1632
1649
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1633
1650
 
1634
1651
  header_params = {}
@@ -1733,10 +1750,11 @@ module Google
1733
1750
  # Customize the options with defaults
1734
1751
  metadata = @config.rpcs.upgrade_appliance.metadata.to_h
1735
1752
 
1736
- # Set x-goog-api-client and x-goog-user-project headers
1753
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1737
1754
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1738
1755
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1739
1756
  gapic_version: ::Google::Cloud::VMMigration::V1::VERSION
1757
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1740
1758
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1741
1759
 
1742
1760
  header_params = {}
@@ -1844,10 +1862,11 @@ module Google
1844
1862
  # Customize the options with defaults
1845
1863
  metadata = @config.rpcs.create_migrating_vm.metadata.to_h
1846
1864
 
1847
- # Set x-goog-api-client and x-goog-user-project headers
1865
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1848
1866
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1849
1867
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1850
1868
  gapic_version: ::Google::Cloud::VMMigration::V1::VERSION
1869
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1851
1870
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1852
1871
 
1853
1872
  header_params = {}
@@ -1951,10 +1970,11 @@ module Google
1951
1970
  # Customize the options with defaults
1952
1971
  metadata = @config.rpcs.list_migrating_vms.metadata.to_h
1953
1972
 
1954
- # Set x-goog-api-client and x-goog-user-project headers
1973
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1955
1974
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1956
1975
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1957
1976
  gapic_version: ::Google::Cloud::VMMigration::V1::VERSION
1977
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1958
1978
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1959
1979
 
1960
1980
  header_params = {}
@@ -2039,10 +2059,11 @@ module Google
2039
2059
  # Customize the options with defaults
2040
2060
  metadata = @config.rpcs.get_migrating_vm.metadata.to_h
2041
2061
 
2042
- # Set x-goog-api-client and x-goog-user-project headers
2062
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
2043
2063
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
2044
2064
  lib_name: @config.lib_name, lib_version: @config.lib_version,
2045
2065
  gapic_version: ::Google::Cloud::VMMigration::V1::VERSION
2066
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
2046
2067
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
2047
2068
 
2048
2069
  header_params = {}
@@ -2151,10 +2172,11 @@ module Google
2151
2172
  # Customize the options with defaults
2152
2173
  metadata = @config.rpcs.update_migrating_vm.metadata.to_h
2153
2174
 
2154
- # Set x-goog-api-client and x-goog-user-project headers
2175
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
2155
2176
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
2156
2177
  lib_name: @config.lib_name, lib_version: @config.lib_version,
2157
2178
  gapic_version: ::Google::Cloud::VMMigration::V1::VERSION
2179
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
2158
2180
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
2159
2181
 
2160
2182
  header_params = {}
@@ -2244,10 +2266,11 @@ module Google
2244
2266
  # Customize the options with defaults
2245
2267
  metadata = @config.rpcs.delete_migrating_vm.metadata.to_h
2246
2268
 
2247
- # Set x-goog-api-client and x-goog-user-project headers
2269
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
2248
2270
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
2249
2271
  lib_name: @config.lib_name, lib_version: @config.lib_version,
2250
2272
  gapic_version: ::Google::Cloud::VMMigration::V1::VERSION
2273
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
2251
2274
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
2252
2275
 
2253
2276
  header_params = {}
@@ -2338,10 +2361,11 @@ module Google
2338
2361
  # Customize the options with defaults
2339
2362
  metadata = @config.rpcs.start_migration.metadata.to_h
2340
2363
 
2341
- # Set x-goog-api-client and x-goog-user-project headers
2364
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
2342
2365
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
2343
2366
  lib_name: @config.lib_name, lib_version: @config.lib_version,
2344
2367
  gapic_version: ::Google::Cloud::VMMigration::V1::VERSION
2368
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
2345
2369
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
2346
2370
 
2347
2371
  header_params = {}
@@ -2434,10 +2458,11 @@ module Google
2434
2458
  # Customize the options with defaults
2435
2459
  metadata = @config.rpcs.resume_migration.metadata.to_h
2436
2460
 
2437
- # Set x-goog-api-client and x-goog-user-project headers
2461
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
2438
2462
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
2439
2463
  lib_name: @config.lib_name, lib_version: @config.lib_version,
2440
2464
  gapic_version: ::Google::Cloud::VMMigration::V1::VERSION
2465
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
2441
2466
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
2442
2467
 
2443
2468
  header_params = {}
@@ -2529,10 +2554,11 @@ module Google
2529
2554
  # Customize the options with defaults
2530
2555
  metadata = @config.rpcs.pause_migration.metadata.to_h
2531
2556
 
2532
- # Set x-goog-api-client and x-goog-user-project headers
2557
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
2533
2558
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
2534
2559
  lib_name: @config.lib_name, lib_version: @config.lib_version,
2535
2560
  gapic_version: ::Google::Cloud::VMMigration::V1::VERSION
2561
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
2536
2562
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
2537
2563
 
2538
2564
  header_params = {}
@@ -2623,10 +2649,11 @@ module Google
2623
2649
  # Customize the options with defaults
2624
2650
  metadata = @config.rpcs.finalize_migration.metadata.to_h
2625
2651
 
2626
- # Set x-goog-api-client and x-goog-user-project headers
2652
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
2627
2653
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
2628
2654
  lib_name: @config.lib_name, lib_version: @config.lib_version,
2629
2655
  gapic_version: ::Google::Cloud::VMMigration::V1::VERSION
2656
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
2630
2657
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
2631
2658
 
2632
2659
  header_params = {}
@@ -2734,10 +2761,11 @@ module Google
2734
2761
  # Customize the options with defaults
2735
2762
  metadata = @config.rpcs.create_clone_job.metadata.to_h
2736
2763
 
2737
- # Set x-goog-api-client and x-goog-user-project headers
2764
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
2738
2765
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
2739
2766
  lib_name: @config.lib_name, lib_version: @config.lib_version,
2740
2767
  gapic_version: ::Google::Cloud::VMMigration::V1::VERSION
2768
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
2741
2769
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
2742
2770
 
2743
2771
  header_params = {}
@@ -2827,10 +2855,11 @@ module Google
2827
2855
  # Customize the options with defaults
2828
2856
  metadata = @config.rpcs.cancel_clone_job.metadata.to_h
2829
2857
 
2830
- # Set x-goog-api-client and x-goog-user-project headers
2858
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
2831
2859
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
2832
2860
  lib_name: @config.lib_name, lib_version: @config.lib_version,
2833
2861
  gapic_version: ::Google::Cloud::VMMigration::V1::VERSION
2862
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
2834
2863
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
2835
2864
 
2836
2865
  header_params = {}
@@ -2932,10 +2961,11 @@ module Google
2932
2961
  # Customize the options with defaults
2933
2962
  metadata = @config.rpcs.list_clone_jobs.metadata.to_h
2934
2963
 
2935
- # Set x-goog-api-client and x-goog-user-project headers
2964
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
2936
2965
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
2937
2966
  lib_name: @config.lib_name, lib_version: @config.lib_version,
2938
2967
  gapic_version: ::Google::Cloud::VMMigration::V1::VERSION
2968
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
2939
2969
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
2940
2970
 
2941
2971
  header_params = {}
@@ -3018,10 +3048,11 @@ module Google
3018
3048
  # Customize the options with defaults
3019
3049
  metadata = @config.rpcs.get_clone_job.metadata.to_h
3020
3050
 
3021
- # Set x-goog-api-client and x-goog-user-project headers
3051
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
3022
3052
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
3023
3053
  lib_name: @config.lib_name, lib_version: @config.lib_version,
3024
3054
  gapic_version: ::Google::Cloud::VMMigration::V1::VERSION
3055
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
3025
3056
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
3026
3057
 
3027
3058
  header_params = {}
@@ -3130,10 +3161,11 @@ module Google
3130
3161
  # Customize the options with defaults
3131
3162
  metadata = @config.rpcs.create_cutover_job.metadata.to_h
3132
3163
 
3133
- # Set x-goog-api-client and x-goog-user-project headers
3164
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
3134
3165
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
3135
3166
  lib_name: @config.lib_name, lib_version: @config.lib_version,
3136
3167
  gapic_version: ::Google::Cloud::VMMigration::V1::VERSION
3168
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
3137
3169
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
3138
3170
 
3139
3171
  header_params = {}
@@ -3223,10 +3255,11 @@ module Google
3223
3255
  # Customize the options with defaults
3224
3256
  metadata = @config.rpcs.cancel_cutover_job.metadata.to_h
3225
3257
 
3226
- # Set x-goog-api-client and x-goog-user-project headers
3258
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
3227
3259
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
3228
3260
  lib_name: @config.lib_name, lib_version: @config.lib_version,
3229
3261
  gapic_version: ::Google::Cloud::VMMigration::V1::VERSION
3262
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
3230
3263
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
3231
3264
 
3232
3265
  header_params = {}
@@ -3328,10 +3361,11 @@ module Google
3328
3361
  # Customize the options with defaults
3329
3362
  metadata = @config.rpcs.list_cutover_jobs.metadata.to_h
3330
3363
 
3331
- # Set x-goog-api-client and x-goog-user-project headers
3364
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
3332
3365
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
3333
3366
  lib_name: @config.lib_name, lib_version: @config.lib_version,
3334
3367
  gapic_version: ::Google::Cloud::VMMigration::V1::VERSION
3368
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
3335
3369
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
3336
3370
 
3337
3371
  header_params = {}
@@ -3414,10 +3448,11 @@ module Google
3414
3448
  # Customize the options with defaults
3415
3449
  metadata = @config.rpcs.get_cutover_job.metadata.to_h
3416
3450
 
3417
- # Set x-goog-api-client and x-goog-user-project headers
3451
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
3418
3452
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
3419
3453
  lib_name: @config.lib_name, lib_version: @config.lib_version,
3420
3454
  gapic_version: ::Google::Cloud::VMMigration::V1::VERSION
3455
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
3421
3456
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
3422
3457
 
3423
3458
  header_params = {}
@@ -3518,10 +3553,11 @@ module Google
3518
3553
  # Customize the options with defaults
3519
3554
  metadata = @config.rpcs.list_groups.metadata.to_h
3520
3555
 
3521
- # Set x-goog-api-client and x-goog-user-project headers
3556
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
3522
3557
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
3523
3558
  lib_name: @config.lib_name, lib_version: @config.lib_version,
3524
3559
  gapic_version: ::Google::Cloud::VMMigration::V1::VERSION
3560
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
3525
3561
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
3526
3562
 
3527
3563
  header_params = {}
@@ -3604,10 +3640,11 @@ module Google
3604
3640
  # Customize the options with defaults
3605
3641
  metadata = @config.rpcs.get_group.metadata.to_h
3606
3642
 
3607
- # Set x-goog-api-client and x-goog-user-project headers
3643
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
3608
3644
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
3609
3645
  lib_name: @config.lib_name, lib_version: @config.lib_version,
3610
3646
  gapic_version: ::Google::Cloud::VMMigration::V1::VERSION
3647
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
3611
3648
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
3612
3649
 
3613
3650
  header_params = {}
@@ -3714,10 +3751,11 @@ module Google
3714
3751
  # Customize the options with defaults
3715
3752
  metadata = @config.rpcs.create_group.metadata.to_h
3716
3753
 
3717
- # Set x-goog-api-client and x-goog-user-project headers
3754
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
3718
3755
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
3719
3756
  lib_name: @config.lib_name, lib_version: @config.lib_version,
3720
3757
  gapic_version: ::Google::Cloud::VMMigration::V1::VERSION
3758
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
3721
3759
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
3722
3760
 
3723
3761
  header_params = {}
@@ -3827,10 +3865,11 @@ module Google
3827
3865
  # Customize the options with defaults
3828
3866
  metadata = @config.rpcs.update_group.metadata.to_h
3829
3867
 
3830
- # Set x-goog-api-client and x-goog-user-project headers
3868
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
3831
3869
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
3832
3870
  lib_name: @config.lib_name, lib_version: @config.lib_version,
3833
3871
  gapic_version: ::Google::Cloud::VMMigration::V1::VERSION
3872
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
3834
3873
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
3835
3874
 
3836
3875
  header_params = {}
@@ -3934,10 +3973,11 @@ module Google
3934
3973
  # Customize the options with defaults
3935
3974
  metadata = @config.rpcs.delete_group.metadata.to_h
3936
3975
 
3937
- # Set x-goog-api-client and x-goog-user-project headers
3976
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
3938
3977
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
3939
3978
  lib_name: @config.lib_name, lib_version: @config.lib_version,
3940
3979
  gapic_version: ::Google::Cloud::VMMigration::V1::VERSION
3980
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
3941
3981
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
3942
3982
 
3943
3983
  header_params = {}
@@ -4029,10 +4069,11 @@ module Google
4029
4069
  # Customize the options with defaults
4030
4070
  metadata = @config.rpcs.add_group_migration.metadata.to_h
4031
4071
 
4032
- # 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
4033
4073
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
4034
4074
  lib_name: @config.lib_name, lib_version: @config.lib_version,
4035
4075
  gapic_version: ::Google::Cloud::VMMigration::V1::VERSION
4076
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
4036
4077
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
4037
4078
 
4038
4079
  header_params = {}
@@ -4124,10 +4165,11 @@ module Google
4124
4165
  # Customize the options with defaults
4125
4166
  metadata = @config.rpcs.remove_group_migration.metadata.to_h
4126
4167
 
4127
- # Set x-goog-api-client and x-goog-user-project headers
4168
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
4128
4169
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
4129
4170
  lib_name: @config.lib_name, lib_version: @config.lib_version,
4130
4171
  gapic_version: ::Google::Cloud::VMMigration::V1::VERSION
4172
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
4131
4173
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
4132
4174
 
4133
4175
  header_params = {}
@@ -4232,10 +4274,11 @@ module Google
4232
4274
  # Customize the options with defaults
4233
4275
  metadata = @config.rpcs.list_target_projects.metadata.to_h
4234
4276
 
4235
- # Set x-goog-api-client and x-goog-user-project headers
4277
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
4236
4278
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
4237
4279
  lib_name: @config.lib_name, lib_version: @config.lib_version,
4238
4280
  gapic_version: ::Google::Cloud::VMMigration::V1::VERSION
4281
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
4239
4282
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
4240
4283
 
4241
4284
  header_params = {}
@@ -4321,10 +4364,11 @@ module Google
4321
4364
  # Customize the options with defaults
4322
4365
  metadata = @config.rpcs.get_target_project.metadata.to_h
4323
4366
 
4324
- # Set x-goog-api-client and x-goog-user-project headers
4367
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
4325
4368
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
4326
4369
  lib_name: @config.lib_name, lib_version: @config.lib_version,
4327
4370
  gapic_version: ::Google::Cloud::VMMigration::V1::VERSION
4371
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
4328
4372
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
4329
4373
 
4330
4374
  header_params = {}
@@ -4434,10 +4478,11 @@ module Google
4434
4478
  # Customize the options with defaults
4435
4479
  metadata = @config.rpcs.create_target_project.metadata.to_h
4436
4480
 
4437
- # Set x-goog-api-client and x-goog-user-project headers
4481
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
4438
4482
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
4439
4483
  lib_name: @config.lib_name, lib_version: @config.lib_version,
4440
4484
  gapic_version: ::Google::Cloud::VMMigration::V1::VERSION
4485
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
4441
4486
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
4442
4487
 
4443
4488
  header_params = {}
@@ -4550,10 +4595,11 @@ module Google
4550
4595
  # Customize the options with defaults
4551
4596
  metadata = @config.rpcs.update_target_project.metadata.to_h
4552
4597
 
4553
- # Set x-goog-api-client and x-goog-user-project headers
4598
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
4554
4599
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
4555
4600
  lib_name: @config.lib_name, lib_version: @config.lib_version,
4556
4601
  gapic_version: ::Google::Cloud::VMMigration::V1::VERSION
4602
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
4557
4603
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
4558
4604
 
4559
4605
  header_params = {}
@@ -4660,10 +4706,11 @@ module Google
4660
4706
  # Customize the options with defaults
4661
4707
  metadata = @config.rpcs.delete_target_project.metadata.to_h
4662
4708
 
4663
- # Set x-goog-api-client and x-goog-user-project headers
4709
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
4664
4710
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
4665
4711
  lib_name: @config.lib_name, lib_version: @config.lib_version,
4666
4712
  gapic_version: ::Google::Cloud::VMMigration::V1::VERSION
4713
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
4667
4714
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
4668
4715
 
4669
4716
  header_params = {}
@@ -4765,10 +4812,11 @@ module Google
4765
4812
  # Customize the options with defaults
4766
4813
  metadata = @config.rpcs.list_replication_cycles.metadata.to_h
4767
4814
 
4768
- # Set x-goog-api-client and x-goog-user-project headers
4815
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
4769
4816
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
4770
4817
  lib_name: @config.lib_name, lib_version: @config.lib_version,
4771
4818
  gapic_version: ::Google::Cloud::VMMigration::V1::VERSION
4819
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
4772
4820
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
4773
4821
 
4774
4822
  header_params = {}
@@ -4851,10 +4899,11 @@ module Google
4851
4899
  # Customize the options with defaults
4852
4900
  metadata = @config.rpcs.get_replication_cycle.metadata.to_h
4853
4901
 
4854
- # Set x-goog-api-client and x-goog-user-project headers
4902
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
4855
4903
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
4856
4904
  lib_name: @config.lib_name, lib_version: @config.lib_version,
4857
4905
  gapic_version: ::Google::Cloud::VMMigration::V1::VERSION
4906
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
4858
4907
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
4859
4908
 
4860
4909
  header_params = {}