google-cloud-notebooks-v1 0.9.0 → 0.9.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -32,6 +32,9 @@ module Google
32
32
  # API v1 service for Cloud AI Platform Notebooks.
33
33
  #
34
34
  class Client
35
+ # @private
36
+ API_VERSION = ""
37
+
35
38
  # @private
36
39
  DEFAULT_ENDPOINT_TEMPLATE = "notebooks.$UNIVERSE_DOMAIN$"
37
40
 
@@ -338,10 +341,11 @@ module Google
338
341
  # Customize the options with defaults
339
342
  metadata = @config.rpcs.list_instances.metadata.to_h
340
343
 
341
- # Set x-goog-api-client and x-goog-user-project headers
344
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
342
345
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
343
346
  lib_name: @config.lib_name, lib_version: @config.lib_version,
344
347
  gapic_version: ::Google::Cloud::Notebooks::V1::VERSION
348
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
345
349
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
346
350
 
347
351
  header_params = {}
@@ -425,10 +429,11 @@ module Google
425
429
  # Customize the options with defaults
426
430
  metadata = @config.rpcs.get_instance.metadata.to_h
427
431
 
428
- # Set x-goog-api-client and x-goog-user-project headers
432
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
429
433
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
430
434
  lib_name: @config.lib_name, lib_version: @config.lib_version,
431
435
  gapic_version: ::Google::Cloud::Notebooks::V1::VERSION
436
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
432
437
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
433
438
 
434
439
  header_params = {}
@@ -522,10 +527,11 @@ module Google
522
527
  # Customize the options with defaults
523
528
  metadata = @config.rpcs.create_instance.metadata.to_h
524
529
 
525
- # Set x-goog-api-client and x-goog-user-project headers
530
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
526
531
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
527
532
  lib_name: @config.lib_name, lib_version: @config.lib_version,
528
533
  gapic_version: ::Google::Cloud::Notebooks::V1::VERSION
534
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
529
535
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
530
536
 
531
537
  header_params = {}
@@ -624,10 +630,11 @@ module Google
624
630
  # Customize the options with defaults
625
631
  metadata = @config.rpcs.register_instance.metadata.to_h
626
632
 
627
- # Set x-goog-api-client and x-goog-user-project headers
633
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
628
634
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
629
635
  lib_name: @config.lib_name, lib_version: @config.lib_version,
630
636
  gapic_version: ::Google::Cloud::Notebooks::V1::VERSION
637
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
631
638
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
632
639
 
633
640
  header_params = {}
@@ -725,10 +732,11 @@ module Google
725
732
  # Customize the options with defaults
726
733
  metadata = @config.rpcs.set_instance_accelerator.metadata.to_h
727
734
 
728
- # Set x-goog-api-client and x-goog-user-project headers
735
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
729
736
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
730
737
  lib_name: @config.lib_name, lib_version: @config.lib_version,
731
738
  gapic_version: ::Google::Cloud::Notebooks::V1::VERSION
739
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
732
740
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
733
741
 
734
742
  header_params = {}
@@ -822,10 +830,11 @@ module Google
822
830
  # Customize the options with defaults
823
831
  metadata = @config.rpcs.set_instance_machine_type.metadata.to_h
824
832
 
825
- # Set x-goog-api-client and x-goog-user-project headers
833
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
826
834
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
827
835
  lib_name: @config.lib_name, lib_version: @config.lib_version,
828
836
  gapic_version: ::Google::Cloud::Notebooks::V1::VERSION
837
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
829
838
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
830
839
 
831
840
  header_params = {}
@@ -918,10 +927,11 @@ module Google
918
927
  # Customize the options with defaults
919
928
  metadata = @config.rpcs.update_instance_config.metadata.to_h
920
929
 
921
- # Set x-goog-api-client and x-goog-user-project headers
930
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
922
931
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
923
932
  lib_name: @config.lib_name, lib_version: @config.lib_version,
924
933
  gapic_version: ::Google::Cloud::Notebooks::V1::VERSION
934
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
925
935
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
926
936
 
927
937
  header_params = {}
@@ -1014,10 +1024,11 @@ module Google
1014
1024
  # Customize the options with defaults
1015
1025
  metadata = @config.rpcs.update_shielded_instance_config.metadata.to_h
1016
1026
 
