google-cloud-notebooks-v1 0.9.0 → 0.9.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/google/cloud/notebooks/v1/managed_notebook_service/client.rb +29 -13
- data/lib/google/cloud/notebooks/v1/managed_notebook_service/operations.rb +13 -5
- data/lib/google/cloud/notebooks/v1/managed_notebook_service/rest/client.rb +29 -13
- data/lib/google/cloud/notebooks/v1/managed_notebook_service/rest/operations.rb +11 -4
- data/lib/google/cloud/notebooks/v1/notebook_service/client.rb +71 -34
- data/lib/google/cloud/notebooks/v1/notebook_service/operations.rb +13 -5
- data/lib/google/cloud/notebooks/v1/notebook_service/rest/client.rb +71 -34
- data/lib/google/cloud/notebooks/v1/notebook_service/rest/operations.rb +11 -4
- data/lib/google/cloud/notebooks/v1/version.rb +1 -1
- data/proto_docs/google/api/client.rb +35 -10
- data/proto_docs/google/api/resource.rb +7 -2
- metadata +2 -2
@@ -34,6 +34,9 @@ module Google
|
|
34
34
|
# API v1 service for Cloud AI Platform Notebooks.
|
35
35
|
#
|
36
36
|
class Client
|
37
|
+
# @private
|
38
|
+
API_VERSION = ""
|
39
|
+
|
37
40
|
# @private
|
38
41
|
DEFAULT_ENDPOINT_TEMPLATE = "notebooks.$UNIVERSE_DOMAIN$"
|
39
42
|
|
@@ -332,12 +335,13 @@ module Google
|
|
332
335
|
# Customize the options with defaults
|
333
336
|
call_metadata = @config.rpcs.list_instances.metadata.to_h
|
334
337
|
|
335
|
-
# Set x-goog-api-client
|
338
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
336
339
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
337
340
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
338
341
|
gapic_version: ::Google::Cloud::Notebooks::V1::VERSION,
|
339
342
|
transports_version_send: [:rest]
|
340
343
|
|
344
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
341
345
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
342
346
|
|
343
347
|
options.apply_defaults timeout: @config.rpcs.list_instances.timeout,
|
@@ -411,12 +415,13 @@ module Google
|
|
411
415
|
# Customize the options with defaults
|
412
416
|
call_metadata = @config.rpcs.get_instance.metadata.to_h
|
413
417
|
|
414
|
-
# Set x-goog-api-client
|
418
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
415
419
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
416
420
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
417
421
|
gapic_version: ::Google::Cloud::Notebooks::V1::VERSION,
|
418
422
|
transports_version_send: [:rest]
|
419
423
|
|
424
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
420
425
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
421
426
|
|
422
427
|
options.apply_defaults timeout: @config.rpcs.get_instance.timeout,
|
@@ -501,12 +506,13 @@ module Google
|
|
501
506
|
# Customize the options with defaults
|
502
507
|
call_metadata = @config.rpcs.create_instance.metadata.to_h
|
503
508
|
|
504
|
-
# Set x-goog-api-client
|
509
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
505
510
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
506
511
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
507
512
|
gapic_version: ::Google::Cloud::Notebooks::V1::VERSION,
|
508
513
|
transports_version_send: [:rest]
|
509
514
|
|
515
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
510
516
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
511
517
|
|
512
518
|
options.apply_defaults timeout: @config.rpcs.create_instance.timeout,
|
@@ -596,12 +602,13 @@ module Google
|
|
596
602
|
# Customize the options with defaults
|
597
603
|
call_metadata = @config.rpcs.register_instance.metadata.to_h
|
598
604
|
|
599
|
-
# Set x-goog-api-client
|
605
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
600
606
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
601
607
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
602
608
|
gapic_version: ::Google::Cloud::Notebooks::V1::VERSION,
|
603
609
|
transports_version_send: [:rest]
|
604
610
|
|
611
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
605
612
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
606
613
|
|
607
614
|
options.apply_defaults timeout: @config.rpcs.register_instance.timeout,
|
@@ -690,12 +697,13 @@ module Google
|
|
690
697
|
# Customize the options with defaults
|
691
698
|
call_metadata = @config.rpcs.set_instance_accelerator.metadata.to_h
|
692
699
|
|
693
|
-
# Set x-goog-api-client
|
700
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
694
701
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
695
702
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
696
703
|
gapic_version: ::Google::Cloud::Notebooks::V1::VERSION,
|
697
704
|
transports_version_send: [:rest]
|
698
705
|
|
706
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
699
707
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
700
708
|
|
701
709
|
options.apply_defaults timeout: @config.rpcs.set_instance_accelerator.timeout,
|
@@ -780,12 +788,13 @@ module Google
|
|
780
788
|
# Customize the options with defaults
|
781
789
|
call_metadata = @config.rpcs.set_instance_machine_type.metadata.to_h
|
782
790
|
|
783
|
-
# Set x-goog-api-client
|
791
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
784
792
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
785
793
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
786
794
|
gapic_version: ::Google::Cloud::Notebooks::V1::VERSION,
|
787
795
|
transports_version_send: [:rest]
|
788
796
|
|
797
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
789
798
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
790
799
|
|
791
800
|
options.apply_defaults timeout: @config.rpcs.set_instance_machine_type.timeout,
|
@@ -869,12 +878,13 @@ module Google
|
|
869
878
|
# Customize the options with defaults
|
870
879
|
call_metadata = @config.rpcs.update_instance_config.metadata.to_h
|
871
880
|
|
872
|
-
# Set x-goog-api-client
|
881
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
873
882
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
874
883
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
875
884
|
gapic_version: ::Google::Cloud::Notebooks::V1::VERSION,
|
876
885
|
transports_version_send: [:rest]
|
877
886
|
|
887
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
878
888
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
879
889
|
|
880
890
|
options.apply_defaults timeout: @config.rpcs.update_instance_config.timeout,
|
@@ -958,12 +968,13 @@ module Google
|
|
958
968
|
# Customize the options with defaults
|
959
969
|
call_metadata = @config.rpcs.update_shielded_instance_config.metadata.to_h
|
960
970
|
|
961
|
-
# Set x-goog-api-client
|
971
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
962
972
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
963
973
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
964
974
|
gapic_version: ::Google::Cloud::Notebooks::V1::VERSION,
|
965
975
|
transports_version_send: [:rest]
|
966
976
|
|
977
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
967
978
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
968
979
|
|
969
980
|
options.apply_defaults timeout: @config.rpcs.update_shielded_instance_config.timeout,
|
@@ -1048,12 +1059,13 @@ module Google
|
|
1048
1059
|
# Customize the options with defaults
|
1049
1060
|
call_metadata = @config.rpcs.set_instance_labels.metadata.to_h
|
1050
1061
|
|
1051
|
-
# Set x-goog-api-client
|
1062
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
1052
1063
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
1053
1064
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
1054
1065
|
gapic_version: ::Google::Cloud::Notebooks::V1::VERSION,
|
1055
1066
|
transports_version_send: [:rest]
|
1056
1067
|
|
1068
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
1057
1069
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
1058
1070
|
|
1059
1071
|
options.apply_defaults timeout: @config.rpcs.set_instance_labels.timeout,
|
@@ -1130,12 +1142,13 @@ module Google
|
|
1130
1142
|
# Customize the options with defaults
|
1131
1143
|
call_metadata = @config.rpcs.update_instance_metadata_items.metadata.to_h
|
1132
1144
|
|
1133
|
-
# Set x-goog-api-client
|
1145
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
1134
1146
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
1135
1147
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
1136
1148
|
gapic_version: ::Google::Cloud::Notebooks::V1::VERSION,
|
1137
1149
|
transports_version_send: [:rest]
|
1138
1150
|
|
1151
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
1139
1152
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
1140
1153
|
|
1141
1154
|
options.apply_defaults timeout: @config.rpcs.update_instance_metadata_items.timeout,
|
@@ -1216,12 +1229,13 @@ module Google
|
|
1216
1229
|
# Customize the options with defaults
|
1217
1230
|
call_metadata = @config.rpcs.delete_instance.metadata.to_h
|
1218
1231
|
|
1219
|
-
# Set x-goog-api-client
|
1232
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
1220
1233
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
1221
1234
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
1222
1235
|
gapic_version: ::Google::Cloud::Notebooks::V1::VERSION,
|
1223
1236
|
transports_version_send: [:rest]
|
1224
1237
|
|
1238
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
1225
1239
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
1226
1240
|
|
1227
1241
|
options.apply_defaults timeout: @config.rpcs.delete_instance.timeout,
|
@@ -1303,12 +1317,13 @@ module Google
|
|
1303
1317
|
# Customize the options with defaults
|
1304
1318
|
call_metadata = @config.rpcs.start_instance.metadata.to_h
|
1305
1319
|
|
1306
|
-
# Set x-goog-api-client
|
1320
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
1307
1321
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
1308
1322
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
1309
1323
|
gapic_version: ::Google::Cloud::Notebooks::V1::VERSION,
|
1310
1324
|
transports_version_send: [:rest]
|
1311
1325
|
|
1326
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
1312
1327
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
1313
1328
|
|
1314
1329
|
options.apply_defaults timeout: @config.rpcs.start_instance.timeout,
|
@@ -1390,12 +1405,13 @@ module Google
|
|
1390
1405
|
# Customize the options with defaults
|
1391
1406
|
call_metadata = @config.rpcs.stop_instance.metadata.to_h
|
1392
1407
|
|
1393
|
-
# Set x-goog-api-client
|
1408
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
1394
1409
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
1395
1410
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
1396
1411
|
gapic_version: ::Google::Cloud::Notebooks::V1::VERSION,
|
1397
1412
|
transports_version_send: [:rest]
|
1398
1413
|
|
1414
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
1399
1415
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
1400
1416
|
|
1401
1417
|
options.apply_defaults timeout: @config.rpcs.stop_instance.timeout,
|
@@ -1477,12 +1493,13 @@ module Google
|
|
1477
1493
|
# Customize the options with defaults
|
1478
1494
|
call_metadata = @config.rpcs.reset_instance.metadata.to_h
|
1479
1495
|
|
1480
|
-
# Set x-goog-api-client
|
1496
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
1481
1497
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
1482
1498
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
1483
1499
|
gapic_version: ::Google::Cloud::Notebooks::V1::VERSION,
|
1484
1500
|
transports_version_send: [:rest]
|
1485
1501
|
|
1502
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
1486
1503
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
1487
1504
|
|
1488
1505
|
options.apply_defaults timeout: @config.rpcs.reset_instance.timeout,
|
@@ -1573,12 +1590,13 @@ module Google
|
|
1573
1590
|
# Customize the options with defaults
|
1574
1591
|
call_metadata = @config.rpcs.report_instance_info.metadata.to_h
|
1575
1592
|
|
1576
|
-
# Set x-goog-api-client
|
1593
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
1577
1594
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
1578
1595
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
1579
1596
|
gapic_version: ::Google::Cloud::Notebooks::V1::VERSION,
|
1580
1597
|
transports_version_send: [:rest]
|
1581
1598
|
|
1599
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
1582
1600
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
1583
1601
|
|
1584
1602
|
options.apply_defaults timeout: @config.rpcs.report_instance_info.timeout,
|
@@ -1656,12 +1674,13 @@ module Google
|
|
1656
1674
|
# Customize the options with defaults
|
1657
1675
|
call_metadata = @config.rpcs.is_instance_upgradeable.metadata.to_h
|
1658
1676
|
|
1659
|
-
# Set x-goog-api-client
|
1677
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
1660
1678
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
1661
1679
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
1662
1680
|
gapic_version: ::Google::Cloud::Notebooks::V1::VERSION,
|
1663
1681
|
transports_version_send: [:rest]
|
1664
1682
|
|
1683
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
1665
1684
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
1666
1685
|
|
1667
1686
|
options.apply_defaults timeout: @config.rpcs.is_instance_upgradeable.timeout,
|
@@ -1735,12 +1754,13 @@ module Google
|
|
1735
1754
|
# Customize the options with defaults
|
1736
1755
|
call_metadata = @config.rpcs.get_instance_health.metadata.to_h
|
1737
1756
|
|
1738
|
-
# Set x-goog-api-client
|
1757
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
1739
1758
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
1740
1759
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
1741
1760
|
gapic_version: ::Google::Cloud::Notebooks::V1::VERSION,
|
1742
1761
|
transports_version_send: [:rest]
|
1743
1762
|
|
1763
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
1744
1764
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
1745
1765
|
|
1746
1766
|
options.apply_defaults timeout: @config.rpcs.get_instance_health.timeout,
|
@@ -1824,12 +1844,13 @@ module Google
|
|
1824
1844
|
# Customize the options with defaults
|
1825
1845
|
call_metadata = @config.rpcs.upgrade_instance.metadata.to_h
|
1826
1846
|
|
1827
|
-
# Set x-goog-api-client
|
1847
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
1828
1848
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
1829
1849
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
1830
1850
|
gapic_version: ::Google::Cloud::Notebooks::V1::VERSION,
|
1831
1851
|
transports_version_send: [:rest]
|
1832
1852
|
|
1853
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
1833
1854
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
1834
1855
|
|
1835
1856
|
options.apply_defaults timeout: @config.rpcs.upgrade_instance.timeout,
|
@@ -1914,12 +1935,13 @@ module Google
|
|
1914
1935
|
# Customize the options with defaults
|
1915
1936
|
call_metadata = @config.rpcs.rollback_instance.metadata.to_h
|
1916
1937
|
|
1917
|
-
# Set x-goog-api-client
|
1938
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
1918
1939
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
1919
1940
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
1920
1941
|
gapic_version: ::Google::Cloud::Notebooks::V1::VERSION,
|
1921
1942
|
transports_version_send: [:rest]
|
1922
1943
|
|
1944
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
1923
1945
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
1924
1946
|
|
1925
1947
|
options.apply_defaults timeout: @config.rpcs.rollback_instance.timeout,
|
@@ -2003,12 +2025,13 @@ module Google
|
|
2003
2025
|
# Customize the options with defaults
|
2004
2026
|
call_metadata = @config.rpcs.diagnose_instance.metadata.to_h
|
2005
2027
|
|
2006
|
-
# Set x-goog-api-client
|
2028
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
2007
2029
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
2008
2030
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
2009
2031
|
gapic_version: ::Google::Cloud::Notebooks::V1::VERSION,
|
2010
2032
|
transports_version_send: [:rest]
|
2011
2033
|
|
2034
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
2012
2035
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
2013
2036
|
|
2014
2037
|
options.apply_defaults timeout: @config.rpcs.diagnose_instance.timeout,
|
@@ -2097,12 +2120,13 @@ module Google
|
|
2097
2120
|
# Customize the options with defaults
|
2098
2121
|
call_metadata = @config.rpcs.upgrade_instance_internal.metadata.to_h
|
2099
2122
|
|
2100
|
-
# Set x-goog-api-client
|
2123
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
2101
2124
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
2102
2125
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
2103
2126
|
gapic_version: ::Google::Cloud::Notebooks::V1::VERSION,
|
2104
2127
|
transports_version_send: [:rest]
|
2105
2128
|
|
2129
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
2106
2130
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
2107
2131
|
|
2108
2132
|
options.apply_defaults timeout: @config.rpcs.upgrade_instance_internal.timeout,
|
@@ -2185,12 +2209,13 @@ module Google
|
|
2185
2209
|
# Customize the options with defaults
|
2186
2210
|
call_metadata = @config.rpcs.list_environments.metadata.to_h
|
2187
2211
|
|
2188
|
-
# Set x-goog-api-client
|
2212
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
2189
2213
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
2190
2214
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
2191
2215
|
gapic_version: ::Google::Cloud::Notebooks::V1::VERSION,
|
2192
2216
|
transports_version_send: [:rest]
|
2193
2217
|
|
2218
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
2194
2219
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
2195
2220
|
|
2196
2221
|
options.apply_defaults timeout: @config.rpcs.list_environments.timeout,
|
@@ -2264,12 +2289,13 @@ module Google
|
|
2264
2289
|
# Customize the options with defaults
|
2265
2290
|
call_metadata = @config.rpcs.get_environment.metadata.to_h
|
2266
2291
|
|
2267
|
-
# Set x-goog-api-client
|
2292
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
2268
2293
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
2269
2294
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
2270
2295
|
gapic_version: ::Google::Cloud::Notebooks::V1::VERSION,
|
2271
2296
|
transports_version_send: [:rest]
|
2272
2297
|
|
2298
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
2273
2299
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
2274
2300
|
|
2275
2301
|
options.apply_defaults timeout: @config.rpcs.get_environment.timeout,
|
@@ -2356,12 +2382,13 @@ module Google
|
|
2356
2382
|
# Customize the options with defaults
|
2357
2383
|
call_metadata = @config.rpcs.create_environment.metadata.to_h
|
2358
2384
|
|
2359
|
-
# Set x-goog-api-client
|
2385
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
2360
2386
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
2361
2387
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
2362
2388
|
gapic_version: ::Google::Cloud::Notebooks::V1::VERSION,
|
2363
2389
|
transports_version_send: [:rest]
|
2364
2390
|
|
2391
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
2365
2392
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
2366
2393
|
|
2367
2394
|
options.apply_defaults timeout: @config.rpcs.create_environment.timeout,
|
@@ -2443,12 +2470,13 @@ module Google
|
|
2443
2470
|
# Customize the options with defaults
|
2444
2471
|
call_metadata = @config.rpcs.delete_environment.metadata.to_h
|
2445
2472
|
|
2446
|
-
# Set x-goog-api-client
|
2473
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
2447
2474
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
2448
2475
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
2449
2476
|
gapic_version: ::Google::Cloud::Notebooks::V1::VERSION,
|
2450
2477
|
transports_version_send: [:rest]
|
2451
2478
|
|
2479
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
2452
2480
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
2453
2481
|
|
2454
2482
|
options.apply_defaults timeout: @config.rpcs.delete_environment.timeout,
|
@@ -2536,12 +2564,13 @@ module Google
|
|
2536
2564
|
# Customize the options with defaults
|
2537
2565
|
call_metadata = @config.rpcs.list_schedules.metadata.to_h
|
2538
2566
|
|
2539
|
-
# Set x-goog-api-client
|
2567
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
2540
2568
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
2541
2569
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
2542
2570
|
gapic_version: ::Google::Cloud::Notebooks::V1::VERSION,
|
2543
2571
|
transports_version_send: [:rest]
|
2544
2572
|
|
2573
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
2545
2574
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
2546
2575
|
|
2547
2576
|
options.apply_defaults timeout: @config.rpcs.list_schedules.timeout,
|
@@ -2615,12 +2644,13 @@ module Google
|
|
2615
2644
|
# Customize the options with defaults
|
2616
2645
|
call_metadata = @config.rpcs.get_schedule.metadata.to_h
|
2617
2646
|
|
2618
|
-
# Set x-goog-api-client
|
2647
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
2619
2648
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
2620
2649
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
2621
2650
|
gapic_version: ::Google::Cloud::Notebooks::V1::VERSION,
|
2622
2651
|
transports_version_send: [:rest]
|
2623
2652
|
|
2653
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
2624
2654
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
2625
2655
|
|
2626
2656
|
options.apply_defaults timeout: @config.rpcs.get_schedule.timeout,
|
@@ -2701,12 +2731,13 @@ module Google
|
|
2701
2731
|
# Customize the options with defaults
|
2702
2732
|
call_metadata = @config.rpcs.delete_schedule.metadata.to_h
|
2703
2733
|
|
2704
|
-
# Set x-goog-api-client
|
2734
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
2705
2735
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
2706
2736
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
2707
2737
|
gapic_version: ::Google::Cloud::Notebooks::V1::VERSION,
|
2708
2738
|
transports_version_send: [:rest]
|
2709
2739
|
|
2740
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
2710
2741
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
2711
2742
|
|
2712
2743
|
options.apply_defaults timeout: @config.rpcs.delete_schedule.timeout,
|
@@ -2792,12 +2823,13 @@ module Google
|
|
2792
2823
|
# Customize the options with defaults
|
2793
2824
|
call_metadata = @config.rpcs.create_schedule.metadata.to_h
|
2794
2825
|
|
2795
|
-
# Set x-goog-api-client
|
2826
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
2796
2827
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
2797
2828
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
2798
2829
|
gapic_version: ::Google::Cloud::Notebooks::V1::VERSION,
|
2799
2830
|
transports_version_send: [:rest]
|
2800
2831
|
|
2832
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
2801
2833
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
2802
2834
|
|
2803
2835
|
options.apply_defaults timeout: @config.rpcs.create_schedule.timeout,
|
@@ -2879,12 +2911,13 @@ module Google
|
|
2879
2911
|
# Customize the options with defaults
|
2880
2912
|
call_metadata = @config.rpcs.trigger_schedule.metadata.to_h
|
2881
2913
|
|
2882
|
-
# Set x-goog-api-client
|
2914
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
2883
2915
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
2884
2916
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
2885
2917
|
gapic_version: ::Google::Cloud::Notebooks::V1::VERSION,
|
2886
2918
|
transports_version_send: [:rest]
|
2887
2919
|
|
2920
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
2888
2921
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
2889
2922
|
|
2890
2923
|
options.apply_defaults timeout: @config.rpcs.trigger_schedule.timeout,
|
@@ -2974,12 +3007,13 @@ module Google
|
|
2974
3007
|
# Customize the options with defaults
|
2975
3008
|
call_metadata = @config.rpcs.list_executions.metadata.to_h
|
2976
3009
|
|
2977
|
-
# Set x-goog-api-client
|
3010
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
2978
3011
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
2979
3012
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
2980
3013
|
gapic_version: ::Google::Cloud::Notebooks::V1::VERSION,
|
2981
3014
|
transports_version_send: [:rest]
|
2982
3015
|
|
3016
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
2983
3017
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
2984
3018
|
|
2985
3019
|
options.apply_defaults timeout: @config.rpcs.list_executions.timeout,
|
@@ -3053,12 +3087,13 @@ module Google
|
|
3053
3087
|
# Customize the options with defaults
|
3054
3088
|
call_metadata = @config.rpcs.get_execution.metadata.to_h
|
3055
3089
|
|
3056
|
-
# Set x-goog-api-client
|
3090
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
3057
3091
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
3058
3092
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
3059
3093
|
gapic_version: ::Google::Cloud::Notebooks::V1::VERSION,
|
3060
3094
|
transports_version_send: [:rest]
|
3061
3095
|
|
3096
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
3062
3097
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
3063
3098
|
|
3064
3099
|
options.apply_defaults timeout: @config.rpcs.get_execution.timeout,
|
@@ -3139,12 +3174,13 @@ module Google
|
|
3139
3174
|
# Customize the options with defaults
|
3140
3175
|
call_metadata = @config.rpcs.delete_execution.metadata.to_h
|
3141
3176
|
|
3142
|
-
# Set x-goog-api-client
|
3177
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
3143
3178
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
3144
3179
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
3145
3180
|
gapic_version: ::Google::Cloud::Notebooks::V1::VERSION,
|
3146
3181
|
transports_version_send: [:rest]
|
3147
3182
|
|
3183
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
3148
3184
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
3149
3185
|
|
3150
3186
|
options.apply_defaults timeout: @config.rpcs.delete_execution.timeout,
|
@@ -3230,12 +3266,13 @@ module Google
|
|
3230
3266
|
# Customize the options with defaults
|
3231
3267
|
call_metadata = @config.rpcs.create_execution.metadata.to_h
|
3232
3268
|
|
3233
|
-
# Set x-goog-api-client
|
3269
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
3234
3270
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
3235
3271
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
3236
3272
|
gapic_version: ::Google::Cloud::Notebooks::V1::VERSION,
|
3237
3273
|
transports_version_send: [:rest]
|
3238
3274
|
|
3275
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
3239
3276
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
3240
3277
|
|
3241
3278
|
options.apply_defaults timeout: @config.rpcs.create_execution.timeout,
|
@@ -26,6 +26,9 @@ module Google
|
|
26
26
|
module Rest
|
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
|
|
@@ -181,12 +184,13 @@ module Google
|
|
181
184
|
# Customize the options with defaults
|
182
185
|
call_metadata = @config.rpcs.list_operations.metadata.to_h
|
183
186
|
|
184
|
-
# Set x-goog-api-client
|
187
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
185
188
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
186
189
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
187
190
|
gapic_version: ::Google::Cloud::Notebooks::V1::VERSION,
|
188
191
|
transports_version_send: [:rest]
|
189
192
|
|
193
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
190
194
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
191
195
|
|
192
196
|
options.apply_defaults timeout: @config.rpcs.list_operations.timeout,
|
@@ -269,12 +273,13 @@ module Google
|
|
269
273
|
# Customize the options with defaults
|
270
274
|
call_metadata = @config.rpcs.get_operation.metadata.to_h
|
271
275
|
|
272
|
-
# Set x-goog-api-client
|
276
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
273
277
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
274
278
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
275
279
|
gapic_version: ::Google::Cloud::Notebooks::V1::VERSION,
|
276
280
|
transports_version_send: [:rest]
|
277
281
|
|
282
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
278
283
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
279
284
|
|
280
285
|
options.apply_defaults timeout: @config.rpcs.get_operation.timeout,
|
@@ -351,12 +356,13 @@ module Google
|
|
351
356
|
# Customize the options with defaults
|
352
357
|
call_metadata = @config.rpcs.delete_operation.metadata.to_h
|
353
358
|
|
354
|
-
# Set x-goog-api-client
|
359
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
355
360
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
356
361
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
357
362
|
gapic_version: ::Google::Cloud::Notebooks::V1::VERSION,
|
358
363
|
transports_version_send: [:rest]
|
359
364
|
|
365
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
360
366
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
361
367
|
|
362
368
|
options.apply_defaults timeout: @config.rpcs.delete_operation.timeout,
|
@@ -438,12 +444,13 @@ module Google
|
|
438
444
|
# Customize the options with defaults
|
439
445
|
call_metadata = @config.rpcs.cancel_operation.metadata.to_h
|
440
446
|
|
441
|
-
# Set x-goog-api-client
|
447
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
442
448
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
443
449
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
444
450
|
gapic_version: ::Google::Cloud::Notebooks::V1::VERSION,
|
445
451
|
transports_version_send: [:rest]
|
446
452
|
|
453
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
447
454
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
448
455
|
|
449
456
|
options.apply_defaults timeout: @config.rpcs.cancel_operation.timeout,
|