google-cloud-notebooks-v1beta1 0.4.3 → 0.4.4

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 5d43c15fe368a31397704c980721b8837905064315c7118e60c33cf545f5848e
4
- data.tar.gz: cfc5a96d11e76fb035baeb5aa7e97c4954007db941b3dd1b759329729d9feed1
3
+ metadata.gz: 0c2fcad7ec28b98577fb0c6c77aa2af9d84c8b28a32fccc28b6b5ee7606b0d6c
4
+ data.tar.gz: d649fb4ba67691fc7f54fa3b7e7a28d81a85ae8a06bc4b75a4d68f80f96906e0
5
5
  SHA512:
6
- metadata.gz: e4f5ce2bd836f05f2ffb97d276bf9ea9e2a86b48d61ef8ee3034623e945fe9b36d4f1ffaef6cdb2182f19efd84957b7fc518d85b8ec6e3485524dc670d86a434
7
- data.tar.gz: 6a20f02eb591cf6385d80ab2e8d60fabde5398917d1ff98923bd646c5c481f4ce40383b15d2edd4f90abd5ce447db04f00ab1ef9c2a9dc9a955c04fef4374ac3
6
+ metadata.gz: 344f6ad12052b51ee7b57273214d0109573a3303c3518ebb1ded7c0077c8a915ce04adeb75c2cde9efaf4bb5001a9c142ed82f460f4af320495041e731e10d69
7
+ data.tar.gz: 01c6da20fa354babd3dc59d7d3c87ffd5519896c03c975ba58e1089f0c7e97b796a4e47d717fee99e43f70f6ef57440266fd2c4100b7573da84d3bcceab7baa1
@@ -1,12 +1,12 @@
1
1
  # Generated by the protocol buffer compiler. DO NOT EDIT!
2
2
  # source: google/cloud/notebooks/v1beta1/environment.proto
3
3
 
4
- require 'google/protobuf'
5
-
6
4
  require 'google/api/field_behavior_pb'
7
5
  require 'google/api/resource_pb'
8
6
  require 'google/protobuf/timestamp_pb'
9
7
  require 'google/api/annotations_pb'
8
+ require 'google/protobuf'
9
+
10
10
  Google::Protobuf::DescriptorPool.generated_pool.build do
11
11
  add_file("google/cloud/notebooks/v1beta1/environment.proto", :syntax => :proto3) do
12
12
  add_message "google.cloud.notebooks.v1beta1.Environment" do
@@ -1,13 +1,13 @@
1
1
  # Generated by the protocol buffer compiler. DO NOT EDIT!
2
2
  # source: google/cloud/notebooks/v1beta1/instance.proto
3
3
 
4
- require 'google/protobuf'
5
-
6
4
  require 'google/api/field_behavior_pb'
7
5
  require 'google/api/resource_pb'
8
6
  require 'google/cloud/notebooks/v1beta1/environment_pb'
9
7
  require 'google/protobuf/timestamp_pb'
10
8
  require 'google/api/annotations_pb'
9
+ require 'google/protobuf'
10
+
11
11
  Google::Protobuf::DescriptorPool.generated_pool.build do
12
12
  add_file("google/cloud/notebooks/v1beta1/instance.proto", :syntax => :proto3) do
13
13
  add_message "google.cloud.notebooks.v1beta1.Instance" do
@@ -234,6 +234,27 @@ module Google
234
234
  #
235
235
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
236
236
  #
237
+ # @example Basic example
238
+ # require "google/cloud/notebooks/v1beta1"
239
+ #
240
+ # # Create a client object. The client can be reused for multiple calls.
241
+ # client = Google::Cloud::Notebooks::V1beta1::NotebookService::Client.new
242
+ #
243
+ # # Create a request. To set request fields, pass in keyword arguments.
244
+ # request = Google::Cloud::Notebooks::V1beta1::ListInstancesRequest.new
245
+ #
246
+ # # Call the list_instances method.
247
+ # result = client.list_instances request
248
+ #
249
+ # # The returned object is of type Gapic::PagedEnumerable. You can
250
+ # # iterate over all elements by calling #each, and the enumerable
251
+ # # will lazily make API calls to fetch subsequent pages. Other
252
+ # # methods are also available for managing paging directly.
253
+ # result.each do |response|
254
+ # # Each element is of type ::Google::Cloud::Notebooks::V1beta1::Instance.
255
+ # p response
256
+ # end
257
+ #
237
258
  def list_instances request, options = nil
238
259
  raise ::ArgumentError, "request must be provided" if request.nil?
239
260
 
@@ -251,9 +272,11 @@ module Google
251
272
  gapic_version: ::Google::Cloud::Notebooks::V1beta1::VERSION
252
273
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
253
274
 
254
- header_params = {
255
- "parent" => request.parent
256
- }
275
+ header_params = {}
276
+ if request.parent
277
+ header_params["parent"] = request.parent
278
+ end
279
+
257
280
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
258
281
  metadata[:"x-goog-request-params"] ||= request_params_header
259
282
 
@@ -304,6 +327,21 @@ module Google
304
327
  #
305
328
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
306
329
  #
330
+ # @example Basic example
331
+ # require "google/cloud/notebooks/v1beta1"
332
+ #
333
+ # # Create a client object. The client can be reused for multiple calls.
334
+ # client = Google::Cloud::Notebooks::V1beta1::NotebookService::Client.new
335
+ #
336
+ # # Create a request. To set request fields, pass in keyword arguments.
337
+ # request = Google::Cloud::Notebooks::V1beta1::GetInstanceRequest.new
338
+ #
339
+ # # Call the get_instance method.
340
+ # result = client.get_instance request
341
+ #
342
+ # # The returned object is of type Google::Cloud::Notebooks::V1beta1::Instance.
343
+ # p result
344
+ #
307
345
  def get_instance request, options = nil
