google-cloud-netapp-v1 0.5.2 → 0.6.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.
@@ -31,6 +31,9 @@ module Google
31
31
  # NetApp Files Google Cloud Service
32
32
  #
33
33
  class Client
34
+ # @private
35
+ API_VERSION = ""
36
+
34
37
  # @private
35
38
  DEFAULT_ENDPOINT_TEMPLATE = "netapp.$UNIVERSE_DOMAIN$"
36
39
 
@@ -414,10 +417,11 @@ module Google
414
417
  # Customize the options with defaults
415
418
  metadata = @config.rpcs.list_storage_pools.metadata.to_h
416
419
 
417
- # Set x-goog-api-client and x-goog-user-project headers
420
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
418
421
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
419
422
  lib_name: @config.lib_name, lib_version: @config.lib_version,
420
423
  gapic_version: ::Google::Cloud::NetApp::V1::VERSION
424
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
421
425
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
422
426
 
423
427
  header_params = {}
@@ -513,10 +517,11 @@ module Google
513
517
  # Customize the options with defaults
514
518
  metadata = @config.rpcs.create_storage_pool.metadata.to_h
515
519
 
516
- # Set x-goog-api-client and x-goog-user-project headers
520
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
517
521
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
518
522
  lib_name: @config.lib_name, lib_version: @config.lib_version,
519
523
  gapic_version: ::Google::Cloud::NetApp::V1::VERSION
524
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
520
525
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
521
526
 
522
527
  header_params = {}
@@ -599,10 +604,11 @@ module Google
599
604
  # Customize the options with defaults
600
605
  metadata = @config.rpcs.get_storage_pool.metadata.to_h
601
606
 
602
- # Set x-goog-api-client and x-goog-user-project headers
607
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
603
608
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
604
609
  lib_name: @config.lib_name, lib_version: @config.lib_version,
605
610
  gapic_version: ::Google::Cloud::NetApp::V1::VERSION
611
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
606
612
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
607
613
 
608
614
  header_params = {}
@@ -697,10 +703,11 @@ module Google
697
703
  # Customize the options with defaults
698
704
  metadata = @config.rpcs.update_storage_pool.metadata.to_h
699
705
 
700
- # Set x-goog-api-client and x-goog-user-project headers
706
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
701
707
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
702
708
  lib_name: @config.lib_name, lib_version: @config.lib_version,
703
709
  gapic_version: ::Google::Cloud::NetApp::V1::VERSION
710
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
704
711
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
705
712
 
706
713
  header_params = {}
@@ -790,10 +797,11 @@ module Google
790
797
  # Customize the options with defaults
791
798
  metadata = @config.rpcs.delete_storage_pool.metadata.to_h
792
799
 
793
- # Set x-goog-api-client and x-goog-user-project headers
800
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
794
801
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
795
802
  lib_name: @config.lib_name, lib_version: @config.lib_version,
796
803
  gapic_version: ::Google::Cloud::NetApp::V1::VERSION
804
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
797
805
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
798
806
 
799
807
  header_params = {}
@@ -889,10 +897,11 @@ module Google
889
897
  # Customize the options with defaults
890
898
  metadata = @config.rpcs.list_volumes.metadata.to_h
891
899
 
892
- # Set x-goog-api-client and x-goog-user-project headers
900
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
893
901
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
894
902
  lib_name: @config.lib_name, lib_version: @config.lib_version,
895
903
  gapic_version: ::Google::Cloud::NetApp::V1::VERSION
904
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
896
905
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
897
906
 
898
907
  header_params = {}
@@ -975,10 +984,11 @@ module Google
975
984
  # Customize the options with defaults
976
985
  metadata = @config.rpcs.get_volume.metadata.to_h
977
986
 
978
- # Set x-goog-api-client and x-goog-user-project headers
987
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
979
988
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
980
989
  lib_name: @config.lib_name, lib_version: @config.lib_version,
981
990
  gapic_version: ::Google::Cloud::NetApp::V1::VERSION
991
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
982
992
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
983
993
 
984
994
  header_params = {}