1017
- # Set x-goog-api-client and x-goog-user-project headers
1027
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1018
1028
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1019
1029
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1020
1030
  gapic_version: ::Google::Cloud::Notebooks::V1::VERSION
1031
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1021
1032
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1022
1033
 
1023
1034
  header_params = {}
@@ -1111,10 +1122,11 @@ module Google
1111
1122
  # Customize the options with defaults
1112
1123
  metadata = @config.rpcs.set_instance_labels.metadata.to_h
1113
1124
 
1114
- # Set x-goog-api-client and x-goog-user-project headers
1125
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1115
1126
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1116
1127
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1117
1128
  gapic_version: ::Google::Cloud::Notebooks::V1::VERSION
1129
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1118
1130
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1119
1131
 
1120
1132
  header_params = {}
@@ -1200,10 +1212,11 @@ module Google
1200
1212
  # Customize the options with defaults
1201
1213
  metadata = @config.rpcs.update_instance_metadata_items.metadata.to_h
1202
1214
 
1203
- # Set x-goog-api-client and x-goog-user-project headers
1215
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1204
1216
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1205
1217
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1206
1218
  gapic_version: ::Google::Cloud::Notebooks::V1::VERSION
1219
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1207
1220
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1208
1221
 
1209
1222
  header_params = {}
@@ -1293,10 +1306,11 @@ module Google
1293
1306
  # Customize the options with defaults
1294
1307
  metadata = @config.rpcs.delete_instance.metadata.to_h
1295
1308
 
1296
- # Set x-goog-api-client and x-goog-user-project headers
1309
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1297
1310
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1298
1311
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1299
1312
  gapic_version: ::Google::Cloud::Notebooks::V1::VERSION
1313
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1300
1314
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1301
1315
 
1302
1316
  header_params = {}
@@ -1387,10 +1401,11 @@ module Google
1387
1401
  # Customize the options with defaults
1388
1402
  metadata = @config.rpcs.start_instance.metadata.to_h
1389
1403
 
1390
- # Set x-goog-api-client and x-goog-user-project headers
1404
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1391
1405
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1392
1406
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1393
1407
  gapic_version: ::Google::Cloud::Notebooks::V1::VERSION
1408
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1394
1409
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1395
1410
 
1396
1411
  header_params = {}
@@ -1481,10 +1496,11 @@ module Google
1481
1496
  # Customize the options with defaults
1482
1497
  metadata = @config.rpcs.stop_instance.metadata.to_h
1483
1498
 
1484
- # Set x-goog-api-client and x-goog-user-project headers
1499
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1485
1500
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1486
1501
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1487
1502
  gapic_version: ::Google::Cloud::Notebooks::V1::VERSION
1503
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1488
1504
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1489
1505
 
1490
1506
  header_params = {}
@@ -1575,10 +1591,11 @@ module Google
1575
1591
  # Customize the options with defaults
1576
1592
  metadata = @config.rpcs.reset_instance.metadata.to_h
1577
1593
 
1578
- # Set x-goog-api-client and x-goog-user-project headers
1594
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1579
1595
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1580
1596
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1581
1597
  gapic_version: ::Google::Cloud::Notebooks::V1::VERSION
1598
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1582
1599
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1583
1600
 
1584
1601
  header_params = {}
@@ -1678,10 +1695,11 @@ module Google
1678
1695
  # Customize the options with defaults
1679
1696
  metadata = @config.rpcs.report_instance_info.metadata.to_h
1680
1697
 
1681
- # Set x-goog-api-client and x-goog-user-project headers
1698
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1682
1699
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1683
1700
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1684
1701
  gapic_version: ::Google::Cloud::Notebooks::V1::VERSION
1702
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1685
1703
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1686
1704
 
1687
1705
  header_params = {}
@@ -1768,10 +1786,11 @@ module Google
1768
1786
  # Customize the options with defaults
1769
1787
  metadata = @config.rpcs.is_instance_upgradeable.metadata.to_h
1770
1788
 
1771
- # Set x-goog-api-client and x-goog-user-project headers
1789
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1772
1790
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1773
1791
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1774
1792
  gapic_version: ::Google::Cloud::Notebooks::V1::VERSION
1793
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1775
1794
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1776
1795
 
1777
1796
  header_params = {}
@@ -1854,10 +1873,11 @@ module Google
1854
1873
  # Customize the options with defaults