308
346
  raise ::ArgumentError, "request must be provided" if request.nil?
309
347
 
@@ -321,9 +359,11 @@ module Google
321
359
  gapic_version: ::Google::Cloud::Notebooks::V1beta1::VERSION
322
360
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
323
361
 
324
- header_params = {
325
- "name" => request.name
326
- }
362
+ header_params = {}
363
+ if request.name
364
+ header_params["name"] = request.name
365
+ end
366
+
327
367
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
328
368
  metadata[:"x-goog-request-params"] ||= request_params_header
329
369
 
@@ -377,6 +417,28 @@ module Google
377
417
  #
378
418
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
379
419
  #
420
+ # @example Basic example
421
+ # require "google/cloud/notebooks/v1beta1"
422
+ #
423
+ # # Create a client object. The client can be reused for multiple calls.
424
+ # client = Google::Cloud::Notebooks::V1beta1::NotebookService::Client.new
425
+ #
426
+ # # Create a request. To set request fields, pass in keyword arguments.
427
+ # request = Google::Cloud::Notebooks::V1beta1::CreateInstanceRequest.new
428
+ #
429
+ # # Call the create_instance method.
430
+ # result = client.create_instance request
431
+ #
432
+ # # The returned object is of type Gapic::Operation. You can use this
433
+ # # object to check the status of an operation, cancel it, or wait
434
+ # # for results. Here is how to block until completion:
435
+ # result.wait_until_done! timeout: 60
436
+ # if result.response?
437
+ # p result.response
438
+ # else
439
+ # puts "Error!"
440
+ # end
441
+ #
380
442
  def create_instance request, options = nil
381
443
  raise ::ArgumentError, "request must be provided" if request.nil?
382
444
 
@@ -394,9 +456,11 @@ module Google
394
456
  gapic_version: ::Google::Cloud::Notebooks::V1beta1::VERSION
395
457
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
396
458
 
397
- header_params = {
398
- "parent" => request.parent
399
- }
459
+ header_params = {}
460
+ if request.parent
461
+ header_params["parent"] = request.parent
462
+ end
463
+
400
464
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
401
465
  metadata[:"x-goog-request-params"] ||= request_params_header
402
466
 
@@ -455,6 +519,28 @@ module Google
455
519
  #
456
520
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
457
521
  #
522
+ # @example Basic example
523
+ # require "google/cloud/notebooks/v1beta1"
524
+ #
525
+ # # Create a client object. The client can be reused for multiple calls.
526
+ # client = Google::Cloud::Notebooks::V1beta1::NotebookService::Client.new
527
+ #
528
+ # # Create a request. To set request fields, pass in keyword arguments.
529
+ # request = Google::Cloud::Notebooks::V1beta1::RegisterInstanceRequest.new
530
+ #
531
+ # # Call the register_instance method.
532
+ # result = client.register_instance request
533
+ #
534
+ # # The returned object is of type Gapic::Operation. You can use this
535
+ # # object to check the status of an operation, cancel it, or wait
536
+ # # for results. Here is how to block until completion:
537
+ # result.wait_until_done! timeout: 60
538
+ # if result.response?
539
+ # p result.response
540
+ # else
541
+ # puts "Error!"
542
+ # end
543
+ #
458
544
  def register_instance request, options = nil
459
545
  raise ::ArgumentError, "request must be provided" if request.nil?
460
546
 
@@ -472,9 +558,11 @@ module Google
472
558
  gapic_version: ::Google::Cloud::Notebooks::V1beta1::VERSION
473
559
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
474
560
 
475
- header_params = {
476
- "parent" => request.parent
477
- }
561
+ header_params = {}
562
+ if request.parent
563
+ header_params["parent"] = request.parent
564
+ end
565
+
478
566
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
479
567
  metadata[:"x-goog-request-params"] ||= request_params_header
480
568
 
@@ -532,6 +620,28 @@ module Google
532
620
  #
533
621
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
534
622
  #
623
+ # @example Basic example
624
+ # require "google/cloud/notebooks/v1beta1"
625
+ #
626
+ # # Create a client object. The client can be reused for multiple calls.
627
+ # client = Google::Cloud::Notebooks::V1beta1::NotebookService::Client.new
628
+ #
629
+ # # Create a request. To set request fields, pass in keyword arguments.
630
+ # request = Google::Cloud::Notebooks::V1beta1::SetInstanceAcceleratorRequest.new
631
+ #
632
+ # # Call the set_instance_accelerator method.
633
+ # result = client.set_instance_accelerator request
634
+ #
635
+ # # The returned object is of type Gapic::Operation. You can use this
636
+ # # object to check the status of an operation, cancel it, or wait
637
+ # # for results. Here is how to block until completion:
638
+ # result.wait_until_done! timeout: 60
639
+ # if result.response?
640
+ # p result.response
641
+ # else
642
+ # puts "Error!"
643
+ # end
644
+ #
535
645
  def set_instance_accelerator request, options = nil
536
646
  raise ::ArgumentError, "request must be provided" if request.nil?
537
647
 
@@ -549,9 +659,11 @@ module Google
549
659
  gapic_version: ::Google::Cloud::Notebooks::V1beta1::VERSION
