google-cloud-video-live_stream-v1 0.5.1 → 0.7.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/google/cloud/video/live_stream/v1/livestream_service/client.rb +662 -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/paths.rb +55 -0
- data/lib/google/cloud/video/live_stream/v1/livestream_service/rest/client.rb +933 -0
- data/lib/google/cloud/video/live_stream/v1/livestream_service/rest/operations.rb +75 -0
- data/lib/google/cloud/video/live_stream/v1/livestream_service/rest/service_stub.rb +356 -0
- data/lib/google/cloud/video/live_stream/v1/version.rb +1 -1
- data/lib/google/cloud/video/livestream/v1/resources_pb.rb +8 -1
- data/lib/google/cloud/video/livestream/v1/service_pb.rb +9 -2
- data/lib/google/cloud/video/livestream/v1/service_services_pb.rb +13 -0
- data/proto_docs/google/api/field_behavior.rb +14 -0
- data/proto_docs/google/cloud/video/livestream/v1/resources.rb +163 -5
- data/proto_docs/google/cloud/video/livestream/v1/service.rb +149 -0
- metadata +5 -5
@@ -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
|
|
@@ -649,6 +649,234 @@ module Google
|
|
649
649
|
result
|
650
650
|
end
|
651
651
|
|
652
|
+
##
|
653
|
+
# Baseline implementation for the create_asset REST call
|
654
|
+
#
|
655
|
+
# @param request_pb [::Google::Cloud::Video::LiveStream::V1::CreateAssetRequest]
|
656
|
+
# A request object representing the call parameters. Required.
|
657
|
+
# @param options [::Gapic::CallOptions]
|
658
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
659
|
+
#
|
660
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
661
|
+
# @yieldparam result [::Google::Longrunning::Operation]
|
662
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
663
|
+
#
|
664
|
+
# @return [::Google::Longrunning::Operation]
|
665
|
+
# A result object deserialized from the server's reply
|
666
|
+
def create_asset request_pb, options = nil
|
667
|
+
raise ::ArgumentError, "request must be provided" if request_pb.nil?
|
668
|
+
|
669
|
+
verb, uri, query_string_params, body = ServiceStub.transcode_create_asset_request request_pb
|
670
|
+
query_string_params = if query_string_params.any?
|
671
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
672
|
+
else
|
673
|
+
{}
|
674
|
+
end
|
675
|
+
|
676
|
+
response = @client_stub.make_http_request(
|
677
|
+
verb,
|
678
|
+
uri: uri,
|
679
|
+
body: body || "",
|
680
|
+
params: query_string_params,
|
681
|
+
options: options
|
682
|
+
)
|
683
|
+
operation = ::Gapic::Rest::TransportOperation.new response
|
684
|
+
result = ::Google::Longrunning::Operation.decode_json response.body, ignore_unknown_fields: true
|
685
|
+
|
686
|
+
yield result, operation if block_given?
|
687
|
+
result
|
688
|
+
end
|
689
|
+
|
690
|
+
##
|
691
|
+
# Baseline implementation for the delete_asset REST call
|
692
|
+
#
|
693
|
+
# @param request_pb [::Google::Cloud::Video::LiveStream::V1::DeleteAssetRequest]
|
694
|
+
# A request object representing the call parameters. Required.
|
695
|
+
# @param options [::Gapic::CallOptions]
|
696
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
697
|
+
#
|
698
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
699
|
+
# @yieldparam result [::Google::Longrunning::Operation]
|
700
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
701
|
+
#
|
702
|
+
# @return [::Google::Longrunning::Operation]
|
703
|
+
# A result object deserialized from the server's reply
|
704
|
+
def delete_asset request_pb, options = nil
|
705
|
+
raise ::ArgumentError, "request must be provided" if request_pb.nil?
|
706
|
+
|
707
|
+
verb, uri, query_string_params, body = ServiceStub.transcode_delete_asset_request request_pb
|
708
|
+
query_string_params = if query_string_params.any?
|
709
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
710
|
+
else
|
711
|
+
{}
|
712
|
+
end
|
713
|
+
|
714
|
+
response = @client_stub.make_http_request(
|
715
|
+
verb,
|
716
|
+
uri: uri,
|
717
|
+
body: body || "",
|
718
|
+
params: query_string_params,
|
719
|
+
options: options
|
720
|
+
)
|
721
|
+
operation = ::Gapic::Rest::TransportOperation.new response
|
722
|
+
result = ::Google::Longrunning::Operation.decode_json response.body, ignore_unknown_fields: true
|
723
|
+
|
724
|
+
yield result, operation if block_given?
|
725
|
+
result
|
726
|
+
end
|
727
|
+
|
728
|
+
##
|
729
|
+
# Baseline implementation for the get_asset REST call
|
730
|
+
#
|
731
|
+
# @param request_pb [::Google::Cloud::Video::LiveStream::V1::GetAssetRequest]
|
732
|
+
# A request object representing the call parameters. Required.
|
733
|
+
# @param options [::Gapic::CallOptions]
|
734
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
735
|
+
#
|
736
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
737
|
+
# @yieldparam result [::Google::Cloud::Video::LiveStream::V1::Asset]
|
738
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
739
|
+
#
|
740
|
+
# @return [::Google::Cloud::Video::LiveStream::V1::Asset]
|
741
|
+
# A result object deserialized from the server's reply
|
742
|
+
def get_asset request_pb, options = nil
|
743
|
+
raise ::ArgumentError, "request must be provided" if request_pb.nil?
|
744
|
+
|
745
|
+
verb, uri, query_string_params, body = ServiceStub.transcode_get_asset_request request_pb
|
746
|
+
query_string_params = if query_string_params.any?
|
747
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
748
|
+
else
|
749
|
+
{}
|
750
|
+
end
|
751
|
+
|
752
|
+
response = @client_stub.make_http_request(
|
753
|
+
verb,
|
754
|
+
uri: uri,
|
755
|
+
body: body || "",
|
756
|
+
params: query_string_params,
|
757
|
+
options: options
|
758
|
+
)
|
759
|
+
operation = ::Gapic::Rest::TransportOperation.new response
|
760
|
+
result = ::Google::Cloud::Video::LiveStream::V1::Asset.decode_json response.body, ignore_unknown_fields: true
|
761
|
+
|
762
|
+
yield result, operation if block_given?
|
763
|
+
result
|
764
|
+
end
|
765
|
+
|
766
|
+
##
|
767
|
+
# Baseline implementation for the list_assets REST call
|
768
|
+
#
|
769
|
+
# @param request_pb [::Google::Cloud::Video::LiveStream::V1::ListAssetsRequest]
|
770
|
+
# A request object representing the call parameters. Required.
|
771
|
+
# @param options [::Gapic::CallOptions]
|
772
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
773
|
+
#
|
774
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
775
|
+
# @yieldparam result [::Google::Cloud::Video::LiveStream::V1::ListAssetsResponse]
|
776
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
777
|
+
#
|
778
|
+
# @return [::Google::Cloud::Video::LiveStream::V1::ListAssetsResponse]
|
779
|
+
# A result object deserialized from the server's reply
|
780
|
+
def list_assets request_pb, options = nil
|
781
|
+
raise ::ArgumentError, "request must be provided" if request_pb.nil?
|
782
|
+
|
783
|
+
verb, uri, query_string_params, body = ServiceStub.transcode_list_assets_request request_pb
|
784
|
+
query_string_params = if query_string_params.any?
|
785
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
786
|
+
else
|
787
|
+
{}
|
788
|
+
end
|
789
|
+
|
790
|
+
response = @client_stub.make_http_request(
|
791
|
+
verb,
|
792
|
+
uri: uri,
|
793
|
+
body: body || "",
|
794
|
+
params: query_string_params,
|
795
|
+
options: options
|
796
|
+
)
|
797
|
+
operation = ::Gapic::Rest::TransportOperation.new response
|
798
|
+
result = ::Google::Cloud::Video::LiveStream::V1::ListAssetsResponse.decode_json response.body, ignore_unknown_fields: true
|
799
|
+
|
800
|
+
yield result, operation if block_given?
|
801
|
+
result
|
802
|
+
end
|
803
|
+
|
804
|
+
##
|
805
|
+
# Baseline implementation for the get_pool REST call
|
806
|
+
#
|
807
|
+
# @param request_pb [::Google::Cloud::Video::LiveStream::V1::GetPoolRequest]
|
808
|
+
# A request object representing the call parameters. Required.
|
809
|
+
# @param options [::Gapic::CallOptions]
|
810
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
811
|
+
#
|
812
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
813
|
+
# @yieldparam result [::Google::Cloud::Video::LiveStream::V1::Pool]
|
814
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
815
|
+
#
|
816
|
+
# @return [::Google::Cloud::Video::LiveStream::V1::Pool]
|
817
|
+
# A result object deserialized from the server's reply
|
818
|
+
def get_pool request_pb, options = nil
|
819
|
+
raise ::ArgumentError, "request must be provided" if request_pb.nil?
|
820
|
+
|
821
|
+
verb, uri, query_string_params, body = ServiceStub.transcode_get_pool_request request_pb
|
822
|
+
query_string_params = if query_string_params.any?
|
823
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
824
|
+
else
|
825
|
+
{}
|
826
|
+
end
|
827
|
+
|
828
|
+
response = @client_stub.make_http_request(
|
829
|
+
verb,
|
830
|
+
uri: uri,
|
831
|
+
body: body || "",
|
832
|
+
params: query_string_params,
|
833
|
+
options: options
|
834
|
+
)
|
835
|
+
operation = ::Gapic::Rest::TransportOperation.new response
|
836
|
+
result = ::Google::Cloud::Video::LiveStream::V1::Pool.decode_json response.body, ignore_unknown_fields: true
|
837
|
+
|
838
|
+
yield result, operation if block_given?
|
839
|
+
result
|
840
|
+
end
|
841
|
+
|
842
|
+
##
|
843
|
+
# Baseline implementation for the update_pool REST call
|
844
|
+
#
|
845
|
+
# @param request_pb [::Google::Cloud::Video::LiveStream::V1::UpdatePoolRequest]
|
846
|
+
# A request object representing the call parameters. Required.
|
847
|
+
# @param options [::Gapic::CallOptions]
|
848
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
849
|
+
#
|
850
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
851
|
+
# @yieldparam result [::Google::Longrunning::Operation]
|
852
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
853
|
+
#
|
854
|
+
# @return [::Google::Longrunning::Operation]
|
855
|
+
# A result object deserialized from the server's reply
|
856
|
+
def update_pool request_pb, options = nil
|
857
|
+
raise ::ArgumentError, "request must be provided" if request_pb.nil?
|
858
|
+
|
859
|
+
verb, uri, query_string_params, body = ServiceStub.transcode_update_pool_request request_pb
|
860
|
+
query_string_params = if query_string_params.any?
|
861
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
862
|
+
else
|
863
|
+
{}
|
864
|
+
end
|
865
|
+
|
866
|
+
response = @client_stub.make_http_request(
|
867
|
+
verb,
|
868
|
+
uri: uri,
|
869
|
+
body: body || "",
|
870
|
+
params: query_string_params,
|
871
|
+
options: options
|
872
|
+
)
|
873
|
+
operation = ::Gapic::Rest::TransportOperation.new response
|
874
|
+
result = ::Google::Longrunning::Operation.decode_json response.body, ignore_unknown_fields: true
|
875
|
+
|
876
|
+
yield result, operation if block_given?
|
877
|
+
result
|
878
|
+
end
|
879
|
+
|
652
880
|
##
|
653
881
|
# @private
|
654
882
|
#
|
@@ -991,6 +1219,134 @@ module Google
|
|
991
1219
|
)
|
992
1220
|
transcoder.transcode request_pb
|
993
1221
|
end
|
1222
|
+
|
1223
|
+
##
|
1224
|
+
# @private
|
1225
|
+
#
|
1226
|
+
# GRPC transcoding helper method for the create_asset REST call
|
1227
|
+
#
|
1228
|
+
# @param request_pb [::Google::Cloud::Video::LiveStream::V1::CreateAssetRequest]
|
1229
|
+
# A request object representing the call parameters. Required.
|
1230
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
1231
|
+
# Uri, Body, Query string parameters
|
1232
|
+
def self.transcode_create_asset_request request_pb
|
1233
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
1234
|
+
.with_bindings(
|
1235
|
+
uri_method: :post,
|
1236
|
+
uri_template: "/v1/{parent}/assets",
|
1237
|
+
body: "asset",
|
1238
|
+
matches: [
|
1239
|
+
["parent", %r{^projects/[^/]+/locations/[^/]+/?$}, false]
|
1240
|
+
]
|
1241
|
+
)
|
1242
|
+
transcoder.transcode request_pb
|
1243
|
+
end
|
1244
|
+
|
1245
|
+
##
|
1246
|
+
# @private
|
1247
|
+
#
|
1248
|
+
# GRPC transcoding helper method for the delete_asset REST call
|
1249
|
+
#
|
1250
|
+
# @param request_pb [::Google::Cloud::Video::LiveStream::V1::DeleteAssetRequest]
|
1251
|
+
# A request object representing the call parameters. Required.
|
1252
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
1253
|
+
# Uri, Body, Query string parameters
|
1254
|
+
def self.transcode_delete_asset_request request_pb
|
1255
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
1256
|
+
.with_bindings(
|
1257
|
+
uri_method: :delete,
|
1258
|
+
uri_template: "/v1/{name}",
|
1259
|
+
matches: [
|
1260
|
+
["name", %r{^projects/[^/]+/locations/[^/]+/assets/[^/]+/?$}, false]
|
1261
|
+
]
|
1262
|
+
)
|
1263
|
+
transcoder.transcode request_pb
|
1264
|
+
end
|
1265
|
+
|
1266
|
+
##
|
1267
|
+
# @private
|
1268
|
+
#
|
1269
|
+
# GRPC transcoding helper method for the get_asset REST call
|
1270
|
+
#
|
1271
|
+
# @param request_pb [::Google::Cloud::Video::LiveStream::V1::GetAssetRequest]
|
1272
|
+
# A request object representing the call parameters. Required.
|
1273
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
1274
|
+
# Uri, Body, Query string parameters
|
1275
|
+
def self.transcode_get_asset_request request_pb
|
1276
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
1277
|
+
.with_bindings(
|
1278
|
+
uri_method: :get,
|
1279
|
+
uri_template: "/v1/{name}",
|
1280
|
+
matches: [
|
1281
|
+
["name", %r{^projects/[^/]+/locations/[^/]+/assets/[^/]+/?$}, false]
|
1282
|
+
]
|
1283
|
+
)
|
1284
|
+
transcoder.transcode request_pb
|
1285
|
+
end
|
1286
|
+
|
1287
|
+
##
|
1288
|
+
# @private
|
1289
|
+
#
|
1290
|
+
# GRPC transcoding helper method for the list_assets REST call
|
1291
|
+
#
|
1292
|
+
# @param request_pb [::Google::Cloud::Video::LiveStream::V1::ListAssetsRequest]
|
1293
|
+
# A request object representing the call parameters. Required.
|
1294
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
1295
|
+
# Uri, Body, Query string parameters
|
1296
|
+
def self.transcode_list_assets_request request_pb
|
1297
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
1298
|
+
.with_bindings(
|
1299
|
+
uri_method: :get,
|
1300
|
+
uri_template: "/v1/{parent}/assets",
|
1301
|
+
matches: [
|
1302
|
+
["parent", %r{^projects/[^/]+/locations/[^/]+/?$}, false]
|
1303
|
+
]
|
1304
|
+
)
|
1305
|
+
transcoder.transcode request_pb
|
1306
|
+
end
|
1307
|
+
|
1308
|
+
##
|
1309
|
+
# @private
|
1310
|
+
#
|
1311
|
+
# GRPC transcoding helper method for the get_pool REST call
|
1312
|
+
#
|
1313
|
+
# @param request_pb [::Google::Cloud::Video::LiveStream::V1::GetPoolRequest]
|
1314
|
+
# A request object representing the call parameters. Required.
|
1315
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
1316
|
+
# Uri, Body, Query string parameters
|
1317
|
+
def self.transcode_get_pool_request request_pb
|
1318
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
1319
|
+
.with_bindings(
|
1320
|
+
uri_method: :get,
|
1321
|
+
uri_template: "/v1/{name}",
|
1322
|
+
matches: [
|
1323
|
+
["name", %r{^projects/[^/]+/locations/[^/]+/pools/[^/]+/?$}, false]
|
1324
|
+
]
|
1325
|
+
)
|
1326
|
+
transcoder.transcode request_pb
|
1327
|
+
end
|
1328
|
+
|
1329
|
+
##
|
1330
|
+
# @private
|
1331
|
+
#
|
1332
|
+
# GRPC transcoding helper method for the update_pool REST call
|
1333
|
+
#
|
1334
|
+
# @param request_pb [::Google::Cloud::Video::LiveStream::V1::UpdatePoolRequest]
|
1335
|
+
# A request object representing the call parameters. Required.
|
1336
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
1337
|
+
# Uri, Body, Query string parameters
|
1338
|
+
def self.transcode_update_pool_request request_pb
|
1339
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
1340
|
+
.with_bindings(
|
1341
|
+
uri_method: :patch,
|
1342
|
+
uri_template: "/v1/{pool.name}",
|
1343
|
+
body: "pool",
|
1344
|
+
matches: [
|
1345
|
+
["pool.name", %r{^projects/[^/]+/locations/[^/]+/pools/[^/]+/?$}, false]
|
1346
|
+
]
|
1347
|
+
)
|
1348
|
+
transcoder.transcode request_pb
|
1349
|
+
end
|
994
1350
|
end
|
995
1351
|
end
|
996
1352
|
end
|
@@ -12,7 +12,7 @@ require 'google/protobuf/timestamp_pb'
|
|
12
12
|
require 'google/rpc/status_pb'
|
13
13
|
|
14
14
|
|
15
|
-
descriptor_data = "\n0google/cloud/video/livestream/v1/resources.proto\x12 google.cloud.video.livestream.v1\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a.google/cloud/video/livestream/v1/outputs.proto\x1a\x1egoogle/protobuf/duration.proto\x1a\x1fgoogle/protobuf/timestamp.proto\x1a\x17google/rpc/status.proto\"\xf0\x06\n\x05Input\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x34\n\x0b\x63reate_time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x34\n\x0bupdate_time\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x43\n\x06labels\x18\x04 \x03(\x0b\x32\x33.google.cloud.video.livestream.v1.Input.LabelsEntry\x12:\n\x04type\x18\x05 \x01(\x0e\x32,.google.cloud.video.livestream.v1.Input.Type\x12:\n\x04tier\x18\x0e \x01(\x0e\x32,.google.cloud.video.livestream.v1.Input.Tier\x12\x10\n\x03uri\x18\x06 \x01(\tB\x03\xe0\x41\x03\x12S\n\x14preprocessing_config\x18\t \x01(\x0b\x32\x35.google.cloud.video.livestream.v1.PreprocessingConfig\x12L\n\x0esecurity_rules\x18\x0c \x01(\x0b\x32\x34.google.cloud.video.livestream.v1.Input.SecurityRule\x12Y\n\x15input_stream_property\x18\x0f \x01(\x0b\x32\x35.google.cloud.video.livestream.v1.InputStreamPropertyB\x03\xe0\x41\x03\x1a!\n\x0cSecurityRule\x12\x11\n\tip_ranges\x18\x01 \x03(\t\x1a-\n\x0bLabelsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"9\n\x04Type\x12\x14\n\x10TYPE_UNSPECIFIED\x10\x00\x12\r\n\tRTMP_PUSH\x10\x01\x12\x0c\n\x08SRT_PUSH\x10\x02\"5\n\x04Tier\x12\x14\n\x10TIER_UNSPECIFIED\x10\x00\x12\x06\n\x02SD\x10\x01\x12\x06\n\x02HD\x10\x02\x12\x07\n\x03UHD\x10\x03:\\\xea\x41Y\n\x1flivestream.googleapis.com/Input\x12\x36projects/{project}/locations/{location}/inputs/{input}\"\x86\x0b\n\x07\x43hannel\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x34\n\x0b\x63reate_time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x34\n\x0bupdate_time\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x45\n\x06labels\x18\x04 \x03(\x0b\x32\x35.google.cloud.video.livestream.v1.Channel.LabelsEntry\x12L\n\x11input_attachments\x18\x10 \x03(\x0b\x32\x31.google.cloud.video.livestream.v1.InputAttachment\x12\x19\n\x0c\x61\x63tive_input\x18\x06 \x01(\tB\x03\xe0\x41\x03\x12\x45\n\x06output\x18\t \x01(\x0b\x32\x30.google.cloud.video.livestream.v1.Channel.OutputB\x03\xe0\x41\x02\x12N\n\x12\x65lementary_streams\x18\n \x03(\x0b\x32\x32.google.cloud.video.livestream.v1.ElementaryStream\x12@\n\x0bmux_streams\x18\x0b \x03(\x0b\x32+.google.cloud.video.livestream.v1.MuxStream\x12=\n\tmanifests\x18\x0c \x03(\x0b\x32*.google.cloud.video.livestream.v1.Manifest\x12\x44\n\rsprite_sheets\x18\r \x03(\x0b\x32-.google.cloud.video.livestream.v1.SpriteSheet\x12V\n\x0fstreaming_state\x18\x0e \x01(\x0e\x32\x38.google.cloud.video.livestream.v1.Channel.StreamingStateB\x03\xe0\x41\x03\x12\x30\n\x0fstreaming_error\x18\x12 \x01(\x0b\x32\x12.google.rpc.StatusB\x03\xe0\x41\x03\x12?\n\nlog_config\x18\x13 \x01(\x0b\x32+.google.cloud.video.livestream.v1.LogConfig\x12I\n\x0ftimecode_config\x18\x15 \x01(\x0b\x32\x30.google.cloud.video.livestream.v1.TimecodeConfig\x12\x41\n\x0b\x65ncryptions\x18\x18 \x03(\x0b\x32,.google.cloud.video.livestream.v1.Encryption\x12\x43\n\x0cinput_config\x18\x19 \x01(\x0b\x32-.google.cloud.video.livestream.v1.InputConfig\x1a\x15\n\x06Output\x12\x0b\n\x03uri\x18\x01 \x01(\t\x1a-\n\x0bLabelsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"\xaa\x01\n\x0eStreamingState\x12\x1f\n\x1bSTREAMING_STATE_UNSPECIFIED\x10\x00\x12\r\n\tSTREAMING\x10\x01\x12\x12\n\x0e\x41WAITING_INPUT\x10\x02\x12\x13\n\x0fSTREAMING_ERROR\x10\x04\x12\x16\n\x12STREAMING_NO_INPUT\x10\x05\x12\x0b\n\x07STOPPED\x10\x06\x12\x0c\n\x08STARTING\x10\x07\x12\x0c\n\x08STOPPING\x10\x08:b\xea\x41_\n!livestream.googleapis.com/Channel\x12:projects/{project}/locations/{location}/channels/{channel}\"\xc6\x01\n\x0bInputConfig\x12X\n\x11input_switch_mode\x18\x01 \x01(\x0e\x32=.google.cloud.video.livestream.v1.InputConfig.InputSwitchMode\"]\n\x0fInputSwitchMode\x12!\n\x1dINPUT_SWITCH_MODE_UNSPECIFIED\x10\x00\x12\x1b\n\x17\x46\x41ILOVER_PREFER_PRIMARY\x10\x01\x12\n\n\x06MANUAL\x10\x03\"\xc0\x01\n\tLogConfig\x12M\n\x0clog_severity\x18\x01 \x01(\x0e\x32\x37.google.cloud.video.livestream.v1.LogConfig.LogSeverity\"d\n\x0bLogSeverity\x12\x1c\n\x18LOG_SEVERITY_UNSPECIFIED\x10\x00\x12\x07\n\x03OFF\x10\x01\x12\t\n\x05\x44\x45\x42UG\x10\x64\x12\t\n\x04INFO\x10\xc8\x01\x12\x0c\n\x07WARNING\x10\x90\x03\x12\n\n\x05\x45RROR\x10\xf4\x03\"\xea\x01\n\x13InputStreamProperty\x12\x37\n\x13last_establish_time\x18\x01 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12L\n\rvideo_streams\x18\x02 \x03(\x0b\x32\x35.google.cloud.video.livestream.v1.VideoStreamProperty\x12L\n\raudio_streams\x18\x03 \x03(\x0b\x32\x35.google.cloud.video.livestream.v1.AudioStreamProperty\"i\n\x13VideoStreamProperty\x12\r\n\x05index\x18\x01 \x01(\x05\x12\x43\n\x0cvideo_format\x18\x02 \x01(\x0b\x32-.google.cloud.video.livestream.v1.VideoFormat\"]\n\x0bVideoFormat\x12\r\n\x05\x63odec\x18\x01 \x01(\t\x12\x14\n\x0cwidth_pixels\x18\x02 \x01(\x05\x12\x15\n\rheight_pixels\x18\x03 \x01(\x05\x12\x12\n\nframe_rate\x18\x04 \x01(\x01\"i\n\x13\x41udioStreamProperty\x12\r\n\x05index\x18\x01 \x01(\x05\x12\x43\n\x0c\x61udio_format\x18\x02 \x01(\x0b\x32-.google.cloud.video.livestream.v1.AudioFormat\"K\n\x0b\x41udioFormat\x12\r\n\x05\x63odec\x18\x01 \x01(\t\x12\x15\n\rchannel_count\x18\x02 \x01(\x05\x12\x16\n\x0e\x63hannel_layout\x18\x03 \x03(\t\"\xdd\x01\n\x0fInputAttachment\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\x33\n\x05input\x18\x02 \x01(\tB$\xfa\x41!\n\x1flivestream.googleapis.com/Input\x12_\n\x12\x61utomatic_failover\x18\x03 \x01(\x0b\x32\x43.google.cloud.video.livestream.v1.InputAttachment.AutomaticFailover\x1a\'\n\x11\x41utomaticFailover\x12\x12\n\ninput_keys\x18\x01 \x03(\t\"\xe8\t\n\x05\x45vent\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x34\n\x0b\x63reate_time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x34\n\x0bupdate_time\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x43\n\x06labels\x18\x04 \x03(\x0b\x32\x33.google.cloud.video.livestream.v1.Event.LabelsEntry\x12T\n\x0cinput_switch\x18\x05 \x01(\x0b\x32\x37.google.cloud.video.livestream.v1.Event.InputSwitchTaskB\x03\xe0\x41\x02H\x00\x12L\n\x08\x61\x64_break\x18\x06 \x01(\x0b\x32\x33.google.cloud.video.livestream.v1.Event.AdBreakTaskB\x03\xe0\x41\x02H\x00\x12]\n\x11return_to_program\x18\r \x01(\x0b\x32;.google.cloud.video.livestream.v1.Event.ReturnToProgramTaskB\x03\xe0\x41\x02H\x00\x12\x45\n\x04mute\x18\x0f \x01(\x0b\x32\x30.google.cloud.video.livestream.v1.Event.MuteTaskB\x03\xe0\x41\x02H\x00\x12I\n\x06unmute\x18\x10 \x01(\x0b\x32\x32.google.cloud.video.livestream.v1.Event.UnmuteTaskB\x03\xe0\x41\x02H\x00\x12\x13\n\x0b\x65xecute_now\x18\t \x01(\x08\x12\x32\n\x0e\x65xecution_time\x18\n \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x41\n\x05state\x18\x0b \x01(\x0e\x32-.google.cloud.video.livestream.v1.Event.StateB\x03\xe0\x41\x03\x12&\n\x05\x65rror\x18\x0c \x01(\x0b\x32\x12.google.rpc.StatusB\x03\xe0\x41\x03\x1a$\n\x0fInputSwitchTask\x12\x11\n\tinput_key\x18\x01 \x01(\t\x1a:\n\x0b\x41\x64\x42reakTask\x12+\n\x08\x64uration\x18\x01 \x01(\x0b\x32\x19.google.protobuf.Duration\x1a\x15\n\x13ReturnToProgramTask\x1a\x37\n\x08MuteTask\x12+\n\x08\x64uration\x18\x01 \x01(\x0b\x32\x19.google.protobuf.Duration\x1a\x0c\n\nUnmuteTask\x1a-\n\x0bLabelsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"o\n\x05State\x12\x15\n\x11STATE_UNSPECIFIED\x10\x00\x12\r\n\tSCHEDULED\x10\x01\x12\x0b\n\x07RUNNING\x10\x02\x12\r\n\tSUCCEEDED\x10\x03\x12\n\n\x06\x46\x41ILED\x10\x04\x12\x0b\n\x07PENDING\x10\x05\x12\x0b\n\x07STOPPED\x10\x06:o\xea\x41l\n\x1flivestream.googleapis.com/Event\x12Iprojects/{project}/locations/{location}/channels/{channel}/events/{event}B\x06\n\x04task\"\x9d\x08\n\nEncryption\x12\x0f\n\x02id\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12\x65\n\x19secret_manager_key_source\x18\x07 \x01(\x0b\x32@.google.cloud.video.livestream.v1.Encryption.SecretManagerSourceH\x00\x12Q\n\x0b\x64rm_systems\x18\x03 \x01(\x0b\x32\x37.google.cloud.video.livestream.v1.Encryption.DrmSystemsB\x03\xe0\x41\x02\x12O\n\x06\x61\x65s128\x18\x04 \x01(\x0b\x32=.google.cloud.video.livestream.v1.Encryption.Aes128EncryptionH\x01\x12V\n\nsample_aes\x18\x05 \x01(\x0b\x32@.google.cloud.video.livestream.v1.Encryption.SampleAesEncryptionH\x01\x12V\n\tmpeg_cenc\x18\x06 \x01(\x0b\x32\x41.google.cloud.video.livestream.v1.Encryption.MpegCommonEncryptionH\x01\x1a\x61\n\x13SecretManagerSource\x12J\n\x0esecret_version\x18\x01 \x01(\tB2\xe0\x41\x02\xfa\x41,\n*secretmanager.googleapis.com/SecretVersion\x1a\n\n\x08Widevine\x1a\n\n\x08\x46\x61irplay\x1a\x0b\n\tPlayready\x1a\n\n\x08\x43learkey\x1a\xb2\x02\n\nDrmSystems\x12G\n\x08widevine\x18\x01 \x01(\x0b\x32\x35.google.cloud.video.livestream.v1.Encryption.Widevine\x12G\n\x08\x66\x61irplay\x18\x02 \x01(\x0b\x32\x35.google.cloud.video.livestream.v1.Encryption.Fairplay\x12I\n\tplayready\x18\x03 \x01(\x0b\x32\x36.google.cloud.video.livestream.v1.Encryption.Playready\x12G\n\x08\x63learkey\x18\x04 \x01(\x0b\x32\x35.google.cloud.video.livestream.v1.Encryption.Clearkey\x1a\x12\n\x10\x41\x65s128Encryption\x1a\x15\n\x13SampleAesEncryption\x1a+\n\x14MpegCommonEncryption\x12\x13\n\x06scheme\x18\x01 \x01(\tB\x03\xe0\x41\x02\x42\x0f\n\rsecret_sourceB\x11\n\x0f\x65ncryption_modeB\xeb\x01\n$com.google.cloud.video.livestream.v1B\x0eResourcesProtoP\x01ZDcloud.google.com/go/video/livestream/apiv1/livestreampb;livestreampb\xaa\x02 Google.Cloud.Video.LiveStream.V1\xca\x02 Google\\Cloud\\Video\\LiveStream\\V1\xea\x02$Google::Cloud::Video::LiveStream::V1b\x06proto3"
|
15
|
+
descriptor_data = "\n0google/cloud/video/livestream/v1/resources.proto\x12 google.cloud.video.livestream.v1\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a.google/cloud/video/livestream/v1/outputs.proto\x1a\x1egoogle/protobuf/duration.proto\x1a\x1fgoogle/protobuf/timestamp.proto\x1a\x17google/rpc/status.proto\"\xf0\x06\n\x05Input\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x34\n\x0b\x63reate_time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x34\n\x0bupdate_time\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x43\n\x06labels\x18\x04 \x03(\x0b\x32\x33.google.cloud.video.livestream.v1.Input.LabelsEntry\x12:\n\x04type\x18\x05 \x01(\x0e\x32,.google.cloud.video.livestream.v1.Input.Type\x12:\n\x04tier\x18\x0e \x01(\x0e\x32,.google.cloud.video.livestream.v1.Input.Tier\x12\x10\n\x03uri\x18\x06 \x01(\tB\x03\xe0\x41\x03\x12S\n\x14preprocessing_config\x18\t \x01(\x0b\x32\x35.google.cloud.video.livestream.v1.PreprocessingConfig\x12L\n\x0esecurity_rules\x18\x0c \x01(\x0b\x32\x34.google.cloud.video.livestream.v1.Input.SecurityRule\x12Y\n\x15input_stream_property\x18\x0f \x01(\x0b\x32\x35.google.cloud.video.livestream.v1.InputStreamPropertyB\x03\xe0\x41\x03\x1a!\n\x0cSecurityRule\x12\x11\n\tip_ranges\x18\x01 \x03(\t\x1a-\n\x0bLabelsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"9\n\x04Type\x12\x14\n\x10TYPE_UNSPECIFIED\x10\x00\x12\r\n\tRTMP_PUSH\x10\x01\x12\x0c\n\x08SRT_PUSH\x10\x02\"5\n\x04Tier\x12\x14\n\x10TIER_UNSPECIFIED\x10\x00\x12\x06\n\x02SD\x10\x01\x12\x06\n\x02HD\x10\x02\x12\x07\n\x03UHD\x10\x03:\\\xea\x41Y\n\x1flivestream.googleapis.com/Input\x12\x36projects/{project}/locations/{location}/inputs/{input}\"\x86\x0b\n\x07\x43hannel\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x34\n\x0b\x63reate_time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x34\n\x0bupdate_time\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x45\n\x06labels\x18\x04 \x03(\x0b\x32\x35.google.cloud.video.livestream.v1.Channel.LabelsEntry\x12L\n\x11input_attachments\x18\x10 \x03(\x0b\x32\x31.google.cloud.video.livestream.v1.InputAttachment\x12\x19\n\x0c\x61\x63tive_input\x18\x06 \x01(\tB\x03\xe0\x41\x03\x12\x45\n\x06output\x18\t \x01(\x0b\x32\x30.google.cloud.video.livestream.v1.Channel.OutputB\x03\xe0\x41\x02\x12N\n\x12\x65lementary_streams\x18\n \x03(\x0b\x32\x32.google.cloud.video.livestream.v1.ElementaryStream\x12@\n\x0bmux_streams\x18\x0b \x03(\x0b\x32+.google.cloud.video.livestream.v1.MuxStream\x12=\n\tmanifests\x18\x0c \x03(\x0b\x32*.google.cloud.video.livestream.v1.Manifest\x12\x44\n\rsprite_sheets\x18\r \x03(\x0b\x32-.google.cloud.video.livestream.v1.SpriteSheet\x12V\n\x0fstreaming_state\x18\x0e \x01(\x0e\x32\x38.google.cloud.video.livestream.v1.Channel.StreamingStateB\x03\xe0\x41\x03\x12\x30\n\x0fstreaming_error\x18\x12 \x01(\x0b\x32\x12.google.rpc.StatusB\x03\xe0\x41\x03\x12?\n\nlog_config\x18\x13 \x01(\x0b\x32+.google.cloud.video.livestream.v1.LogConfig\x12I\n\x0ftimecode_config\x18\x15 \x01(\x0b\x32\x30.google.cloud.video.livestream.v1.TimecodeConfig\x12\x41\n\x0b\x65ncryptions\x18\x18 \x03(\x0b\x32,.google.cloud.video.livestream.v1.Encryption\x12\x43\n\x0cinput_config\x18\x19 \x01(\x0b\x32-.google.cloud.video.livestream.v1.InputConfig\x1a\x15\n\x06Output\x12\x0b\n\x03uri\x18\x01 \x01(\t\x1a-\n\x0bLabelsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"\xaa\x01\n\x0eStreamingState\x12\x1f\n\x1bSTREAMING_STATE_UNSPECIFIED\x10\x00\x12\r\n\tSTREAMING\x10\x01\x12\x12\n\x0e\x41WAITING_INPUT\x10\x02\x12\x13\n\x0fSTREAMING_ERROR\x10\x04\x12\x16\n\x12STREAMING_NO_INPUT\x10\x05\x12\x0b\n\x07STOPPED\x10\x06\x12\x0c\n\x08STARTING\x10\x07\x12\x0c\n\x08STOPPING\x10\x08:b\xea\x41_\n!livestream.googleapis.com/Channel\x12:projects/{project}/locations/{location}/channels/{channel}\"\xc6\x01\n\x0bInputConfig\x12X\n\x11input_switch_mode\x18\x01 \x01(\x0e\x32=.google.cloud.video.livestream.v1.InputConfig.InputSwitchMode\"]\n\x0fInputSwitchMode\x12!\n\x1dINPUT_SWITCH_MODE_UNSPECIFIED\x10\x00\x12\x1b\n\x17\x46\x41ILOVER_PREFER_PRIMARY\x10\x01\x12\n\n\x06MANUAL\x10\x03\"\xc0\x01\n\tLogConfig\x12M\n\x0clog_severity\x18\x01 \x01(\x0e\x32\x37.google.cloud.video.livestream.v1.LogConfig.LogSeverity\"d\n\x0bLogSeverity\x12\x1c\n\x18LOG_SEVERITY_UNSPECIFIED\x10\x00\x12\x07\n\x03OFF\x10\x01\x12\t\n\x05\x44\x45\x42UG\x10\x64\x12\t\n\x04INFO\x10\xc8\x01\x12\x0c\n\x07WARNING\x10\x90\x03\x12\n\n\x05\x45RROR\x10\xf4\x03\"\xea\x01\n\x13InputStreamProperty\x12\x37\n\x13last_establish_time\x18\x01 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12L\n\rvideo_streams\x18\x02 \x03(\x0b\x32\x35.google.cloud.video.livestream.v1.VideoStreamProperty\x12L\n\raudio_streams\x18\x03 \x03(\x0b\x32\x35.google.cloud.video.livestream.v1.AudioStreamProperty\"i\n\x13VideoStreamProperty\x12\r\n\x05index\x18\x01 \x01(\x05\x12\x43\n\x0cvideo_format\x18\x02 \x01(\x0b\x32-.google.cloud.video.livestream.v1.VideoFormat\"]\n\x0bVideoFormat\x12\r\n\x05\x63odec\x18\x01 \x01(\t\x12\x14\n\x0cwidth_pixels\x18\x02 \x01(\x05\x12\x15\n\rheight_pixels\x18\x03 \x01(\x05\x12\x12\n\nframe_rate\x18\x04 \x01(\x01\"i\n\x13\x41udioStreamProperty\x12\r\n\x05index\x18\x01 \x01(\x05\x12\x43\n\x0c\x61udio_format\x18\x02 \x01(\x0b\x32-.google.cloud.video.livestream.v1.AudioFormat\"K\n\x0b\x41udioFormat\x12\r\n\x05\x63odec\x18\x01 \x01(\t\x12\x15\n\rchannel_count\x18\x02 \x01(\x05\x12\x16\n\x0e\x63hannel_layout\x18\x03 \x03(\t\"\xdd\x01\n\x0fInputAttachment\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\x33\n\x05input\x18\x02 \x01(\tB$\xfa\x41!\n\x1flivestream.googleapis.com/Input\x12_\n\x12\x61utomatic_failover\x18\x03 \x01(\x0b\x32\x43.google.cloud.video.livestream.v1.InputAttachment.AutomaticFailover\x1a\'\n\x11\x41utomaticFailover\x12\x12\n\ninput_keys\x18\x01 \x03(\t\"\x82\x0b\n\x05\x45vent\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x34\n\x0b\x63reate_time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x34\n\x0bupdate_time\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x43\n\x06labels\x18\x04 \x03(\x0b\x32\x33.google.cloud.video.livestream.v1.Event.LabelsEntry\x12O\n\x0cinput_switch\x18\x05 \x01(\x0b\x32\x37.google.cloud.video.livestream.v1.Event.InputSwitchTaskH\x00\x12G\n\x08\x61\x64_break\x18\x06 \x01(\x0b\x32\x33.google.cloud.video.livestream.v1.Event.AdBreakTaskH\x00\x12X\n\x11return_to_program\x18\r \x01(\x0b\x32;.google.cloud.video.livestream.v1.Event.ReturnToProgramTaskH\x00\x12\x42\n\x05slate\x18\x0e \x01(\x0b\x32\x31.google.cloud.video.livestream.v1.Event.SlateTaskH\x00\x12@\n\x04mute\x18\x0f \x01(\x0b\x32\x30.google.cloud.video.livestream.v1.Event.MuteTaskH\x00\x12\x44\n\x06unmute\x18\x10 \x01(\x0b\x32\x32.google.cloud.video.livestream.v1.Event.UnmuteTaskH\x00\x12\x13\n\x0b\x65xecute_now\x18\t \x01(\x08\x12\x32\n\x0e\x65xecution_time\x18\n \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x41\n\x05state\x18\x0b \x01(\x0e\x32-.google.cloud.video.livestream.v1.Event.StateB\x03\xe0\x41\x03\x12&\n\x05\x65rror\x18\x0c \x01(\x0b\x32\x12.google.rpc.StatusB\x03\xe0\x41\x03\x1a$\n\x0fInputSwitchTask\x12\x11\n\tinput_key\x18\x01 \x01(\t\x1a:\n\x0b\x41\x64\x42reakTask\x12+\n\x08\x64uration\x18\x01 \x01(\x0b\x32\x19.google.protobuf.Duration\x1am\n\tSlateTask\x12+\n\x08\x64uration\x18\x01 \x01(\x0b\x32\x19.google.protobuf.Duration\x12\x33\n\x05\x61sset\x18\x02 \x01(\tB$\xfa\x41!\n\x1flivestream.googleapis.com/Asset\x1a\x15\n\x13ReturnToProgramTask\x1a\x37\n\x08MuteTask\x12+\n\x08\x64uration\x18\x01 \x01(\x0b\x32\x19.google.protobuf.Duration\x1a\x0c\n\nUnmuteTask\x1a-\n\x0bLabelsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"o\n\x05State\x12\x15\n\x11STATE_UNSPECIFIED\x10\x00\x12\r\n\tSCHEDULED\x10\x01\x12\x0b\n\x07RUNNING\x10\x02\x12\r\n\tSUCCEEDED\x10\x03\x12\n\n\x06\x46\x41ILED\x10\x04\x12\x0b\n\x07PENDING\x10\x05\x12\x0b\n\x07STOPPED\x10\x06:o\xea\x41l\n\x1flivestream.googleapis.com/Event\x12Iprojects/{project}/locations/{location}/channels/{channel}/events/{event}B\x06\n\x04task\"\xed\x05\n\x05\x41sset\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x34\n\x0b\x63reate_time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x34\n\x0bupdate_time\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x43\n\x06labels\x18\x04 \x03(\x0b\x32\x33.google.cloud.video.livestream.v1.Asset.LabelsEntry\x12\x43\n\x05video\x18\x05 \x01(\x0b\x32\x32.google.cloud.video.livestream.v1.Asset.VideoAssetH\x00\x12\x43\n\x05image\x18\x06 \x01(\x0b\x32\x32.google.cloud.video.livestream.v1.Asset.ImageAssetH\x00\x12\x0e\n\x06\x63rc32c\x18\x07 \x01(\t\x12\x41\n\x05state\x18\x08 \x01(\x0e\x32-.google.cloud.video.livestream.v1.Asset.StateB\x03\xe0\x41\x03\x12&\n\x05\x65rror\x18\t \x01(\x0b\x32\x12.google.rpc.StatusB\x03\xe0\x41\x03\x1a\x19\n\nVideoAsset\x12\x0b\n\x03uri\x18\x01 \x01(\t\x1a\x19\n\nImageAsset\x12\x0b\n\x03uri\x18\x01 \x01(\t\x1a-\n\x0bLabelsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"Q\n\x05State\x12\x15\n\x11STATE_UNSPECIFIED\x10\x00\x12\x0c\n\x08\x43REATING\x10\x01\x12\n\n\x06\x41\x43TIVE\x10\x02\x12\x0c\n\x08\x44\x45LETING\x10\x03\x12\t\n\x05\x45RROR\x10\x04:\\\xea\x41Y\n\x1flivestream.googleapis.com/Asset\x12\x36projects/{project}/locations/{location}/assets/{asset}B\n\n\x08resource\"\x9d\x08\n\nEncryption\x12\x0f\n\x02id\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12\x65\n\x19secret_manager_key_source\x18\x07 \x01(\x0b\x32@.google.cloud.video.livestream.v1.Encryption.SecretManagerSourceH\x00\x12Q\n\x0b\x64rm_systems\x18\x03 \x01(\x0b\x32\x37.google.cloud.video.livestream.v1.Encryption.DrmSystemsB\x03\xe0\x41\x02\x12O\n\x06\x61\x65s128\x18\x04 \x01(\x0b\x32=.google.cloud.video.livestream.v1.Encryption.Aes128EncryptionH\x01\x12V\n\nsample_aes\x18\x05 \x01(\x0b\x32@.google.cloud.video.livestream.v1.Encryption.SampleAesEncryptionH\x01\x12V\n\tmpeg_cenc\x18\x06 \x01(\x0b\x32\x41.google.cloud.video.livestream.v1.Encryption.MpegCommonEncryptionH\x01\x1a\x61\n\x13SecretManagerSource\x12J\n\x0esecret_version\x18\x01 \x01(\tB2\xe0\x41\x02\xfa\x41,\n*secretmanager.googleapis.com/SecretVersion\x1a\n\n\x08Widevine\x1a\n\n\x08\x46\x61irplay\x1a\x0b\n\tPlayready\x1a\n\n\x08\x43learkey\x1a\xb2\x02\n\nDrmSystems\x12G\n\x08widevine\x18\x01 \x01(\x0b\x32\x35.google.cloud.video.livestream.v1.Encryption.Widevine\x12G\n\x08\x66\x61irplay\x18\x02 \x01(\x0b\x32\x35.google.cloud.video.livestream.v1.Encryption.Fairplay\x12I\n\tplayready\x18\x03 \x01(\x0b\x32\x36.google.cloud.video.livestream.v1.Encryption.Playready\x12G\n\x08\x63learkey\x18\x04 \x01(\x0b\x32\x35.google.cloud.video.livestream.v1.Encryption.Clearkey\x1a\x12\n\x10\x41\x65s128Encryption\x1a\x15\n\x13SampleAesEncryption\x1a+\n\x14MpegCommonEncryption\x12\x13\n\x06scheme\x18\x01 \x01(\tB\x03\xe0\x41\x02\x42\x0f\n\rsecret_sourceB\x11\n\x0f\x65ncryption_mode\"\xea\x03\n\x04Pool\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x34\n\x0b\x63reate_time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x34\n\x0bupdate_time\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x42\n\x06labels\x18\x04 \x03(\x0b\x32\x32.google.cloud.video.livestream.v1.Pool.LabelsEntry\x12L\n\x0enetwork_config\x18\x05 \x01(\x0b\x32\x34.google.cloud.video.livestream.v1.Pool.NetworkConfig\x1aL\n\rNetworkConfig\x12;\n\x0epeered_network\x18\x01 \x01(\tB#\xfa\x41 \n\x1e\x63ompute.googleapis.com/Network\x1a-\n\x0bLabelsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01:Y\xea\x41V\n\x1elivestream.googleapis.com/Pool\x12\x34projects/{project}/locations/{location}/pools/{pool}B\xeb\x01\n$com.google.cloud.video.livestream.v1B\x0eResourcesProtoP\x01ZDcloud.google.com/go/video/livestream/apiv1/livestreampb;livestreampb\xaa\x02 Google.Cloud.Video.LiveStream.V1\xca\x02 Google\\Cloud\\Video\\LiveStream\\V1\xea\x02$Google::Cloud::Video::LiveStream::V1b\x06proto3"
|
16
16
|
|
17
17
|
pool = Google::Protobuf::DescriptorPool.generated_pool
|
18
18
|
|
@@ -68,10 +68,15 @@ module Google
|
|
68
68
|
Event = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.video.livestream.v1.Event").msgclass
|
69
69
|
Event::InputSwitchTask = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.video.livestream.v1.Event.InputSwitchTask").msgclass
|
70
70
|
Event::AdBreakTask = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.video.livestream.v1.Event.AdBreakTask").msgclass
|
71
|
+
Event::SlateTask = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.video.livestream.v1.Event.SlateTask").msgclass
|
71
72
|
Event::ReturnToProgramTask = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.video.livestream.v1.Event.ReturnToProgramTask").msgclass
|
72
73
|
Event::MuteTask = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.video.livestream.v1.Event.MuteTask").msgclass
|
73
74
|
Event::UnmuteTask = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.video.livestream.v1.Event.UnmuteTask").msgclass
|
74
75
|
Event::State = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.video.livestream.v1.Event.State").enummodule
|
76
|
+
Asset = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.video.livestream.v1.Asset").msgclass
|
77
|
+
Asset::VideoAsset = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.video.livestream.v1.Asset.VideoAsset").msgclass
|
78
|
+
Asset::ImageAsset = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.video.livestream.v1.Asset.ImageAsset").msgclass
|
79
|
+
Asset::State = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.video.livestream.v1.Asset.State").enummodule
|
75
80
|
Encryption = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.video.livestream.v1.Encryption").msgclass
|
76
81
|
Encryption::SecretManagerSource = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.video.livestream.v1.Encryption.SecretManagerSource").msgclass
|
77
82
|
Encryption::Widevine = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.video.livestream.v1.Encryption.Widevine").msgclass
|
@@ -82,6 +87,8 @@ module Google
|
|
82
87
|
Encryption::Aes128Encryption = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.video.livestream.v1.Encryption.Aes128Encryption").msgclass
|
83
88
|
Encryption::SampleAesEncryption = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.video.livestream.v1.Encryption.SampleAesEncryption").msgclass
|
84
89
|
Encryption::MpegCommonEncryption = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.video.livestream.v1.Encryption.MpegCommonEncryption").msgclass
|
90
|
+
Pool = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.video.livestream.v1.Pool").msgclass
|
91
|
+
Pool::NetworkConfig = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.video.livestream.v1.Pool.NetworkConfig").msgclass
|
85
92
|
end
|
86
93
|
end
|
87
94
|
end
|