1855
1874
  metadata = @config.rpcs.get_instance_health.metadata.to_h
1856
1875
 
1857
- # Set x-goog-api-client and x-goog-user-project headers
1876
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1858
1877
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1859
1878
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1860
1879
  gapic_version: ::Google::Cloud::Notebooks::V1::VERSION
1880
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1861
1881
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1862
1882
 
1863
1883
  header_params = {}
@@ -1950,10 +1970,11 @@ module Google
1950
1970
  # Customize the options with defaults
1951
1971
  metadata = @config.rpcs.upgrade_instance.metadata.to_h
1952
1972
 
1953
- # 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
1954
1974
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1955
1975
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1956
1976
  gapic_version: ::Google::Cloud::Notebooks::V1::VERSION
1977
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1957
1978
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1958
1979
 
1959
1980
  header_params = {}
@@ -2047,10 +2068,11 @@ module Google
2047
2068
  # Customize the options with defaults
2048
2069
  metadata = @config.rpcs.rollback_instance.metadata.to_h
2049
2070
 
2050
- # Set x-goog-api-client and x-goog-user-project headers
2071
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
2051
2072
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
2052
2073
  lib_name: @config.lib_name, lib_version: @config.lib_version,
2053
2074
  gapic_version: ::Google::Cloud::Notebooks::V1::VERSION
2075
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
2054
2076
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
2055
2077
 
2056
2078
  header_params = {}
@@ -2143,10 +2165,11 @@ module Google
2143
2165
  # Customize the options with defaults
2144
2166
  metadata = @config.rpcs.diagnose_instance.metadata.to_h
2145
2167
 
2146
- # Set x-goog-api-client and x-goog-user-project headers
2168
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
2147
2169
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
2148
2170
  lib_name: @config.lib_name, lib_version: @config.lib_version,
2149
2171
  gapic_version: ::Google::Cloud::Notebooks::V1::VERSION
2172
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
2150
2173
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
2151
2174
 
2152
2175
  header_params = {}
@@ -2244,10 +2267,11 @@ module Google
2244
2267
  # Customize the options with defaults
2245
2268
  metadata = @config.rpcs.upgrade_instance_internal.metadata.to_h
2246
2269
 
2247
- # Set x-goog-api-client and x-goog-user-project headers
2270
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
2248
2271
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
2249
2272
  lib_name: @config.lib_name, lib_version: @config.lib_version,
2250
2273
  gapic_version: ::Google::Cloud::Notebooks::V1::VERSION
2274
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
2251
2275
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
2252
2276
 
2253
2277
  header_params = {}
@@ -2339,10 +2363,11 @@ module Google
2339
2363
  # Customize the options with defaults
2340
2364
  metadata = @config.rpcs.list_environments.metadata.to_h
2341
2365
 
2342
- # Set x-goog-api-client and x-goog-user-project headers
2366
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
2343
2367
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
2344
2368
  lib_name: @config.lib_name, lib_version: @config.lib_version,
2345
2369
  gapic_version: ::Google::Cloud::Notebooks::V1::VERSION
2370
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
2346
2371
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
2347
2372
 
2348
2373
  header_params = {}
@@ -2426,10 +2451,11 @@ module Google
2426
2451
  # Customize the options with defaults
2427
2452
  metadata = @config.rpcs.get_environment.metadata.to_h
2428
2453
 
2429
- # Set x-goog-api-client and x-goog-user-project headers
2454
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
2430
2455
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
2431
2456
  lib_name: @config.lib_name, lib_version: @config.lib_version,
2432
2457
  gapic_version: ::Google::Cloud::Notebooks::V1::VERSION
2458
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
2433
2459
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
2434
2460
 
2435
2461
  header_params = {}
@@ -2525,10 +2551,11 @@ module Google
2525
2551
  # Customize the options with defaults
2526
2552
  metadata = @config.rpcs.create_environment.metadata.to_h
2527
2553
 
2528
- # Set x-goog-api-client and x-goog-user-project headers
2554
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
2529
2555
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
2530
2556
  lib_name: @config.lib_name, lib_version: @config.lib_version,
2531
2557
  gapic_version: ::Google::Cloud::Notebooks::V1::VERSION
2558
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
2532
2559
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
2533
2560
 
2534
2561
  header_params = {}
@@ -2619,10 +2646,11 @@ module Google
2619
2646
  # Customize the options with defaults