@@ -1073,10 +1083,11 @@ module Google
1073
1083
  # Customize the options with defaults
1074
1084
  metadata = @config.rpcs.create_volume.metadata.to_h
1075
1085
 
1076
- # Set x-goog-api-client and x-goog-user-project headers
1086
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1077
1087
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1078
1088
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1079
1089
  gapic_version: ::Google::Cloud::NetApp::V1::VERSION
1090
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1080
1091
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1081
1092
 
1082
1093
  header_params = {}
@@ -1172,10 +1183,11 @@ module Google
1172
1183
  # Customize the options with defaults
1173
1184
  metadata = @config.rpcs.update_volume.metadata.to_h
1174
1185
 
1175
- # Set x-goog-api-client and x-goog-user-project headers
1186
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1176
1187
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1177
1188
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1178
1189
  gapic_version: ::Google::Cloud::NetApp::V1::VERSION
1190
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1179
1191
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1180
1192
 
1181
1193
  header_params = {}
@@ -1269,10 +1281,11 @@ module Google
1269
1281
  # Customize the options with defaults
1270
1282
  metadata = @config.rpcs.delete_volume.metadata.to_h
1271
1283
 
1272
- # Set x-goog-api-client and x-goog-user-project headers
1284
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1273
1285
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1274
1286
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1275
1287
  gapic_version: ::Google::Cloud::NetApp::V1::VERSION
1288
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1276
1289
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1277
1290
 
1278
1291
  header_params = {}
@@ -1369,10 +1382,11 @@ module Google
1369
1382
  # Customize the options with defaults
1370
1383
  metadata = @config.rpcs.revert_volume.metadata.to_h
1371
1384
 
1372
- # Set x-goog-api-client and x-goog-user-project headers
1385
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1373
1386
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1374
1387
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1375
1388
  gapic_version: ::Google::Cloud::NetApp::V1::VERSION
1389
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1376
1390
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1377
1391
 
1378
1392
  header_params = {}
@@ -1470,10 +1484,11 @@ module Google
1470
1484
  # Customize the options with defaults
1471
1485
  metadata = @config.rpcs.list_snapshots.metadata.to_h
1472
1486
 
1473
- # Set x-goog-api-client and x-goog-user-project headers
1487
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1474
1488
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1475
1489
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1476
1490
  gapic_version: ::Google::Cloud::NetApp::V1::VERSION
1491
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1477
1492
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1478
1493
 
1479
1494
  header_params = {}
@@ -1557,10 +1572,11 @@ module Google
1557
1572
  # Customize the options with defaults
1558
1573
  metadata = @config.rpcs.get_snapshot.metadata.to_h
1559
1574
 
1560
- # Set x-goog-api-client and x-goog-user-project headers
1575
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1561
1576
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1562
1577
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1563
1578
  gapic_version: ::Google::Cloud::NetApp::V1::VERSION
1579
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1564
1580
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1565
1581
 
1566
1582
  header_params = {}
@@ -1656,10 +1672,11 @@ module Google
1656
1672
  # Customize the options with defaults
1657
1673
  metadata = @config.rpcs.create_snapshot.metadata.to_h
1658
1674
 
1659
- # Set x-goog-api-client and x-goog-user-project headers
1675
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1660
1676
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1661
1677
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1662
1678
  gapic_version: ::Google::Cloud::NetApp::V1::VERSION
1679
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1663
1680
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1664
1681
 
1665
1682
  header_params = {}
@@ -1750,10 +1767,11 @@ module Google
1750
1767
  # Customize the options with defaults
1751
1768
  metadata = @config.rpcs.delete_snapshot.metadata.to_h
1752
1769
 
1753
- # Set x-goog-api-client and x-goog-user-project headers
1770
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1754
1771
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1755
1772
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1756
1773
  gapic_version: ::Google::Cloud::NetApp::V1::VERSION
1774
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1757
1775
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1758
1776
 
1759
1777
  header_params = {}
@@ -1846,10 +1864,11 @@ module Google
1846
1864
  # Customize the options with defaults
