google-cloud-notebooks-v1 0.4.1 → 0.5.0
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/README.md +1 -1
- data/lib/google/cloud/notebooks/v1/bindings_override.rb +159 -0
- data/lib/google/cloud/notebooks/v1/managed_notebook_service/client.rb +50 -52
- data/lib/google/cloud/notebooks/v1/managed_notebook_service/operations.rb +12 -14
- 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 +7 -1
- data/lib/google/cloud/notebooks/v1/notebook_service/client.rb +110 -118
- data/lib/google/cloud/notebooks/v1/notebook_service/operations.rb +12 -14
- 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 +7 -1
- data/lib/google/cloud/notebooks/v1/rest.rb +39 -0
- data/lib/google/cloud/notebooks/v1/version.rb +1 -1
- data/lib/google/cloud/notebooks/v1.rb +7 -2
- data/proto_docs/google/cloud/notebooks/v1/execution.rb +7 -6
- data/proto_docs/google/cloud/notebooks/v1/instance.rb +33 -32
- data/proto_docs/google/cloud/notebooks/v1/managed_service.rb +7 -7
- data/proto_docs/google/cloud/notebooks/v1/runtime.rb +26 -25
- data/proto_docs/google/cloud/notebooks/v1/schedule.rb +3 -3
- data/proto_docs/google/cloud/notebooks/v1/service.rb +10 -10
- data/proto_docs/google/rpc/status.rb +4 -2
- metadata +22 -12
@@ -0,0 +1,54 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
# Copyright 2023 Google LLC
|
4
|
+
#
|
5
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
6
|
+
# you may not use this file except in compliance with the License.
|
7
|
+
# You may obtain a copy of the License at
|
8
|
+
#
|
9
|
+
# https://www.apache.org/licenses/LICENSE-2.0
|
10
|
+
#
|
11
|
+
# Unless required by applicable law or agreed to in writing, software
|
12
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
13
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
14
|
+
# See the License for the specific language governing permissions and
|
15
|
+
# limitations under the License.
|
16
|
+
|
17
|
+
# Auto-generated by gapic-generator-ruby. DO NOT EDIT!
|
18
|
+
|
19
|
+
require "gapic/rest"
|
20
|
+
require "gapic/config"
|
21
|
+
require "gapic/config/method"
|
22
|
+
|
23
|
+
require "google/cloud/notebooks/v1/version"
|
24
|
+
require "google/cloud/notebooks/v1/bindings_override"
|
25
|
+
|
26
|
+
require "google/cloud/notebooks/v1/managed_notebook_service/credentials"
|
27
|
+
require "google/cloud/notebooks/v1/managed_notebook_service/paths"
|
28
|
+
require "google/cloud/notebooks/v1/managed_notebook_service/rest/operations"
|
29
|
+
require "google/cloud/notebooks/v1/managed_notebook_service/rest/client"
|
30
|
+
|
31
|
+
module Google
|
32
|
+
module Cloud
|
33
|
+
module Notebooks
|
34
|
+
module V1
|
35
|
+
##
|
36
|
+
# API v1 service for Managed Notebooks.
|
37
|
+
#
|
38
|
+
# To load this service and instantiate a REST client:
|
39
|
+
#
|
40
|
+
# require "google/cloud/notebooks/v1/managed_notebook_service/rest"
|
41
|
+
# client = ::Google::Cloud::Notebooks::V1::ManagedNotebookService::Rest::Client.new
|
42
|
+
#
|
43
|
+
module ManagedNotebookService
|
44
|
+
# Client for the REST transport
|
45
|
+
module Rest
|
46
|
+
end
|
47
|
+
end
|
48
|
+
end
|
49
|
+
end
|
50
|
+
end
|
51
|
+
end
|
52
|
+
|
53
|
+
helper_path = ::File.join __dir__, "rest", "helpers.rb"
|
54
|
+
require "google/cloud/notebooks/v1/managed_notebook_service/rest/helpers" if ::File.file? helper_path
|
@@ -26,6 +26,7 @@ require "google/cloud/notebooks/v1/managed_notebook_service/credentials"
|
|
26
26
|
require "google/cloud/notebooks/v1/managed_notebook_service/paths"
|
27
27
|
require "google/cloud/notebooks/v1/managed_notebook_service/operations"
|
28
28
|
require "google/cloud/notebooks/v1/managed_notebook_service/client"
|
29
|
+
require "google/cloud/notebooks/v1/managed_notebook_service/rest"
|
29
30
|
|
30
31
|
module Google
|
31
32
|
module Cloud
|
@@ -34,11 +35,16 @@ module Google
|
|
34
35
|
##
|
35
36
|
# API v1 service for Managed Notebooks.
|
36
37
|
#
|
37
|
-
#
|
38
|
+
# @example Load this service and instantiate a gRPC client
|
38
39
|
#
|
39
40
|
# require "google/cloud/notebooks/v1/managed_notebook_service"
|
40
41
|
# client = ::Google::Cloud::Notebooks::V1::ManagedNotebookService::Client.new
|
41
42
|
#
|
43
|
+
# @example Load this service and instantiate a REST client
|
44
|
+
#
|
45
|
+
# require "google/cloud/notebooks/v1/managed_notebook_service/rest"
|
46
|
+
# client = ::Google::Cloud::Notebooks::V1::ManagedNotebookService::Rest::Client.new
|
47
|
+
#
|
42
48
|
module ManagedNotebookService
|
43
49
|
end
|
44
50
|
end
|
@@ -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
|
@@ -1987,7 +1985,7 @@ module Google
|
|
1987
1985
|
# `projects/{project_id}/locations/{location}/instances/{instance_id}`
|
1988
1986
|
# @param target_snapshot [::String]
|
1989
1987
|
# Required. The snapshot for rollback.
|
1990
|
-
# Example:
|
1988
|
+
# Example: `projects/test-project/global/snapshots/krwlzipynril`.
|
1991
1989
|
#
|
1992
1990
|
# @yield [response, operation] Access the result along with the RPC operation
|
1993
1991
|
# @yieldparam response [::Gapic::Operation]
|
@@ -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
|
@@ -3137,7 +3131,7 @@ module Google
|
|
3137
3131
|
# from the last result.
|
3138
3132
|
# @param filter [::String]
|
3139
3133
|
# Filter applied to resulting executions. Currently only supports filtering
|
3140
|
-
# executions by a specified schedule_id
|
3134
|
+
# executions by a specified `schedule_id`.
|
3141
3135
|
# Format: `schedule_id=<Schedule_ID>`
|
3142
3136
|
# @param order_by [::String]
|
3143
3137
|
# Sort by field.
|
@@ -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
|