2620
2647
  metadata = @config.rpcs.delete_environment.metadata.to_h
2621
2648
 
2622
- # Set x-goog-api-client and x-goog-user-project headers
2649
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
2623
2650
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
2624
2651
  lib_name: @config.lib_name, lib_version: @config.lib_version,
2625
2652
  gapic_version: ::Google::Cloud::Notebooks::V1::VERSION
2653
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
2626
2654
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
2627
2655
 
2628
2656
  header_params = {}
@@ -2719,10 +2747,11 @@ module Google
2719
2747
  # Customize the options with defaults
2720
2748
  metadata = @config.rpcs.list_schedules.metadata.to_h
2721
2749
 
2722
- # Set x-goog-api-client and x-goog-user-project headers
2750
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
2723
2751
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
2724
2752
  lib_name: @config.lib_name, lib_version: @config.lib_version,
2725
2753
  gapic_version: ::Google::Cloud::Notebooks::V1::VERSION
2754
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
2726
2755
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
2727
2756
 
2728
2757
  header_params = {}
@@ -2806,10 +2835,11 @@ module Google
2806
2835
  # Customize the options with defaults
2807
2836
  metadata = @config.rpcs.get_schedule.metadata.to_h
2808
2837
 
2809
- # Set x-goog-api-client and x-goog-user-project headers
2838
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
2810
2839
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
2811
2840
  lib_name: @config.lib_name, lib_version: @config.lib_version,
2812
2841
  gapic_version: ::Google::Cloud::Notebooks::V1::VERSION
2842
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
2813
2843
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
2814
2844
 
2815
2845
  header_params = {}
@@ -2899,10 +2929,11 @@ module Google
2899
2929
  # Customize the options with defaults
2900
2930
  metadata = @config.rpcs.delete_schedule.metadata.to_h
2901
2931
 
2902
- # Set x-goog-api-client and x-goog-user-project headers
2932
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
2903
2933
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
2904
2934
  lib_name: @config.lib_name, lib_version: @config.lib_version,
2905
2935
  gapic_version: ::Google::Cloud::Notebooks::V1::VERSION
2936
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
2906
2937
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
2907
2938
 
2908
2939
  header_params = {}
@@ -2997,10 +3028,11 @@ module Google
2997
3028
  # Customize the options with defaults
2998
3029
  metadata = @config.rpcs.create_schedule.metadata.to_h
2999
3030
 
3000
- # Set x-goog-api-client and x-goog-user-project headers
3031
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
3001
3032
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
3002
3033
  lib_name: @config.lib_name, lib_version: @config.lib_version,
3003
3034
  gapic_version: ::Google::Cloud::Notebooks::V1::VERSION
3035
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
3004
3036
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
3005
3037
 
3006
3038
  header_params = {}
@@ -3091,10 +3123,11 @@ module Google
3091
3123
  # Customize the options with defaults
3092
3124
  metadata = @config.rpcs.trigger_schedule.metadata.to_h
3093
3125
 
3094
- # Set x-goog-api-client and x-goog-user-project headers
3126
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
3095
3127
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
3096
3128
  lib_name: @config.lib_name, lib_version: @config.lib_version,
3097
3129
  gapic_version: ::Google::Cloud::Notebooks::V1::VERSION
3130
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
3098
3131
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
3099
3132
 
3100
3133
  header_params = {}
@@ -3193,10 +3226,11 @@ module Google
3193
3226
  # Customize the options with defaults
3194
3227
  metadata = @config.rpcs.list_executions.metadata.to_h
3195
3228
 
3196
- # Set x-goog-api-client and x-goog-user-project headers
3229
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
3197
3230
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
3198
3231
  lib_name: @config.lib_name, lib_version: @config.lib_version,
3199
3232
  gapic_version: ::Google::Cloud::Notebooks::V1::VERSION
3233
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
3200
3234
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
3201
3235
 
3202
3236
  header_params = {}
@@ -3280,10 +3314,11 @@ module Google
3280
3314
  # Customize the options with defaults
3281
3315
  metadata = @config.rpcs.get_execution.metadata.to_h
3282
3316
 
3283
- # Set x-goog-api-client and x-goog-user-project headers
3317
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
3284
3318
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
3285
3319
  lib_name: @config.lib_name, lib_version: @config.lib_version,