550
660
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
551
661
 
552
- header_params = {
553
- "name" => request.name
554
- }
662
+ header_params = {}
663
+ if request.name
664
+ header_params["name"] = request.name
665
+ end
666
+
555
667
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
556
668
  metadata[:"x-goog-request-params"] ||= request_params_header
557
669
 
@@ -605,6 +717,28 @@ module Google
605
717
  #
606
718
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
607
719
  #
720
+ # @example Basic example
721
+ # require "google/cloud/notebooks/v1beta1"
722
+ #
723
+ # # Create a client object. The client can be reused for multiple calls.
724
+ # client = Google::Cloud::Notebooks::V1beta1::NotebookService::Client.new
725
+ #
726
+ # # Create a request. To set request fields, pass in keyword arguments.
727
+ # request = Google::Cloud::Notebooks::V1beta1::SetInstanceMachineTypeRequest.new
728
+ #
729
+ # # Call the set_instance_machine_type method.
730
+ # result = client.set_instance_machine_type request
731
+ #
732
+ # # The returned object is of type Gapic::Operation. You can use this
733
+ # # object to check the status of an operation, cancel it, or wait
734
+ # # for results. Here is how to block until completion:
735
+ # result.wait_until_done! timeout: 60
736
+ # if result.response?
737
+ # p result.response
738
+ # else
739
+ # puts "Error!"
740
+ # end
741
+ #
608
742
  def set_instance_machine_type request, options = nil
609
743
  raise ::ArgumentError, "request must be provided" if request.nil?
610
744
 
@@ -622,9 +756,11 @@ module Google
622
756
  gapic_version: ::Google::Cloud::Notebooks::V1beta1::VERSION
623
757
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
624
758
 
625
- header_params = {
626
- "name" => request.name
627
- }
759
+ header_params = {}
760
+ if request.name
761
+ header_params["name"] = request.name
762
+ end
763
+
628
764
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
629
765
  metadata[:"x-goog-request-params"] ||= request_params_header
630
766
 
@@ -678,6 +814,28 @@ module Google
678
814
  #
679
815
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
680
816
  #
817
+ # @example Basic example
818
+ # require "google/cloud/notebooks/v1beta1"
819
+ #
820
+ # # Create a client object. The client can be reused for multiple calls.
821
+ # client = Google::Cloud::Notebooks::V1beta1::NotebookService::Client.new
822
+ #
823
+ # # Create a request. To set request fields, pass in keyword arguments.
824
+ # request = Google::Cloud::Notebooks::V1beta1::SetInstanceLabelsRequest.new
825
+ #
826
+ # # Call the set_instance_labels method.
827
+ # result = client.set_instance_labels request
828
+ #
829
+ # # The returned object is of type Gapic::Operation. You can use this
830
+ # # object to check the status of an operation, cancel it, or wait
831
+ # # for results. Here is how to block until completion:
832
+ # result.wait_until_done! timeout: 60
833
+ # if result.response?
834
+ # p result.response
835
+ # else
836
+ # puts "Error!"
837
+ # end
838
+ #
681
839
  def set_instance_labels request, options = nil
682
840
  raise ::ArgumentError, "request must be provided" if request.nil?
683
841
 
@@ -695,9 +853,11 @@ module Google
695
853
  gapic_version: ::Google::Cloud::Notebooks::V1beta1::VERSION
696
854
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
697
855
 
698
- header_params = {
699
- "name" => request.name
700
- }
856
+ header_params = {}
857
+ if request.name
858
+ header_params["name"] = request.name
859
+ end
860
+
701
861
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
702
862
  metadata[:"x-goog-request-params"] ||= request_params_header
703
863
 
@@ -748,6 +908,28 @@ module Google
748
908
  #
749
909
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
750
910
  #
911
+ # @example Basic example
912
+ # require "google/cloud/notebooks/v1beta1"
913
+ #
914
+ # # Create a client object. The client can be reused for multiple calls.
915
+ # client = Google::Cloud::Notebooks::V1beta1::NotebookService::Client.new
916
+ #
917
+ # # Create a request. To set request fields, pass in keyword arguments.
918
+ # request = Google::Cloud::Notebooks::V1beta1::DeleteInstanceRequest.new
919
+ #
920
+ # # Call the delete_instance method.
921
+ # result = client.delete_instance request
922
+ #
923
+ # # The returned object is of type Gapic::Operation. You can use this
924
+ # # object to check the status of an operation, cancel it, or wait
925
+ # # for results. Here is how to block until completion:
926
+ # result.wait_until_done! timeout: 60
927
+ # if result.response?
928
+ # p result.response
929
+ # else
930
+ # puts "Error!"
931
+ # end
932
+ #
751
933
  def delete_instance request, options = nil
752
934
  raise ::ArgumentError, "request must be provided" if request.nil?
753
935
 
@@ -765,9 +947,11 @@ module Google
765
947
  gapic_version: ::Google::Cloud::Notebooks::V1beta1::VERSION
766
948
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
767
949
 
768
- header_params = {
769
- "name" => request.name
770
- }
950
+ header_params = {}
951
+ if request.name
952
+ header_params["name"] = request.name
953
+ end
954
+
771
955
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
772
956
  metadata[:"x-goog-request-params"] ||= request_params_header
773
957
 
@@ -818,6 +1002,28 @@ module Google
818
1002
  #
819
1003
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
820
1004
  #
