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
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 55e21180347092727855c968df353dcac987ccadc44ad1821baa85f26a04f960
|
4
|
+
data.tar.gz: 7b1a0e5f0e1aad4aab6664c1fe907e9a8704e76662d99f8e7dafb5c7168f2a9e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 59bffb7b7344d44e8b09ec4ef4ad301d5e173f548d43116a669ddbc67a503b187dd7e5b4721eeb95085c6f0b562aac7aeb3d5cd8c5422e20b67d8ee8d06d8c2a
|
7
|
+
data.tar.gz: 0a9ef15955a1db65cd6e1065d053662cd0c38b97c7dfcb14e1801ba580bc240c1554798f6bfa03eb03ef5d49dda66518e871df03e03952a96885032148326d5c
|
@@ -32,6 +32,9 @@ module Google
|
|
32
32
|
# API v1 service for Managed 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
|
|
@@ -294,10 +297,11 @@ module Google
|
|
294
297
|
# Customize the options with defaults
|
295
298
|
metadata = @config.rpcs.list_runtimes.metadata.to_h
|
296
299
|
|
297
|
-
# Set x-goog-api-client
|
300
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
298
301
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
299
302
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
300
303
|
gapic_version: ::Google::Cloud::Notebooks::V1::VERSION
|
304
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
301
305
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
302
306
|
|
303
307
|
header_params = {}
|
@@ -382,10 +386,11 @@ module Google
|
|
382
386
|
# Customize the options with defaults
|
383
387
|
metadata = @config.rpcs.get_runtime.metadata.to_h
|
384
388
|
|
385
|
-
# Set x-goog-api-client
|
389
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
386
390
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
387
391
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
388
392
|
gapic_version: ::Google::Cloud::Notebooks::V1::VERSION
|
393
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
389
394
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
390
395
|
|
391
396
|
header_params = {}
|
@@ -481,10 +486,11 @@ module Google
|
|
481
486
|
# Customize the options with defaults
|
482
487
|
metadata = @config.rpcs.create_runtime.metadata.to_h
|
483
488
|
|
484
|
-
# Set x-goog-api-client
|
489
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
485
490
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
486
491
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
487
492
|
gapic_version: ::Google::Cloud::Notebooks::V1::VERSION
|
493
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
488
494
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
489
495
|
|
490
496
|
header_params = {}
|
@@ -600,10 +606,11 @@ module Google
|
|
600
606
|
# Customize the options with defaults
|
601
607
|
metadata = @config.rpcs.update_runtime.metadata.to_h
|
602
608
|
|
603
|
-
# Set x-goog-api-client
|
609
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
604
610
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
605
611
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
606
612
|
gapic_version: ::Google::Cloud::Notebooks::V1::VERSION
|
613
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
607
614
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
608
615
|
|
609
616
|
header_params = {}
|
@@ -696,10 +703,11 @@ module Google
|
|
696
703
|
# Customize the options with defaults
|
697
704
|
metadata = @config.rpcs.delete_runtime.metadata.to_h
|
698
705
|
|
699
|
-
# Set x-goog-api-client
|
706
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
700
707
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
701
708
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
702
709
|
gapic_version: ::Google::Cloud::Notebooks::V1::VERSION
|
710
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
703
711
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
704
712
|
|
705
713
|
header_params = {}
|
@@ -796,10 +804,11 @@ module Google
|
|
796
804
|
# Customize the options with defaults
|
797
805
|
metadata = @config.rpcs.start_runtime.metadata.to_h
|
798
806
|
|
799
|
-
# Set x-goog-api-client
|
807
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
800
808
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
801
809
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
802
810
|
gapic_version: ::Google::Cloud::Notebooks::V1::VERSION
|
811
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
803
812
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
804
813
|
|
805
814
|
header_params = {}
|
@@ -896,10 +905,11 @@ module Google
|
|
896
905
|
# Customize the options with defaults
|
897
906
|
metadata = @config.rpcs.stop_runtime.metadata.to_h
|
898
907
|
|
899
|
-
# Set x-goog-api-client
|
908
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
900
909
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
901
910
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
902
911
|
gapic_version: ::Google::Cloud::Notebooks::V1::VERSION
|
912
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
903
913
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
904
914
|
|
905
915
|
header_params = {}
|
@@ -996,10 +1006,11 @@ module Google
|
|
996
1006
|
# Customize the options with defaults
|
997
1007
|
metadata = @config.rpcs.switch_runtime.metadata.to_h
|
998
1008
|
|
999
|
-
# Set x-goog-api-client
|
1009
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
1000
1010
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
1001
1011
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
1002
1012
|
gapic_version: ::Google::Cloud::Notebooks::V1::VERSION
|
1013
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
1003
1014
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
1004
1015
|
|
1005
1016
|
header_params = {}
|
@@ -1092,10 +1103,11 @@ module Google
|
|
1092
1103
|
# Customize the options with defaults
|
1093
1104
|
metadata = @config.rpcs.reset_runtime.metadata.to_h
|
1094
1105
|
|
1095
|
-
# Set x-goog-api-client
|
1106
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
1096
1107
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
1097
1108
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
1098
1109
|
gapic_version: ::Google::Cloud::Notebooks::V1::VERSION
|
1110
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
1099
1111
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
1100
1112
|
|
1101
1113
|
header_params = {}
|
@@ -1188,10 +1200,11 @@ module Google
|
|
1188
1200
|
# Customize the options with defaults
|
1189
1201
|
metadata = @config.rpcs.upgrade_runtime.metadata.to_h
|
1190
1202
|
|
1191
|
-
# Set x-goog-api-client
|
1203
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
1192
1204
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
1193
1205
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
1194
1206
|
gapic_version: ::Google::Cloud::Notebooks::V1::VERSION
|
1207
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
1195
1208
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
1196
1209
|
|
1197
1210
|
header_params = {}
|
@@ -1287,10 +1300,11 @@ module Google
|
|
1287
1300
|
# Customize the options with defaults
|
1288
1301
|
metadata = @config.rpcs.report_runtime_event.metadata.to_h
|
1289
1302
|
|
1290
|
-
# Set x-goog-api-client
|
1303
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
1291
1304
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
1292
1305
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
1293
1306
|
gapic_version: ::Google::Cloud::Notebooks::V1::VERSION
|
1307
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
1294
1308
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
1295
1309
|
|
1296
1310
|
header_params = {}
|
@@ -1378,10 +1392,11 @@ module Google
|
|
1378
1392
|
# Customize the options with defaults
|
1379
1393
|
metadata = @config.rpcs.refresh_runtime_token_internal.metadata.to_h
|
1380
1394
|
|
1381
|
-
# Set x-goog-api-client
|
1395
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
1382
1396
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
1383
1397
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
1384
1398
|
gapic_version: ::Google::Cloud::Notebooks::V1::VERSION
|
1399
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
1385
1400
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
1386
1401
|
|
1387
1402
|
header_params = {}
|
@@ -1473,10 +1488,11 @@ module Google
|
|
1473
1488
|
# Customize the options with defaults
|
1474
1489
|
metadata = @config.rpcs.diagnose_runtime.metadata.to_h
|
1475
1490
|
|
1476
|
-
# Set x-goog-api-client
|
1491
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
1477
1492
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
1478
1493
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
1479
1494
|
gapic_version: ::Google::Cloud::Notebooks::V1::VERSION
|
1495
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
1480
1496
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
1481
1497
|
|
1482
1498
|
header_params = {}
|
@@ -26,6 +26,9 @@ module Google
|
|
26
26
|
module ManagedNotebookService
|
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
|
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
|
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
|
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
|
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
|
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,
|
@@ -34,6 +34,9 @@ module Google
|
|
34
34
|
# API v1 service for Managed 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
|
|
@@ -288,12 +291,13 @@ module Google
|
|
288
291
|
# Customize the options with defaults
|
289
292
|
call_metadata = @config.rpcs.list_runtimes.metadata.to_h
|
290
293
|
|
291
|
-
# Set x-goog-api-client
|
294
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
292
295
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
293
296
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
294
297
|
gapic_version: ::Google::Cloud::Notebooks::V1::VERSION,
|
295
298
|
transports_version_send: [:rest]
|
296
299
|
|
300
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
297
301
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
298
302
|
|
299
303
|
options.apply_defaults timeout: @config.rpcs.list_runtimes.timeout,
|
@@ -368,12 +372,13 @@ module Google
|
|
368
372
|
# Customize the options with defaults
|
369
373
|
call_metadata = @config.rpcs.get_runtime.metadata.to_h
|
370
374
|
|
371
|
-
# Set x-goog-api-client
|
375
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
372
376
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
373
377
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
374
378
|
gapic_version: ::Google::Cloud::Notebooks::V1::VERSION,
|
375
379
|
transports_version_send: [:rest]
|
376
380
|
|
381
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
377
382
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
378
383
|
|
379
384
|
options.apply_defaults timeout: @config.rpcs.get_runtime.timeout,
|
@@ -460,12 +465,13 @@ module Google
|
|
460
465
|
# Customize the options with defaults
|
461
466
|
call_metadata = @config.rpcs.create_runtime.metadata.to_h
|
462
467
|
|
463
|
-
# Set x-goog-api-client
|
468
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
464
469
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
465
470
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
466
471
|
gapic_version: ::Google::Cloud::Notebooks::V1::VERSION,
|
467
472
|
transports_version_send: [:rest]
|
468
473
|
|
474
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
469
475
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
470
476
|
|
471
477
|
options.apply_defaults timeout: @config.rpcs.create_runtime.timeout,
|
@@ -572,12 +578,13 @@ module Google
|
|
572
578
|
# Customize the options with defaults
|
573
579
|
call_metadata = @config.rpcs.update_runtime.metadata.to_h
|
574
580
|
|
575
|
-
# Set x-goog-api-client
|
581
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
576
582
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
577
583
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
578
584
|
gapic_version: ::Google::Cloud::Notebooks::V1::VERSION,
|
579
585
|
transports_version_send: [:rest]
|
580
586
|
|
587
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
581
588
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
582
589
|
|
583
590
|
options.apply_defaults timeout: @config.rpcs.update_runtime.timeout,
|
@@ -661,12 +668,13 @@ module Google
|
|
661
668
|
# Customize the options with defaults
|
662
669
|
call_metadata = @config.rpcs.delete_runtime.metadata.to_h
|
663
670
|
|
664
|
-
# Set x-goog-api-client
|
671
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
665
672
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
666
673
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
667
674
|
gapic_version: ::Google::Cloud::Notebooks::V1::VERSION,
|
668
675
|
transports_version_send: [:rest]
|
669
676
|
|
677
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
670
678
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
671
679
|
|
672
680
|
options.apply_defaults timeout: @config.rpcs.delete_runtime.timeout,
|
@@ -754,12 +762,13 @@ module Google
|
|
754
762
|
# Customize the options with defaults
|
755
763
|
call_metadata = @config.rpcs.start_runtime.metadata.to_h
|
756
764
|
|
757
|
-
# Set x-goog-api-client
|
765
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
758
766
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
759
767
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
760
768
|
gapic_version: ::Google::Cloud::Notebooks::V1::VERSION,
|
761
769
|
transports_version_send: [:rest]
|
762
770
|
|
771
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
763
772
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
764
773
|
|
765
774
|
options.apply_defaults timeout: @config.rpcs.start_runtime.timeout,
|
@@ -847,12 +856,13 @@ module Google
|
|
847
856
|
# Customize the options with defaults
|
848
857
|
call_metadata = @config.rpcs.stop_runtime.metadata.to_h
|
849
858
|
|
850
|
-
# Set x-goog-api-client
|
859
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
851
860
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
852
861
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
853
862
|
gapic_version: ::Google::Cloud::Notebooks::V1::VERSION,
|
854
863
|
transports_version_send: [:rest]
|
855
864
|
|
865
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
856
866
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
857
867
|
|
858
868
|
options.apply_defaults timeout: @config.rpcs.stop_runtime.timeout,
|
@@ -940,12 +950,13 @@ module Google
|
|
940
950
|
# Customize the options with defaults
|
941
951
|
call_metadata = @config.rpcs.switch_runtime.metadata.to_h
|
942
952
|
|
943
|
-
# Set x-goog-api-client
|
953
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
944
954
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
945
955
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
946
956
|
gapic_version: ::Google::Cloud::Notebooks::V1::VERSION,
|
947
957
|
transports_version_send: [:rest]
|
948
958
|
|
959
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
949
960
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
950
961
|
|
951
962
|
options.apply_defaults timeout: @config.rpcs.switch_runtime.timeout,
|
@@ -1029,12 +1040,13 @@ module Google
|
|
1029
1040
|
# Customize the options with defaults
|
1030
1041
|
call_metadata = @config.rpcs.reset_runtime.metadata.to_h
|
1031
1042
|
|
1032
|
-
# Set x-goog-api-client
|
1043
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
1033
1044
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
1034
1045
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
1035
1046
|
gapic_version: ::Google::Cloud::Notebooks::V1::VERSION,
|
1036
1047
|
transports_version_send: [:rest]
|
1037
1048
|
|
1049
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
1038
1050
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
1039
1051
|
|
1040
1052
|
options.apply_defaults timeout: @config.rpcs.reset_runtime.timeout,
|
@@ -1118,12 +1130,13 @@ module Google
|
|
1118
1130
|
# Customize the options with defaults
|
1119
1131
|
call_metadata = @config.rpcs.upgrade_runtime.metadata.to_h
|
1120
1132
|
|
1121
|
-
# Set x-goog-api-client
|
1133
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
1122
1134
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
1123
1135
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
1124
1136
|
gapic_version: ::Google::Cloud::Notebooks::V1::VERSION,
|
1125
1137
|
transports_version_send: [:rest]
|
1126
1138
|
|
1139
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
1127
1140
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
1128
1141
|
|
1129
1142
|
options.apply_defaults timeout: @config.rpcs.upgrade_runtime.timeout,
|
@@ -1210,12 +1223,13 @@ module Google
|
|
1210
1223
|
# Customize the options with defaults
|
1211
1224
|
call_metadata = @config.rpcs.report_runtime_event.metadata.to_h
|
1212
1225
|
|
1213
|
-
# Set x-goog-api-client
|
1226
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
1214
1227
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
1215
1228
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
1216
1229
|
gapic_version: ::Google::Cloud::Notebooks::V1::VERSION,
|
1217
1230
|
transports_version_send: [:rest]
|
1218
1231
|
|
1232
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
1219
1233
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
1220
1234
|
|
1221
1235
|
options.apply_defaults timeout: @config.rpcs.report_runtime_event.timeout,
|
@@ -1294,12 +1308,13 @@ module Google
|
|
1294
1308
|
# Customize the options with defaults
|
1295
1309
|
call_metadata = @config.rpcs.refresh_runtime_token_internal.metadata.to_h
|
1296
1310
|
|
1297
|
-
# Set x-goog-api-client
|
1311
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
1298
1312
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
1299
1313
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
1300
1314
|
gapic_version: ::Google::Cloud::Notebooks::V1::VERSION,
|
1301
1315
|
transports_version_send: [:rest]
|
1302
1316
|
|
1317
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
1303
1318
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
1304
1319
|
|
1305
1320
|
options.apply_defaults timeout: @config.rpcs.refresh_runtime_token_internal.timeout,
|
@@ -1382,12 +1397,13 @@ module Google
|
|
1382
1397
|
# Customize the options with defaults
|
1383
1398
|
call_metadata = @config.rpcs.diagnose_runtime.metadata.to_h
|
1384
1399
|
|
1385
|
-
# Set x-goog-api-client
|
1400
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
1386
1401
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
1387
1402
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
1388
1403
|
gapic_version: ::Google::Cloud::Notebooks::V1::VERSION,
|
1389
1404
|
transports_version_send: [:rest]
|
1390
1405
|
|
1406
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
1391
1407
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
1392
1408
|
|
1393
1409
|
options.apply_defaults timeout: @config.rpcs.diagnose_runtime.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,
|