1847
1865
  metadata = @config.rpcs.update_snapshot.metadata.to_h
1848
1866
 
1849
- # Set x-goog-api-client and x-goog-user-project headers
1867
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1850
1868
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1851
1869
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1852
1870
  gapic_version: ::Google::Cloud::NetApp::V1::VERSION
1871
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1853
1872
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1854
1873
 
1855
1874
  header_params = {}
@@ -1945,10 +1964,11 @@ module Google
1945
1964
  # Customize the options with defaults
1946
1965
  metadata = @config.rpcs.list_active_directories.metadata.to_h
1947
1966
 
1948
- # Set x-goog-api-client and x-goog-user-project headers
1967
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1949
1968
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1950
1969
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1951
1970
  gapic_version: ::Google::Cloud::NetApp::V1::VERSION
1971
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1952
1972
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1953
1973
 
1954
1974
  header_params = {}
@@ -2031,10 +2051,11 @@ module Google
2031
2051
  # Customize the options with defaults
2032
2052
  metadata = @config.rpcs.get_active_directory.metadata.to_h
2033
2053
 
2034
- # Set x-goog-api-client and x-goog-user-project headers
2054
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
2035
2055
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
2036
2056
  lib_name: @config.lib_name, lib_version: @config.lib_version,
2037
2057
  gapic_version: ::Google::Cloud::NetApp::V1::VERSION
2058
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
2038
2059
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
2039
2060
 
2040
2061
  header_params = {}
@@ -2128,10 +2149,11 @@ module Google
2128
2149
  # Customize the options with defaults
2129
2150
  metadata = @config.rpcs.create_active_directory.metadata.to_h
2130
2151
 
2131
- # Set x-goog-api-client and x-goog-user-project headers
2152
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
2132
2153
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
2133
2154
  lib_name: @config.lib_name, lib_version: @config.lib_version,
2134
2155
  gapic_version: ::Google::Cloud::NetApp::V1::VERSION
2156
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
2135
2157
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
2136
2158
 
2137
2159
  header_params = {}
@@ -2227,10 +2249,11 @@ module Google
2227
2249
  # Customize the options with defaults
2228
2250
  metadata = @config.rpcs.update_active_directory.metadata.to_h
2229
2251
 
2230
- # Set x-goog-api-client and x-goog-user-project headers
2252
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
2231
2253
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
2232
2254
  lib_name: @config.lib_name, lib_version: @config.lib_version,
2233
2255
  gapic_version: ::Google::Cloud::NetApp::V1::VERSION
2256
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
2234
2257
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
2235
2258
 
2236
2259
  header_params = {}
@@ -2320,10 +2343,11 @@ module Google
2320
2343
  # Customize the options with defaults
2321
2344
  metadata = @config.rpcs.delete_active_directory.metadata.to_h
2322
2345
 
2323
- # Set x-goog-api-client and x-goog-user-project headers
2346
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
2324
2347
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
2325
2348
  lib_name: @config.lib_name, lib_version: @config.lib_version,
2326
2349
  gapic_version: ::Google::Cloud::NetApp::V1::VERSION
2350
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
2327
2351
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
2328
2352
 
2329
2353
  header_params = {}
@@ -2419,10 +2443,11 @@ module Google
2419
2443
  # Customize the options with defaults
2420
2444
  metadata = @config.rpcs.list_kms_configs.metadata.to_h
2421
2445
 
2422
- # Set x-goog-api-client and x-goog-user-project headers
2446
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
2423
2447
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
2424
2448
  lib_name: @config.lib_name, lib_version: @config.lib_version,
2425
2449
  gapic_version: ::Google::Cloud::NetApp::V1::VERSION
2450
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
2426
2451
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
2427
2452
 
2428
2453
  header_params = {}
@@ -2518,10 +2543,11 @@ module Google
2518
2543
  # Customize the options with defaults
2519
2544
  metadata = @config.rpcs.create_kms_config.metadata.to_h
2520
2545
 
2521
- # Set x-goog-api-client and x-goog-user-project headers
2546
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
2522
2547
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
2523
2548
  lib_name: @config.lib_name, lib_version: @config.lib_version,
