google-cloud-video-live_stream-v1 0.6.0 → 0.7.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/google/cloud/video/live_stream/v1/livestream_service/client.rb +10 -1
- data/lib/google/cloud/video/live_stream/v1/livestream_service/operations.rb +10 -1
- data/lib/google/cloud/video/live_stream/v1/livestream_service/rest/client.rb +445 -0
- data/lib/google/cloud/video/live_stream/v1/livestream_service/rest/operations.rb +75 -0
- data/lib/google/cloud/video/live_stream/v1/version.rb +1 -1
- data/proto_docs/google/api/field_behavior.rb +14 -0
- metadata +5 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ef90bafd508c2821f5e2898709fd349a8860a26298c9d9b66886b8daa1cff480
|
4
|
+
data.tar.gz: 40ffdb6cbb4a2876474151e384aadfb273393e20d69253bc6a372cc1945b1a8a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 82b31e4f6b2d90acf5c104ca8b27f9dff35312038267c3dc70d2ebf41264c7ba818c2fa233652b427cf16f74081b91db52f1d5c8287f82a444a07aabfe956336
|
7
|
+
data.tar.gz: 7f8edc9c04ebb81e6538be51cb34d422ed53e46601514b9421ec17f6dbfc887f9df37d988d0dd853b82f06baae9146c2f7c86464cee6da733c43fc97cccc08ed
|
@@ -206,7 +206,8 @@ module Google
|
|
206
206
|
credentials: credentials,
|
207
207
|
endpoint: @config.endpoint,
|
208
208
|
channel_args: @config.channel_args,
|
209
|
-
interceptors: @config.interceptors
|
209
|
+
interceptors: @config.interceptors,
|
210
|
+
channel_pool_config: @config.channel_pool
|
210
211
|
)
|
211
212
|
end
|
212
213
|
|
@@ -2647,6 +2648,14 @@ module Google
|
|
2647
2648
|
end
|
2648
2649
|
end
|
2649
2650
|
|
2651
|
+
##
|
2652
|
+
# Configuration for the channel pool
|
2653
|
+
# @return [::Gapic::ServiceStub::ChannelPool::Configuration]
|
2654
|
+
#
|
2655
|
+
def channel_pool
|
2656
|
+
@channel_pool ||= ::Gapic::ServiceStub::ChannelPool::Configuration.new
|
2657
|
+
end
|
2658
|
+
|
2650
2659
|
##
|
2651
2660
|
# Configuration RPC class for the LivestreamService API.
|
2652
2661
|
#
|
@@ -94,7 +94,8 @@ module Google
|
|
94
94
|
credentials: credentials,
|
95
95
|
endpoint: @config.endpoint,
|
96
96
|
channel_args: @config.channel_args,
|
97
|
-
interceptors: @config.interceptors
|
97
|
+
interceptors: @config.interceptors,
|
98
|
+
channel_pool_config: @config.channel_pool
|
98
99
|
)
|
99
100
|
|
100
101
|
# Used by an LRO wrapper for some methods of this service
|
@@ -702,6 +703,14 @@ module Google
|
|
702
703
|
end
|
703
704
|
end
|
704
705
|
|
706
|
+
##
|
707
|
+
# Configuration for the channel pool
|
708
|
+
# @return [::Gapic::ServiceStub::ChannelPool::Configuration]
|
709
|
+
#
|
710
|
+
def channel_pool
|
711
|
+
@channel_pool ||= ::Gapic::ServiceStub::ChannelPool::Configuration.new
|
712
|
+
end
|
713
|
+
|
705
714
|
##
|
706
715
|
# Configuration RPC class for the Operations API.
|
707
716
|
#
|
@@ -267,6 +267,29 @@ module Google
|
|
267
267
|
# @return [::Gapic::Operation]
|
268
268
|
#
|
269
269
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
270
|
+
#
|
271
|
+
# @example Basic example
|
272
|
+
# require "google/cloud/video/live_stream/v1"
|
273
|
+
#
|
274
|
+
# # Create a client object. The client can be reused for multiple calls.
|
275
|
+
# client = Google::Cloud::Video::LiveStream::V1::LivestreamService::Rest::Client.new
|
276
|
+
#
|
277
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
278
|
+
# request = Google::Cloud::Video::LiveStream::V1::CreateChannelRequest.new
|
279
|
+
#
|
280
|
+
# # Call the create_channel method.
|
281
|
+
# result = client.create_channel request
|
282
|
+
#
|
283
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
284
|
+
# # check the status of an operation, cancel it, or wait for results.
|
285
|
+
# # Here is how to wait for a response.
|
286
|
+
# result.wait_until_done! timeout: 60
|
287
|
+
# if result.response?
|
288
|
+
# p result.response
|
289
|
+
# else
|
290
|
+
# puts "No response received."
|
291
|
+
# end
|
292
|
+
#
|
270
293
|
def create_channel request, options = nil
|
271
294
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
272
295
|
|
@@ -344,6 +367,26 @@ module Google
|
|
344
367
|
# @return [::Google::Cloud::Video::LiveStream::V1::ListChannelsResponse]
|
345
368
|
#
|
346
369
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
370
|
+
#
|
371
|
+
# @example Basic example
|
372
|
+
# require "google/cloud/video/live_stream/v1"
|
373
|
+
#
|
374
|
+
# # Create a client object. The client can be reused for multiple calls.
|
375
|
+
# client = Google::Cloud::Video::LiveStream::V1::LivestreamService::Rest::Client.new
|
376
|
+
#
|
377
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
378
|
+
# request = Google::Cloud::Video::LiveStream::V1::ListChannelsRequest.new
|
379
|
+
#
|
380
|
+
# # Call the list_channels method.
|
381
|
+
# result = client.list_channels request
|
382
|
+
#
|
383
|
+
# # The returned object is of type Gapic::PagedEnumerable. You can iterate
|
384
|
+
# # over elements, and API calls will be issued to fetch pages as needed.
|
385
|
+
# result.each do |item|
|
386
|
+
# # Each element is of type ::Google::Cloud::Video::LiveStream::V1::Channel.
|
387
|
+
# p item
|
388
|
+
# end
|
389
|
+
#
|
347
390
|
def list_channels request, options = nil
|
348
391
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
349
392
|
|
@@ -407,6 +450,22 @@ module Google
|
|
407
450
|
# @return [::Google::Cloud::Video::LiveStream::V1::Channel]
|
408
451
|
#
|
409
452
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
453
|
+
#
|
454
|
+
# @example Basic example
|
455
|
+
# require "google/cloud/video/live_stream/v1"
|
456
|
+
#
|
457
|
+
# # Create a client object. The client can be reused for multiple calls.
|
458
|
+
# client = Google::Cloud::Video::LiveStream::V1::LivestreamService::Rest::Client.new
|
459
|
+
#
|
460
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
461
|
+
# request = Google::Cloud::Video::LiveStream::V1::GetChannelRequest.new
|
462
|
+
#
|
463
|
+
# # Call the get_channel method.
|
464
|
+
# result = client.get_channel request
|
465
|
+
#
|
466
|
+
# # The returned object is of type Google::Cloud::Video::LiveStream::V1::Channel.
|
467
|
+
# p result
|
468
|
+
#
|
410
469
|
def get_channel request, options = nil
|
411
470
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
412
471
|
|
@@ -489,6 +548,29 @@ module Google
|
|
489
548
|
# @return [::Gapic::Operation]
|
490
549
|
#
|
491
550
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
551
|
+
#
|
552
|
+
# @example Basic example
|
553
|
+
# require "google/cloud/video/live_stream/v1"
|
554
|
+
#
|
555
|
+
# # Create a client object. The client can be reused for multiple calls.
|
556
|
+
# client = Google::Cloud::Video::LiveStream::V1::LivestreamService::Rest::Client.new
|
557
|
+
#
|
558
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
559
|
+
# request = Google::Cloud::Video::LiveStream::V1::DeleteChannelRequest.new
|
560
|
+
#
|
561
|
+
# # Call the delete_channel method.
|
562
|
+
# result = client.delete_channel request
|
563
|
+
#
|
564
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
565
|
+
# # check the status of an operation, cancel it, or wait for results.
|
566
|
+
# # Here is how to wait for a response.
|
567
|
+
# result.wait_until_done! timeout: 60
|
568
|
+
# if result.response?
|
569
|
+
# p result.response
|
570
|
+
# else
|
571
|
+
# puts "No response received."
|
572
|
+
# end
|
573
|
+
#
|
492
574
|
def delete_channel request, options = nil
|
493
575
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
494
576
|
|
@@ -587,6 +669,29 @@ module Google
|
|
587
669
|
# @return [::Gapic::Operation]
|
588
670
|
#
|
589
671
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
672
|
+
#
|
673
|
+
# @example Basic example
|
674
|
+
# require "google/cloud/video/live_stream/v1"
|
675
|
+
#
|
676
|
+
# # Create a client object. The client can be reused for multiple calls.
|
677
|
+
# client = Google::Cloud::Video::LiveStream::V1::LivestreamService::Rest::Client.new
|
678
|
+
#
|
679
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
680
|
+
# request = Google::Cloud::Video::LiveStream::V1::UpdateChannelRequest.new
|
681
|
+
#
|
682
|
+
# # Call the update_channel method.
|
683
|
+
# result = client.update_channel request
|
684
|
+
#
|
685
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
686
|
+
# # check the status of an operation, cancel it, or wait for results.
|
687
|
+
# # Here is how to wait for a response.
|
688
|
+
# result.wait_until_done! timeout: 60
|
689
|
+
# if result.response?
|
690
|
+
# p result.response
|
691
|
+
# else
|
692
|
+
# puts "No response received."
|
693
|
+
# end
|
694
|
+
#
|
590
695
|
def update_channel request, options = nil
|
591
696
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
592
697
|
|
@@ -666,6 +771,29 @@ module Google
|
|
666
771
|
# @return [::Gapic::Operation]
|
667
772
|
#
|
668
773
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
774
|
+
#
|
775
|
+
# @example Basic example
|
776
|
+
# require "google/cloud/video/live_stream/v1"
|
777
|
+
#
|
778
|
+
# # Create a client object. The client can be reused for multiple calls.
|
779
|
+
# client = Google::Cloud::Video::LiveStream::V1::LivestreamService::Rest::Client.new
|
780
|
+
#
|
781
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
782
|
+
# request = Google::Cloud::Video::LiveStream::V1::StartChannelRequest.new
|
783
|
+
#
|
784
|
+
# # Call the start_channel method.
|
785
|
+
# result = client.start_channel request
|
786
|
+
#
|
787
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
788
|
+
# # check the status of an operation, cancel it, or wait for results.
|
789
|
+
# # Here is how to wait for a response.
|
790
|
+
# result.wait_until_done! timeout: 60
|
791
|
+
# if result.response?
|
792
|
+
# p result.response
|
793
|
+
# else
|
794
|
+
# puts "No response received."
|
795
|
+
# end
|
796
|
+
#
|
669
797
|
def start_channel request, options = nil
|
670
798
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
671
799
|
|
@@ -745,6 +873,29 @@ module Google
|
|
745
873
|
# @return [::Gapic::Operation]
|
746
874
|
#
|
747
875
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
876
|
+
#
|
877
|
+
# @example Basic example
|
878
|
+
# require "google/cloud/video/live_stream/v1"
|
879
|
+
#
|
880
|
+
# # Create a client object. The client can be reused for multiple calls.
|
881
|
+
# client = Google::Cloud::Video::LiveStream::V1::LivestreamService::Rest::Client.new
|
882
|
+
#
|
883
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
884
|
+
# request = Google::Cloud::Video::LiveStream::V1::StopChannelRequest.new
|
885
|
+
#
|
886
|
+
# # Call the stop_channel method.
|
887
|
+
# result = client.stop_channel request
|
888
|
+
#
|
889
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
890
|
+
# # check the status of an operation, cancel it, or wait for results.
|
891
|
+
# # Here is how to wait for a response.
|
892
|
+
# result.wait_until_done! timeout: 60
|
893
|
+
# if result.response?
|
894
|
+
# p result.response
|
895
|
+
# else
|
896
|
+
# puts "No response received."
|
897
|
+
# end
|
898
|
+
#
|
748
899
|
def stop_channel request, options = nil
|
749
900
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
750
901
|
|
@@ -829,6 +980,29 @@ module Google
|
|
829
980
|
# @return [::Gapic::Operation]
|
830
981
|
#
|
831
982
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
983
|
+
#
|
984
|
+
# @example Basic example
|
985
|
+
# require "google/cloud/video/live_stream/v1"
|
986
|
+
#
|
987
|
+
# # Create a client object. The client can be reused for multiple calls.
|
988
|
+
# client = Google::Cloud::Video::LiveStream::V1::LivestreamService::Rest::Client.new
|
989
|
+
#
|
990
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
991
|
+
# request = Google::Cloud::Video::LiveStream::V1::CreateInputRequest.new
|
992
|
+
#
|
993
|
+
# # Call the create_input method.
|
994
|
+
# result = client.create_input request
|
995
|
+
#
|
996
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
997
|
+
# # check the status of an operation, cancel it, or wait for results.
|
998
|
+
# # Here is how to wait for a response.
|
999
|
+
# result.wait_until_done! timeout: 60
|
1000
|
+
# if result.response?
|
1001
|
+
# p result.response
|
1002
|
+
# else
|
1003
|
+
# puts "No response received."
|
1004
|
+
# end
|
1005
|
+
#
|
832
1006
|
def create_input request, options = nil
|
833
1007
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
834
1008
|
|
@@ -906,6 +1080,26 @@ module Google
|
|
906
1080
|
# @return [::Google::Cloud::Video::LiveStream::V1::ListInputsResponse]
|
907
1081
|
#
|
908
1082
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
1083
|
+
#
|
1084
|
+
# @example Basic example
|
1085
|
+
# require "google/cloud/video/live_stream/v1"
|
1086
|
+
#
|
1087
|
+
# # Create a client object. The client can be reused for multiple calls.
|
1088
|
+
# client = Google::Cloud::Video::LiveStream::V1::LivestreamService::Rest::Client.new
|
1089
|
+
#
|
1090
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
1091
|
+
# request = Google::Cloud::Video::LiveStream::V1::ListInputsRequest.new
|
1092
|
+
#
|
1093
|
+
# # Call the list_inputs method.
|
1094
|
+
# result = client.list_inputs request
|
1095
|
+
#
|
1096
|
+
# # The returned object is of type Gapic::PagedEnumerable. You can iterate
|
1097
|
+
# # over elements, and API calls will be issued to fetch pages as needed.
|
1098
|
+
# result.each do |item|
|
1099
|
+
# # Each element is of type ::Google::Cloud::Video::LiveStream::V1::Input.
|
1100
|
+
# p item
|
1101
|
+
# end
|
1102
|
+
#
|
909
1103
|
def list_inputs request, options = nil
|
910
1104
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
911
1105
|
|
@@ -969,6 +1163,22 @@ module Google
|
|
969
1163
|
# @return [::Google::Cloud::Video::LiveStream::V1::Input]
|
970
1164
|
#
|
971
1165
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
1166
|
+
#
|
1167
|
+
# @example Basic example
|
1168
|
+
# require "google/cloud/video/live_stream/v1"
|
1169
|
+
#
|
1170
|
+
# # Create a client object. The client can be reused for multiple calls.
|
1171
|
+
# client = Google::Cloud::Video::LiveStream::V1::LivestreamService::Rest::Client.new
|
1172
|
+
#
|
1173
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
1174
|
+
# request = Google::Cloud::Video::LiveStream::V1::GetInputRequest.new
|
1175
|
+
#
|
1176
|
+
# # Call the get_input method.
|
1177
|
+
# result = client.get_input request
|
1178
|
+
#
|
1179
|
+
# # The returned object is of type Google::Cloud::Video::LiveStream::V1::Input.
|
1180
|
+
# p result
|
1181
|
+
#
|
972
1182
|
def get_input request, options = nil
|
973
1183
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
974
1184
|
|
@@ -1046,6 +1256,29 @@ module Google
|
|
1046
1256
|
# @return [::Gapic::Operation]
|
1047
1257
|
#
|
1048
1258
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
1259
|
+
#
|
1260
|
+
# @example Basic example
|
1261
|
+
# require "google/cloud/video/live_stream/v1"
|
1262
|
+
#
|
1263
|
+
# # Create a client object. The client can be reused for multiple calls.
|
1264
|
+
# client = Google::Cloud::Video::LiveStream::V1::LivestreamService::Rest::Client.new
|
1265
|
+
#
|
1266
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
1267
|
+
# request = Google::Cloud::Video::LiveStream::V1::DeleteInputRequest.new
|
1268
|
+
#
|
1269
|
+
# # Call the delete_input method.
|
1270
|
+
# result = client.delete_input request
|
1271
|
+
#
|
1272
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
1273
|
+
# # check the status of an operation, cancel it, or wait for results.
|
1274
|
+
# # Here is how to wait for a response.
|
1275
|
+
# result.wait_until_done! timeout: 60
|
1276
|
+
# if result.response?
|
1277
|
+
# p result.response
|
1278
|
+
# else
|
1279
|
+
# puts "No response received."
|
1280
|
+
# end
|
1281
|
+
#
|
1049
1282
|
def delete_input request, options = nil
|
1050
1283
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
1051
1284
|
|
@@ -1136,6 +1369,29 @@ module Google
|
|
1136
1369
|
# @return [::Gapic::Operation]
|
1137
1370
|
#
|
1138
1371
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
1372
|
+
#
|
1373
|
+
# @example Basic example
|
1374
|
+
# require "google/cloud/video/live_stream/v1"
|
1375
|
+
#
|
1376
|
+
# # Create a client object. The client can be reused for multiple calls.
|
1377
|
+
# client = Google::Cloud::Video::LiveStream::V1::LivestreamService::Rest::Client.new
|
1378
|
+
#
|
1379
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
1380
|
+
# request = Google::Cloud::Video::LiveStream::V1::UpdateInputRequest.new
|
1381
|
+
#
|
1382
|
+
# # Call the update_input method.
|
1383
|
+
# result = client.update_input request
|
1384
|
+
#
|
1385
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
1386
|
+
# # check the status of an operation, cancel it, or wait for results.
|
1387
|
+
# # Here is how to wait for a response.
|
1388
|
+
# result.wait_until_done! timeout: 60
|
1389
|
+
# if result.response?
|
1390
|
+
# p result.response
|
1391
|
+
# else
|
1392
|
+
# puts "No response received."
|
1393
|
+
# end
|
1394
|
+
#
|
1139
1395
|
def update_input request, options = nil
|
1140
1396
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
1141
1397
|
|
@@ -1220,6 +1476,22 @@ module Google
|
|
1220
1476
|
# @return [::Google::Cloud::Video::LiveStream::V1::Event]
|
1221
1477
|
#
|
1222
1478
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
1479
|
+
#
|
1480
|
+
# @example Basic example
|
1481
|
+
# require "google/cloud/video/live_stream/v1"
|
1482
|
+
#
|
1483
|
+
# # Create a client object. The client can be reused for multiple calls.
|
1484
|
+
# client = Google::Cloud::Video::LiveStream::V1::LivestreamService::Rest::Client.new
|
1485
|
+
#
|
1486
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
1487
|
+
# request = Google::Cloud::Video::LiveStream::V1::CreateEventRequest.new
|
1488
|
+
#
|
1489
|
+
# # Call the create_event method.
|
1490
|
+
# result = client.create_event request
|
1491
|
+
#
|
1492
|
+
# # The returned object is of type Google::Cloud::Video::LiveStream::V1::Event.
|
1493
|
+
# p result
|
1494
|
+
#
|
1223
1495
|
def create_event request, options = nil
|
1224
1496
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
1225
1497
|
|
@@ -1296,6 +1568,26 @@ module Google
|
|
1296
1568
|
# @return [::Google::Cloud::Video::LiveStream::V1::ListEventsResponse]
|
1297
1569
|
#
|
1298
1570
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
1571
|
+
#
|
1572
|
+
# @example Basic example
|
1573
|
+
# require "google/cloud/video/live_stream/v1"
|
1574
|
+
#
|
1575
|
+
# # Create a client object. The client can be reused for multiple calls.
|
1576
|
+
# client = Google::Cloud::Video::LiveStream::V1::LivestreamService::Rest::Client.new
|
1577
|
+
#
|
1578
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
1579
|
+
# request = Google::Cloud::Video::LiveStream::V1::ListEventsRequest.new
|
1580
|
+
#
|
1581
|
+
# # Call the list_events method.
|
1582
|
+
# result = client.list_events request
|
1583
|
+
#
|
1584
|
+
# # The returned object is of type Gapic::PagedEnumerable. You can iterate
|
1585
|
+
# # over elements, and API calls will be issued to fetch pages as needed.
|
1586
|
+
# result.each do |item|
|
1587
|
+
# # Each element is of type ::Google::Cloud::Video::LiveStream::V1::Event.
|
1588
|
+
# p item
|
1589
|
+
# end
|
1590
|
+
#
|
1299
1591
|
def list_events request, options = nil
|
1300
1592
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
1301
1593
|
|
@@ -1359,6 +1651,22 @@ module Google
|
|
1359
1651
|
# @return [::Google::Cloud::Video::LiveStream::V1::Event]
|
1360
1652
|
#
|
1361
1653
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
1654
|
+
#
|
1655
|
+
# @example Basic example
|
1656
|
+
# require "google/cloud/video/live_stream/v1"
|
1657
|
+
#
|
1658
|
+
# # Create a client object. The client can be reused for multiple calls.
|
1659
|
+
# client = Google::Cloud::Video::LiveStream::V1::LivestreamService::Rest::Client.new
|
1660
|
+
#
|
1661
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
1662
|
+
# request = Google::Cloud::Video::LiveStream::V1::GetEventRequest.new
|
1663
|
+
#
|
1664
|
+
# # Call the get_event method.
|
1665
|
+
# result = client.get_event request
|
1666
|
+
#
|
1667
|
+
# # The returned object is of type Google::Cloud::Video::LiveStream::V1::Event.
|
1668
|
+
# p result
|
1669
|
+
#
|
1362
1670
|
def get_event request, options = nil
|
1363
1671
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
1364
1672
|
|
@@ -1436,6 +1744,22 @@ module Google
|
|
1436
1744
|
# @return [::Google::Protobuf::Empty]
|
1437
1745
|
#
|
1438
1746
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
1747
|
+
#
|
1748
|
+
# @example Basic example
|
1749
|
+
# require "google/cloud/video/live_stream/v1"
|
1750
|
+
#
|
1751
|
+
# # Create a client object. The client can be reused for multiple calls.
|
1752
|
+
# client = Google::Cloud::Video::LiveStream::V1::LivestreamService::Rest::Client.new
|
1753
|
+
#
|
1754
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
1755
|
+
# request = Google::Cloud::Video::LiveStream::V1::DeleteEventRequest.new
|
1756
|
+
#
|
1757
|
+
# # Call the delete_event method.
|
1758
|
+
# result = client.delete_event request
|
1759
|
+
#
|
1760
|
+
# # The returned object is of type Google::Protobuf::Empty.
|
1761
|
+
# p result
|
1762
|
+
#
|
1439
1763
|
def delete_event request, options = nil
|
1440
1764
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
1441
1765
|
|
@@ -1520,6 +1844,29 @@ module Google
|
|
1520
1844
|
# @return [::Gapic::Operation]
|
1521
1845
|
#
|
1522
1846
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
1847
|
+
#
|
1848
|
+
# @example Basic example
|
1849
|
+
# require "google/cloud/video/live_stream/v1"
|
1850
|
+
#
|
1851
|
+
# # Create a client object. The client can be reused for multiple calls.
|
1852
|
+
# client = Google::Cloud::Video::LiveStream::V1::LivestreamService::Rest::Client.new
|
1853
|
+
#
|
1854
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
1855
|
+
# request = Google::Cloud::Video::LiveStream::V1::CreateAssetRequest.new
|
1856
|
+
#
|
1857
|
+
# # Call the create_asset method.
|
1858
|
+
# result = client.create_asset request
|
1859
|
+
#
|
1860
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
1861
|
+
# # check the status of an operation, cancel it, or wait for results.
|
1862
|
+
# # Here is how to wait for a response.
|
1863
|
+
# result.wait_until_done! timeout: 60
|
1864
|
+
# if result.response?
|
1865
|
+
# p result.response
|
1866
|
+
# else
|
1867
|
+
# puts "No response received."
|
1868
|
+
# end
|
1869
|
+
#
|
1523
1870
|
def create_asset request, options = nil
|
1524
1871
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
1525
1872
|
|
@@ -1598,6 +1945,29 @@ module Google
|
|
1598
1945
|
# @return [::Gapic::Operation]
|
1599
1946
|
#
|
1600
1947
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
1948
|
+
#
|
1949
|
+
# @example Basic example
|
1950
|
+
# require "google/cloud/video/live_stream/v1"
|
1951
|
+
#
|
1952
|
+
# # Create a client object. The client can be reused for multiple calls.
|
1953
|
+
# client = Google::Cloud::Video::LiveStream::V1::LivestreamService::Rest::Client.new
|
1954
|
+
#
|
1955
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
1956
|
+
# request = Google::Cloud::Video::LiveStream::V1::DeleteAssetRequest.new
|
1957
|
+
#
|
1958
|
+
# # Call the delete_asset method.
|
1959
|
+
# result = client.delete_asset request
|
1960
|
+
#
|
1961
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
1962
|
+
# # check the status of an operation, cancel it, or wait for results.
|
1963
|
+
# # Here is how to wait for a response.
|
1964
|
+
# result.wait_until_done! timeout: 60
|
1965
|
+
# if result.response?
|
1966
|
+
# p result.response
|
1967
|
+
# else
|
1968
|
+
# puts "No response received."
|
1969
|
+
# end
|
1970
|
+
#
|
1601
1971
|
def delete_asset request, options = nil
|
1602
1972
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
1603
1973
|
|
@@ -1662,6 +2032,22 @@ module Google
|
|
1662
2032
|
# @return [::Google::Cloud::Video::LiveStream::V1::Asset]
|
1663
2033
|
#
|
1664
2034
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
2035
|
+
#
|
2036
|
+
# @example Basic example
|
2037
|
+
# require "google/cloud/video/live_stream/v1"
|
2038
|
+
#
|
2039
|
+
# # Create a client object. The client can be reused for multiple calls.
|
2040
|
+
# client = Google::Cloud::Video::LiveStream::V1::LivestreamService::Rest::Client.new
|
2041
|
+
#
|
2042
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
2043
|
+
# request = Google::Cloud::Video::LiveStream::V1::GetAssetRequest.new
|
2044
|
+
#
|
2045
|
+
# # Call the get_asset method.
|
2046
|
+
# result = client.get_asset request
|
2047
|
+
#
|
2048
|
+
# # The returned object is of type Google::Cloud::Video::LiveStream::V1::Asset.
|
2049
|
+
# p result
|
2050
|
+
#
|
1665
2051
|
def get_asset request, options = nil
|
1666
2052
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
1667
2053
|
|
@@ -1734,6 +2120,26 @@ module Google
|
|
1734
2120
|
# @return [::Google::Cloud::Video::LiveStream::V1::ListAssetsResponse]
|
1735
2121
|
#
|
1736
2122
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
2123
|
+
#
|
2124
|
+
# @example Basic example
|
2125
|
+
# require "google/cloud/video/live_stream/v1"
|
2126
|
+
#
|
2127
|
+
# # Create a client object. The client can be reused for multiple calls.
|
2128
|
+
# client = Google::Cloud::Video::LiveStream::V1::LivestreamService::Rest::Client.new
|
2129
|
+
#
|
2130
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
2131
|
+
# request = Google::Cloud::Video::LiveStream::V1::ListAssetsRequest.new
|
2132
|
+
#
|
2133
|
+
# # Call the list_assets method.
|
2134
|
+
# result = client.list_assets request
|
2135
|
+
#
|
2136
|
+
# # The returned object is of type Gapic::PagedEnumerable. You can iterate
|
2137
|
+
# # over elements, and API calls will be issued to fetch pages as needed.
|
2138
|
+
# result.each do |item|
|
2139
|
+
# # Each element is of type ::Google::Cloud::Video::LiveStream::V1::Asset.
|
2140
|
+
# p item
|
2141
|
+
# end
|
2142
|
+
#
|
1737
2143
|
def list_assets request, options = nil
|
1738
2144
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
1739
2145
|
|
@@ -1797,6 +2203,22 @@ module Google
|
|
1797
2203
|
# @return [::Google::Cloud::Video::LiveStream::V1::Pool]
|
1798
2204
|
#
|
1799
2205
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
2206
|
+
#
|
2207
|
+
# @example Basic example
|
2208
|
+
# require "google/cloud/video/live_stream/v1"
|
2209
|
+
#
|
2210
|
+
# # Create a client object. The client can be reused for multiple calls.
|
2211
|
+
# client = Google::Cloud::Video::LiveStream::V1::LivestreamService::Rest::Client.new
|
2212
|
+
#
|
2213
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
2214
|
+
# request = Google::Cloud::Video::LiveStream::V1::GetPoolRequest.new
|
2215
|
+
#
|
2216
|
+
# # Call the get_pool method.
|
2217
|
+
# result = client.get_pool request
|
2218
|
+
#
|
2219
|
+
# # The returned object is of type Google::Cloud::Video::LiveStream::V1::Pool.
|
2220
|
+
# p result
|
2221
|
+
#
|
1800
2222
|
def get_pool request, options = nil
|
1801
2223
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
1802
2224
|
|
@@ -1881,6 +2303,29 @@ module Google
|
|
1881
2303
|
# @return [::Gapic::Operation]
|
1882
2304
|
#
|
1883
2305
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
2306
|
+
#
|
2307
|
+
# @example Basic example
|
2308
|
+
# require "google/cloud/video/live_stream/v1"
|
2309
|
+
#
|
2310
|
+
# # Create a client object. The client can be reused for multiple calls.
|
2311
|
+
# client = Google::Cloud::Video::LiveStream::V1::LivestreamService::Rest::Client.new
|
2312
|
+
#
|
2313
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
2314
|
+
# request = Google::Cloud::Video::LiveStream::V1::UpdatePoolRequest.new
|
2315
|
+
#
|
2316
|
+
# # Call the update_pool method.
|
2317
|
+
# result = client.update_pool request
|
2318
|
+
#
|
2319
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
2320
|
+
# # check the status of an operation, cancel it, or wait for results.
|
2321
|
+
# # Here is how to wait for a response.
|
2322
|
+
# result.wait_until_done! timeout: 60
|
2323
|
+
# if result.response?
|
2324
|
+
# p result.response
|
2325
|
+
# else
|
2326
|
+
# puts "No response received."
|
2327
|
+
# end
|
2328
|
+
#
|
1884
2329
|
def update_pool request, options = nil
|
1885
2330
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
1886
2331
|
|
@@ -137,6 +137,26 @@ module Google
|
|
137
137
|
# @return [::Gapic::Operation]
|
138
138
|
#
|
139
139
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
140
|
+
#
|
141
|
+
# @example Basic example
|
142
|
+
# require "google/longrunning"
|
143
|
+
#
|
144
|
+
# # Create a client object. The client can be reused for multiple calls.
|
145
|
+
# client = Google::Longrunning::Operations::Rest::Client.new
|
146
|
+
#
|
147
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
148
|
+
# request = Google::Longrunning::ListOperationsRequest.new
|
149
|
+
#
|
150
|
+
# # Call the list_operations method.
|
151
|
+
# result = client.list_operations request
|
152
|
+
#
|
153
|
+
# # The returned object is of type Gapic::PagedEnumerable. You can iterate
|
154
|
+
# # over elements, and API calls will be issued to fetch pages as needed.
|
155
|
+
# result.each do |item|
|
156
|
+
# # Each element is of type ::Google::Longrunning::Operation.
|
157
|
+
# p item
|
158
|
+
# end
|
159
|
+
#
|
140
160
|
def list_operations request, options = nil
|
141
161
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
142
162
|
|
@@ -202,6 +222,29 @@ module Google
|
|
202
222
|
# @return [::Gapic::Operation]
|
203
223
|
#
|
204
224
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
225
|
+
#
|
226
|
+
# @example Basic example
|
227
|
+
# require "google/longrunning"
|
228
|
+
#
|
229
|
+
# # Create a client object. The client can be reused for multiple calls.
|
230
|
+
# client = Google::Longrunning::Operations::Rest::Client.new
|
231
|
+
#
|
232
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
233
|
+
# request = Google::Longrunning::GetOperationRequest.new
|
234
|
+
#
|
235
|
+
# # Call the get_operation method.
|
236
|
+
# result = client.get_operation request
|
237
|
+
#
|
238
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
239
|
+
# # check the status of an operation, cancel it, or wait for results.
|
240
|
+
# # Here is how to wait for a response.
|
241
|
+
# result.wait_until_done! timeout: 60
|
242
|
+
# if result.response?
|
243
|
+
# p result.response
|
244
|
+
# else
|
245
|
+
# puts "No response received."
|
246
|
+
# end
|
247
|
+
#
|
205
248
|
def get_operation request, options = nil
|
206
249
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
207
250
|
|
@@ -268,6 +311,22 @@ module Google
|
|
268
311
|
# @return [::Google::Protobuf::Empty]
|
269
312
|
#
|
270
313
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
314
|
+
#
|
315
|
+
# @example Basic example
|
316
|
+
# require "google/longrunning"
|
317
|
+
#
|
318
|
+
# # Create a client object. The client can be reused for multiple calls.
|
319
|
+
# client = Google::Longrunning::Operations::Rest::Client.new
|
320
|
+
#
|
321
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
322
|
+
# request = Google::Longrunning::DeleteOperationRequest.new
|
323
|
+
#
|
324
|
+
# # Call the delete_operation method.
|
325
|
+
# result = client.delete_operation request
|
326
|
+
#
|
327
|
+
# # The returned object is of type Google::Protobuf::Empty.
|
328
|
+
# p result
|
329
|
+
#
|
271
330
|
def delete_operation request, options = nil
|
272
331
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
273
332
|
|
@@ -339,6 +398,22 @@ module Google
|
|
339
398
|
# @return [::Google::Protobuf::Empty]
|
340
399
|
#
|
341
400
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
401
|
+
#
|
402
|
+
# @example Basic example
|
403
|
+
# require "google/longrunning"
|
404
|
+
#
|
405
|
+
# # Create a client object. The client can be reused for multiple calls.
|
406
|
+
# client = Google::Longrunning::Operations::Rest::Client.new
|
407
|
+
#
|
408
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
409
|
+
# request = Google::Longrunning::CancelOperationRequest.new
|
410
|
+
#
|
411
|
+
# # Call the cancel_operation method.
|
412
|
+
# result = client.cancel_operation request
|
413
|
+
#
|
414
|
+
# # The returned object is of type Google::Protobuf::Empty.
|
415
|
+
# p result
|
416
|
+
#
|
342
417
|
def cancel_operation request, options = nil
|
343
418
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
344
419
|
|
@@ -66,6 +66,20 @@ module Google
|
|
66
66
|
# a non-empty value will be returned. The user will not be aware of what
|
67
67
|
# non-empty value to expect.
|
68
68
|
NON_EMPTY_DEFAULT = 7
|
69
|
+
|
70
|
+
# Denotes that the field in a resource (a message annotated with
|
71
|
+
# google.api.resource) is used in the resource name to uniquely identify the
|
72
|
+
# resource. For AIP-compliant APIs, this should only be applied to the
|
73
|
+
# `name` field on the resource.
|
74
|
+
#
|
75
|
+
# This behavior should not be applied to references to other resources within
|
76
|
+
# the message.
|
77
|
+
#
|
78
|
+
# The identifier field of resources often have different field behavior
|
79
|
+
# depending on the request it is embedded in (e.g. for Create methods name
|
80
|
+
# is optional and unused, while for Update methods it is required). Instead
|
81
|
+
# of method-specific annotations, only `IDENTIFIER` is required.
|
82
|
+
IDENTIFIER = 8
|
69
83
|
end
|
70
84
|
end
|
71
85
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: google-cloud-video-live_stream-v1
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.7.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
|
@@ -244,7 +244,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
244
244
|
- !ruby/object:Gem::Version
|
245
245
|
version: '0'
|
246
246
|
requirements: []
|
247
|
-
rubygems_version: 3.4.
|
247
|
+
rubygems_version: 3.4.19
|
248
248
|
signing_key:
|
249
249
|
specification_version: 4
|
250
250
|
summary: API Client library for the Live Stream V1 API
|