3286
3320
  gapic_version: ::Google::Cloud::Notebooks::V1::VERSION
3321
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
3287
3322
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
3288
3323
 
3289
3324
  header_params = {}
@@ -3373,10 +3408,11 @@ module Google
3373
3408
  # Customize the options with defaults
3374
3409
  metadata = @config.rpcs.delete_execution.metadata.to_h
3375
3410
 
3376
- # Set x-goog-api-client and x-goog-user-project headers
3411
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
3377
3412
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
3378
3413
  lib_name: @config.lib_name, lib_version: @config.lib_version,
3379
3414
  gapic_version: ::Google::Cloud::Notebooks::V1::VERSION
3415
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
3380
3416
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
3381
3417
 
3382
3418
  header_params = {}
@@ -3471,10 +3507,11 @@ module Google
3471
3507
  # Customize the options with defaults
3472
3508
  metadata = @config.rpcs.create_execution.metadata.to_h
3473
3509
 
3474
- # Set x-goog-api-client and x-goog-user-project headers
3510
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
3475
3511
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
3476
3512
  lib_name: @config.lib_name, lib_version: @config.lib_version,
3477
3513
  gapic_version: ::Google::Cloud::Notebooks::V1::VERSION
3514
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
3478
3515
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
3479
3516
 
3480
3517
  header_params = {}
@@ -26,6 +26,9 @@ module Google
26
26
  module NotebookService
27
27
  # Service that implements Longrunning Operations API.
28
28
  class Operations
29
+ # @private
30
+ API_VERSION = ""
31
+
29
32
  # @private
30
33
  DEFAULT_ENDPOINT_TEMPLATE = "notebooks.$UNIVERSE_DOMAIN$"
31
34
 
@@ -191,10 +194,11 @@ module Google
191
194
  # Customize the options with defaults
192
195
  metadata = @config.rpcs.list_operations.metadata.to_h
193
196
 
194
- # Set x-goog-api-client and x-goog-user-project headers
197
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
195
198
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
196
199
  lib_name: @config.lib_name, lib_version: @config.lib_version,
197
200
  gapic_version: ::Google::Cloud::Notebooks::V1::VERSION
201
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
198
202
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
199
203
 
200
204
  header_params = {}
@@ -287,10 +291,11 @@ module Google
287
291
  # Customize the options with defaults
288
292
  metadata = @config.rpcs.get_operation.metadata.to_h
289
293
 
290
- # Set x-goog-api-client and x-goog-user-project headers
294
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
291
295
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
292
296
  lib_name: @config.lib_name, lib_version: @config.lib_version,
293
297
  gapic_version: ::Google::Cloud::Notebooks::V1::VERSION
298
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
294
299
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
295
300
 
296
301
  header_params = {}
@@ -376,10 +381,11 @@ module Google
376
381
  # Customize the options with defaults
377
382
  metadata = @config.rpcs.delete_operation.metadata.to_h
378
383
 
379
- # Set x-goog-api-client and x-goog-user-project headers
384
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
380
385
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
381
386
  lib_name: @config.lib_name, lib_version: @config.lib_version,
382
387
  gapic_version: ::Google::Cloud::Notebooks::V1::VERSION
388
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
383
389
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
384
390
 
385
391
  header_params = {}
@@ -470,10 +476,11 @@ module Google
470
476
  # Customize the options with defaults
471
477
  metadata = @config.rpcs.cancel_operation.metadata.to_h
472
478
 
473
- # Set x-goog-api-client and x-goog-user-project headers
479
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
474
480
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
475
481
  lib_name: @config.lib_name, lib_version: @config.lib_version,
476
482
  gapic_version: ::Google::Cloud::Notebooks::V1::VERSION
483
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
477
484
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
478
485
 
479
486
  header_params = {}
@@ -574,10 +581,11 @@ module Google
574
581
  # Customize the options with defaults
575
582
  metadata = @config.rpcs.wait_operation.metadata.to_h
576
583
 
577
- # Set x-goog-api-client and x-goog-user-project headers
584
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
578
585
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
579
586
  lib_name: @config.lib_name, lib_version: @config.lib_version,
580
587
  gapic_version: ::Google::Cloud::Notebooks::V1::VERSION
588
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
581
589
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
582
590
 
583
591
  options.apply_defaults timeout: @config.rpcs.wait_operation.timeout,