2524
2549
  gapic_version: ::Google::Cloud::NetApp::V1::VERSION
2550
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
2525
2551
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
2526
2552
 
2527
2553
  header_params = {}
@@ -2604,10 +2630,11 @@ module Google
2604
2630
  # Customize the options with defaults
2605
2631
  metadata = @config.rpcs.get_kms_config.metadata.to_h
2606
2632
 
2607
- # Set x-goog-api-client and x-goog-user-project headers
2633
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
2608
2634
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
2609
2635
  lib_name: @config.lib_name, lib_version: @config.lib_version,
2610
2636
  gapic_version: ::Google::Cloud::NetApp::V1::VERSION
2637
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
2611
2638
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
2612
2639
 
2613
2640
  header_params = {}
@@ -2702,10 +2729,11 @@ module Google
2702
2729
  # Customize the options with defaults
2703
2730
  metadata = @config.rpcs.update_kms_config.metadata.to_h
2704
2731
 
2705
- # Set x-goog-api-client and x-goog-user-project headers
2732
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
2706
2733
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
2707
2734
  lib_name: @config.lib_name, lib_version: @config.lib_version,
2708
2735
  gapic_version: ::Google::Cloud::NetApp::V1::VERSION
2736
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
2709
2737
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
2710
2738
 
2711
2739
  header_params = {}
@@ -2796,10 +2824,11 @@ module Google
2796
2824
  # Customize the options with defaults
2797
2825
  metadata = @config.rpcs.encrypt_volumes.metadata.to_h
2798
2826
 
2799
- # Set x-goog-api-client and x-goog-user-project headers
2827
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
2800
2828
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
2801
2829
  lib_name: @config.lib_name, lib_version: @config.lib_version,
2802
2830
  gapic_version: ::Google::Cloud::NetApp::V1::VERSION
2831
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
2803
2832
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
2804
2833
 
2805
2834
  header_params = {}
@@ -2882,10 +2911,11 @@ module Google
2882
2911
  # Customize the options with defaults
2883
2912
  metadata = @config.rpcs.verify_kms_config.metadata.to_h
2884
2913
 
2885
- # Set x-goog-api-client and x-goog-user-project headers
2914
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
2886
2915
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
2887
2916
  lib_name: @config.lib_name, lib_version: @config.lib_version,
2888
2917
  gapic_version: ::Google::Cloud::NetApp::V1::VERSION
2918
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
2889
2919
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
2890
2920
 
2891
2921
  header_params = {}
@@ -2974,10 +3004,11 @@ module Google
2974
3004
  # Customize the options with defaults
2975
3005
  metadata = @config.rpcs.delete_kms_config.metadata.to_h
2976
3006
 
2977
- # Set x-goog-api-client and x-goog-user-project headers
3007
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
2978
3008
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
2979
3009
  lib_name: @config.lib_name, lib_version: @config.lib_version,
2980
3010
  gapic_version: ::Google::Cloud::NetApp::V1::VERSION
3011
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
2981
3012
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
2982
3013
 
2983
3014
  header_params = {}
@@ -3075,10 +3106,11 @@ module Google
3075
3106
  # Customize the options with defaults
3076
3107
  metadata = @config.rpcs.list_replications.metadata.to_h
3077
3108
 
3078
- # Set x-goog-api-client and x-goog-user-project headers
3109
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
3079
3110
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
3080
3111
  lib_name: @config.lib_name, lib_version: @config.lib_version,
3081
3112
  gapic_version: ::Google::Cloud::NetApp::V1::VERSION
3113
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
3082
3114
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
3083
3115
 
3084
3116
  header_params = {}
@@ -3162,10 +3194,11 @@ module Google
3162
3194
  # Customize the options with defaults
3163
3195
  metadata = @config.rpcs.get_replication.metadata.to_h
3164
3196
 
3165
- # Set x-goog-api-client and x-goog-user-project headers
3197
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
3166
3198
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
3167
3199
  lib_name: @config.lib_name, lib_version: @config.lib_version,