1005
+ # @example Basic example
1006
+ # require "google/cloud/notebooks/v1beta1"
1007
+ #
1008
+ # # Create a client object. The client can be reused for multiple calls.
1009
+ # client = Google::Cloud::Notebooks::V1beta1::NotebookService::Client.new
1010
+ #
1011
+ # # Create a request. To set request fields, pass in keyword arguments.
1012
+ # request = Google::Cloud::Notebooks::V1beta1::StartInstanceRequest.new
1013
+ #
1014
+ # # Call the start_instance method.
1015
+ # result = client.start_instance request
1016
+ #
1017
+ # # The returned object is of type Gapic::Operation. You can use this
1018
+ # # object to check the status of an operation, cancel it, or wait
1019
+ # # for results. Here is how to block until completion:
1020
+ # result.wait_until_done! timeout: 60
1021
+ # if result.response?
1022
+ # p result.response
1023
+ # else
1024
+ # puts "Error!"
1025
+ # end
1026
+ #
821
1027
  def start_instance request, options = nil
822
1028
  raise ::ArgumentError, "request must be provided" if request.nil?
823
1029
 
@@ -835,9 +1041,11 @@ module Google
835
1041
  gapic_version: ::Google::Cloud::Notebooks::V1beta1::VERSION
836
1042
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
837
1043
 
838
- header_params = {
839
- "name" => request.name
840
- }
1044
+ header_params = {}
1045
+ if request.name
1046
+ header_params["name"] = request.name
1047
+ end
1048
+
841
1049
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
842
1050
  metadata[:"x-goog-request-params"] ||= request_params_header
843
1051
 
@@ -888,6 +1096,28 @@ module Google
888
1096
  #
889
1097
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
890
1098
  #
1099
+ # @example Basic example
1100
+ # require "google/cloud/notebooks/v1beta1"
1101
+ #
1102
+ # # Create a client object. The client can be reused for multiple calls.
1103
+ # client = Google::Cloud::Notebooks::V1beta1::NotebookService::Client.new
1104
+ #
1105
+ # # Create a request. To set request fields, pass in keyword arguments.
1106
+ # request = Google::Cloud::Notebooks::V1beta1::StopInstanceRequest.new
1107
+ #
1108
+ # # Call the stop_instance method.
1109
+ # result = client.stop_instance request
1110
+ #
1111
+ # # The returned object is of type Gapic::Operation. You can use this
1112
+ # # object to check the status of an operation, cancel it, or wait
1113
+ # # for results. Here is how to block until completion:
1114
+ # result.wait_until_done! timeout: 60
1115
+ # if result.response?
1116
+ # p result.response
1117
+ # else
1118
+ # puts "Error!"
1119
+ # end
1120
+ #
891
1121
  def stop_instance request, options = nil
892
1122
  raise ::ArgumentError, "request must be provided" if request.nil?
893
1123
 
@@ -905,9 +1135,11 @@ module Google
905
1135
  gapic_version: ::Google::Cloud::Notebooks::V1beta1::VERSION
906
1136
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
907
1137
 
908
- header_params = {
909
- "name" => request.name
910
- }
1138
+ header_params = {}
1139
+ if request.name
1140
+ header_params["name"] = request.name
1141
+ end
1142
+
911
1143
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
912
1144
  metadata[:"x-goog-request-params"] ||= request_params_header
913
1145
 
@@ -958,6 +1190,28 @@ module Google
958
1190
  #
959
1191
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
960
1192
  #
1193
+ # @example Basic example
1194
+ # require "google/cloud/notebooks/v1beta1"
1195
+ #
1196
+ # # Create a client object. The client can be reused for multiple calls.
1197
+ # client = Google::Cloud::Notebooks::V1beta1::NotebookService::Client.new
1198
+ #
1199
+ # # Create a request. To set request fields, pass in keyword arguments.
1200
+ # request = Google::Cloud::Notebooks::V1beta1::ResetInstanceRequest.new
1201
+ #
1202
+ # # Call the reset_instance method.
1203
+ # result = client.reset_instance request
1204
+ #
1205
+ # # The returned object is of type Gapic::Operation. You can use this
1206
+ # # object to check the status of an operation, cancel it, or wait
1207
+ # # for results. Here is how to block until completion:
1208
+ # result.wait_until_done! timeout: 60
1209
+ # if result.response?
1210
+ # p result.response
1211
+ # else
1212
+ # puts "Error!"
1213
+ # end
1214
+ #
961
1215
  def reset_instance request, options = nil
962
1216
  raise ::ArgumentError, "request must be provided" if request.nil?
963
1217
 
@@ -975,9 +1229,11 @@ module Google
975
1229
  gapic_version: ::Google::Cloud::Notebooks::V1beta1::VERSION
976
1230
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
977
1231
 
978
- header_params = {
979
- "name" => request.name
980
- }
1232
+ header_params = {}
1233
+ if request.name
1234
+ header_params["name"] = request.name
1235
+ end
1236
+
981
1237
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
982
1238
  metadata[:"x-goog-request-params"] ||= request_params_header
983
1239
 
@@ -1037,6 +1293,28 @@ module Google
1037
1293
  #
1038
1294
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
1039
1295
  #
