google-cloud-notebooks-v2 0.1.0 → 0.2.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/lib/google/cloud/notebooks/v2/notebook_service/client.rb +10 -1
- data/lib/google/cloud/notebooks/v2/notebook_service/operations.rb +10 -1
- data/lib/google/cloud/notebooks/v2/notebook_service/rest/client.rb +259 -0
- data/lib/google/cloud/notebooks/v2/notebook_service/rest/operations.rb +75 -0
- data/lib/google/cloud/notebooks/v2/version.rb +1 -1
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 077c55ab858d954381009197048e91b5d1d75fa89eaeba94fb7a056140d5a9a2
|
4
|
+
data.tar.gz: f0005f7213d76c5b626b2881a1a351642612fa84cf25eca706cfadbb7d61d461
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 54afa3b29ac3b7a91763e6425dde3cfb598e588b7b66d211a3222eec7fb510726d9f1e1295deea378da877f6a0aada6579b613a5446f10d472fd8bd8116e3efa
|
7
|
+
data.tar.gz: b6ee5ded78b4750e3cf0823b3de2dc5979eedb9a1695e6230656fae227ed5e375fe437d6e2cfc65e2baff6ac201b2093e05f33b31f6cd8a93f0e5a9051f8d943
|
@@ -181,7 +181,8 @@ module Google
|
|
181
181
|
credentials: credentials,
|
182
182
|
endpoint: @config.endpoint,
|
183
183
|
channel_args: @config.channel_args,
|
184
|
-
interceptors: @config.interceptors
|
184
|
+
interceptors: @config.interceptors,
|
185
|
+
channel_pool_config: @config.channel_pool
|
185
186
|
)
|
186
187
|
end
|
187
188
|
|
@@ -1464,6 +1465,14 @@ module Google
|
|
1464
1465
|
end
|
1465
1466
|
end
|
1466
1467
|
|
1468
|
+
##
|
1469
|
+
# Configuration for the channel pool
|
1470
|
+
# @return [::Gapic::ServiceStub::ChannelPool::Configuration]
|
1471
|
+
#
|
1472
|
+
def channel_pool
|
1473
|
+
@channel_pool ||= ::Gapic::ServiceStub::ChannelPool::Configuration.new
|
1474
|
+
end
|
1475
|
+
|
1467
1476
|
##
|
1468
1477
|
# Configuration RPC class for the NotebookService API.
|
1469
1478
|
#
|
@@ -93,7 +93,8 @@ module Google
|
|
93
93
|
credentials: credentials,
|
94
94
|
endpoint: @config.endpoint,
|
95
95
|
channel_args: @config.channel_args,
|
96
|
-
interceptors: @config.interceptors
|
96
|
+
interceptors: @config.interceptors,
|
97
|
+
channel_pool_config: @config.channel_pool
|
97
98
|
)
|
98
99
|
|
99
100
|
# Used by an LRO wrapper for some methods of this service
|
@@ -701,6 +702,14 @@ module Google
|
|
701
702
|
end
|
702
703
|
end
|
703
704
|
|
705
|
+
##
|
706
|
+
# Configuration for the channel pool
|
707
|
+
# @return [::Gapic::ServiceStub::ChannelPool::Configuration]
|
708
|
+
#
|
709
|
+
def channel_pool
|
710
|
+
@channel_pool ||= ::Gapic::ServiceStub::ChannelPool::Configuration.new
|
711
|
+
end
|
712
|
+
|
704
713
|
##
|
705
714
|
# Configuration RPC class for the Operations API.
|
706
715
|
#
|
@@ -239,6 +239,26 @@ module Google
|
|
239
239
|
# @return [::Google::Cloud::Notebooks::V2::ListInstancesResponse]
|
240
240
|
#
|
241
241
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
242
|
+
#
|
243
|
+
# @example Basic example
|
244
|
+
# require "google/cloud/notebooks/v2"
|
245
|
+
#
|
246
|
+
# # Create a client object. The client can be reused for multiple calls.
|
247
|
+
# client = Google::Cloud::Notebooks::V2::NotebookService::Rest::Client.new
|
248
|
+
#
|
249
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
250
|
+
# request = Google::Cloud::Notebooks::V2::ListInstancesRequest.new
|
251
|
+
#
|
252
|
+
# # Call the list_instances method.
|
253
|
+
# result = client.list_instances request
|
254
|
+
#
|
255
|
+
# # The returned object is of type Gapic::PagedEnumerable. You can iterate
|
256
|
+
# # over elements, and API calls will be issued to fetch pages as needed.
|
257
|
+
# result.each do |item|
|
258
|
+
# # Each element is of type ::Google::Cloud::Notebooks::V2::Instance.
|
259
|
+
# p item
|
260
|
+
# end
|
261
|
+
#
|
242
262
|
def list_instances request, options = nil
|
243
263
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
244
264
|
|
@@ -302,6 +322,22 @@ module Google
|
|
302
322
|
# @return [::Google::Cloud::Notebooks::V2::Instance]
|
303
323
|
#
|
304
324
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
325
|
+
#
|
326
|
+
# @example Basic example
|
327
|
+
# require "google/cloud/notebooks/v2"
|
328
|
+
#
|
329
|
+
# # Create a client object. The client can be reused for multiple calls.
|
330
|
+
# client = Google::Cloud::Notebooks::V2::NotebookService::Rest::Client.new
|
331
|
+
#
|
332
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
333
|
+
# request = Google::Cloud::Notebooks::V2::GetInstanceRequest.new
|
334
|
+
#
|
335
|
+
# # Call the get_instance method.
|
336
|
+
# result = client.get_instance request
|
337
|
+
#
|
338
|
+
# # The returned object is of type Google::Cloud::Notebooks::V2::Instance.
|
339
|
+
# p result
|
340
|
+
#
|
305
341
|
def get_instance request, options = nil
|
306
342
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
307
343
|
|
@@ -371,6 +407,29 @@ module Google
|
|
371
407
|
# @return [::Gapic::Operation]
|
372
408
|
#
|
373
409
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
410
|
+
#
|
411
|
+
# @example Basic example
|
412
|
+
# require "google/cloud/notebooks/v2"
|
413
|
+
#
|
414
|
+
# # Create a client object. The client can be reused for multiple calls.
|
415
|
+
# client = Google::Cloud::Notebooks::V2::NotebookService::Rest::Client.new
|
416
|
+
#
|
417
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
418
|
+
# request = Google::Cloud::Notebooks::V2::CreateInstanceRequest.new
|
419
|
+
#
|
420
|
+
# # Call the create_instance method.
|
421
|
+
# result = client.create_instance request
|
422
|
+
#
|
423
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
424
|
+
# # check the status of an operation, cancel it, or wait for results.
|
425
|
+
# # Here is how to wait for a response.
|
426
|
+
# result.wait_until_done! timeout: 60
|
427
|
+
# if result.response?
|
428
|
+
# p result.response
|
429
|
+
# else
|
430
|
+
# puts "No response received."
|
431
|
+
# end
|
432
|
+
#
|
374
433
|
def create_instance request, options = nil
|
375
434
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
376
435
|
|
@@ -438,6 +497,29 @@ module Google
|
|
438
497
|
# @return [::Gapic::Operation]
|
439
498
|
#
|
440
499
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
500
|
+
#
|
501
|
+
# @example Basic example
|
502
|
+
# require "google/cloud/notebooks/v2"
|
503
|
+
#
|
504
|
+
# # Create a client object. The client can be reused for multiple calls.
|
505
|
+
# client = Google::Cloud::Notebooks::V2::NotebookService::Rest::Client.new
|
506
|
+
#
|
507
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
508
|
+
# request = Google::Cloud::Notebooks::V2::UpdateInstanceRequest.new
|
509
|
+
#
|
510
|
+
# # Call the update_instance method.
|
511
|
+
# result = client.update_instance request
|
512
|
+
#
|
513
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
514
|
+
# # check the status of an operation, cancel it, or wait for results.
|
515
|
+
# # Here is how to wait for a response.
|
516
|
+
# result.wait_until_done! timeout: 60
|
517
|
+
# if result.response?
|
518
|
+
# p result.response
|
519
|
+
# else
|
520
|
+
# puts "No response received."
|
521
|
+
# end
|
522
|
+
#
|
441
523
|
def update_instance request, options = nil
|
442
524
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
443
525
|
|
@@ -504,6 +586,29 @@ module Google
|
|
504
586
|
# @return [::Gapic::Operation]
|
505
587
|
#
|
506
588
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
589
|
+
#
|
590
|
+
# @example Basic example
|
591
|
+
# require "google/cloud/notebooks/v2"
|
592
|
+
#
|
593
|
+
# # Create a client object. The client can be reused for multiple calls.
|
594
|
+
# client = Google::Cloud::Notebooks::V2::NotebookService::Rest::Client.new
|
595
|
+
#
|
596
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
597
|
+
# request = Google::Cloud::Notebooks::V2::DeleteInstanceRequest.new
|
598
|
+
#
|
599
|
+
# # Call the delete_instance method.
|
600
|
+
# result = client.delete_instance request
|
601
|
+
#
|
602
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
603
|
+
# # check the status of an operation, cancel it, or wait for results.
|
604
|
+
# # Here is how to wait for a response.
|
605
|
+
# result.wait_until_done! timeout: 60
|
606
|
+
# if result.response?
|
607
|
+
# p result.response
|
608
|
+
# else
|
609
|
+
# puts "No response received."
|
610
|
+
# end
|
611
|
+
#
|
507
612
|
def delete_instance request, options = nil
|
508
613
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
509
614
|
|
@@ -568,6 +673,29 @@ module Google
|
|
568
673
|
# @return [::Gapic::Operation]
|
569
674
|
#
|
570
675
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
676
|
+
#
|
677
|
+
# @example Basic example
|
678
|
+
# require "google/cloud/notebooks/v2"
|
679
|
+
#
|
680
|
+
# # Create a client object. The client can be reused for multiple calls.
|
681
|
+
# client = Google::Cloud::Notebooks::V2::NotebookService::Rest::Client.new
|
682
|
+
#
|
683
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
684
|
+
# request = Google::Cloud::Notebooks::V2::StartInstanceRequest.new
|
685
|
+
#
|
686
|
+
# # Call the start_instance method.
|
687
|
+
# result = client.start_instance request
|
688
|
+
#
|
689
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
690
|
+
# # check the status of an operation, cancel it, or wait for results.
|
691
|
+
# # Here is how to wait for a response.
|
692
|
+
# result.wait_until_done! timeout: 60
|
693
|
+
# if result.response?
|
694
|
+
# p result.response
|
695
|
+
# else
|
696
|
+
# puts "No response received."
|
697
|
+
# end
|
698
|
+
#
|
571
699
|
def start_instance request, options = nil
|
572
700
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
573
701
|
|
@@ -632,6 +760,29 @@ module Google
|
|
632
760
|
# @return [::Gapic::Operation]
|
633
761
|
#
|
634
762
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
763
|
+
#
|
764
|
+
# @example Basic example
|
765
|
+
# require "google/cloud/notebooks/v2"
|
766
|
+
#
|
767
|
+
# # Create a client object. The client can be reused for multiple calls.
|
768
|
+
# client = Google::Cloud::Notebooks::V2::NotebookService::Rest::Client.new
|
769
|
+
#
|
770
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
771
|
+
# request = Google::Cloud::Notebooks::V2::StopInstanceRequest.new
|
772
|
+
#
|
773
|
+
# # Call the stop_instance method.
|
774
|
+
# result = client.stop_instance request
|
775
|
+
#
|
776
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
777
|
+
# # check the status of an operation, cancel it, or wait for results.
|
778
|
+
# # Here is how to wait for a response.
|
779
|
+
# result.wait_until_done! timeout: 60
|
780
|
+
# if result.response?
|
781
|
+
# p result.response
|
782
|
+
# else
|
783
|
+
# puts "No response received."
|
784
|
+
# end
|
785
|
+
#
|
635
786
|
def stop_instance request, options = nil
|
636
787
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
637
788
|
|
@@ -696,6 +847,29 @@ module Google
|
|
696
847
|
# @return [::Gapic::Operation]
|
697
848
|
#
|
698
849
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
850
|
+
#
|
851
|
+
# @example Basic example
|
852
|
+
# require "google/cloud/notebooks/v2"
|
853
|
+
#
|
854
|
+
# # Create a client object. The client can be reused for multiple calls.
|
855
|
+
# client = Google::Cloud::Notebooks::V2::NotebookService::Rest::Client.new
|
856
|
+
#
|
857
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
858
|
+
# request = Google::Cloud::Notebooks::V2::ResetInstanceRequest.new
|
859
|
+
#
|
860
|
+
# # Call the reset_instance method.
|
861
|
+
# result = client.reset_instance request
|
862
|
+
#
|
863
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
864
|
+
# # check the status of an operation, cancel it, or wait for results.
|
865
|
+
# # Here is how to wait for a response.
|
866
|
+
# result.wait_until_done! timeout: 60
|
867
|
+
# if result.response?
|
868
|
+
# p result.response
|
869
|
+
# else
|
870
|
+
# puts "No response received."
|
871
|
+
# end
|
872
|
+
#
|
699
873
|
def reset_instance request, options = nil
|
700
874
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
701
875
|
|
@@ -760,6 +934,22 @@ module Google
|
|
760
934
|
# @return [::Google::Cloud::Notebooks::V2::CheckInstanceUpgradabilityResponse]
|
761
935
|
#
|
762
936
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
937
|
+
#
|
938
|
+
# @example Basic example
|
939
|
+
# require "google/cloud/notebooks/v2"
|
940
|
+
#
|
941
|
+
# # Create a client object. The client can be reused for multiple calls.
|
942
|
+
# client = Google::Cloud::Notebooks::V2::NotebookService::Rest::Client.new
|
943
|
+
#
|
944
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
945
|
+
# request = Google::Cloud::Notebooks::V2::CheckInstanceUpgradabilityRequest.new
|
946
|
+
#
|
947
|
+
# # Call the check_instance_upgradability method.
|
948
|
+
# result = client.check_instance_upgradability request
|
949
|
+
#
|
950
|
+
# # The returned object is of type Google::Cloud::Notebooks::V2::CheckInstanceUpgradabilityResponse.
|
951
|
+
# p result
|
952
|
+
#
|
763
953
|
def check_instance_upgradability request, options = nil
|
764
954
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
765
955
|
|
@@ -823,6 +1013,29 @@ module Google
|
|
823
1013
|
# @return [::Gapic::Operation]
|
824
1014
|
#
|
825
1015
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
1016
|
+
#
|
1017
|
+
# @example Basic example
|
1018
|
+
# require "google/cloud/notebooks/v2"
|
1019
|
+
#
|
1020
|
+
# # Create a client object. The client can be reused for multiple calls.
|
1021
|
+
# client = Google::Cloud::Notebooks::V2::NotebookService::Rest::Client.new
|
1022
|
+
#
|
1023
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
1024
|
+
# request = Google::Cloud::Notebooks::V2::UpgradeInstanceRequest.new
|
1025
|
+
#
|
1026
|
+
# # Call the upgrade_instance method.
|
1027
|
+
# result = client.upgrade_instance request
|
1028
|
+
#
|
1029
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
1030
|
+
# # check the status of an operation, cancel it, or wait for results.
|
1031
|
+
# # Here is how to wait for a response.
|
1032
|
+
# result.wait_until_done! timeout: 60
|
1033
|
+
# if result.response?
|
1034
|
+
# p result.response
|
1035
|
+
# else
|
1036
|
+
# puts "No response received."
|
1037
|
+
# end
|
1038
|
+
#
|
826
1039
|
def upgrade_instance request, options = nil
|
827
1040
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
828
1041
|
|
@@ -890,6 +1103,29 @@ module Google
|
|
890
1103
|
# @return [::Gapic::Operation]
|
891
1104
|
#
|
892
1105
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
1106
|
+
#
|
1107
|
+
# @example Basic example
|
1108
|
+
# require "google/cloud/notebooks/v2"
|
1109
|
+
#
|
1110
|
+
# # Create a client object. The client can be reused for multiple calls.
|
1111
|
+
# client = Google::Cloud::Notebooks::V2::NotebookService::Rest::Client.new
|
1112
|
+
#
|
1113
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
1114
|
+
# request = Google::Cloud::Notebooks::V2::RollbackInstanceRequest.new
|
1115
|
+
#
|
1116
|
+
# # Call the rollback_instance method.
|
1117
|
+
# result = client.rollback_instance request
|
1118
|
+
#
|
1119
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
1120
|
+
# # check the status of an operation, cancel it, or wait for results.
|
1121
|
+
# # Here is how to wait for a response.
|
1122
|
+
# result.wait_until_done! timeout: 60
|
1123
|
+
# if result.response?
|
1124
|
+
# p result.response
|
1125
|
+
# else
|
1126
|
+
# puts "No response received."
|
1127
|
+
# end
|
1128
|
+
#
|
893
1129
|
def rollback_instance request, options = nil
|
894
1130
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
895
1131
|
|
@@ -958,6 +1194,29 @@ module Google
|
|
958
1194
|
# @return [::Gapic::Operation]
|
959
1195
|
#
|
960
1196
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
1197
|
+
#
|
1198
|
+
# @example Basic example
|
1199
|
+
# require "google/cloud/notebooks/v2"
|
1200
|
+
#
|
1201
|
+
# # Create a client object. The client can be reused for multiple calls.
|
1202
|
+
# client = Google::Cloud::Notebooks::V2::NotebookService::Rest::Client.new
|
1203
|
+
#
|
1204
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
1205
|
+
# request = Google::Cloud::Notebooks::V2::DiagnoseInstanceRequest.new
|
1206
|
+
#
|
1207
|
+
# # Call the diagnose_instance method.
|
1208
|
+
# result = client.diagnose_instance request
|
1209
|
+
#
|
1210
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
1211
|
+
# # check the status of an operation, cancel it, or wait for results.
|
1212
|
+
# # Here is how to wait for a response.
|
1213
|
+
# result.wait_until_done! timeout: 60
|
1214
|
+
# if result.response?
|
1215
|
+
# p result.response
|
1216
|
+
# else
|
1217
|
+
# puts "No response received."
|
1218
|
+
# end
|
1219
|
+
#
|
961
1220
|
def diagnose_instance request, options = nil
|
962
1221
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
963
1222
|
|
@@ -136,6 +136,26 @@ module Google
|
|
136
136
|
# @return [::Gapic::Operation]
|
137
137
|
#
|
138
138
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
139
|
+
#
|
140
|
+
# @example Basic example
|
141
|
+
# require "google/longrunning"
|
142
|
+
#
|
143
|
+
# # Create a client object. The client can be reused for multiple calls.
|
144
|
+
# client = Google::Longrunning::Operations::Rest::Client.new
|
145
|
+
#
|
146
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
147
|
+
# request = Google::Longrunning::ListOperationsRequest.new
|
148
|
+
#
|
149
|
+
# # Call the list_operations method.
|
150
|
+
# result = client.list_operations request
|
151
|
+
#
|
152
|
+
# # The returned object is of type Gapic::PagedEnumerable. You can iterate
|
153
|
+
# # over elements, and API calls will be issued to fetch pages as needed.
|
154
|
+
# result.each do |item|
|
155
|
+
# # Each element is of type ::Google::Longrunning::Operation.
|
156
|
+
# p item
|
157
|
+
# end
|
158
|
+
#
|
139
159
|
def list_operations request, options = nil
|
140
160
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
141
161
|
|
@@ -201,6 +221,29 @@ module Google
|
|
201
221
|
# @return [::Gapic::Operation]
|
202
222
|
#
|
203
223
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
224
|
+
#
|
225
|
+
# @example Basic example
|
226
|
+
# require "google/longrunning"
|
227
|
+
#
|
228
|
+
# # Create a client object. The client can be reused for multiple calls.
|
229
|
+
# client = Google::Longrunning::Operations::Rest::Client.new
|
230
|
+
#
|
231
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
232
|
+
# request = Google::Longrunning::GetOperationRequest.new
|
233
|
+
#
|
234
|
+
# # Call the get_operation method.
|
235
|
+
# result = client.get_operation request
|
236
|
+
#
|
237
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
238
|
+
# # check the status of an operation, cancel it, or wait for results.
|
239
|
+
# # Here is how to wait for a response.
|
240
|
+
# result.wait_until_done! timeout: 60
|
241
|
+
# if result.response?
|
242
|
+
# p result.response
|
243
|
+
# else
|
244
|
+
# puts "No response received."
|
245
|
+
# end
|
246
|
+
#
|
204
247
|
def get_operation request, options = nil
|
205
248
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
206
249
|
|
@@ -267,6 +310,22 @@ module Google
|
|
267
310
|
# @return [::Google::Protobuf::Empty]
|
268
311
|
#
|
269
312
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
313
|
+
#
|
314
|
+
# @example Basic example
|
315
|
+
# require "google/longrunning"
|
316
|
+
#
|
317
|
+
# # Create a client object. The client can be reused for multiple calls.
|
318
|
+
# client = Google::Longrunning::Operations::Rest::Client.new
|
319
|
+
#
|
320
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
321
|
+
# request = Google::Longrunning::DeleteOperationRequest.new
|
322
|
+
#
|
323
|
+
# # Call the delete_operation method.
|
324
|
+
# result = client.delete_operation request
|
325
|
+
#
|
326
|
+
# # The returned object is of type Google::Protobuf::Empty.
|
327
|
+
# p result
|
328
|
+
#
|
270
329
|
def delete_operation request, options = nil
|
271
330
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
272
331
|
|
@@ -338,6 +397,22 @@ module Google
|
|
338
397
|
# @return [::Google::Protobuf::Empty]
|
339
398
|
#
|
340
399
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
400
|
+
#
|
401
|
+
# @example Basic example
|
402
|
+
# require "google/longrunning"
|
403
|
+
#
|
404
|
+
# # Create a client object. The client can be reused for multiple calls.
|
405
|
+
# client = Google::Longrunning::Operations::Rest::Client.new
|
406
|
+
#
|
407
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
408
|
+
# request = Google::Longrunning::CancelOperationRequest.new
|
409
|
+
#
|
410
|
+
# # Call the cancel_operation method.
|
411
|
+
# result = client.cancel_operation request
|
412
|
+
#
|
413
|
+
# # The returned object is of type Google::Protobuf::Empty.
|
414
|
+
# p result
|
415
|
+
#
|
341
416
|
def cancel_operation request, options = nil
|
342
417
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
343
418
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: google-cloud-notebooks-v2
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.2.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Google LLC
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-
|
11
|
+
date: 2023-09-12 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.20.0
|
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.20.0
|
30
30
|
- - "<"
|
31
31
|
- !ruby/object:Gem::Version
|
32
32
|
version: 2.a
|