3168
3200
  gapic_version: ::Google::Cloud::NetApp::V1::VERSION
3201
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
3169
3202
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
3170
3203
 
3171
3204
  header_params = {}
@@ -3261,10 +3294,11 @@ module Google
3261
3294
  # Customize the options with defaults
3262
3295
  metadata = @config.rpcs.create_replication.metadata.to_h
3263
3296
 
3264
- # Set x-goog-api-client and x-goog-user-project headers
3297
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
3265
3298
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
3266
3299
  lib_name: @config.lib_name, lib_version: @config.lib_version,
3267
3300
  gapic_version: ::Google::Cloud::NetApp::V1::VERSION
3301
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
3268
3302
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
3269
3303
 
3270
3304
  header_params = {}
@@ -3355,10 +3389,11 @@ module Google
3355
3389
  # Customize the options with defaults
3356
3390
  metadata = @config.rpcs.delete_replication.metadata.to_h
3357
3391
 
3358
- # Set x-goog-api-client and x-goog-user-project headers
3392
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
3359
3393
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
3360
3394
  lib_name: @config.lib_name, lib_version: @config.lib_version,
3361
3395
  gapic_version: ::Google::Cloud::NetApp::V1::VERSION
3396
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
3362
3397
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
3363
3398
 
3364
3399
  header_params = {}
@@ -3451,10 +3486,11 @@ module Google
3451
3486
  # Customize the options with defaults
3452
3487
  metadata = @config.rpcs.update_replication.metadata.to_h
3453
3488
 
3454
- # Set x-goog-api-client and x-goog-user-project headers
3489
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
3455
3490
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
3456
3491
  lib_name: @config.lib_name, lib_version: @config.lib_version,
3457
3492
  gapic_version: ::Google::Cloud::NetApp::V1::VERSION
3493
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
3458
3494
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
3459
3495
 
3460
3496
  header_params = {}
@@ -3552,10 +3588,11 @@ module Google
3552
3588
  # Customize the options with defaults
3553
3589
  metadata = @config.rpcs.stop_replication.metadata.to_h
3554
3590
 
3555
- # Set x-goog-api-client and x-goog-user-project headers
3591
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
3556
3592
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
3557
3593
  lib_name: @config.lib_name, lib_version: @config.lib_version,
3558
3594
  gapic_version: ::Google::Cloud::NetApp::V1::VERSION
3595
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
3559
3596
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
3560
3597
 
3561
3598
  header_params = {}
@@ -3646,10 +3683,11 @@ module Google
3646
3683
  # Customize the options with defaults
3647
3684
  metadata = @config.rpcs.resume_replication.metadata.to_h
3648
3685
 
3649
- # Set x-goog-api-client and x-goog-user-project headers
3686
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
3650
3687
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
3651
3688
  lib_name: @config.lib_name, lib_version: @config.lib_version,
3652
3689
  gapic_version: ::Google::Cloud::NetApp::V1::VERSION
3690
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
3653
3691
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
3654
3692
 
3655
3693
  header_params = {}
@@ -3741,10 +3779,11 @@ module Google
3741
3779
  # Customize the options with defaults
3742
3780
  metadata = @config.rpcs.reverse_replication_direction.metadata.to_h
3743
3781
 
3744
- # Set x-goog-api-client and x-goog-user-project headers
3782
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
3745
3783
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
3746
3784
  lib_name: @config.lib_name, lib_version: @config.lib_version,
3747
3785
  gapic_version: ::Google::Cloud::NetApp::V1::VERSION
3786
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
3748
3787
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
3749
3788
 
3750
3789
  header_params = {}
@@ -3845,10 +3884,11 @@ module Google
3845
3884
  # Customize the options with defaults
3846
3885
  metadata = @config.rpcs.create_backup_vault.metadata.to_h
3847
3886
 
3848
- # Set x-goog-api-client and x-goog-user-project headers
3887
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
3849
3888
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
3850
3889
  lib_name: @config.lib_name, lib_version: @config.lib_version,
3851
3890
  gapic_version: ::Google::Cloud::NetApp::V1::VERSION