1296
+ # @example Basic example
1297
+ # require "google/cloud/notebooks/v1beta1"
1298
+ #
1299
+ # # Create a client object. The client can be reused for multiple calls.
1300
+ # client = Google::Cloud::Notebooks::V1beta1::NotebookService::Client.new
1301
+ #
1302
+ # # Create a request. To set request fields, pass in keyword arguments.
1303
+ # request = Google::Cloud::Notebooks::V1beta1::ReportInstanceInfoRequest.new
1304
+ #
1305
+ # # Call the report_instance_info method.
1306
+ # result = client.report_instance_info request
1307
+ #
1308
+ # # The returned object is of type Gapic::Operation. You can use this
1309
+ # # object to check the status of an operation, cancel it, or wait
1310
+ # # for results. Here is how to block until completion:
1311
+ # result.wait_until_done! timeout: 60
1312
+ # if result.response?
1313
+ # p result.response
1314
+ # else
1315
+ # puts "Error!"
1316
+ # end
1317
+ #
1040
1318
  def report_instance_info request, options = nil
1041
1319
  raise ::ArgumentError, "request must be provided" if request.nil?
1042
1320
 
@@ -1054,9 +1332,11 @@ module Google
1054
1332
  gapic_version: ::Google::Cloud::Notebooks::V1beta1::VERSION
1055
1333
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1056
1334
 
1057
- header_params = {
1058
- "name" => request.name
1059
- }
1335
+ header_params = {}
1336
+ if request.name
1337
+ header_params["name"] = request.name
1338
+ end
1339
+
1060
1340
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
1061
1341
  metadata[:"x-goog-request-params"] ||= request_params_header
1062
1342
 
@@ -1107,6 +1387,21 @@ module Google
1107
1387
  #
1108
1388
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
1109
1389
  #
1390
+ # @example Basic example
1391
+ # require "google/cloud/notebooks/v1beta1"
1392
+ #
1393
+ # # Create a client object. The client can be reused for multiple calls.
1394
+ # client = Google::Cloud::Notebooks::V1beta1::NotebookService::Client.new
1395
+ #
1396
+ # # Create a request. To set request fields, pass in keyword arguments.
1397
+ # request = Google::Cloud::Notebooks::V1beta1::IsInstanceUpgradeableRequest.new
1398
+ #
1399
+ # # Call the is_instance_upgradeable method.
1400
+ # result = client.is_instance_upgradeable request
1401
+ #
1402
+ # # The returned object is of type Google::Cloud::Notebooks::V1beta1::IsInstanceUpgradeableResponse.
1403
+ # p result
1404
+ #
1110
1405
  def is_instance_upgradeable request, options = nil
1111
1406
  raise ::ArgumentError, "request must be provided" if request.nil?
1112
1407
 
@@ -1124,9 +1419,11 @@ module Google
1124
1419
  gapic_version: ::Google::Cloud::Notebooks::V1beta1::VERSION
1125
1420
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1126
1421
 
1127
- header_params = {
1128
- "notebook_instance" => request.notebook_instance
1129
- }
1422
+ header_params = {}
1423
+ if request.notebook_instance
1424
+ header_params["notebook_instance"] = request.notebook_instance
1425
+ end
1426
+
1130
1427
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
1131
1428
  metadata[:"x-goog-request-params"] ||= request_params_header
1132
1429
 
@@ -1176,6 +1473,28 @@ module Google
1176
1473
  #
1177
1474
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
1178
1475
  #
1476
+ # @example Basic example
1477
+ # require "google/cloud/notebooks/v1beta1"
1478
+ #
1479
+ # # Create a client object. The client can be reused for multiple calls.
1480
+ # client = Google::Cloud::Notebooks::V1beta1::NotebookService::Client.new
1481
+ #
1482
+ # # Create a request. To set request fields, pass in keyword arguments.
1483
+ # request = Google::Cloud::Notebooks::V1beta1::UpgradeInstanceRequest.new
1484
+ #
1485
+ # # Call the upgrade_instance method.
1486
+ # result = client.upgrade_instance request
1487
+ #
1488
+ # # The returned object is of type Gapic::Operation. You can use this
1489
+ # # object to check the status of an operation, cancel it, or wait
1490
+ # # for results. Here is how to block until completion:
1491
+ # result.wait_until_done! timeout: 60
1492
+ # if result.response?
1493
+ # p result.response
1494
+ # else
1495
+ # puts "Error!"
1496
+ # end
1497
+ #
1179
1498
  def upgrade_instance request, options = nil
1180
1499
  raise ::ArgumentError, "request must be provided" if request.nil?
1181
1500
 
@@ -1193,9 +1512,11 @@ module Google
1193
1512
  gapic_version: ::Google::Cloud::Notebooks::V1beta1::VERSION
1194
1513
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1195
1514
 
1196
- header_params = {
1197
- "name" => request.name
1198
- }
1515
+ header_params = {}
1516
+ if request.name
1517
+ header_params["name"] = request.name
1518
+ end
1519
+
1199
1520
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
1200
1521
  metadata[:"x-goog-request-params"] ||= request_params_header
1201
1522
 
@@ -1250,6 +1571,28 @@ module Google
1250
1571
  #
1251
1572
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
1252
1573
  #
1574
+ # @example Basic example
1575
+ # require "google/cloud/notebooks/v1beta1"
1576
+ #
1577
+ # # Create a client object. The client can be reused for multiple calls.
1578
+ # client = Google::Cloud::Notebooks::V1beta1::NotebookService::Client.new
1579
+ #
1580
+ # # Create a request. To set request fields, pass in keyword arguments.
1581
+ # request = Google::Cloud::Notebooks::V1beta1::UpgradeInstanceInternalRequest.new
1582
+ #
1583
+ # # Call the upgrade_instance_internal method.
1584
+ # result = client.upgrade_instance_internal request
1585
+ #
1586
+ # # The returned object is of type Gapic::Operation. You can use this
1587
+ # # object to check the status of an operation, cancel it, or wait
1588
+ # # for results. Here is how to block until completion:
1589
+ # result.wait_until_done! timeout: 60
1590
+ # if result.response?
1591
+ # p result.response
1592
+ # else
1593
+ # puts "Error!"
1594
+ # end
1595
+ #
1253
1596
  def upgrade_instance_internal request, options = nil
