google-cloud-notebooks-v1beta1 0.4.2 → 0.4.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5d43c15fe368a31397704c980721b8837905064315c7118e60c33cf545f5848e
|
4
|
+
data.tar.gz: cfc5a96d11e76fb035baeb5aa7e97c4954007db941b3dd1b759329729d9feed1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e4f5ce2bd836f05f2ffb97d276bf9ea9e2a86b48d61ef8ee3034623e945fe9b36d4f1ffaef6cdb2182f19efd84957b7fc518d85b8ec6e3485524dc670d86a434
|
7
|
+
data.tar.gz: 6a20f02eb591cf6385d80ab2e8d60fabde5398917d1ff98923bd646c5c481f4ce40383b15d2edd4f90abd5ce447db04f00ab1ef9c2a9dc9a955c04fef4374ac3
|
@@ -41,13 +41,12 @@ module Google
|
|
41
41
|
# See {::Google::Cloud::Notebooks::V1beta1::NotebookService::Client::Configuration}
|
42
42
|
# for a description of the configuration fields.
|
43
43
|
#
|
44
|
-
#
|
44
|
+
# @example
|
45
45
|
#
|
46
|
-
#
|
47
|
-
#
|
48
|
-
#
|
49
|
-
#
|
50
|
-
# end
|
46
|
+
# # Modify the configuration for all NotebookService clients
|
47
|
+
# ::Google::Cloud::Notebooks::V1beta1::NotebookService::Client.configure do |config|
|
48
|
+
# config.timeout = 10.0
|
49
|
+
# end
|
51
50
|
#
|
52
51
|
# @yield [config] Configure the Client client.
|
53
52
|
# @yieldparam config [Client::Configuration]
|
@@ -137,19 +136,15 @@ module Google
|
|
137
136
|
##
|
138
137
|
# Create a new NotebookService client object.
|
139
138
|
#
|
140
|
-
#
|
141
|
-
#
|
142
|
-
# To create a new NotebookService client with the default
|
143
|
-
# configuration:
|
139
|
+
# @example
|
144
140
|
#
|
145
|
-
#
|
141
|
+
# # Create a client using the default configuration
|
142
|
+
# client = ::Google::Cloud::Notebooks::V1beta1::NotebookService::Client.new
|
146
143
|
#
|
147
|
-
#
|
148
|
-
#
|
149
|
-
#
|
150
|
-
#
|
151
|
-
# config.timeout = 10.0
|
152
|
-
# end
|
144
|
+
# # Create a client using a custom configuration
|
145
|
+
# client = ::Google::Cloud::Notebooks::V1beta1::NotebookService::Client.new do |config|
|
146
|
+
# config.timeout = 10.0
|
147
|
+
# end
|
153
148
|
#
|
154
149
|
# @yield [config] Configure the NotebookService client.
|
155
150
|
# @yieldparam config [Client::Configuration]
|
@@ -169,10 +164,9 @@ module Google
|
|
169
164
|
|
170
165
|
# Create credentials
|
171
166
|
credentials = @config.credentials
|
172
|
-
# Use self-signed JWT if the
|
167
|
+
# Use self-signed JWT if the endpoint is unchanged from default,
|
173
168
|
# but only if the default endpoint does not have a region prefix.
|
174
|
-
enable_self_signed_jwt = @config.
|
175
|
-
@config.endpoint == Client.configure.endpoint &&
|
169
|
+
enable_self_signed_jwt = @config.endpoint == Client.configure.endpoint &&
|
176
170
|
!@config.endpoint.split(".").first.include?("-")
|
177
171
|
credentials ||= Credentials.default scope: @config.scope,
|
178
172
|
enable_self_signed_jwt: enable_self_signed_jwt
|
@@ -266,7 +260,9 @@ module Google
|
|
266
260
|
options.apply_defaults timeout: @config.rpcs.list_instances.timeout,
|
267
261
|
metadata: metadata,
|
268
262
|
retry_policy: @config.rpcs.list_instances.retry_policy
|
269
|
-
|
263
|
+
|
264
|
+
options.apply_defaults timeout: @config.timeout,
|
265
|
+
metadata: @config.metadata,
|
270
266
|
retry_policy: @config.retry_policy
|
271
267
|
|
272
268
|
@notebook_service_stub.call_rpc :list_instances, request, options: options do |response, operation|
|
@@ -334,7 +330,9 @@ module Google
|
|
334
330
|
options.apply_defaults timeout: @config.rpcs.get_instance.timeout,
|
335
331
|
metadata: metadata,
|
336
332
|
retry_policy: @config.rpcs.get_instance.retry_policy
|
337
|
-
|
333
|
+
|
334
|
+
options.apply_defaults timeout: @config.timeout,
|
335
|
+
metadata: @config.metadata,
|
338
336
|
retry_policy: @config.retry_policy
|
339
337
|
|
340
338
|
@notebook_service_stub.call_rpc :get_instance, request, options: options do |response, operation|
|
@@ -405,7 +403,9 @@ module Google
|
|
405
403
|
options.apply_defaults timeout: @config.rpcs.create_instance.timeout,
|
406
404
|
metadata: metadata,
|
407
405
|
retry_policy: @config.rpcs.create_instance.retry_policy
|
408
|
-
|
406
|
+
|
407
|
+
options.apply_defaults timeout: @config.timeout,
|
408
|
+
metadata: @config.metadata,
|
409
409
|
retry_policy: @config.retry_policy
|
410
410
|
|
411
411
|
@notebook_service_stub.call_rpc :create_instance, request, options: options do |response, operation|
|
@@ -481,7 +481,9 @@ module Google
|
|
481
481
|
options.apply_defaults timeout: @config.rpcs.register_instance.timeout,
|
482
482
|
metadata: metadata,
|
483
483
|
retry_policy: @config.rpcs.register_instance.retry_policy
|
484
|
-
|
484
|
+
|
485
|
+
options.apply_defaults timeout: @config.timeout,
|
486
|
+
metadata: @config.metadata,
|
485
487
|
retry_policy: @config.retry_policy
|
486
488
|
|
487
489
|
@notebook_service_stub.call_rpc :register_instance, request, options: options do |response, operation|
|
@@ -556,7 +558,9 @@ module Google
|
|
556
558
|
options.apply_defaults timeout: @config.rpcs.set_instance_accelerator.timeout,
|
557
559
|
metadata: metadata,
|
558
560
|
retry_policy: @config.rpcs.set_instance_accelerator.retry_policy
|
559
|
-
|
561
|
+
|
562
|
+
options.apply_defaults timeout: @config.timeout,
|
563
|
+
metadata: @config.metadata,
|
560
564
|
retry_policy: @config.retry_policy
|
561
565
|
|
562
566
|
@notebook_service_stub.call_rpc :set_instance_accelerator, request, options: options do |response, operation|
|
@@ -627,7 +631,9 @@ module Google
|
|
627
631
|
options.apply_defaults timeout: @config.rpcs.set_instance_machine_type.timeout,
|
628
632
|
metadata: metadata,
|
629
633
|
retry_policy: @config.rpcs.set_instance_machine_type.retry_policy
|
630
|
-
|
634
|
+
|
635
|
+
options.apply_defaults timeout: @config.timeout,
|
636
|
+
metadata: @config.metadata,
|
631
637
|
retry_policy: @config.retry_policy
|
632
638
|
|
633
639
|
@notebook_service_stub.call_rpc :set_instance_machine_type, request, options: options do |response, operation|
|
@@ -698,7 +704,9 @@ module Google
|
|
698
704
|
options.apply_defaults timeout: @config.rpcs.set_instance_labels.timeout,
|
699
705
|
metadata: metadata,
|
700
706
|
retry_policy: @config.rpcs.set_instance_labels.retry_policy
|
701
|
-
|
707
|
+
|
708
|
+
options.apply_defaults timeout: @config.timeout,
|
709
|
+
metadata: @config.metadata,
|
702
710
|
retry_policy: @config.retry_policy
|
703
711
|
|
704
712
|
@notebook_service_stub.call_rpc :set_instance_labels, request, options: options do |response, operation|
|
@@ -766,7 +774,9 @@ module Google
|
|
766
774
|
options.apply_defaults timeout: @config.rpcs.delete_instance.timeout,
|
767
775
|
metadata: metadata,
|
768
776
|
retry_policy: @config.rpcs.delete_instance.retry_policy
|
769
|
-
|
777
|
+
|
778
|
+
options.apply_defaults timeout: @config.timeout,
|
779
|
+
metadata: @config.metadata,
|
770
780
|
retry_policy: @config.retry_policy
|
771
781
|
|
772
782
|
@notebook_service_stub.call_rpc :delete_instance, request, options: options do |response, operation|
|
@@ -834,7 +844,9 @@ module Google
|
|
834
844
|
options.apply_defaults timeout: @config.rpcs.start_instance.timeout,
|
835
845
|
metadata: metadata,
|
836
846
|
retry_policy: @config.rpcs.start_instance.retry_policy
|
837
|
-
|
847
|
+
|
848
|
+
options.apply_defaults timeout: @config.timeout,
|
849
|
+
metadata: @config.metadata,
|
838
850
|
retry_policy: @config.retry_policy
|
839
851
|
|
840
852
|
@notebook_service_stub.call_rpc :start_instance, request, options: options do |response, operation|
|
@@ -902,7 +914,9 @@ module Google
|
|
902
914
|
options.apply_defaults timeout: @config.rpcs.stop_instance.timeout,
|
903
915
|
metadata: metadata,
|
904
916
|
retry_policy: @config.rpcs.stop_instance.retry_policy
|
905
|
-
|
917
|
+
|
918
|
+
options.apply_defaults timeout: @config.timeout,
|
919
|
+
metadata: @config.metadata,
|
906
920
|
retry_policy: @config.retry_policy
|
907
921
|
|
908
922
|
@notebook_service_stub.call_rpc :stop_instance, request, options: options do |response, operation|
|
@@ -970,7 +984,9 @@ module Google
|
|
970
984
|
options.apply_defaults timeout: @config.rpcs.reset_instance.timeout,
|
971
985
|
metadata: metadata,
|
972
986
|
retry_policy: @config.rpcs.reset_instance.retry_policy
|
973
|
-
|
987
|
+
|
988
|
+
options.apply_defaults timeout: @config.timeout,
|
989
|
+
metadata: @config.metadata,
|
974
990
|
retry_policy: @config.retry_policy
|
975
991
|
|
976
992
|
@notebook_service_stub.call_rpc :reset_instance, request, options: options do |response, operation|
|
@@ -1047,7 +1063,9 @@ module Google
|
|
1047
1063
|
options.apply_defaults timeout: @config.rpcs.report_instance_info.timeout,
|
1048
1064
|
metadata: metadata,
|
1049
1065
|
retry_policy: @config.rpcs.report_instance_info.retry_policy
|
1050
|
-
|
1066
|
+
|
1067
|
+
options.apply_defaults timeout: @config.timeout,
|
1068
|
+
metadata: @config.metadata,
|
1051
1069
|
retry_policy: @config.retry_policy
|
1052
1070
|
|
1053
1071
|
@notebook_service_stub.call_rpc :report_instance_info, request, options: options do |response, operation|
|
@@ -1115,7 +1133,9 @@ module Google
|
|
1115
1133
|
options.apply_defaults timeout: @config.rpcs.is_instance_upgradeable.timeout,
|
1116
1134
|
metadata: metadata,
|
1117
1135
|
retry_policy: @config.rpcs.is_instance_upgradeable.retry_policy
|
1118
|
-
|
1136
|
+
|
1137
|
+
options.apply_defaults timeout: @config.timeout,
|
1138
|
+
metadata: @config.metadata,
|
1119
1139
|
retry_policy: @config.retry_policy
|
1120
1140
|
|
1121
1141
|
@notebook_service_stub.call_rpc :is_instance_upgradeable, request, options: options do |response, operation|
|
@@ -1182,7 +1202,9 @@ module Google
|
|
1182
1202
|
options.apply_defaults timeout: @config.rpcs.upgrade_instance.timeout,
|
1183
1203
|
metadata: metadata,
|
1184
1204
|
retry_policy: @config.rpcs.upgrade_instance.retry_policy
|
1185
|
-
|
1205
|
+
|
1206
|
+
options.apply_defaults timeout: @config.timeout,
|
1207
|
+
metadata: @config.metadata,
|
1186
1208
|
retry_policy: @config.retry_policy
|
1187
1209
|
|
1188
1210
|
@notebook_service_stub.call_rpc :upgrade_instance, request, options: options do |response, operation|
|
@@ -1254,7 +1276,9 @@ module Google
|
|
1254
1276
|
options.apply_defaults timeout: @config.rpcs.upgrade_instance_internal.timeout,
|
1255
1277
|
metadata: metadata,
|
1256
1278
|
retry_policy: @config.rpcs.upgrade_instance_internal.retry_policy
|
1257
|
-
|
1279
|
+
|
1280
|
+
options.apply_defaults timeout: @config.timeout,
|
1281
|
+
metadata: @config.metadata,
|
1258
1282
|
retry_policy: @config.retry_policy
|
1259
1283
|
|
1260
1284
|
@notebook_service_stub.call_rpc :upgrade_instance_internal, request, options: options do |response, operation|
|
@@ -1326,7 +1350,9 @@ module Google
|
|
1326
1350
|
options.apply_defaults timeout: @config.rpcs.list_environments.timeout,
|
1327
1351
|
metadata: metadata,
|
1328
1352
|
retry_policy: @config.rpcs.list_environments.retry_policy
|
1329
|
-
|
1353
|
+
|
1354
|
+
options.apply_defaults timeout: @config.timeout,
|
1355
|
+
metadata: @config.metadata,
|
1330
1356
|
retry_policy: @config.retry_policy
|
1331
1357
|
|
1332
1358
|
@notebook_service_stub.call_rpc :list_environments, request, options: options do |response, operation|
|
@@ -1394,7 +1420,9 @@ module Google
|
|
1394
1420
|
options.apply_defaults timeout: @config.rpcs.get_environment.timeout,
|
1395
1421
|
metadata: metadata,
|
1396
1422
|
retry_policy: @config.rpcs.get_environment.retry_policy
|
1397
|
-
|
1423
|
+
|
1424
|
+
options.apply_defaults timeout: @config.timeout,
|
1425
|
+
metadata: @config.metadata,
|
1398
1426
|
retry_policy: @config.retry_policy
|
1399
1427
|
|
1400
1428
|
@notebook_service_stub.call_rpc :get_environment, request, options: options do |response, operation|
|
@@ -1467,7 +1495,9 @@ module Google
|
|
1467
1495
|
options.apply_defaults timeout: @config.rpcs.create_environment.timeout,
|
1468
1496
|
metadata: metadata,
|
1469
1497
|
retry_policy: @config.rpcs.create_environment.retry_policy
|
1470
|
-
|
1498
|
+
|
1499
|
+
options.apply_defaults timeout: @config.timeout,
|
1500
|
+
metadata: @config.metadata,
|
1471
1501
|
retry_policy: @config.retry_policy
|
1472
1502
|
|
1473
1503
|
@notebook_service_stub.call_rpc :create_environment, request, options: options do |response, operation|
|
@@ -1535,7 +1565,9 @@ module Google
|
|
1535
1565
|
options.apply_defaults timeout: @config.rpcs.delete_environment.timeout,
|
1536
1566
|
metadata: metadata,
|
1537
1567
|
retry_policy: @config.rpcs.delete_environment.retry_policy
|
1538
|
-
|
1568
|
+
|
1569
|
+
options.apply_defaults timeout: @config.timeout,
|
1570
|
+
metadata: @config.metadata,
|
1539
1571
|
retry_policy: @config.retry_policy
|
1540
1572
|
|
1541
1573
|
@notebook_service_stub.call_rpc :delete_environment, request, options: options do |response, operation|
|
@@ -1560,22 +1592,21 @@ module Google
|
|
1560
1592
|
# Configuration can be applied globally to all clients, or to a single client
|
1561
1593
|
# on construction.
|
1562
1594
|
#
|
1563
|
-
#
|
1564
|
-
#
|
1565
|
-
#
|
1566
|
-
# to 20 seconds,
|
1567
|
-
#
|
1568
|
-
#
|
1569
|
-
#
|
1570
|
-
#
|
1571
|
-
#
|
1572
|
-
#
|
1573
|
-
#
|
1574
|
-
#
|
1575
|
-
#
|
1576
|
-
#
|
1577
|
-
#
|
1578
|
-
# end
|
1595
|
+
# @example
|
1596
|
+
#
|
1597
|
+
# # Modify the global config, setting the timeout for
|
1598
|
+
# # list_instances to 20 seconds,
|
1599
|
+
# # and all remaining timeouts to 10 seconds.
|
1600
|
+
# ::Google::Cloud::Notebooks::V1beta1::NotebookService::Client.configure do |config|
|
1601
|
+
# config.timeout = 10.0
|
1602
|
+
# config.rpcs.list_instances.timeout = 20.0
|
1603
|
+
# end
|
1604
|
+
#
|
1605
|
+
# # Apply the above configuration only to a new client.
|
1606
|
+
# client = ::Google::Cloud::Notebooks::V1beta1::NotebookService::Client.new do |config|
|
1607
|
+
# config.timeout = 10.0
|
1608
|
+
# config.rpcs.list_instances.timeout = 20.0
|
1609
|
+
# end
|
1579
1610
|
#
|
1580
1611
|
# @!attribute [rw] endpoint
|
1581
1612
|
# The hostname or hostname:port of the service endpoint.
|
@@ -169,7 +169,9 @@ module Google
|
|
169
169
|
options.apply_defaults timeout: @config.rpcs.list_operations.timeout,
|
170
170
|
metadata: metadata,
|
171
171
|
retry_policy: @config.rpcs.list_operations.retry_policy
|
172
|
-
|
172
|
+
|
173
|
+
options.apply_defaults timeout: @config.timeout,
|
174
|
+
metadata: @config.metadata,
|
173
175
|
retry_policy: @config.retry_policy
|
174
176
|
|
175
177
|
@operations_stub.call_rpc :list_operations, request, options: options do |response, operation|
|
@@ -239,7 +241,9 @@ module Google
|
|
239
241
|
options.apply_defaults timeout: @config.rpcs.get_operation.timeout,
|
240
242
|
metadata: metadata,
|
241
243
|
retry_policy: @config.rpcs.get_operation.retry_policy
|
242
|
-
|
244
|
+
|
245
|
+
options.apply_defaults timeout: @config.timeout,
|
246
|
+
metadata: @config.metadata,
|
243
247
|
retry_policy: @config.retry_policy
|
244
248
|
|
245
249
|
@operations_stub.call_rpc :get_operation, request, options: options do |response, operation|
|
@@ -309,7 +313,9 @@ module Google
|
|
309
313
|
options.apply_defaults timeout: @config.rpcs.delete_operation.timeout,
|
310
314
|
metadata: metadata,
|
311
315
|
retry_policy: @config.rpcs.delete_operation.retry_policy
|
312
|
-
|
316
|
+
|
317
|
+
options.apply_defaults timeout: @config.timeout,
|
318
|
+
metadata: @config.metadata,
|
313
319
|
retry_policy: @config.retry_policy
|
314
320
|
|
315
321
|
@operations_stub.call_rpc :delete_operation, request, options: options do |response, operation|
|
@@ -384,7 +390,9 @@ module Google
|
|
384
390
|
options.apply_defaults timeout: @config.rpcs.cancel_operation.timeout,
|
385
391
|
metadata: metadata,
|
386
392
|
retry_policy: @config.rpcs.cancel_operation.retry_policy
|
387
|
-
|
393
|
+
|
394
|
+
options.apply_defaults timeout: @config.timeout,
|
395
|
+
metadata: @config.metadata,
|
388
396
|
retry_policy: @config.retry_policy
|
389
397
|
|
390
398
|
@operations_stub.call_rpc :cancel_operation, request, options: options do |response, operation|
|
@@ -456,7 +464,9 @@ module Google
|
|
456
464
|
options.apply_defaults timeout: @config.rpcs.wait_operation.timeout,
|
457
465
|
metadata: metadata,
|
458
466
|
retry_policy: @config.rpcs.wait_operation.retry_policy
|
459
|
-
|
467
|
+
|
468
|
+
options.apply_defaults timeout: @config.timeout,
|
469
|
+
metadata: @config.metadata,
|
460
470
|
retry_policy: @config.retry_policy
|
461
471
|
|
462
472
|
@operations_stub.call_rpc :wait_operation, request, options: options do |response, operation|
|
@@ -481,22 +491,21 @@ module Google
|
|
481
491
|
# Configuration can be applied globally to all clients, or to a single client
|
482
492
|
# on construction.
|
483
493
|
#
|
484
|
-
#
|
485
|
-
#
|
486
|
-
#
|
487
|
-
# to 20 seconds,
|
488
|
-
#
|
489
|
-
#
|
490
|
-
#
|
491
|
-
#
|
492
|
-
#
|
493
|
-
#
|
494
|
-
#
|
495
|
-
#
|
496
|
-
#
|
497
|
-
#
|
498
|
-
#
|
499
|
-
# end
|
494
|
+
# @example
|
495
|
+
#
|
496
|
+
# # Modify the global config, setting the timeout for
|
497
|
+
# # list_operations to 20 seconds,
|
498
|
+
# # and all remaining timeouts to 10 seconds.
|
499
|
+
# ::Google::Longrunning::Operations::Client.configure do |config|
|
500
|
+
# config.timeout = 10.0
|
501
|
+
# config.rpcs.list_operations.timeout = 20.0
|
502
|
+
# end
|
503
|
+
#
|
504
|
+
# # Apply the above configuration only to a new client.
|
505
|
+
# client = ::Google::Longrunning::Operations::Client.new do |config|
|
506
|
+
# config.timeout = 10.0
|
507
|
+
# config.rpcs.list_operations.timeout = 20.0
|
508
|
+
# end
|
500
509
|
#
|
501
510
|
# @!attribute [rw] endpoint
|
502
511
|
# The hostname or hostname:port of the service endpoint.
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: google-cloud-notebooks-v1beta1
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.4.
|
4
|
+
version: 0.4.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Google LLC
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-
|
11
|
+
date: 2021-08-11 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: gapic-common
|
@@ -16,7 +16,7 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - ">="
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: '0.
|
19
|
+
version: '0.7'
|
20
20
|
- - "<"
|
21
21
|
- !ruby/object:Gem::Version
|
22
22
|
version: 2.a
|
@@ -26,7 +26,7 @@ dependencies:
|
|
26
26
|
requirements:
|
27
27
|
- - ">="
|
28
28
|
- !ruby/object:Gem::Version
|
29
|
-
version: '0.
|
29
|
+
version: '0.7'
|
30
30
|
- - "<"
|
31
31
|
- !ruby/object:Gem::Version
|
32
32
|
version: 2.a
|