3891
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
3852
3892
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
3853
3893
 
3854
3894
  header_params = {}
@@ -3932,10 +3972,11 @@ module Google
3932
3972
  # Customize the options with defaults
3933
3973
  metadata = @config.rpcs.get_backup_vault.metadata.to_h
3934
3974
 
3935
- # Set x-goog-api-client and x-goog-user-project headers
3975
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
3936
3976
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
3937
3977
  lib_name: @config.lib_name, lib_version: @config.lib_version,
3938
3978
  gapic_version: ::Google::Cloud::NetApp::V1::VERSION
3979
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
3939
3980
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
3940
3981
 
3941
3982
  header_params = {}
@@ -4032,10 +4073,11 @@ module Google
4032
4073
  # Customize the options with defaults
4033
4074
  metadata = @config.rpcs.list_backup_vaults.metadata.to_h
4034
4075
 
4035
- # Set x-goog-api-client and x-goog-user-project headers
4076
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
4036
4077
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
4037
4078
  lib_name: @config.lib_name, lib_version: @config.lib_version,
4038
4079
  gapic_version: ::Google::Cloud::NetApp::V1::VERSION
4080
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
4039
4081
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
4040
4082
 
4041
4083
  header_params = {}
@@ -4131,10 +4173,11 @@ module Google
4131
4173
  # Customize the options with defaults
4132
4174
  metadata = @config.rpcs.update_backup_vault.metadata.to_h
4133
4175
 
4134
- # Set x-goog-api-client and x-goog-user-project headers
4176
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
4135
4177
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
4136
4178
  lib_name: @config.lib_name, lib_version: @config.lib_version,
4137
4179
  gapic_version: ::Google::Cloud::NetApp::V1::VERSION
4180
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
4138
4181
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
4139
4182
 
4140
4183
  header_params = {}
@@ -4225,10 +4268,11 @@ module Google
4225
4268
  # Customize the options with defaults
4226
4269
  metadata = @config.rpcs.delete_backup_vault.metadata.to_h
4227
4270
 
4228
- # Set x-goog-api-client and x-goog-user-project headers
4271
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
4229
4272
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
4230
4273
  lib_name: @config.lib_name, lib_version: @config.lib_version,
4231
4274
  gapic_version: ::Google::Cloud::NetApp::V1::VERSION
4275
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
4232
4276
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
4233
4277
 
4234
4278
  header_params = {}
@@ -4331,10 +4375,11 @@ module Google
4331
4375
  # Customize the options with defaults
4332
4376
  metadata = @config.rpcs.create_backup.metadata.to_h
4333
4377
 
4334
- # Set x-goog-api-client and x-goog-user-project headers
4378
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
4335
4379
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
4336
4380
  lib_name: @config.lib_name, lib_version: @config.lib_version,
4337
4381
  gapic_version: ::Google::Cloud::NetApp::V1::VERSION
4382
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
4338
4383
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
4339
4384
 
4340
4385
  header_params = {}
@@ -4418,10 +4463,11 @@ module Google
4418
4463
  # Customize the options with defaults
4419
4464
  metadata = @config.rpcs.get_backup.metadata.to_h
4420
4465
 
4421
- # Set x-goog-api-client and x-goog-user-project headers
4466
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
4422
4467
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
4423
4468
  lib_name: @config.lib_name, lib_version: @config.lib_version,
4424
4469
  gapic_version: ::Google::Cloud::NetApp::V1::VERSION
4470
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
4425
4471
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
4426
4472
 
4427
4473
  header_params = {}
@@ -4529,10 +4575,11 @@ module Google
4529
4575
  # Customize the options with defaults
4530
4576
  metadata = @config.rpcs.list_backups.metadata.to_h
4531
4577
 
4532
- # Set x-goog-api-client and x-goog-user-project headers
4578
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
4533
4579
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
4534
4580
  lib_name: @config.lib_name, lib_version: @config.lib_version,
4535
4581
  gapic_version: ::Google::Cloud::NetApp::V1::VERSION
4582
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
4536
4583
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
4537
4584
 