1254
1597
  raise ::ArgumentError, "request must be provided" if request.nil?
1255
1598
 
@@ -1267,9 +1610,11 @@ module Google
1267
1610
  gapic_version: ::Google::Cloud::Notebooks::V1beta1::VERSION
1268
1611
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1269
1612
 
1270
- header_params = {
1271
- "name" => request.name
1272
- }
1613
+ header_params = {}
1614
+ if request.name
1615
+ header_params["name"] = request.name
1616
+ end
1617
+
1273
1618
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
1274
1619
  metadata[:"x-goog-request-params"] ||= request_params_header
1275
1620
 
@@ -1324,6 +1669,27 @@ module Google
1324
1669
  #
1325
1670
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
1326
1671
  #
1672
+ # @example Basic example
1673
+ # require "google/cloud/notebooks/v1beta1"
1674
+ #
1675
+ # # Create a client object. The client can be reused for multiple calls.
1676
+ # client = Google::Cloud::Notebooks::V1beta1::NotebookService::Client.new
1677
+ #
1678
+ # # Create a request. To set request fields, pass in keyword arguments.
1679
+ # request = Google::Cloud::Notebooks::V1beta1::ListEnvironmentsRequest.new
1680
+ #
1681
+ # # Call the list_environments method.
1682
+ # result = client.list_environments request
1683
+ #
1684
+ # # The returned object is of type Gapic::PagedEnumerable. You can
1685
+ # # iterate over all elements by calling #each, and the enumerable
1686
+ # # will lazily make API calls to fetch subsequent pages. Other
1687
+ # # methods are also available for managing paging directly.
1688
+ # result.each do |response|
1689
+ # # Each element is of type ::Google::Cloud::Notebooks::V1beta1::Environment.
1690
+ # p response
1691
+ # end
1692
+ #
1327
1693
  def list_environments request, options = nil
1328
1694
  raise ::ArgumentError, "request must be provided" if request.nil?
1329
1695
 
@@ -1341,9 +1707,11 @@ module Google
1341
1707
  gapic_version: ::Google::Cloud::Notebooks::V1beta1::VERSION
1342
1708
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1343
1709
 
1344
- header_params = {
1345
- "parent" => request.parent
1346
- }
1710
+ header_params = {}
1711
+ if request.parent
1712
+ header_params["parent"] = request.parent
1713
+ end
1714
+
1347
1715
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
1348
1716
  metadata[:"x-goog-request-params"] ||= request_params_header
1349
1717
 
@@ -1394,6 +1762,21 @@ module Google
1394
1762
  #
1395
1763
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
1396
1764
  #
1765
+ # @example Basic example
1766
+ # require "google/cloud/notebooks/v1beta1"
1767
+ #
1768
+ # # Create a client object. The client can be reused for multiple calls.
1769
+ # client = Google::Cloud::Notebooks::V1beta1::NotebookService::Client.new
1770
+ #
1771
+ # # Create a request. To set request fields, pass in keyword arguments.
1772
+ # request = Google::Cloud::Notebooks::V1beta1::GetEnvironmentRequest.new
1773
+ #
1774
+ # # Call the get_environment method.
1775
+ # result = client.get_environment request
1776
+ #
1777
+ # # The returned object is of type Google::Cloud::Notebooks::V1beta1::Environment.
1778
+ # p result
1779
+ #
1397
1780
  def get_environment request, options = nil
1398
1781
  raise ::ArgumentError, "request must be provided" if request.nil?
1399
1782
 
@@ -1411,9 +1794,11 @@ module Google
1411
1794
  gapic_version: ::Google::Cloud::Notebooks::V1beta1::VERSION
1412
1795
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1413
1796
 
1414
- header_params = {
1415
- "name" => request.name
1416
- }
1797
+ header_params = {}
1798
+ if request.name
1799
+ header_params["name"] = request.name
1800
+ end
1801
+
1417
1802
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
1418
1803
  metadata[:"x-goog-request-params"] ||= request_params_header
1419
1804
 
@@ -1469,6 +1854,28 @@ module Google
1469
1854
  #
1470
1855
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
1471
1856
  #
1857
+ # @example Basic example
1858
+ # require "google/cloud/notebooks/v1beta1"
1859
+ #
1860
+ # # Create a client object. The client can be reused for multiple calls.
1861
+ # client = Google::Cloud::Notebooks::V1beta1::NotebookService::Client.new
1862
+ #
1863
+ # # Create a request. To set request fields, pass in keyword arguments.
1864
+ # request = Google::Cloud::Notebooks::V1beta1::CreateEnvironmentRequest.new
1865
+ #
1866
+ # # Call the create_environment method.
1867
+ # result = client.create_environment request
1868
+ #
1869
+ # # The returned object is of type Gapic::Operation. You can use this
1870
+ # # object to check the status of an operation, cancel it, or wait
1871
+ # # for results. Here is how to block until completion:
1872
+ # result.wait_until_done! timeout: 60
1873
+ # if result.response?
1874
+ # p result.response
1875
+ # else
1876
+ # puts "Error!"
1877
+ # end
1878
+ #
1472
1879
  def create_environment request, options = nil
