google-cloud-notebooks-v1 0.4.2 → 0.6.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +2 -2
- data/lib/google/cloud/notebooks/v1/bindings_override.rb +159 -0
- data/lib/google/cloud/notebooks/v1/diagnostic_config_pb.rb +24 -8
- data/lib/google/cloud/notebooks/v1/environment_pb.rb +25 -23
- data/lib/google/cloud/notebooks/v1/event_pb.rb +25 -13
- data/lib/google/cloud/notebooks/v1/execution_pb.rb +25 -79
- data/lib/google/cloud/notebooks/v1/instance_config_pb.rb +24 -5
- data/lib/google/cloud/notebooks/v1/instance_pb.rb +26 -146
- data/lib/google/cloud/notebooks/v1/managed_notebook_service/client.rb +46 -48
- data/lib/google/cloud/notebooks/v1/managed_notebook_service/operations.rb +14 -16
- data/lib/google/cloud/notebooks/v1/managed_notebook_service/rest/client.rb +1342 -0
- data/lib/google/cloud/notebooks/v1/managed_notebook_service/rest/operations.rb +793 -0
- data/lib/google/cloud/notebooks/v1/managed_notebook_service/rest/service_stub.rb +825 -0
- data/lib/google/cloud/notebooks/v1/managed_notebook_service/rest.rb +54 -0
- data/lib/google/cloud/notebooks/v1/managed_notebook_service.rb +6 -0
- data/lib/google/cloud/notebooks/v1/managed_service_pb.rb +29 -68
- data/lib/google/cloud/notebooks/v1/notebook_service/client.rb +110 -118
- data/lib/google/cloud/notebooks/v1/notebook_service/operations.rb +14 -16
- data/lib/google/cloud/notebooks/v1/notebook_service/rest/client.rb +2898 -0
- data/lib/google/cloud/notebooks/v1/notebook_service/rest/operations.rb +793 -0
- data/lib/google/cloud/notebooks/v1/notebook_service/rest/service_stub.rb +2074 -0
- data/lib/google/cloud/notebooks/v1/notebook_service/rest.rb +54 -0
- data/lib/google/cloud/notebooks/v1/notebook_service.rb +6 -0
- data/lib/google/cloud/notebooks/v1/rest.rb +39 -0
- data/lib/google/cloud/notebooks/v1/runtime_pb.rb +26 -152
- data/lib/google/cloud/notebooks/v1/schedule_pb.rb +26 -22
- data/lib/google/cloud/notebooks/v1/service_pb.rb +31 -196
- data/lib/google/cloud/notebooks/v1/version.rb +1 -1
- data/lib/google/cloud/notebooks/v1.rb +5 -0
- data/proto_docs/google/api/client.rb +67 -4
- data/proto_docs/google/protobuf/any.rb +7 -4
- data/proto_docs/google/protobuf/timestamp.rb +1 -3
- metadata +22 -12
@@ -301,13 +301,11 @@ module Google
|
|
301
301
|
# # Call the list_instances method.
|
302
302
|
# result = client.list_instances request
|
303
303
|
#
|
304
|
-
# # The returned object is of type Gapic::PagedEnumerable. You can
|
305
|
-
# #
|
306
|
-
#
|
307
|
-
# # methods are also available for managing paging directly.
|
308
|
-
# result.each do |response|
|
304
|
+
# # The returned object is of type Gapic::PagedEnumerable. You can iterate
|
305
|
+
# # over elements, and API calls will be issued to fetch pages as needed.
|
306
|
+
# result.each do |item|
|
309
307
|
# # Each element is of type ::Google::Cloud::Notebooks::V1::Instance.
|
310
|
-
# p
|
308
|
+
# p item
|
311
309
|
# end
|
312
310
|
#
|
313
311
|
def list_instances request, options = nil
|
@@ -484,14 +482,14 @@ module Google
|
|
484
482
|
# # Call the create_instance method.
|
485
483
|
# result = client.create_instance request
|
486
484
|
#
|
487
|
-
# # The returned object is of type Gapic::Operation. You can use
|
488
|
-
# #
|
489
|
-
# #
|
485
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
486
|
+
# # check the status of an operation, cancel it, or wait for results.
|
487
|
+
# # Here is how to wait for a response.
|
490
488
|
# result.wait_until_done! timeout: 60
|
491
489
|
# if result.response?
|
492
490
|
# p result.response
|
493
491
|
# else
|
494
|
-
# puts "
|
492
|
+
# puts "No response received."
|
495
493
|
# end
|
496
494
|
#
|
497
495
|
def create_instance request, options = nil
|
@@ -586,14 +584,14 @@ module Google
|
|
586
584
|
# # Call the register_instance method.
|
587
585
|
# result = client.register_instance request
|
588
586
|
#
|
589
|
-
# # The returned object is of type Gapic::Operation. You can use
|
590
|
-
# #
|
591
|
-
# #
|
587
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
588
|
+
# # check the status of an operation, cancel it, or wait for results.
|
589
|
+
# # Here is how to wait for a response.
|
592
590
|
# result.wait_until_done! timeout: 60
|
593
591
|
# if result.response?
|
594
592
|
# p result.response
|
595
593
|
# else
|
596
|
-
# puts "
|
594
|
+
# puts "No response received."
|
597
595
|
# end
|
598
596
|
#
|
599
597
|
def register_instance request, options = nil
|
@@ -687,14 +685,14 @@ module Google
|
|
687
685
|
# # Call the set_instance_accelerator method.
|
688
686
|
# result = client.set_instance_accelerator request
|
689
687
|
#
|
690
|
-
# # The returned object is of type Gapic::Operation. You can use
|
691
|
-
# #
|
692
|
-
# #
|
688
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
689
|
+
# # check the status of an operation, cancel it, or wait for results.
|
690
|
+
# # Here is how to wait for a response.
|
693
691
|
# result.wait_until_done! timeout: 60
|
694
692
|
# if result.response?
|
695
693
|
# p result.response
|
696
694
|
# else
|
697
|
-
# puts "
|
695
|
+
# puts "No response received."
|
698
696
|
# end
|
699
697
|
#
|
700
698
|
def set_instance_accelerator request, options = nil
|
@@ -784,14 +782,14 @@ module Google
|
|
784
782
|
# # Call the set_instance_machine_type method.
|
785
783
|
# result = client.set_instance_machine_type request
|
786
784
|
#
|
787
|
-
# # The returned object is of type Gapic::Operation. You can use
|
788
|
-
# #
|
789
|
-
# #
|
785
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
786
|
+
# # check the status of an operation, cancel it, or wait for results.
|
787
|
+
# # Here is how to wait for a response.
|
790
788
|
# result.wait_until_done! timeout: 60
|
791
789
|
# if result.response?
|
792
790
|
# p result.response
|
793
791
|
# else
|
794
|
-
# puts "
|
792
|
+
# puts "No response received."
|
795
793
|
# end
|
796
794
|
#
|
797
795
|
def set_instance_machine_type request, options = nil
|
@@ -880,14 +878,14 @@ module Google
|
|
880
878
|
# # Call the update_instance_config method.
|
881
879
|
# result = client.update_instance_config request
|
882
880
|
#
|
883
|
-
# # The returned object is of type Gapic::Operation. You can use
|
884
|
-
# #
|
885
|
-
# #
|
881
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
882
|
+
# # check the status of an operation, cancel it, or wait for results.
|
883
|
+
# # Here is how to wait for a response.
|
886
884
|
# result.wait_until_done! timeout: 60
|
887
885
|
# if result.response?
|
888
886
|
# p result.response
|
889
887
|
# else
|
890
|
-
# puts "
|
888
|
+
# puts "No response received."
|
891
889
|
# end
|
892
890
|
#
|
893
891
|
def update_instance_config request, options = nil
|
@@ -976,14 +974,14 @@ module Google
|
|
976
974
|
# # Call the update_shielded_instance_config method.
|
977
975
|
# result = client.update_shielded_instance_config request
|
978
976
|
#
|
979
|
-
# # The returned object is of type Gapic::Operation. You can use
|
980
|
-
# #
|
981
|
-
# #
|
977
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
978
|
+
# # check the status of an operation, cancel it, or wait for results.
|
979
|
+
# # Here is how to wait for a response.
|
982
980
|
# result.wait_until_done! timeout: 60
|
983
981
|
# if result.response?
|
984
982
|
# p result.response
|
985
983
|
# else
|
986
|
-
# puts "
|
984
|
+
# puts "No response received."
|
987
985
|
# end
|
988
986
|
#
|
989
987
|
def update_shielded_instance_config request, options = nil
|
@@ -1073,14 +1071,14 @@ module Google
|
|
1073
1071
|
# # Call the set_instance_labels method.
|
1074
1072
|
# result = client.set_instance_labels request
|
1075
1073
|
#
|
1076
|
-
# # The returned object is of type Gapic::Operation. You can use
|
1077
|
-
# #
|
1078
|
-
# #
|
1074
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
1075
|
+
# # check the status of an operation, cancel it, or wait for results.
|
1076
|
+
# # Here is how to wait for a response.
|
1079
1077
|
# result.wait_until_done! timeout: 60
|
1080
1078
|
# if result.response?
|
1081
1079
|
# p result.response
|
1082
1080
|
# else
|
1083
|
-
# puts "
|
1081
|
+
# puts "No response received."
|
1084
1082
|
# end
|
1085
1083
|
#
|
1086
1084
|
def set_instance_labels request, options = nil
|
@@ -1255,14 +1253,14 @@ module Google
|
|
1255
1253
|
# # Call the delete_instance method.
|
1256
1254
|
# result = client.delete_instance request
|
1257
1255
|
#
|
1258
|
-
# # The returned object is of type Gapic::Operation. You can use
|
1259
|
-
# #
|
1260
|
-
# #
|
1256
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
1257
|
+
# # check the status of an operation, cancel it, or wait for results.
|
1258
|
+
# # Here is how to wait for a response.
|
1261
1259
|
# result.wait_until_done! timeout: 60
|
1262
1260
|
# if result.response?
|
1263
1261
|
# p result.response
|
1264
1262
|
# else
|
1265
|
-
# puts "
|
1263
|
+
# puts "No response received."
|
1266
1264
|
# end
|
1267
1265
|
#
|
1268
1266
|
def delete_instance request, options = nil
|
@@ -1349,14 +1347,14 @@ module Google
|
|
1349
1347
|
# # Call the start_instance method.
|
1350
1348
|
# result = client.start_instance request
|
1351
1349
|
#
|
1352
|
-
# # The returned object is of type Gapic::Operation. You can use
|
1353
|
-
# #
|
1354
|
-
# #
|
1350
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
1351
|
+
# # check the status of an operation, cancel it, or wait for results.
|
1352
|
+
# # Here is how to wait for a response.
|
1355
1353
|
# result.wait_until_done! timeout: 60
|
1356
1354
|
# if result.response?
|
1357
1355
|
# p result.response
|
1358
1356
|
# else
|
1359
|
-
# puts "
|
1357
|
+
# puts "No response received."
|
1360
1358
|
# end
|
1361
1359
|
#
|
1362
1360
|
def start_instance request, options = nil
|
@@ -1443,14 +1441,14 @@ module Google
|
|
1443
1441
|
# # Call the stop_instance method.
|
1444
1442
|
# result = client.stop_instance request
|
1445
1443
|
#
|
1446
|
-
# # The returned object is of type Gapic::Operation. You can use
|
1447
|
-
# #
|
1448
|
-
# #
|
1444
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
1445
|
+
# # check the status of an operation, cancel it, or wait for results.
|
1446
|
+
# # Here is how to wait for a response.
|
1449
1447
|
# result.wait_until_done! timeout: 60
|
1450
1448
|
# if result.response?
|
1451
1449
|
# p result.response
|
1452
1450
|
# else
|
1453
|
-
# puts "
|
1451
|
+
# puts "No response received."
|
1454
1452
|
# end
|
1455
1453
|
#
|
1456
1454
|
def stop_instance request, options = nil
|
@@ -1537,14 +1535,14 @@ module Google
|
|
1537
1535
|
# # Call the reset_instance method.
|
1538
1536
|
# result = client.reset_instance request
|
1539
1537
|
#
|
1540
|
-
# # The returned object is of type Gapic::Operation. You can use
|
1541
|
-
# #
|
1542
|
-
# #
|
1538
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
1539
|
+
# # check the status of an operation, cancel it, or wait for results.
|
1540
|
+
# # Here is how to wait for a response.
|
1543
1541
|
# result.wait_until_done! timeout: 60
|
1544
1542
|
# if result.response?
|
1545
1543
|
# p result.response
|
1546
1544
|
# else
|
1547
|
-
# puts "
|
1545
|
+
# puts "No response received."
|
1548
1546
|
# end
|
1549
1547
|
#
|
1550
1548
|
def reset_instance request, options = nil
|
@@ -1640,14 +1638,14 @@ module Google
|
|
1640
1638
|
# # Call the report_instance_info method.
|
1641
1639
|
# result = client.report_instance_info request
|
1642
1640
|
#
|
1643
|
-
# # The returned object is of type Gapic::Operation. You can use
|
1644
|
-
# #
|
1645
|
-
# #
|
1641
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
1642
|
+
# # check the status of an operation, cancel it, or wait for results.
|
1643
|
+
# # Here is how to wait for a response.
|
1646
1644
|
# result.wait_until_done! timeout: 60
|
1647
1645
|
# if result.response?
|
1648
1646
|
# p result.response
|
1649
1647
|
# else
|
1650
|
-
# puts "
|
1648
|
+
# puts "No response received."
|
1651
1649
|
# end
|
1652
1650
|
#
|
1653
1651
|
def report_instance_info request, options = nil
|
@@ -1912,14 +1910,14 @@ module Google
|
|
1912
1910
|
# # Call the upgrade_instance method.
|
1913
1911
|
# result = client.upgrade_instance request
|
1914
1912
|
#
|
1915
|
-
# # The returned object is of type Gapic::Operation. You can use
|
1916
|
-
# #
|
1917
|
-
# #
|
1913
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
1914
|
+
# # check the status of an operation, cancel it, or wait for results.
|
1915
|
+
# # Here is how to wait for a response.
|
1918
1916
|
# result.wait_until_done! timeout: 60
|
1919
1917
|
# if result.response?
|
1920
1918
|
# p result.response
|
1921
1919
|
# else
|
1922
|
-
# puts "
|
1920
|
+
# puts "No response received."
|
1923
1921
|
# end
|
1924
1922
|
#
|
1925
1923
|
def upgrade_instance request, options = nil
|
@@ -2009,14 +2007,14 @@ module Google
|
|
2009
2007
|
# # Call the rollback_instance method.
|
2010
2008
|
# result = client.rollback_instance request
|
2011
2009
|
#
|
2012
|
-
# # The returned object is of type Gapic::Operation. You can use
|
2013
|
-
# #
|
2014
|
-
# #
|
2010
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
2011
|
+
# # check the status of an operation, cancel it, or wait for results.
|
2012
|
+
# # Here is how to wait for a response.
|
2015
2013
|
# result.wait_until_done! timeout: 60
|
2016
2014
|
# if result.response?
|
2017
2015
|
# p result.response
|
2018
2016
|
# else
|
2019
|
-
# puts "
|
2017
|
+
# puts "No response received."
|
2020
2018
|
# end
|
2021
2019
|
#
|
2022
2020
|
def rollback_instance request, options = nil
|
@@ -2105,14 +2103,14 @@ module Google
|
|
2105
2103
|
# # Call the diagnose_instance method.
|
2106
2104
|
# result = client.diagnose_instance request
|
2107
2105
|
#
|
2108
|
-
# # The returned object is of type Gapic::Operation. You can use
|
2109
|
-
# #
|
2110
|
-
# #
|
2106
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
2107
|
+
# # check the status of an operation, cancel it, or wait for results.
|
2108
|
+
# # Here is how to wait for a response.
|
2111
2109
|
# result.wait_until_done! timeout: 60
|
2112
2110
|
# if result.response?
|
2113
2111
|
# p result.response
|
2114
2112
|
# else
|
2115
|
-
# puts "
|
2113
|
+
# puts "No response received."
|
2116
2114
|
# end
|
2117
2115
|
#
|
2118
2116
|
def diagnose_instance request, options = nil
|
@@ -2206,14 +2204,14 @@ module Google
|
|
2206
2204
|
# # Call the upgrade_instance_internal method.
|
2207
2205
|
# result = client.upgrade_instance_internal request
|
2208
2206
|
#
|
2209
|
-
# # The returned object is of type Gapic::Operation. You can use
|
2210
|
-
# #
|
2211
|
-
# #
|
2207
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
2208
|
+
# # check the status of an operation, cancel it, or wait for results.
|
2209
|
+
# # Here is how to wait for a response.
|
2212
2210
|
# result.wait_until_done! timeout: 60
|
2213
2211
|
# if result.response?
|
2214
2212
|
# p result.response
|
2215
2213
|
# else
|
2216
|
-
# puts "
|
2214
|
+
# puts "No response received."
|
2217
2215
|
# end
|
2218
2216
|
#
|
2219
2217
|
def upgrade_instance_internal request, options = nil
|
@@ -2304,13 +2302,11 @@ module Google
|
|
2304
2302
|
# # Call the list_environments method.
|
2305
2303
|
# result = client.list_environments request
|
2306
2304
|
#
|
2307
|
-
# # The returned object is of type Gapic::PagedEnumerable. You can
|
2308
|
-
# #
|
2309
|
-
#
|
2310
|
-
# # methods are also available for managing paging directly.
|
2311
|
-
# result.each do |response|
|
2305
|
+
# # The returned object is of type Gapic::PagedEnumerable. You can iterate
|
2306
|
+
# # over elements, and API calls will be issued to fetch pages as needed.
|
2307
|
+
# result.each do |item|
|
2312
2308
|
# # Each element is of type ::Google::Cloud::Notebooks::V1::Environment.
|
2313
|
-
# p
|
2309
|
+
# p item
|
2314
2310
|
# end
|
2315
2311
|
#
|
2316
2312
|
def list_environments request, options = nil
|
@@ -2489,14 +2485,14 @@ module Google
|
|
2489
2485
|
# # Call the create_environment method.
|
2490
2486
|
# result = client.create_environment request
|
2491
2487
|
#
|
2492
|
-
# # The returned object is of type Gapic::Operation. You can use
|
2493
|
-
# #
|
2494
|
-
# #
|
2488
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
2489
|
+
# # check the status of an operation, cancel it, or wait for results.
|
2490
|
+
# # Here is how to wait for a response.
|
2495
2491
|
# result.wait_until_done! timeout: 60
|
2496
2492
|
# if result.response?
|
2497
2493
|
# p result.response
|
2498
2494
|
# else
|
2499
|
-
# puts "
|
2495
|
+
# puts "No response received."
|
2500
2496
|
# end
|
2501
2497
|
#
|
2502
2498
|
def create_environment request, options = nil
|
@@ -2583,14 +2579,14 @@ module Google
|
|
2583
2579
|
# # Call the delete_environment method.
|
2584
2580
|
# result = client.delete_environment request
|
2585
2581
|
#
|
2586
|
-
# # The returned object is of type Gapic::Operation. You can use
|
2587
|
-
# #
|
2588
|
-
# #
|
2582
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
2583
|
+
# # check the status of an operation, cancel it, or wait for results.
|
2584
|
+
# # Here is how to wait for a response.
|
2589
2585
|
# result.wait_until_done! timeout: 60
|
2590
2586
|
# if result.response?
|
2591
2587
|
# p result.response
|
2592
2588
|
# else
|
2593
|
-
# puts "
|
2589
|
+
# puts "No response received."
|
2594
2590
|
# end
|
2595
2591
|
#
|
2596
2592
|
def delete_environment request, options = nil
|
@@ -2686,13 +2682,11 @@ module Google
|
|
2686
2682
|
# # Call the list_schedules method.
|
2687
2683
|
# result = client.list_schedules request
|
2688
2684
|
#
|
2689
|
-
# # The returned object is of type Gapic::PagedEnumerable. You can
|
2690
|
-
# #
|
2691
|
-
#
|
2692
|
-
# # methods are also available for managing paging directly.
|
2693
|
-
# result.each do |response|
|
2685
|
+
# # The returned object is of type Gapic::PagedEnumerable. You can iterate
|
2686
|
+
# # over elements, and API calls will be issued to fetch pages as needed.
|
2687
|
+
# result.each do |item|
|
2694
2688
|
# # Each element is of type ::Google::Cloud::Notebooks::V1::Schedule.
|
2695
|
-
# p
|
2689
|
+
# p item
|
2696
2690
|
# end
|
2697
2691
|
#
|
2698
2692
|
def list_schedules request, options = nil
|
@@ -2865,14 +2859,14 @@ module Google
|
|
2865
2859
|
# # Call the delete_schedule method.
|
2866
2860
|
# result = client.delete_schedule request
|
2867
2861
|
#
|
2868
|
-
# # The returned object is of type Gapic::Operation. You can use
|
2869
|
-
# #
|
2870
|
-
# #
|
2862
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
2863
|
+
# # check the status of an operation, cancel it, or wait for results.
|
2864
|
+
# # Here is how to wait for a response.
|
2871
2865
|
# result.wait_until_done! timeout: 60
|
2872
2866
|
# if result.response?
|
2873
2867
|
# p result.response
|
2874
2868
|
# else
|
2875
|
-
# puts "
|
2869
|
+
# puts "No response received."
|
2876
2870
|
# end
|
2877
2871
|
#
|
2878
2872
|
def delete_schedule request, options = nil
|
@@ -2963,14 +2957,14 @@ module Google
|
|
2963
2957
|
# # Call the create_schedule method.
|
2964
2958
|
# result = client.create_schedule request
|
2965
2959
|
#
|
2966
|
-
# # The returned object is of type Gapic::Operation. You can use
|
2967
|
-
# #
|
2968
|
-
# #
|
2960
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
2961
|
+
# # check the status of an operation, cancel it, or wait for results.
|
2962
|
+
# # Here is how to wait for a response.
|
2969
2963
|
# result.wait_until_done! timeout: 60
|
2970
2964
|
# if result.response?
|
2971
2965
|
# p result.response
|
2972
2966
|
# else
|
2973
|
-
# puts "
|
2967
|
+
# puts "No response received."
|
2974
2968
|
# end
|
2975
2969
|
#
|
2976
2970
|
def create_schedule request, options = nil
|
@@ -3057,14 +3051,14 @@ module Google
|
|
3057
3051
|
# # Call the trigger_schedule method.
|
3058
3052
|
# result = client.trigger_schedule request
|
3059
3053
|
#
|
3060
|
-
# # The returned object is of type Gapic::Operation. You can use
|
3061
|
-
# #
|
3062
|
-
# #
|
3054
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
3055
|
+
# # check the status of an operation, cancel it, or wait for results.
|
3056
|
+
# # Here is how to wait for a response.
|
3063
3057
|
# result.wait_until_done! timeout: 60
|
3064
3058
|
# if result.response?
|
3065
3059
|
# p result.response
|
3066
3060
|
# else
|
3067
|
-
# puts "
|
3061
|
+
# puts "No response received."
|
3068
3062
|
# end
|
3069
3063
|
#
|
3070
3064
|
def trigger_schedule request, options = nil
|
@@ -3162,13 +3156,11 @@ module Google
|
|
3162
3156
|
# # Call the list_executions method.
|
3163
3157
|
# result = client.list_executions request
|
3164
3158
|
#
|
3165
|
-
# # The returned object is of type Gapic::PagedEnumerable. You can
|
3166
|
-
# #
|
3167
|
-
#
|
3168
|
-
# # methods are also available for managing paging directly.
|
3169
|
-
# result.each do |response|
|
3159
|
+
# # The returned object is of type Gapic::PagedEnumerable. You can iterate
|
3160
|
+
# # over elements, and API calls will be issued to fetch pages as needed.
|
3161
|
+
# result.each do |item|
|
3170
3162
|
# # Each element is of type ::Google::Cloud::Notebooks::V1::Execution.
|
3171
|
-
# p
|
3163
|
+
# p item
|
3172
3164
|
# end
|
3173
3165
|
#
|
3174
3166
|
def list_executions request, options = nil
|
@@ -3341,14 +3333,14 @@ module Google
|
|
3341
3333
|
# # Call the delete_execution method.
|
3342
3334
|
# result = client.delete_execution request
|
3343
3335
|
#
|
3344
|
-
# # The returned object is of type Gapic::Operation. You can use
|
3345
|
-
# #
|
3346
|
-
# #
|
3336
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
3337
|
+
# # check the status of an operation, cancel it, or wait for results.
|
3338
|
+
# # Here is how to wait for a response.
|
3347
3339
|
# result.wait_until_done! timeout: 60
|
3348
3340
|
# if result.response?
|
3349
3341
|
# p result.response
|
3350
3342
|
# else
|
3351
|
-
# puts "
|
3343
|
+
# puts "No response received."
|
3352
3344
|
# end
|
3353
3345
|
#
|
3354
3346
|
def delete_execution request, options = nil
|
@@ -3439,14 +3431,14 @@ module Google
|
|
3439
3431
|
# # Call the create_execution method.
|
3440
3432
|
# result = client.create_execution request
|
3441
3433
|
#
|
3442
|
-
# # The returned object is of type Gapic::Operation. You can use
|
3443
|
-
# #
|
3444
|
-
# #
|
3434
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
3435
|
+
# # check the status of an operation, cancel it, or wait for results.
|
3436
|
+
# # Here is how to wait for a response.
|
3445
3437
|
# result.wait_until_done! timeout: 60
|
3446
3438
|
# if result.response?
|
3447
3439
|
# p result.response
|
3448
3440
|
# else
|
3449
|
-
# puts "
|
3441
|
+
# puts "No response received."
|
3450
3442
|
# end
|
3451
3443
|
#
|
3452
3444
|
def create_execution request, options = nil
|
@@ -3529,9 +3521,9 @@ module Google
|
|
3529
3521
|
# * (`String`) The path to a service account key file in JSON format
|
3530
3522
|
# * (`Hash`) A service account key as a Hash
|
3531
3523
|
# * (`Google::Auth::Credentials`) A googleauth credentials object
|
3532
|
-
# (see the [googleauth docs](https://
|
3524
|
+
# (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials))
|
3533
3525
|
# * (`Signet::OAuth2::Client`) A signet oauth2 client object
|
3534
|
-
# (see the [signet docs](https://
|
3526
|
+
# (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client))
|
3535
3527
|
# * (`GRPC::Core::Channel`) a gRPC channel with included credentials
|
3536
3528
|
# * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object
|
3537
3529
|
# * (`nil`) indicating no credentials
|
@@ -158,13 +158,11 @@ module Google
|
|
158
158
|
# # Call the list_operations method.
|
159
159
|
# result = client.list_operations request
|
160
160
|
#
|
161
|
-
# # The returned object is of type Gapic::PagedEnumerable. You can
|
162
|
-
# #
|
163
|
-
#
|
164
|
-
# # methods are also available for managing paging directly.
|
165
|
-
# result.each do |response|
|
161
|
+
# # The returned object is of type Gapic::PagedEnumerable. You can iterate
|
162
|
+
# # over elements, and API calls will be issued to fetch pages as needed.
|
163
|
+
# result.each do |item|
|
166
164
|
# # Each element is of type ::Google::Longrunning::Operation.
|
167
|
-
# p
|
165
|
+
# p item
|
168
166
|
# end
|
169
167
|
#
|
170
168
|
def list_operations request, options = nil
|
@@ -253,14 +251,14 @@ module Google
|
|
253
251
|
# # Call the get_operation method.
|
254
252
|
# result = client.get_operation request
|
255
253
|
#
|
256
|
-
# # The returned object is of type Gapic::Operation. You can use
|
257
|
-
# #
|
258
|
-
# #
|
254
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
255
|
+
# # check the status of an operation, cancel it, or wait for results.
|
256
|
+
# # Here is how to wait for a response.
|
259
257
|
# result.wait_until_done! timeout: 60
|
260
258
|
# if result.response?
|
261
259
|
# p result.response
|
262
260
|
# else
|
263
|
-
# puts "
|
261
|
+
# puts "No response received."
|
264
262
|
# end
|
265
263
|
#
|
266
264
|
def get_operation request, options = nil
|
@@ -540,14 +538,14 @@ module Google
|
|
540
538
|
# # Call the wait_operation method.
|
541
539
|
# result = client.wait_operation request
|
542
540
|
#
|
543
|
-
# # The returned object is of type Gapic::Operation. You can use
|
544
|
-
# #
|
545
|
-
# #
|
541
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
542
|
+
# # check the status of an operation, cancel it, or wait for results.
|
543
|
+
# # Here is how to wait for a response.
|
546
544
|
# result.wait_until_done! timeout: 60
|
547
545
|
# if result.response?
|
548
546
|
# p result.response
|
549
547
|
# else
|
550
|
-
# puts "
|
548
|
+
# puts "No response received."
|
551
549
|
# end
|
552
550
|
#
|
553
551
|
def wait_operation request, options = nil
|
@@ -622,9 +620,9 @@ module Google
|
|
622
620
|
# * (`String`) The path to a service account key file in JSON format
|
623
621
|
# * (`Hash`) A service account key as a Hash
|
624
622
|
# * (`Google::Auth::Credentials`) A googleauth credentials object
|
625
|
-
# (see the [googleauth docs](https://
|
623
|
+
# (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials))
|
626
624
|
# * (`Signet::OAuth2::Client`) A signet oauth2 client object
|
627
|
-
# (see the [signet docs](https://
|
625
|
+
# (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client))
|
628
626
|
# * (`GRPC::Core::Channel`) a gRPC channel with included credentials
|
629
627
|
# * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object
|
630
628
|
# * (`nil`) indicating no credentials
|