4538
4585
  header_params = {}
@@ -4623,10 +4670,11 @@ module Google
4623
4670
  # Customize the options with defaults
4624
4671
  metadata = @config.rpcs.delete_backup.metadata.to_h
4625
4672
 
4626
- # Set x-goog-api-client and x-goog-user-project headers
4673
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
4627
4674
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
4628
4675
  lib_name: @config.lib_name, lib_version: @config.lib_version,
4629
4676
  gapic_version: ::Google::Cloud::NetApp::V1::VERSION
4677
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
4630
4678
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
4631
4679
 
4632
4680
  header_params = {}
@@ -4722,10 +4770,11 @@ module Google
4722
4770
  # Customize the options with defaults
4723
4771
  metadata = @config.rpcs.update_backup.metadata.to_h
4724
4772
 
4725
- # Set x-goog-api-client and x-goog-user-project headers
4773
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
4726
4774
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
4727
4775
  lib_name: @config.lib_name, lib_version: @config.lib_version,
4728
4776
  gapic_version: ::Google::Cloud::NetApp::V1::VERSION
4777
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
4729
4778
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
4730
4779
 
4731
4780
  header_params = {}
@@ -4823,10 +4872,11 @@ module Google
4823
4872
  # Customize the options with defaults
4824
4873
  metadata = @config.rpcs.create_backup_policy.metadata.to_h
4825
4874
 
4826
- # Set x-goog-api-client and x-goog-user-project headers
4875
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
4827
4876
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
4828
4877
  lib_name: @config.lib_name, lib_version: @config.lib_version,
4829
4878
  gapic_version: ::Google::Cloud::NetApp::V1::VERSION
4879
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
4830
4880
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
4831
4881
 
4832
4882
  header_params = {}
@@ -4910,10 +4960,11 @@ module Google
4910
4960
  # Customize the options with defaults
4911
4961
  metadata = @config.rpcs.get_backup_policy.metadata.to_h
4912
4962
 
4913
- # Set x-goog-api-client and x-goog-user-project headers
4963
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
4914
4964
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
4915
4965
  lib_name: @config.lib_name, lib_version: @config.lib_version,
4916
4966
  gapic_version: ::Google::Cloud::NetApp::V1::VERSION
4967
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
4917
4968
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
4918
4969
 
4919
4970
  header_params = {}
@@ -5008,10 +5059,11 @@ module Google
5008
5059
  # Customize the options with defaults
5009
5060
  metadata = @config.rpcs.list_backup_policies.metadata.to_h
5010
5061
 
5011
- # Set x-goog-api-client and x-goog-user-project headers
5062
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
5012
5063
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
5013
5064
  lib_name: @config.lib_name, lib_version: @config.lib_version,
5014
5065
  gapic_version: ::Google::Cloud::NetApp::V1::VERSION
5066
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
5015
5067
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
5016
5068
 
5017
5069
  header_params = {}
@@ -5107,10 +5159,11 @@ module Google
5107
5159
  # Customize the options with defaults
5108
5160
  metadata = @config.rpcs.update_backup_policy.metadata.to_h
5109
5161
 
5110
- # Set x-goog-api-client and x-goog-user-project headers
5162
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
5111
5163
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
5112
5164
  lib_name: @config.lib_name, lib_version: @config.lib_version,
5113
5165
  gapic_version: ::Google::Cloud::NetApp::V1::VERSION
5166
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
5114
5167
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
5115
5168
 
5116
5169
  header_params = {}
@@ -5201,10 +5254,11 @@ module Google
5201
5254
  # Customize the options with defaults
5202
5255
  metadata = @config.rpcs.delete_backup_policy.metadata.to_h
5203
5256
 
5204
- # Set x-goog-api-client and x-goog-user-project headers
5257
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
5205
5258
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
5206
5259
  lib_name: @config.lib_name, lib_version: @config.lib_version,
5207
5260
  gapic_version: ::Google::Cloud::NetApp::V1::VERSION
5261
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
5208
5262
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
5209
5263
 
5210
5264
  header_params = {}