1473
1880
  raise ::ArgumentError, "request must be provided" if request.nil?
1474
1881
 
@@ -1486,9 +1893,11 @@ module Google
1486
1893
  gapic_version: ::Google::Cloud::Notebooks::V1beta1::VERSION
1487
1894
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1488
1895
 
1489
- header_params = {
1490
- "parent" => request.parent
1491
- }
1896
+ header_params = {}
1897
+ if request.parent
1898
+ header_params["parent"] = request.parent
1899
+ end
1900
+
1492
1901
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
1493
1902
  metadata[:"x-goog-request-params"] ||= request_params_header
1494
1903
 
@@ -1539,6 +1948,28 @@ module Google
1539
1948
  #
1540
1949
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
1541
1950
  #
1951
+ # @example Basic example
1952
+ # require "google/cloud/notebooks/v1beta1"
1953
+ #
1954
+ # # Create a client object. The client can be reused for multiple calls.
1955
+ # client = Google::Cloud::Notebooks::V1beta1::NotebookService::Client.new
1956
+ #
1957
+ # # Create a request. To set request fields, pass in keyword arguments.
1958
+ # request = Google::Cloud::Notebooks::V1beta1::DeleteEnvironmentRequest.new
1959
+ #
1960
+ # # Call the delete_environment method.
1961
+ # result = client.delete_environment request
1962
+ #
1963
+ # # The returned object is of type Gapic::Operation. You can use this
1964
+ # # object to check the status of an operation, cancel it, or wait
1965
+ # # for results. Here is how to block until completion:
1966
+ # result.wait_until_done! timeout: 60
1967
+ # if result.response?
1968
+ # p result.response
1969
+ # else
1970
+ # puts "Error!"
1971
+ # end
1972
+ #
1542
1973
  def delete_environment request, options = nil
1543
1974
  raise ::ArgumentError, "request must be provided" if request.nil?
1544
1975
 
@@ -1556,9 +1987,11 @@ module Google
1556
1987
  gapic_version: ::Google::Cloud::Notebooks::V1beta1::VERSION
1557
1988
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1558
1989
 
1559
- header_params = {
1560
- "name" => request.name
1561
- }
1990
+ header_params = {}
1991
+ if request.name
1992
+ header_params["name"] = request.name
1993
+ end
1994
+
1562
1995
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
1563
1996
  metadata[:"x-goog-request-params"] ||= request_params_header
1564
1997
 
@@ -143,6 +143,27 @@ module Google
143
143
  #
144
144
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
145
145
  #
146
+ # @example Basic example
147
+ # require "google/longrunning"
148
+ #
149
+ # # Create a client object. The client can be reused for multiple calls.
150
+ # client = Google::Longrunning::Operations::Client.new
151
+ #
152
+ # # Create a request. To set request fields, pass in keyword arguments.
153
+ # request = Google::Longrunning::ListOperationsRequest.new
154
+ #
155
+ # # Call the list_operations method.
156
+ # result = client.list_operations request
157
+ #
158
+ # # The returned object is of type Gapic::PagedEnumerable. You can
159
+ # # iterate over all elements by calling #each, and the enumerable
160
+ # # will lazily make API calls to fetch subsequent pages. Other
161
+ # # methods are also available for managing paging directly.
162
+ # result.each do |response|
163
+ # # Each element is of type ::Google::Longrunning::Operation.
164
+ # p response
165
+ # end
166
+ #
146
167
  def list_operations request, options = nil
147
168
  raise ::ArgumentError, "request must be provided" if request.nil?
148
169
 
@@ -160,9 +181,11 @@ module Google
160
181
  gapic_version: ::Google::Cloud::Notebooks::V1beta1::VERSION
161
182
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
162
183
 
163
- header_params = {
164
- "name" => request.name
165
- }
184
+ header_params = {}
185
+ if request.name
186
+ header_params["name"] = request.name
187
+ end
188
+
166
189
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
167
190
  metadata[:"x-goog-request-params"] ||= request_params_header
168
191
 
@@ -215,6 +238,28 @@ module Google
215
238
  #
216
239
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
217
240
  #
241
+ # @example Basic example
242
+ # require "google/longrunning"
243
+ #
244
+ # # Create a client object. The client can be reused for multiple calls.
245
+ # client = Google::Longrunning::Operations::Client.new
246
+ #
247
+ # # Create a request. To set request fields, pass in keyword arguments.
248
+ # request = Google::Longrunning::GetOperationRequest.new
249
+ #
250
+ # # Call the get_operation method.
251
+ # result = client.get_operation request
252
+ #
253
+ # # The returned object is of type Gapic::Operation. You can use this
254
+ # # object to check the status of an operation, cancel it, or wait
255
+ # # for results. Here is how to block until completion:
256
+ # result.wait_until_done! timeout: 60
257
+ # if result.response?
258
+ # p result.response
259
+ # else
260
+ # puts "Error!"
261
+ # end
262
+ #
218
263
  def get_operation request, options = nil
219
264
  raise ::ArgumentError, "request must be provided" if request.nil?
220
265
 
@@ -232,9 +277,11 @@ module Google
232
277
  gapic_version: ::Google::Cloud::Notebooks::V1beta1::VERSION
233
278
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
234
279
 
235
- header_params = {
236
- "name" => request.name
237
- }
280
+ header_params = {}
281
+ if request.name
282
+ header_params["name"] = request.name
283
+ end
284
+
238
285
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
239
286
  metadata[:"x-goog-request-params"] ||= request_params_header
