google-cloud-video-live_stream-v1 0.6.0 → 0.8.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/AUTHENTICATION.md +72 -99
- data/lib/google/cloud/video/live_stream/v1/livestream_service/client.rb +43 -9
- data/lib/google/cloud/video/live_stream/v1/livestream_service/operations.rb +38 -7
- data/lib/google/cloud/video/live_stream/v1/livestream_service/rest/client.rb +480 -7
- data/lib/google/cloud/video/live_stream/v1/livestream_service/rest/operations.rb +108 -8
- data/lib/google/cloud/video/live_stream/v1/livestream_service/rest/service_stub.rb +14 -2
- data/lib/google/cloud/video/live_stream/v1/version.rb +1 -1
- data/proto_docs/google/api/client.rb +14 -0
- data/proto_docs/google/api/field_behavior.rb +14 -0
- metadata +7 -7
@@ -38,6 +38,9 @@ module Google
|
|
38
38
|
# Protocol (RTMP) and Secure Reliable Transport (SRT).
|
39
39
|
#
|
40
40
|
class Client
|
41
|
+
# @private
|
42
|
+
DEFAULT_ENDPOINT_TEMPLATE = "livestream.$UNIVERSE_DOMAIN$"
|
43
|
+
|
41
44
|
include Paths
|
42
45
|
|
43
46
|
# @private
|
@@ -148,6 +151,15 @@ module Google
|
|
148
151
|
@config
|
149
152
|
end
|
150
153
|
|
154
|
+
##
|
155
|
+
# The effective universe domain
|
156
|
+
#
|
157
|
+
# @return [String]
|
158
|
+
#
|
159
|
+
def universe_domain
|
160
|
+
@livestream_service_stub.universe_domain
|
161
|
+
end
|
162
|
+
|
151
163
|
##
|
152
164
|
# Create a new LivestreamService REST client object.
|
153
165
|
#
|
@@ -175,8 +187,9 @@ module Google
|
|
175
187
|
credentials = @config.credentials
|
176
188
|
# Use self-signed JWT if the endpoint is unchanged from default,
|
177
189
|
# but only if the default endpoint does not have a region prefix.
|
178
|
-
enable_self_signed_jwt = @config.endpoint
|
179
|
-
|
190
|
+
enable_self_signed_jwt = @config.endpoint.nil? ||
|
191
|
+
(@config.endpoint == Configuration::DEFAULT_ENDPOINT &&
|
192
|
+
!@config.endpoint.split(".").first.include?("-"))
|
180
193
|
credentials ||= Credentials.default scope: @config.scope,
|
181
194
|
enable_self_signed_jwt: enable_self_signed_jwt
|
182
195
|
if credentials.is_a?(::String) || credentials.is_a?(::Hash)
|
@@ -190,16 +203,23 @@ module Google
|
|
190
203
|
config.credentials = credentials
|
191
204
|
config.quota_project = @quota_project_id
|
192
205
|
config.endpoint = @config.endpoint
|
206
|
+
config.universe_domain = @config.universe_domain
|
193
207
|
end
|
194
208
|
|
195
209
|
@location_client = Google::Cloud::Location::Locations::Rest::Client.new do |config|
|
196
210
|
config.credentials = credentials
|
197
211
|
config.quota_project = @quota_project_id
|
198
212
|
config.endpoint = @config.endpoint
|
213
|
+
config.universe_domain = @config.universe_domain
|
199
214
|
config.bindings_override = @config.bindings_override
|
200
215
|
end
|
201
216
|
|
202
|
-
@livestream_service_stub = ::Google::Cloud::Video::LiveStream::V1::LivestreamService::Rest::ServiceStub.new
|
217
|
+
@livestream_service_stub = ::Google::Cloud::Video::LiveStream::V1::LivestreamService::Rest::ServiceStub.new(
|
218
|
+
endpoint: @config.endpoint,
|
219
|
+
endpoint_template: DEFAULT_ENDPOINT_TEMPLATE,
|
220
|
+
universe_domain: @config.universe_domain,
|
221
|
+
credentials: credentials
|
222
|
+
)
|
203
223
|
end
|
204
224
|
|
205
225
|
##
|
@@ -267,6 +287,29 @@ module Google
|
|
267
287
|
# @return [::Gapic::Operation]
|
268
288
|
#
|
269
289
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
290
|
+
#
|
291
|
+
# @example Basic example
|
292
|
+
# require "google/cloud/video/live_stream/v1"
|
293
|
+
#
|
294
|
+
# # Create a client object. The client can be reused for multiple calls.
|
295
|
+
# client = Google::Cloud::Video::LiveStream::V1::LivestreamService::Rest::Client.new
|
296
|
+
#
|
297
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
298
|
+
# request = Google::Cloud::Video::LiveStream::V1::CreateChannelRequest.new
|
299
|
+
#
|
300
|
+
# # Call the create_channel method.
|
301
|
+
# result = client.create_channel request
|
302
|
+
#
|
303
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
304
|
+
# # check the status of an operation, cancel it, or wait for results.
|
305
|
+
# # Here is how to wait for a response.
|
306
|
+
# result.wait_until_done! timeout: 60
|
307
|
+
# if result.response?
|
308
|
+
# p result.response
|
309
|
+
# else
|
310
|
+
# puts "No response received."
|
311
|
+
# end
|
312
|
+
#
|
270
313
|
def create_channel request, options = nil
|
271
314
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
272
315
|
|
@@ -344,6 +387,26 @@ module Google
|
|
344
387
|
# @return [::Google::Cloud::Video::LiveStream::V1::ListChannelsResponse]
|
345
388
|
#
|
346
389
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
390
|
+
#
|
391
|
+
# @example Basic example
|
392
|
+
# require "google/cloud/video/live_stream/v1"
|
393
|
+
#
|
394
|
+
# # Create a client object. The client can be reused for multiple calls.
|
395
|
+
# client = Google::Cloud::Video::LiveStream::V1::LivestreamService::Rest::Client.new
|
396
|
+
#
|
397
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
398
|
+
# request = Google::Cloud::Video::LiveStream::V1::ListChannelsRequest.new
|
399
|
+
#
|
400
|
+
# # Call the list_channels method.
|
401
|
+
# result = client.list_channels request
|
402
|
+
#
|
403
|
+
# # The returned object is of type Gapic::PagedEnumerable. You can iterate
|
404
|
+
# # over elements, and API calls will be issued to fetch pages as needed.
|
405
|
+
# result.each do |item|
|
406
|
+
# # Each element is of type ::Google::Cloud::Video::LiveStream::V1::Channel.
|
407
|
+
# p item
|
408
|
+
# end
|
409
|
+
#
|
347
410
|
def list_channels request, options = nil
|
348
411
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
349
412
|
|
@@ -407,6 +470,22 @@ module Google
|
|
407
470
|
# @return [::Google::Cloud::Video::LiveStream::V1::Channel]
|
408
471
|
#
|
409
472
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
473
|
+
#
|
474
|
+
# @example Basic example
|
475
|
+
# require "google/cloud/video/live_stream/v1"
|
476
|
+
#
|
477
|
+
# # Create a client object. The client can be reused for multiple calls.
|
478
|
+
# client = Google::Cloud::Video::LiveStream::V1::LivestreamService::Rest::Client.new
|
479
|
+
#
|
480
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
481
|
+
# request = Google::Cloud::Video::LiveStream::V1::GetChannelRequest.new
|
482
|
+
#
|
483
|
+
# # Call the get_channel method.
|
484
|
+
# result = client.get_channel request
|
485
|
+
#
|
486
|
+
# # The returned object is of type Google::Cloud::Video::LiveStream::V1::Channel.
|
487
|
+
# p result
|
488
|
+
#
|
410
489
|
def get_channel request, options = nil
|
411
490
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
412
491
|
|
@@ -489,6 +568,29 @@ module Google
|
|
489
568
|
# @return [::Gapic::Operation]
|
490
569
|
#
|
491
570
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
571
|
+
#
|
572
|
+
# @example Basic example
|
573
|
+
# require "google/cloud/video/live_stream/v1"
|
574
|
+
#
|
575
|
+
# # Create a client object. The client can be reused for multiple calls.
|
576
|
+
# client = Google::Cloud::Video::LiveStream::V1::LivestreamService::Rest::Client.new
|
577
|
+
#
|
578
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
579
|
+
# request = Google::Cloud::Video::LiveStream::V1::DeleteChannelRequest.new
|
580
|
+
#
|
581
|
+
# # Call the delete_channel method.
|
582
|
+
# result = client.delete_channel request
|
583
|
+
#
|
584
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
585
|
+
# # check the status of an operation, cancel it, or wait for results.
|
586
|
+
# # Here is how to wait for a response.
|
587
|
+
# result.wait_until_done! timeout: 60
|
588
|
+
# if result.response?
|
589
|
+
# p result.response
|
590
|
+
# else
|
591
|
+
# puts "No response received."
|
592
|
+
# end
|
593
|
+
#
|
492
594
|
def delete_channel request, options = nil
|
493
595
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
494
596
|
|
@@ -587,6 +689,29 @@ module Google
|
|
587
689
|
# @return [::Gapic::Operation]
|
588
690
|
#
|
589
691
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
692
|
+
#
|
693
|
+
# @example Basic example
|
694
|
+
# require "google/cloud/video/live_stream/v1"
|
695
|
+
#
|
696
|
+
# # Create a client object. The client can be reused for multiple calls.
|
697
|
+
# client = Google::Cloud::Video::LiveStream::V1::LivestreamService::Rest::Client.new
|
698
|
+
#
|
699
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
700
|
+
# request = Google::Cloud::Video::LiveStream::V1::UpdateChannelRequest.new
|
701
|
+
#
|
702
|
+
# # Call the update_channel method.
|
703
|
+
# result = client.update_channel request
|
704
|
+
#
|
705
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
706
|
+
# # check the status of an operation, cancel it, or wait for results.
|
707
|
+
# # Here is how to wait for a response.
|
708
|
+
# result.wait_until_done! timeout: 60
|
709
|
+
# if result.response?
|
710
|
+
# p result.response
|
711
|
+
# else
|
712
|
+
# puts "No response received."
|
713
|
+
# end
|
714
|
+
#
|
590
715
|
def update_channel request, options = nil
|
591
716
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
592
717
|
|
@@ -666,6 +791,29 @@ module Google
|
|
666
791
|
# @return [::Gapic::Operation]
|
667
792
|
#
|
668
793
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
794
|
+
#
|
795
|
+
# @example Basic example
|
796
|
+
# require "google/cloud/video/live_stream/v1"
|
797
|
+
#
|
798
|
+
# # Create a client object. The client can be reused for multiple calls.
|
799
|
+
# client = Google::Cloud::Video::LiveStream::V1::LivestreamService::Rest::Client.new
|
800
|
+
#
|
801
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
802
|
+
# request = Google::Cloud::Video::LiveStream::V1::StartChannelRequest.new
|
803
|
+
#
|
804
|
+
# # Call the start_channel method.
|
805
|
+
# result = client.start_channel request
|
806
|
+
#
|
807
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
808
|
+
# # check the status of an operation, cancel it, or wait for results.
|
809
|
+
# # Here is how to wait for a response.
|
810
|
+
# result.wait_until_done! timeout: 60
|
811
|
+
# if result.response?
|
812
|
+
# p result.response
|
813
|
+
# else
|
814
|
+
# puts "No response received."
|
815
|
+
# end
|
816
|
+
#
|
669
817
|
def start_channel request, options = nil
|
670
818
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
671
819
|
|
@@ -745,6 +893,29 @@ module Google
|
|
745
893
|
# @return [::Gapic::Operation]
|
746
894
|
#
|
747
895
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
896
|
+
#
|
897
|
+
# @example Basic example
|
898
|
+
# require "google/cloud/video/live_stream/v1"
|
899
|
+
#
|
900
|
+
# # Create a client object. The client can be reused for multiple calls.
|
901
|
+
# client = Google::Cloud::Video::LiveStream::V1::LivestreamService::Rest::Client.new
|
902
|
+
#
|
903
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
904
|
+
# request = Google::Cloud::Video::LiveStream::V1::StopChannelRequest.new
|
905
|
+
#
|
906
|
+
# # Call the stop_channel method.
|
907
|
+
# result = client.stop_channel request
|
908
|
+
#
|
909
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
910
|
+
# # check the status of an operation, cancel it, or wait for results.
|
911
|
+
# # Here is how to wait for a response.
|
912
|
+
# result.wait_until_done! timeout: 60
|
913
|
+
# if result.response?
|
914
|
+
# p result.response
|
915
|
+
# else
|
916
|
+
# puts "No response received."
|
917
|
+
# end
|
918
|
+
#
|
748
919
|
def stop_channel request, options = nil
|
749
920
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
750
921
|
|
@@ -829,6 +1000,29 @@ module Google
|
|
829
1000
|
# @return [::Gapic::Operation]
|
830
1001
|
#
|
831
1002
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
1003
|
+
#
|
1004
|
+
# @example Basic example
|
1005
|
+
# require "google/cloud/video/live_stream/v1"
|
1006
|
+
#
|
1007
|
+
# # Create a client object. The client can be reused for multiple calls.
|
1008
|
+
# client = Google::Cloud::Video::LiveStream::V1::LivestreamService::Rest::Client.new
|
1009
|
+
#
|
1010
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
1011
|
+
# request = Google::Cloud::Video::LiveStream::V1::CreateInputRequest.new
|
1012
|
+
#
|
1013
|
+
# # Call the create_input method.
|
1014
|
+
# result = client.create_input request
|
1015
|
+
#
|
1016
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
1017
|
+
# # check the status of an operation, cancel it, or wait for results.
|
1018
|
+
# # Here is how to wait for a response.
|
1019
|
+
# result.wait_until_done! timeout: 60
|
1020
|
+
# if result.response?
|
1021
|
+
# p result.response
|
1022
|
+
# else
|
1023
|
+
# puts "No response received."
|
1024
|
+
# end
|
1025
|
+
#
|
832
1026
|
def create_input request, options = nil
|
833
1027
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
834
1028
|
|
@@ -906,6 +1100,26 @@ module Google
|
|
906
1100
|
# @return [::Google::Cloud::Video::LiveStream::V1::ListInputsResponse]
|
907
1101
|
#
|
908
1102
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
1103
|
+
#
|
1104
|
+
# @example Basic example
|
1105
|
+
# require "google/cloud/video/live_stream/v1"
|
1106
|
+
#
|
1107
|
+
# # Create a client object. The client can be reused for multiple calls.
|
1108
|
+
# client = Google::Cloud::Video::LiveStream::V1::LivestreamService::Rest::Client.new
|
1109
|
+
#
|
1110
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
1111
|
+
# request = Google::Cloud::Video::LiveStream::V1::ListInputsRequest.new
|
1112
|
+
#
|
1113
|
+
# # Call the list_inputs method.
|
1114
|
+
# result = client.list_inputs request
|
1115
|
+
#
|
1116
|
+
# # The returned object is of type Gapic::PagedEnumerable. You can iterate
|
1117
|
+
# # over elements, and API calls will be issued to fetch pages as needed.
|
1118
|
+
# result.each do |item|
|
1119
|
+
# # Each element is of type ::Google::Cloud::Video::LiveStream::V1::Input.
|
1120
|
+
# p item
|
1121
|
+
# end
|
1122
|
+
#
|
909
1123
|
def list_inputs request, options = nil
|
910
1124
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
911
1125
|
|
@@ -969,6 +1183,22 @@ module Google
|
|
969
1183
|
# @return [::Google::Cloud::Video::LiveStream::V1::Input]
|
970
1184
|
#
|
971
1185
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
1186
|
+
#
|
1187
|
+
# @example Basic example
|
1188
|
+
# require "google/cloud/video/live_stream/v1"
|
1189
|
+
#
|
1190
|
+
# # Create a client object. The client can be reused for multiple calls.
|
1191
|
+
# client = Google::Cloud::Video::LiveStream::V1::LivestreamService::Rest::Client.new
|
1192
|
+
#
|
1193
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
1194
|
+
# request = Google::Cloud::Video::LiveStream::V1::GetInputRequest.new
|
1195
|
+
#
|
1196
|
+
# # Call the get_input method.
|
1197
|
+
# result = client.get_input request
|
1198
|
+
#
|
1199
|
+
# # The returned object is of type Google::Cloud::Video::LiveStream::V1::Input.
|
1200
|
+
# p result
|
1201
|
+
#
|
972
1202
|
def get_input request, options = nil
|
973
1203
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
974
1204
|
|
@@ -1046,6 +1276,29 @@ module Google
|
|
1046
1276
|
# @return [::Gapic::Operation]
|
1047
1277
|
#
|
1048
1278
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
1279
|
+
#
|
1280
|
+
# @example Basic example
|
1281
|
+
# require "google/cloud/video/live_stream/v1"
|
1282
|
+
#
|
1283
|
+
# # Create a client object. The client can be reused for multiple calls.
|
1284
|
+
# client = Google::Cloud::Video::LiveStream::V1::LivestreamService::Rest::Client.new
|
1285
|
+
#
|
1286
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
1287
|
+
# request = Google::Cloud::Video::LiveStream::V1::DeleteInputRequest.new
|
1288
|
+
#
|
1289
|
+
# # Call the delete_input method.
|
1290
|
+
# result = client.delete_input request
|
1291
|
+
#
|
1292
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
1293
|
+
# # check the status of an operation, cancel it, or wait for results.
|
1294
|
+
# # Here is how to wait for a response.
|
1295
|
+
# result.wait_until_done! timeout: 60
|
1296
|
+
# if result.response?
|
1297
|
+
# p result.response
|
1298
|
+
# else
|
1299
|
+
# puts "No response received."
|
1300
|
+
# end
|
1301
|
+
#
|
1049
1302
|
def delete_input request, options = nil
|
1050
1303
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
1051
1304
|
|
@@ -1136,6 +1389,29 @@ module Google
|
|
1136
1389
|
# @return [::Gapic::Operation]
|
1137
1390
|
#
|
1138
1391
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
1392
|
+
#
|
1393
|
+
# @example Basic example
|
1394
|
+
# require "google/cloud/video/live_stream/v1"
|
1395
|
+
#
|
1396
|
+
# # Create a client object. The client can be reused for multiple calls.
|
1397
|
+
# client = Google::Cloud::Video::LiveStream::V1::LivestreamService::Rest::Client.new
|
1398
|
+
#
|
1399
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
1400
|
+
# request = Google::Cloud::Video::LiveStream::V1::UpdateInputRequest.new
|
1401
|
+
#
|
1402
|
+
# # Call the update_input method.
|
1403
|
+
# result = client.update_input request
|
1404
|
+
#
|
1405
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
1406
|
+
# # check the status of an operation, cancel it, or wait for results.
|
1407
|
+
# # Here is how to wait for a response.
|
1408
|
+
# result.wait_until_done! timeout: 60
|
1409
|
+
# if result.response?
|
1410
|
+
# p result.response
|
1411
|
+
# else
|
1412
|
+
# puts "No response received."
|
1413
|
+
# end
|
1414
|
+
#
|
1139
1415
|
def update_input request, options = nil
|
1140
1416
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
1141
1417
|
|
@@ -1220,6 +1496,22 @@ module Google
|
|
1220
1496
|
# @return [::Google::Cloud::Video::LiveStream::V1::Event]
|
1221
1497
|
#
|
1222
1498
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
1499
|
+
#
|
1500
|
+
# @example Basic example
|
1501
|
+
# require "google/cloud/video/live_stream/v1"
|
1502
|
+
#
|
1503
|
+
# # Create a client object. The client can be reused for multiple calls.
|
1504
|
+
# client = Google::Cloud::Video::LiveStream::V1::LivestreamService::Rest::Client.new
|
1505
|
+
#
|
1506
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
1507
|
+
# request = Google::Cloud::Video::LiveStream::V1::CreateEventRequest.new
|
1508
|
+
#
|
1509
|
+
# # Call the create_event method.
|
1510
|
+
# result = client.create_event request
|
1511
|
+
#
|
1512
|
+
# # The returned object is of type Google::Cloud::Video::LiveStream::V1::Event.
|
1513
|
+
# p result
|
1514
|
+
#
|
1223
1515
|
def create_event request, options = nil
|
1224
1516
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
1225
1517
|
|
@@ -1296,6 +1588,26 @@ module Google
|
|
1296
1588
|
# @return [::Google::Cloud::Video::LiveStream::V1::ListEventsResponse]
|
1297
1589
|
#
|
1298
1590
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
1591
|
+
#
|
1592
|
+
# @example Basic example
|
1593
|
+
# require "google/cloud/video/live_stream/v1"
|
1594
|
+
#
|
1595
|
+
# # Create a client object. The client can be reused for multiple calls.
|
1596
|
+
# client = Google::Cloud::Video::LiveStream::V1::LivestreamService::Rest::Client.new
|
1597
|
+
#
|
1598
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
1599
|
+
# request = Google::Cloud::Video::LiveStream::V1::ListEventsRequest.new
|
1600
|
+
#
|
1601
|
+
# # Call the list_events method.
|
1602
|
+
# result = client.list_events request
|
1603
|
+
#
|
1604
|
+
# # The returned object is of type Gapic::PagedEnumerable. You can iterate
|
1605
|
+
# # over elements, and API calls will be issued to fetch pages as needed.
|
1606
|
+
# result.each do |item|
|
1607
|
+
# # Each element is of type ::Google::Cloud::Video::LiveStream::V1::Event.
|
1608
|
+
# p item
|
1609
|
+
# end
|
1610
|
+
#
|
1299
1611
|
def list_events request, options = nil
|
1300
1612
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
1301
1613
|
|
@@ -1359,6 +1671,22 @@ module Google
|
|
1359
1671
|
# @return [::Google::Cloud::Video::LiveStream::V1::Event]
|
1360
1672
|
#
|
1361
1673
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
1674
|
+
#
|
1675
|
+
# @example Basic example
|
1676
|
+
# require "google/cloud/video/live_stream/v1"
|
1677
|
+
#
|
1678
|
+
# # Create a client object. The client can be reused for multiple calls.
|
1679
|
+
# client = Google::Cloud::Video::LiveStream::V1::LivestreamService::Rest::Client.new
|
1680
|
+
#
|
1681
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
1682
|
+
# request = Google::Cloud::Video::LiveStream::V1::GetEventRequest.new
|
1683
|
+
#
|
1684
|
+
# # Call the get_event method.
|
1685
|
+
# result = client.get_event request
|
1686
|
+
#
|
1687
|
+
# # The returned object is of type Google::Cloud::Video::LiveStream::V1::Event.
|
1688
|
+
# p result
|
1689
|
+
#
|
1362
1690
|
def get_event request, options = nil
|
1363
1691
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
1364
1692
|
|
@@ -1436,6 +1764,22 @@ module Google
|
|
1436
1764
|
# @return [::Google::Protobuf::Empty]
|
1437
1765
|
#
|
1438
1766
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
1767
|
+
#
|
1768
|
+
# @example Basic example
|
1769
|
+
# require "google/cloud/video/live_stream/v1"
|
1770
|
+
#
|
1771
|
+
# # Create a client object. The client can be reused for multiple calls.
|
1772
|
+
# client = Google::Cloud::Video::LiveStream::V1::LivestreamService::Rest::Client.new
|
1773
|
+
#
|
1774
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
1775
|
+
# request = Google::Cloud::Video::LiveStream::V1::DeleteEventRequest.new
|
1776
|
+
#
|
1777
|
+
# # Call the delete_event method.
|
1778
|
+
# result = client.delete_event request
|
1779
|
+
#
|
1780
|
+
# # The returned object is of type Google::Protobuf::Empty.
|
1781
|
+
# p result
|
1782
|
+
#
|
1439
1783
|
def delete_event request, options = nil
|
1440
1784
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
1441
1785
|
|
@@ -1520,6 +1864,29 @@ module Google
|
|
1520
1864
|
# @return [::Gapic::Operation]
|
1521
1865
|
#
|
1522
1866
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
1867
|
+
#
|
1868
|
+
# @example Basic example
|
1869
|
+
# require "google/cloud/video/live_stream/v1"
|
1870
|
+
#
|
1871
|
+
# # Create a client object. The client can be reused for multiple calls.
|
1872
|
+
# client = Google::Cloud::Video::LiveStream::V1::LivestreamService::Rest::Client.new
|
1873
|
+
#
|
1874
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
1875
|
+
# request = Google::Cloud::Video::LiveStream::V1::CreateAssetRequest.new
|
1876
|
+
#
|
1877
|
+
# # Call the create_asset method.
|
1878
|
+
# result = client.create_asset request
|
1879
|
+
#
|
1880
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
1881
|
+
# # check the status of an operation, cancel it, or wait for results.
|
1882
|
+
# # Here is how to wait for a response.
|
1883
|
+
# result.wait_until_done! timeout: 60
|
1884
|
+
# if result.response?
|
1885
|
+
# p result.response
|
1886
|
+
# else
|
1887
|
+
# puts "No response received."
|
1888
|
+
# end
|
1889
|
+
#
|
1523
1890
|
def create_asset request, options = nil
|
1524
1891
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
1525
1892
|
|
@@ -1598,6 +1965,29 @@ module Google
|
|
1598
1965
|
# @return [::Gapic::Operation]
|
1599
1966
|
#
|
1600
1967
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
1968
|
+
#
|
1969
|
+
# @example Basic example
|
1970
|
+
# require "google/cloud/video/live_stream/v1"
|
1971
|
+
#
|
1972
|
+
# # Create a client object. The client can be reused for multiple calls.
|
1973
|
+
# client = Google::Cloud::Video::LiveStream::V1::LivestreamService::Rest::Client.new
|
1974
|
+
#
|
1975
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
1976
|
+
# request = Google::Cloud::Video::LiveStream::V1::DeleteAssetRequest.new
|
1977
|
+
#
|
1978
|
+
# # Call the delete_asset method.
|
1979
|
+
# result = client.delete_asset request
|
1980
|
+
#
|
1981
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
1982
|
+
# # check the status of an operation, cancel it, or wait for results.
|
1983
|
+
# # Here is how to wait for a response.
|
1984
|
+
# result.wait_until_done! timeout: 60
|
1985
|
+
# if result.response?
|
1986
|
+
# p result.response
|
1987
|
+
# else
|
1988
|
+
# puts "No response received."
|
1989
|
+
# end
|
1990
|
+
#
|
1601
1991
|
def delete_asset request, options = nil
|
1602
1992
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
1603
1993
|
|
@@ -1662,6 +2052,22 @@ module Google
|
|
1662
2052
|
# @return [::Google::Cloud::Video::LiveStream::V1::Asset]
|
1663
2053
|
#
|
1664
2054
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
2055
|
+
#
|
2056
|
+
# @example Basic example
|
2057
|
+
# require "google/cloud/video/live_stream/v1"
|
2058
|
+
#
|
2059
|
+
# # Create a client object. The client can be reused for multiple calls.
|
2060
|
+
# client = Google::Cloud::Video::LiveStream::V1::LivestreamService::Rest::Client.new
|
2061
|
+
#
|
2062
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
2063
|
+
# request = Google::Cloud::Video::LiveStream::V1::GetAssetRequest.new
|
2064
|
+
#
|
2065
|
+
# # Call the get_asset method.
|
2066
|
+
# result = client.get_asset request
|
2067
|
+
#
|
2068
|
+
# # The returned object is of type Google::Cloud::Video::LiveStream::V1::Asset.
|
2069
|
+
# p result
|
2070
|
+
#
|
1665
2071
|
def get_asset request, options = nil
|
1666
2072
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
1667
2073
|
|
@@ -1734,6 +2140,26 @@ module Google
|
|
1734
2140
|
# @return [::Google::Cloud::Video::LiveStream::V1::ListAssetsResponse]
|
1735
2141
|
#
|
1736
2142
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
2143
|
+
#
|
2144
|
+
# @example Basic example
|
2145
|
+
# require "google/cloud/video/live_stream/v1"
|
2146
|
+
#
|
2147
|
+
# # Create a client object. The client can be reused for multiple calls.
|
2148
|
+
# client = Google::Cloud::Video::LiveStream::V1::LivestreamService::Rest::Client.new
|
2149
|
+
#
|
2150
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
2151
|
+
# request = Google::Cloud::Video::LiveStream::V1::ListAssetsRequest.new
|
2152
|
+
#
|
2153
|
+
# # Call the list_assets method.
|
2154
|
+
# result = client.list_assets request
|
2155
|
+
#
|
2156
|
+
# # The returned object is of type Gapic::PagedEnumerable. You can iterate
|
2157
|
+
# # over elements, and API calls will be issued to fetch pages as needed.
|
2158
|
+
# result.each do |item|
|
2159
|
+
# # Each element is of type ::Google::Cloud::Video::LiveStream::V1::Asset.
|
2160
|
+
# p item
|
2161
|
+
# end
|
2162
|
+
#
|
1737
2163
|
def list_assets request, options = nil
|
1738
2164
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
1739
2165
|
|
@@ -1797,6 +2223,22 @@ module Google
|
|
1797
2223
|
# @return [::Google::Cloud::Video::LiveStream::V1::Pool]
|
1798
2224
|
#
|
1799
2225
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
2226
|
+
#
|
2227
|
+
# @example Basic example
|
2228
|
+
# require "google/cloud/video/live_stream/v1"
|
2229
|
+
#
|
2230
|
+
# # Create a client object. The client can be reused for multiple calls.
|
2231
|
+
# client = Google::Cloud::Video::LiveStream::V1::LivestreamService::Rest::Client.new
|
2232
|
+
#
|
2233
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
2234
|
+
# request = Google::Cloud::Video::LiveStream::V1::GetPoolRequest.new
|
2235
|
+
#
|
2236
|
+
# # Call the get_pool method.
|
2237
|
+
# result = client.get_pool request
|
2238
|
+
#
|
2239
|
+
# # The returned object is of type Google::Cloud::Video::LiveStream::V1::Pool.
|
2240
|
+
# p result
|
2241
|
+
#
|
1800
2242
|
def get_pool request, options = nil
|
1801
2243
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
1802
2244
|
|
@@ -1881,6 +2323,29 @@ module Google
|
|
1881
2323
|
# @return [::Gapic::Operation]
|
1882
2324
|
#
|
1883
2325
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
2326
|
+
#
|
2327
|
+
# @example Basic example
|
2328
|
+
# require "google/cloud/video/live_stream/v1"
|
2329
|
+
#
|
2330
|
+
# # Create a client object. The client can be reused for multiple calls.
|
2331
|
+
# client = Google::Cloud::Video::LiveStream::V1::LivestreamService::Rest::Client.new
|
2332
|
+
#
|
2333
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
2334
|
+
# request = Google::Cloud::Video::LiveStream::V1::UpdatePoolRequest.new
|
2335
|
+
#
|
2336
|
+
# # Call the update_pool method.
|
2337
|
+
# result = client.update_pool request
|
2338
|
+
#
|
2339
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
2340
|
+
# # check the status of an operation, cancel it, or wait for results.
|
2341
|
+
# # Here is how to wait for a response.
|
2342
|
+
# result.wait_until_done! timeout: 60
|
2343
|
+
# if result.response?
|
2344
|
+
# p result.response
|
2345
|
+
# else
|
2346
|
+
# puts "No response received."
|
2347
|
+
# end
|
2348
|
+
#
|
1884
2349
|
def update_pool request, options = nil
|
1885
2350
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
1886
2351
|
|
@@ -1947,9 +2412,9 @@ module Google
|
|
1947
2412
|
# end
|
1948
2413
|
#
|
1949
2414
|
# @!attribute [rw] endpoint
|
1950
|
-
#
|
1951
|
-
#
|
1952
|
-
# @return [::String]
|
2415
|
+
# A custom service endpoint, as a hostname or hostname:port. The default is
|
2416
|
+
# nil, indicating to use the default endpoint in the current universe domain.
|
2417
|
+
# @return [::String,nil]
|
1953
2418
|
# @!attribute [rw] credentials
|
1954
2419
|
# Credentials to send with calls. You may provide any of the following types:
|
1955
2420
|
# * (`String`) The path to a service account key file in JSON format
|
@@ -1986,13 +2451,20 @@ module Google
|
|
1986
2451
|
# @!attribute [rw] quota_project
|
1987
2452
|
# A separate project against which to charge quota.
|
1988
2453
|
# @return [::String]
|
2454
|
+
# @!attribute [rw] universe_domain
|
2455
|
+
# The universe domain within which to make requests. This determines the
|
2456
|
+
# default endpoint URL. The default value of nil uses the environment
|
2457
|
+
# universe (usually the default "googleapis.com" universe).
|
2458
|
+
# @return [::String,nil]
|
1989
2459
|
#
|
1990
2460
|
class Configuration
|
1991
2461
|
extend ::Gapic::Config
|
1992
2462
|
|
2463
|
+
# @private
|
2464
|
+
# The endpoint specific to the default "googleapis.com" universe. Deprecated.
|
1993
2465
|
DEFAULT_ENDPOINT = "livestream.googleapis.com"
|
1994
2466
|
|
1995
|
-
config_attr :endpoint,
|
2467
|
+
config_attr :endpoint, nil, ::String, nil
|
1996
2468
|
config_attr :credentials, nil do |value|
|
1997
2469
|
allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
|
1998
2470
|
allowed.any? { |klass| klass === value }
|
@@ -2004,6 +2476,7 @@ module Google
|
|
2004
2476
|
config_attr :metadata, nil, ::Hash, nil
|
2005
2477
|
config_attr :retry_policy, nil, ::Hash, ::Proc, nil
|
2006
2478
|
config_attr :quota_project, nil, ::String, nil
|
2479
|
+
config_attr :universe_domain, nil, ::String, nil
|
2007
2480
|
|
2008
2481
|
# @private
|
2009
2482
|
# Overrides for http bindings for the RPCs of this service
|