240
287
 
@@ -287,6 +334,21 @@ module Google
287
334
  #
288
335
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
289
336
  #
337
+ # @example Basic example
338
+ # require "google/longrunning"
339
+ #
340
+ # # Create a client object. The client can be reused for multiple calls.
341
+ # client = Google::Longrunning::Operations::Client.new
342
+ #
343
+ # # Create a request. To set request fields, pass in keyword arguments.
344
+ # request = Google::Longrunning::DeleteOperationRequest.new
345
+ #
346
+ # # Call the delete_operation method.
347
+ # result = client.delete_operation request
348
+ #
349
+ # # The returned object is of type Google::Protobuf::Empty.
350
+ # p result
351
+ #
290
352
  def delete_operation request, options = nil
291
353
  raise ::ArgumentError, "request must be provided" if request.nil?
292
354
 
@@ -304,9 +366,11 @@ module Google
304
366
  gapic_version: ::Google::Cloud::Notebooks::V1beta1::VERSION
305
367
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
306
368
 
307
- header_params = {
308
- "name" => request.name
309
- }
369
+ header_params = {}
370
+ if request.name
371
+ header_params["name"] = request.name
372
+ end
373
+
310
374
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
311
375
  metadata[:"x-goog-request-params"] ||= request_params_header
312
376
 
@@ -364,6 +428,21 @@ module Google
364
428
  #
365
429
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
366
430
  #
431
+ # @example Basic example
432
+ # require "google/longrunning"
433
+ #
434
+ # # Create a client object. The client can be reused for multiple calls.
435
+ # client = Google::Longrunning::Operations::Client.new
436
+ #
437
+ # # Create a request. To set request fields, pass in keyword arguments.
438
+ # request = Google::Longrunning::CancelOperationRequest.new
439
+ #
440
+ # # Call the cancel_operation method.
441
+ # result = client.cancel_operation request
442
+ #
443
+ # # The returned object is of type Google::Protobuf::Empty.
444
+ # p result
445
+ #
367
446
  def cancel_operation request, options = nil
368
447
  raise ::ArgumentError, "request must be provided" if request.nil?
369
448
 
@@ -381,9 +460,11 @@ module Google
381
460
  gapic_version: ::Google::Cloud::Notebooks::V1beta1::VERSION
382
461
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
383
462
 
384
- header_params = {
385
- "name" => request.name
386
- }
463
+ header_params = {}
464
+ if request.name
465
+ header_params["name"] = request.name
466
+ end
467
+
387
468
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
388
469
  metadata[:"x-goog-request-params"] ||= request_params_header
389
470
 
@@ -444,6 +525,28 @@ module Google
444
525
  #
445
526
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
446
527
  #
528
+ # @example Basic example
529
+ # require "google/longrunning"
530
+ #
531
+ # # Create a client object. The client can be reused for multiple calls.
532
+ # client = Google::Longrunning::Operations::Client.new
533
+ #
534
+ # # Create a request. To set request fields, pass in keyword arguments.
535
+ # request = Google::Longrunning::WaitOperationRequest.new
536
+ #
537
+ # # Call the wait_operation method.
538
+ # result = client.wait_operation request
539
+ #
540
+ # # The returned object is of type Gapic::Operation. You can use this
541
+ # # object to check the status of an operation, cancel it, or wait
542
+ # # for results. Here is how to block until completion:
543
+ # result.wait_until_done! timeout: 60
544
+ # if result.response?
545
+ # p result.response
546
+ # else
547
+ # puts "Error!"
548
+ # end
549
+ #
447
550
  def wait_operation request, options = nil
448
551
  raise ::ArgumentError, "request must be provided" if request.nil?
449
552
 
@@ -1,8 +1,6 @@
1
1
  # Generated by the protocol buffer compiler. DO NOT EDIT!
2
2
  # source: google/cloud/notebooks/v1beta1/service.proto
3
3
 
4
- require 'google/protobuf'
5
-
6
4
  require 'google/api/annotations_pb'
7
5
  require 'google/api/field_behavior_pb'
8
6
  require 'google/cloud/notebooks/v1beta1/environment_pb'
@@ -10,6 +8,8 @@ require 'google/cloud/notebooks/v1beta1/instance_pb'
10
8
  require 'google/longrunning/operations_pb'
11
9
  require 'google/protobuf/timestamp_pb'
12
10
  require 'google/api/client_pb'
11
+ require 'google/protobuf'
12
+
13
13
  Google::Protobuf::DescriptorPool.generated_pool.build do
14
14
  add_file("google/cloud/notebooks/v1beta1/service.proto", :syntax => :proto3) do
15
15
  add_message "google.cloud.notebooks.v1beta1.OperationMetadata" do
@@ -27,7 +27,7 @@ module Google
27
27
  # API v1beta1 service for Cloud AI Platform Notebooks.
28
28
  class Service
29
29
 
30
- include GRPC::GenericService
30
+ include ::GRPC::GenericService
31
31
 
32
32
  self.marshal_class_method = :encode
33
33
  self.unmarshal_class_method = :decode
@@ -21,7 +21,7 @@ module Google
21
21
  module Cloud
22
22
  module Notebooks
23
23
  module V1beta1
24
- VERSION = "0.4.3"
24
+ VERSION = "0.4.4"
25
25
  end
26
26
  end
27
27
  end
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.3
4
+ version: 0.4.4
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-08-11 00:00:00.000000000 Z
11
+ date: 2021-11-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: gapic-common