google-cloud-video-live_stream-v1 0.3.0 → 0.5.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +1 -1
- data/lib/google/cloud/video/live_stream/v1/bindings_override.rb +104 -0
- data/lib/google/cloud/video/live_stream/v1/livestream_service/client.rb +37 -11
- data/lib/google/cloud/video/live_stream/v1/livestream_service/operations.rb +2 -2
- data/lib/google/cloud/video/live_stream/v1/livestream_service/paths.rb +19 -0
- data/lib/google/cloud/video/live_stream/v1/livestream_service/rest/client.rb +45 -11
- data/lib/google/cloud/video/live_stream/v1/livestream_service/rest/operations.rb +2 -2
- data/lib/google/cloud/video/live_stream/v1/livestream_service/rest.rb +1 -0
- data/lib/google/cloud/video/live_stream/v1/rest.rb +1 -0
- data/lib/google/cloud/video/live_stream/v1/version.rb +1 -1
- data/lib/google/cloud/video/livestream/v1/outputs_pb.rb +30 -98
- data/lib/google/cloud/video/livestream/v1/resources_pb.rb +44 -124
- data/lib/google/cloud/video/livestream/v1/service_pb.rb +27 -105
- data/proto_docs/google/api/client.rb +67 -4
- data/proto_docs/google/cloud/video/livestream/v1/outputs.rb +108 -26
- data/proto_docs/google/cloud/video/livestream/v1/resources.rb +218 -16
- data/proto_docs/google/cloud/video/livestream/v1/service.rb +21 -9
- data/proto_docs/google/protobuf/any.rb +7 -4
- data/proto_docs/google/protobuf/timestamp.rb +1 -3
- data/proto_docs/google/type/datetime.rb +99 -0
- metadata +26 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5eb3f6afc12939ced53c48282ba302e9d998ea3d3d9fda5c9f2d3a8da89a42e8
|
4
|
+
data.tar.gz: 6d49d9b358eeb54db9e21b8f4af27660719a57d1b6485e59364fd33cc6f969e5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e52a0ecdc3d4fc16d47008d0090a059a92740c54d1f8c782360d1f1cdee6118e57bcf520a8983451cddef7feb8b1919d83f50575e4dc566c6a69bb4a8959efac
|
7
|
+
data.tar.gz: 91155587d631a7e7fab68a8c90d0bb3df22e8d73f4031ff336a39eef402bce110ea3d790668f05baa048e1955fb0fb82fd1213180635df78f3dd3f80a0cc0c48
|
data/README.md
CHANGED
@@ -47,7 +47,7 @@ for general usage information.
|
|
47
47
|
|
48
48
|
To enable logging for this library, set the logger for the underlying [gRPC](https://github.com/grpc/grpc/tree/master/src/ruby) library.
|
49
49
|
The logger that you set may be a Ruby stdlib [`Logger`](https://ruby-doc.org/current/stdlibs/logger/Logger.html) as shown below,
|
50
|
-
or a [`Google::Cloud::Logging::Logger`](https://
|
50
|
+
or a [`Google::Cloud::Logging::Logger`](https://cloud.google.com/ruby/docs/reference/google-cloud-logging/latest)
|
51
51
|
that will write logs to [Cloud Logging](https://cloud.google.com/logging/). See [grpc/logconfig.rb](https://github.com/grpc/grpc/blob/master/src/ruby/lib/grpc/logconfig.rb)
|
52
52
|
and the gRPC [spec_helper.rb](https://github.com/grpc/grpc/blob/master/src/ruby/spec/spec_helper.rb) for additional information.
|
53
53
|
|
@@ -0,0 +1,104 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
# Copyright 2023 Google LLC
|
4
|
+
#
|
5
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
6
|
+
# you may not use this file except in compliance with the License.
|
7
|
+
# You may obtain a copy of the License at
|
8
|
+
#
|
9
|
+
# https://www.apache.org/licenses/LICENSE-2.0
|
10
|
+
#
|
11
|
+
# Unless required by applicable law or agreed to in writing, software
|
12
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
13
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
14
|
+
# See the License for the specific language governing permissions and
|
15
|
+
# limitations under the License.
|
16
|
+
|
17
|
+
# Auto-generated by gapic-generator-ruby. DO NOT EDIT!
|
18
|
+
|
19
|
+
require "gapic/config"
|
20
|
+
|
21
|
+
module Google
|
22
|
+
module Cloud
|
23
|
+
module Video
|
24
|
+
module LiveStream
|
25
|
+
##
|
26
|
+
# @example Loading just the REST part of this package, including all its services, and instantiating a REST client
|
27
|
+
#
|
28
|
+
# require "google/cloud/video/live_stream/v1/rest"
|
29
|
+
# client = ::Google::Cloud::Video::LiveStream::V1::LivestreamService::Rest::Client.new
|
30
|
+
#
|
31
|
+
module V1
|
32
|
+
##
|
33
|
+
# @private
|
34
|
+
# Initialize the mixin bindings configuration
|
35
|
+
#
|
36
|
+
def self.configure
|
37
|
+
@configure ||= begin
|
38
|
+
namespace = ["Google", "Cloud", "Video", "LiveStream"]
|
39
|
+
parent_config = while namespace.any?
|
40
|
+
parent_name = namespace.join "::"
|
41
|
+
parent_const = const_get parent_name
|
42
|
+
break parent_const.configure if parent_const.respond_to? :configure
|
43
|
+
namespace.pop
|
44
|
+
end
|
45
|
+
|
46
|
+
default_config = Configuration.new parent_config
|
47
|
+
default_config.bindings_override["google.cloud.location.Locations.GetLocation"] = [
|
48
|
+
Gapic::Rest::GrpcTranscoder::HttpBinding.create_with_validation(
|
49
|
+
uri_method: :get,
|
50
|
+
uri_template: "/v1/{name}",
|
51
|
+
matches: [
|
52
|
+
["name", %r{^projects/[^/]+/locations/[^/]+/?$}, false]
|
53
|
+
],
|
54
|
+
body: nil
|
55
|
+
)
|
56
|
+
]
|
57
|
+
default_config.bindings_override["google.cloud.location.Locations.ListLocations"] = [
|
58
|
+
|
59
|
+
Gapic::Rest::GrpcTranscoder::HttpBinding.create_with_validation(
|
60
|
+
uri_method: :get,
|
61
|
+
uri_template: "/v1/{name}/locations",
|
62
|
+
matches: [
|
63
|
+
["name", %r{^projects/[^/]+/?$}, false]
|
64
|
+
],
|
65
|
+
body: nil
|
66
|
+
)
|
67
|
+
]
|
68
|
+
default_config
|
69
|
+
end
|
70
|
+
yield @configure if block_given?
|
71
|
+
@configure
|
72
|
+
end
|
73
|
+
|
74
|
+
##
|
75
|
+
# @private
|
76
|
+
# Configuration class for the google.cloud.video.livestream.v1 package.
|
77
|
+
#
|
78
|
+
# This class contains common configuration for all services
|
79
|
+
# of the google.cloud.video.livestream.v1 package.
|
80
|
+
#
|
81
|
+
# This configuration is for internal use of the client library classes,
|
82
|
+
# and it is not intended that the end-users will read or change it.
|
83
|
+
#
|
84
|
+
class Configuration
|
85
|
+
extend ::Gapic::Config
|
86
|
+
|
87
|
+
# @private
|
88
|
+
# Overrides for http bindings for the RPC of the mixins for this package.
|
89
|
+
# Services in this package should use these when creating clients for the mixin services.
|
90
|
+
# @return [::Hash{::Symbol=>::Array<::Gapic::Rest::GrpcTranscoder::HttpBinding>}]
|
91
|
+
config_attr :bindings_override, {}, ::Hash, nil
|
92
|
+
|
93
|
+
# @private
|
94
|
+
def initialize parent_config = nil
|
95
|
+
@parent_config = parent_config unless parent_config.nil?
|
96
|
+
|
97
|
+
yield self if block_given?
|
98
|
+
end
|
99
|
+
end
|
100
|
+
end
|
101
|
+
end
|
102
|
+
end
|
103
|
+
end
|
104
|
+
end
|
@@ -18,6 +18,7 @@
|
|
18
18
|
|
19
19
|
require "google/cloud/errors"
|
20
20
|
require "google/cloud/video/livestream/v1/service_pb"
|
21
|
+
require "google/cloud/location"
|
21
22
|
|
22
23
|
module Google
|
23
24
|
module Cloud
|
@@ -194,6 +195,12 @@ module Google
|
|
194
195
|
config.endpoint = @config.endpoint
|
195
196
|
end
|
196
197
|
|
198
|
+
@location_client = Google::Cloud::Location::Locations::Client.new do |config|
|
199
|
+
config.credentials = credentials
|
200
|
+
config.quota_project = @quota_project_id
|
201
|
+
config.endpoint = @config.endpoint
|
202
|
+
end
|
203
|
+
|
197
204
|
@livestream_service_stub = ::Gapic::ServiceStub.new(
|
198
205
|
::Google::Cloud::Video::LiveStream::V1::LivestreamService::Stub,
|
199
206
|
credentials: credentials,
|
@@ -210,6 +217,13 @@ module Google
|
|
210
217
|
#
|
211
218
|
attr_reader :operations_client
|
212
219
|
|
220
|
+
##
|
221
|
+
# Get the associated client for mix-in of the Locations.
|
222
|
+
#
|
223
|
+
# @return [Google::Cloud::Location::Locations::Client]
|
224
|
+
#
|
225
|
+
attr_reader :location_client
|
226
|
+
|
213
227
|
# Service calls
|
214
228
|
|
215
229
|
##
|
@@ -352,8 +366,8 @@ module Google
|
|
352
366
|
# The maximum number of items to return. If unspecified, server
|
353
367
|
# will pick an appropriate default. Server may return fewer items than
|
354
368
|
# requested. A caller should only rely on response's
|
355
|
-
# {::Google::Cloud::Video::LiveStream::V1::ListChannelsResponse#next_page_token next_page_token}
|
356
|
-
# determine if there are more items left to be queried.
|
369
|
+
# {::Google::Cloud::Video::LiveStream::V1::ListChannelsResponse#next_page_token next_page_token}
|
370
|
+
# to determine if there are more items left to be queried.
|
357
371
|
# @param page_token [::String]
|
358
372
|
# The next_page_token value returned from a previous List request, if any.
|
359
373
|
# @param filter [::String]
|
@@ -653,14 +667,22 @@ module Google
|
|
653
667
|
# resource by the update. You can only update the following fields:
|
654
668
|
#
|
655
669
|
# * [`inputAttachments`](https://cloud.google.com/livestream/docs/reference/rest/v1/projects.locations.channels#inputattachment)
|
670
|
+
# * [`inputConfig`](https://cloud.google.com/livestream/docs/reference/rest/v1/projects.locations.channels#inputconfig)
|
656
671
|
# * [`output`](https://cloud.google.com/livestream/docs/reference/rest/v1/projects.locations.channels#output)
|
657
|
-
# * [`elementaryStreams`](https://cloud.google.com/livestream/docs/reference/rest/v1/projects.locations.channels#
|
672
|
+
# * [`elementaryStreams`](https://cloud.google.com/livestream/docs/reference/rest/v1/projects.locations.channels#elementarystream)
|
658
673
|
# * [`muxStreams`](https://cloud.google.com/livestream/docs/reference/rest/v1/projects.locations.channels#muxstream)
|
659
|
-
# * [`manifests`](https://cloud.google.com/livestream/docs/reference/rest/v1/projects.locations.channels#
|
660
|
-
# * [`
|
674
|
+
# * [`manifests`](https://cloud.google.com/livestream/docs/reference/rest/v1/projects.locations.channels#manifest)
|
675
|
+
# * [`spriteSheets`](https://cloud.google.com/livestream/docs/reference/rest/v1/projects.locations.channels#spritesheet)
|
676
|
+
# * [`logConfig`](https://cloud.google.com/livestream/docs/reference/rest/v1/projects.locations.channels#logconfig)
|
677
|
+
# * [`timecodeConfig`](https://cloud.google.com/livestream/docs/reference/rest/v1/projects.locations.channels#timecodeconfig)
|
678
|
+
# * [`encryptions`](https://cloud.google.com/livestream/docs/reference/rest/v1/projects.locations.channels#encryption)
|
661
679
|
#
|
662
680
|
# The fields specified in the update_mask are relative to the resource, not
|
663
681
|
# the full request. A field will be overwritten if it is in the mask.
|
682
|
+
#
|
683
|
+
# If the mask is not present, then each field from the list above is updated
|
684
|
+
# if the field appears in the request payload. To unset a field, add the
|
685
|
+
# field to the update mask and remove it from the request payload.
|
664
686
|
# @param channel [::Google::Cloud::Video::LiveStream::V1::Channel, ::Hash]
|
665
687
|
# Required. The channel resource to be updated.
|
666
688
|
# @param request_id [::String]
|
@@ -1107,8 +1129,8 @@ module Google
|
|
1107
1129
|
# The maximum number of items to return. If unspecified, server
|
1108
1130
|
# will pick an appropriate default. Server may return fewer items than
|
1109
1131
|
# requested. A caller should only rely on response's
|
1110
|
-
# {::Google::Cloud::Video::LiveStream::V1::ListInputsResponse#next_page_token next_page_token}
|
1111
|
-
# determine if there are more items left to be queried.
|
1132
|
+
# {::Google::Cloud::Video::LiveStream::V1::ListInputsResponse#next_page_token next_page_token}
|
1133
|
+
# to determine if there are more items left to be queried.
|
1112
1134
|
# @param page_token [::String]
|
1113
1135
|
# The next_page_token value returned from a previous List request, if any.
|
1114
1136
|
# @param filter [::String]
|
@@ -1407,6 +1429,10 @@ module Google
|
|
1407
1429
|
#
|
1408
1430
|
# The fields specified in the update_mask are relative to the resource, not
|
1409
1431
|
# the full request. A field will be overwritten if it is in the mask.
|
1432
|
+
#
|
1433
|
+
# If the mask is not present, then each field from the list above is updated
|
1434
|
+
# if the field appears in the request payload. To unset a field, add the
|
1435
|
+
# field to the update mask and remove it from the request payload.
|
1410
1436
|
# @param input [::Google::Cloud::Video::LiveStream::V1::Input, ::Hash]
|
1411
1437
|
# Required. The input resource to be updated.
|
1412
1438
|
# @param request_id [::String]
|
@@ -1627,8 +1653,8 @@ module Google
|
|
1627
1653
|
# The maximum number of items to return. If unspecified, server
|
1628
1654
|
# will pick an appropriate default. Server may return fewer items than
|
1629
1655
|
# requested. A caller should only rely on response's
|
1630
|
-
# {::Google::Cloud::Video::LiveStream::V1::ListEventsResponse#next_page_token next_page_token}
|
1631
|
-
# determine if there are more items left to be queried.
|
1656
|
+
# {::Google::Cloud::Video::LiveStream::V1::ListEventsResponse#next_page_token next_page_token}
|
1657
|
+
# to determine if there are more items left to be queried.
|
1632
1658
|
# @param page_token [::String]
|
1633
1659
|
# The next_page_token value returned from a previous List request, if any.
|
1634
1660
|
# @param filter [::String]
|
@@ -1930,9 +1956,9 @@ module Google
|
|
1930
1956
|
# * (`String`) The path to a service account key file in JSON format
|
1931
1957
|
# * (`Hash`) A service account key as a Hash
|
1932
1958
|
# * (`Google::Auth::Credentials`) A googleauth credentials object
|
1933
|
-
# (see the [googleauth docs](https://
|
1959
|
+
# (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials))
|
1934
1960
|
# * (`Signet::OAuth2::Client`) A signet oauth2 client object
|
1935
|
-
# (see the [signet docs](https://
|
1961
|
+
# (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client))
|
1936
1962
|
# * (`GRPC::Core::Channel`) a gRPC channel with included credentials
|
1937
1963
|
# * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object
|
1938
1964
|
# * (`nil`) indicating no credentials
|
@@ -621,9 +621,9 @@ module Google
|
|
621
621
|
# * (`String`) The path to a service account key file in JSON format
|
622
622
|
# * (`Hash`) A service account key as a Hash
|
623
623
|
# * (`Google::Auth::Credentials`) A googleauth credentials object
|
624
|
-
# (see the [googleauth docs](https://
|
624
|
+
# (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials))
|
625
625
|
# * (`Signet::OAuth2::Client`) A signet oauth2 client object
|
626
|
-
# (see the [signet docs](https://
|
626
|
+
# (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client))
|
627
627
|
# * (`GRPC::Core::Channel`) a gRPC channel with included credentials
|
628
628
|
# * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object
|
629
629
|
# * (`nil`) indicating no credentials
|
@@ -101,6 +101,25 @@ module Google
|
|
101
101
|
"projects/#{project}/locations/#{location}"
|
102
102
|
end
|
103
103
|
|
104
|
+
##
|
105
|
+
# Create a fully-qualified SecretVersion resource string.
|
106
|
+
#
|
107
|
+
# The resource will be in the following format:
|
108
|
+
#
|
109
|
+
# `projects/{project}/secrets/{secret}/versions/{version}`
|
110
|
+
#
|
111
|
+
# @param project [String]
|
112
|
+
# @param secret [String]
|
113
|
+
# @param version [String]
|
114
|
+
#
|
115
|
+
# @return [::String]
|
116
|
+
def secret_version_path project:, secret:, version:
|
117
|
+
raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
|
118
|
+
raise ::ArgumentError, "secret cannot contain /" if secret.to_s.include? "/"
|
119
|
+
|
120
|
+
"projects/#{project}/secrets/#{secret}/versions/#{version}"
|
121
|
+
end
|
122
|
+
|
104
123
|
extend self
|
105
124
|
end
|
106
125
|
end
|
@@ -19,6 +19,7 @@
|
|
19
19
|
require "google/cloud/errors"
|
20
20
|
require "google/cloud/video/livestream/v1/service_pb"
|
21
21
|
require "google/cloud/video/live_stream/v1/livestream_service/rest/service_stub"
|
22
|
+
require "google/cloud/location/rest"
|
22
23
|
|
23
24
|
module Google
|
24
25
|
module Cloud
|
@@ -191,6 +192,13 @@ module Google
|
|
191
192
|
config.endpoint = @config.endpoint
|
192
193
|
end
|
193
194
|
|
195
|
+
@location_client = Google::Cloud::Location::Locations::Rest::Client.new do |config|
|
196
|
+
config.credentials = credentials
|
197
|
+
config.quota_project = @quota_project_id
|
198
|
+
config.endpoint = @config.endpoint
|
199
|
+
config.bindings_override = @config.bindings_override
|
200
|
+
end
|
201
|
+
|
194
202
|
@livestream_service_stub = ::Google::Cloud::Video::LiveStream::V1::LivestreamService::Rest::ServiceStub.new endpoint: @config.endpoint, credentials: credentials
|
195
203
|
end
|
196
204
|
|
@@ -201,6 +209,13 @@ module Google
|
|
201
209
|
#
|
202
210
|
attr_reader :operations_client
|
203
211
|
|
212
|
+
##
|
213
|
+
# Get the associated client for mix-in of the Locations.
|
214
|
+
#
|
215
|
+
# @return [Google::Cloud::Location::Locations::Rest::Client]
|
216
|
+
#
|
217
|
+
attr_reader :location_client
|
218
|
+
|
204
219
|
# Service calls
|
205
220
|
|
206
221
|
##
|
@@ -313,8 +328,8 @@ module Google
|
|
313
328
|
# The maximum number of items to return. If unspecified, server
|
314
329
|
# will pick an appropriate default. Server may return fewer items than
|
315
330
|
# requested. A caller should only rely on response's
|
316
|
-
# {::Google::Cloud::Video::LiveStream::V1::ListChannelsResponse#next_page_token next_page_token}
|
317
|
-
# determine if there are more items left to be queried.
|
331
|
+
# {::Google::Cloud::Video::LiveStream::V1::ListChannelsResponse#next_page_token next_page_token}
|
332
|
+
# to determine if there are more items left to be queried.
|
318
333
|
# @param page_token [::String]
|
319
334
|
# The next_page_token value returned from a previous List request, if any.
|
320
335
|
# @param filter [::String]
|
@@ -533,14 +548,22 @@ module Google
|
|
533
548
|
# resource by the update. You can only update the following fields:
|
534
549
|
#
|
535
550
|
# * [`inputAttachments`](https://cloud.google.com/livestream/docs/reference/rest/v1/projects.locations.channels#inputattachment)
|
551
|
+
# * [`inputConfig`](https://cloud.google.com/livestream/docs/reference/rest/v1/projects.locations.channels#inputconfig)
|
536
552
|
# * [`output`](https://cloud.google.com/livestream/docs/reference/rest/v1/projects.locations.channels#output)
|
537
|
-
# * [`elementaryStreams`](https://cloud.google.com/livestream/docs/reference/rest/v1/projects.locations.channels#
|
553
|
+
# * [`elementaryStreams`](https://cloud.google.com/livestream/docs/reference/rest/v1/projects.locations.channels#elementarystream)
|
538
554
|
# * [`muxStreams`](https://cloud.google.com/livestream/docs/reference/rest/v1/projects.locations.channels#muxstream)
|
539
|
-
# * [`manifests`](https://cloud.google.com/livestream/docs/reference/rest/v1/projects.locations.channels#
|
540
|
-
# * [`
|
555
|
+
# * [`manifests`](https://cloud.google.com/livestream/docs/reference/rest/v1/projects.locations.channels#manifest)
|
556
|
+
# * [`spriteSheets`](https://cloud.google.com/livestream/docs/reference/rest/v1/projects.locations.channels#spritesheet)
|
557
|
+
# * [`logConfig`](https://cloud.google.com/livestream/docs/reference/rest/v1/projects.locations.channels#logconfig)
|
558
|
+
# * [`timecodeConfig`](https://cloud.google.com/livestream/docs/reference/rest/v1/projects.locations.channels#timecodeconfig)
|
559
|
+
# * [`encryptions`](https://cloud.google.com/livestream/docs/reference/rest/v1/projects.locations.channels#encryption)
|
541
560
|
#
|
542
561
|
# The fields specified in the update_mask are relative to the resource, not
|
543
562
|
# the full request. A field will be overwritten if it is in the mask.
|
563
|
+
#
|
564
|
+
# If the mask is not present, then each field from the list above is updated
|
565
|
+
# if the field appears in the request payload. To unset a field, add the
|
566
|
+
# field to the update mask and remove it from the request payload.
|
544
567
|
# @param channel [::Google::Cloud::Video::LiveStream::V1::Channel, ::Hash]
|
545
568
|
# Required. The channel resource to be updated.
|
546
569
|
# @param request_id [::String]
|
@@ -867,8 +890,8 @@ module Google
|
|
867
890
|
# The maximum number of items to return. If unspecified, server
|
868
891
|
# will pick an appropriate default. Server may return fewer items than
|
869
892
|
# requested. A caller should only rely on response's
|
870
|
-
# {::Google::Cloud::Video::LiveStream::V1::ListInputsResponse#next_page_token next_page_token}
|
871
|
-
# determine if there are more items left to be queried.
|
893
|
+
# {::Google::Cloud::Video::LiveStream::V1::ListInputsResponse#next_page_token next_page_token}
|
894
|
+
# to determine if there are more items left to be queried.
|
872
895
|
# @param page_token [::String]
|
873
896
|
# The next_page_token value returned from a previous List request, if any.
|
874
897
|
# @param filter [::String]
|
@@ -1086,6 +1109,10 @@ module Google
|
|
1086
1109
|
#
|
1087
1110
|
# The fields specified in the update_mask are relative to the resource, not
|
1088
1111
|
# the full request. A field will be overwritten if it is in the mask.
|
1112
|
+
#
|
1113
|
+
# If the mask is not present, then each field from the list above is updated
|
1114
|
+
# if the field appears in the request payload. To unset a field, add the
|
1115
|
+
# field to the update mask and remove it from the request payload.
|
1089
1116
|
# @param input [::Google::Cloud::Video::LiveStream::V1::Input, ::Hash]
|
1090
1117
|
# Required. The input resource to be updated.
|
1091
1118
|
# @param request_id [::String]
|
@@ -1253,8 +1280,8 @@ module Google
|
|
1253
1280
|
# The maximum number of items to return. If unspecified, server
|
1254
1281
|
# will pick an appropriate default. Server may return fewer items than
|
1255
1282
|
# requested. A caller should only rely on response's
|
1256
|
-
# {::Google::Cloud::Video::LiveStream::V1::ListEventsResponse#next_page_token next_page_token}
|
1257
|
-
# determine if there are more items left to be queried.
|
1283
|
+
# {::Google::Cloud::Video::LiveStream::V1::ListEventsResponse#next_page_token next_page_token}
|
1284
|
+
# to determine if there are more items left to be queried.
|
1258
1285
|
# @param page_token [::String]
|
1259
1286
|
# The next_page_token value returned from a previous List request, if any.
|
1260
1287
|
# @param filter [::String]
|
@@ -1482,9 +1509,9 @@ module Google
|
|
1482
1509
|
# * (`String`) The path to a service account key file in JSON format
|
1483
1510
|
# * (`Hash`) A service account key as a Hash
|
1484
1511
|
# * (`Google::Auth::Credentials`) A googleauth credentials object
|
1485
|
-
# (see the [googleauth docs](https://
|
1512
|
+
# (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials))
|
1486
1513
|
# * (`Signet::OAuth2::Client`) A signet oauth2 client object
|
1487
|
-
# (see the [signet docs](https://
|
1514
|
+
# (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client))
|
1488
1515
|
# * (`nil`) indicating no credentials
|
1489
1516
|
# @return [::Object]
|
1490
1517
|
# @!attribute [rw] scope
|
@@ -1530,6 +1557,13 @@ module Google
|
|
1530
1557
|
config_attr :retry_policy, nil, ::Hash, ::Proc, nil
|
1531
1558
|
config_attr :quota_project, nil, ::String, nil
|
1532
1559
|
|
1560
|
+
# @private
|
1561
|
+
# Overrides for http bindings for the RPCs of this service
|
1562
|
+
# are only used when this service is used as mixin, and only
|
1563
|
+
# by the host service.
|
1564
|
+
# @return [::Hash{::Symbol=>::Array<::Gapic::Rest::GrpcTranscoder::HttpBinding>}]
|
1565
|
+
config_attr :bindings_override, {}, ::Hash, nil
|
1566
|
+
|
1533
1567
|
# @private
|
1534
1568
|
def initialize parent_config = nil
|
1535
1569
|
@parent_config = parent_config unless parent_config.nil?
|
@@ -412,9 +412,9 @@ module Google
|
|
412
412
|
# * (`String`) The path to a service account key file in JSON format
|
413
413
|
# * (`Hash`) A service account key as a Hash
|
414
414
|
# * (`Google::Auth::Credentials`) A googleauth credentials object
|
415
|
-
# (see the [googleauth docs](https://
|
415
|
+
# (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials))
|
416
416
|
# * (`Signet::OAuth2::Client`) A signet oauth2 client object
|
417
|
-
# (see the [signet docs](https://
|
417
|
+
# (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client))
|
418
418
|
# * (`nil`) indicating no credentials
|
419
419
|
# @return [::Object]
|
420
420
|
# @!attribute [rw] scope
|
@@ -21,6 +21,7 @@ require "gapic/config"
|
|
21
21
|
require "gapic/config/method"
|
22
22
|
|
23
23
|
require "google/cloud/video/live_stream/v1/version"
|
24
|
+
require "google/cloud/video/live_stream/v1/bindings_override"
|
24
25
|
|
25
26
|
require "google/cloud/video/live_stream/v1/livestream_service/credentials"
|
26
27
|
require "google/cloud/video/live_stream/v1/livestream_service/paths"
|
@@ -17,6 +17,7 @@
|
|
17
17
|
# Auto-generated by gapic-generator-ruby. DO NOT EDIT!
|
18
18
|
|
19
19
|
require "google/cloud/video/live_stream/v1/livestream_service/rest"
|
20
|
+
require "google/cloud/video/live_stream/v1/bindings_override"
|
20
21
|
require "google/cloud/video/live_stream/v1/version"
|
21
22
|
|
22
23
|
module Google
|
@@ -1,3 +1,4 @@
|
|
1
|
+
# frozen_string_literal: true
|
1
2
|
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
3
|
# source: google/cloud/video/livestream/v1/outputs.proto
|
3
4
|
|
@@ -5,107 +6,35 @@ require 'google/protobuf'
|
|
5
6
|
|
6
7
|
require 'google/api/field_behavior_pb'
|
7
8
|
require 'google/protobuf/duration_pb'
|
9
|
+
require 'google/type/datetime_pb'
|
8
10
|
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
add_enum "google.cloud.video.livestream.v1.Manifest.ManifestType" do
|
33
|
-
value :MANIFEST_TYPE_UNSPECIFIED, 0
|
34
|
-
value :HLS, 1
|
35
|
-
value :DASH, 2
|
36
|
-
end
|
37
|
-
add_message "google.cloud.video.livestream.v1.SpriteSheet" do
|
38
|
-
optional :format, :string, 1
|
39
|
-
optional :file_prefix, :string, 2
|
40
|
-
optional :sprite_width_pixels, :int32, 3
|
41
|
-
optional :sprite_height_pixels, :int32, 4
|
42
|
-
optional :column_count, :int32, 5
|
43
|
-
optional :row_count, :int32, 6
|
44
|
-
optional :interval, :message, 7, "google.protobuf.Duration"
|
45
|
-
optional :quality, :int32, 8
|
46
|
-
end
|
47
|
-
add_message "google.cloud.video.livestream.v1.PreprocessingConfig" do
|
48
|
-
optional :crop, :message, 2, "google.cloud.video.livestream.v1.PreprocessingConfig.Crop"
|
49
|
-
optional :pad, :message, 3, "google.cloud.video.livestream.v1.PreprocessingConfig.Pad"
|
50
|
-
end
|
51
|
-
add_message "google.cloud.video.livestream.v1.PreprocessingConfig.Crop" do
|
52
|
-
optional :top_pixels, :int32, 1
|
53
|
-
optional :bottom_pixels, :int32, 2
|
54
|
-
optional :left_pixels, :int32, 3
|
55
|
-
optional :right_pixels, :int32, 4
|
56
|
-
end
|
57
|
-
add_message "google.cloud.video.livestream.v1.PreprocessingConfig.Pad" do
|
58
|
-
optional :top_pixels, :int32, 1
|
59
|
-
optional :bottom_pixels, :int32, 2
|
60
|
-
optional :left_pixels, :int32, 3
|
61
|
-
optional :right_pixels, :int32, 4
|
62
|
-
end
|
63
|
-
add_message "google.cloud.video.livestream.v1.VideoStream" do
|
64
|
-
oneof :codec_settings do
|
65
|
-
optional :h264, :message, 20, "google.cloud.video.livestream.v1.VideoStream.H264CodecSettings"
|
66
|
-
end
|
67
|
-
end
|
68
|
-
add_message "google.cloud.video.livestream.v1.VideoStream.H264CodecSettings" do
|
69
|
-
optional :width_pixels, :int32, 1
|
70
|
-
optional :height_pixels, :int32, 2
|
71
|
-
optional :frame_rate, :double, 3
|
72
|
-
optional :bitrate_bps, :int32, 4
|
73
|
-
optional :allow_open_gop, :bool, 6
|
74
|
-
optional :vbv_size_bits, :int32, 9
|
75
|
-
optional :vbv_fullness_bits, :int32, 10
|
76
|
-
optional :entropy_coder, :string, 11
|
77
|
-
optional :b_pyramid, :bool, 12
|
78
|
-
optional :b_frame_count, :int32, 13
|
79
|
-
optional :aq_strength, :double, 14
|
80
|
-
optional :profile, :string, 15
|
81
|
-
optional :tune, :string, 16
|
82
|
-
oneof :gop_mode do
|
83
|
-
optional :gop_frame_count, :int32, 7
|
84
|
-
optional :gop_duration, :message, 8, "google.protobuf.Duration"
|
85
|
-
end
|
86
|
-
end
|
87
|
-
add_message "google.cloud.video.livestream.v1.AudioStream" do
|
88
|
-
optional :transmux, :bool, 8
|
89
|
-
optional :codec, :string, 1
|
90
|
-
optional :bitrate_bps, :int32, 2
|
91
|
-
optional :channel_count, :int32, 3
|
92
|
-
repeated :channel_layout, :string, 4
|
93
|
-
repeated :mapping, :message, 5, "google.cloud.video.livestream.v1.AudioStream.AudioMapping"
|
94
|
-
optional :sample_rate_hertz, :int32, 6
|
95
|
-
end
|
96
|
-
add_message "google.cloud.video.livestream.v1.AudioStream.AudioMapping" do
|
97
|
-
optional :input_key, :string, 6
|
98
|
-
optional :input_track, :int32, 2
|
99
|
-
optional :input_channel, :int32, 3
|
100
|
-
optional :output_channel, :int32, 4
|
101
|
-
end
|
102
|
-
add_message "google.cloud.video.livestream.v1.TextStream" do
|
103
|
-
optional :codec, :string, 1
|
104
|
-
end
|
105
|
-
add_message "google.cloud.video.livestream.v1.SegmentSettings" do
|
106
|
-
optional :segment_duration, :message, 1, "google.protobuf.Duration"
|
11
|
+
|
12
|
+
descriptor_data = "\n.google/cloud/video/livestream/v1/outputs.proto\x12 google.cloud.video.livestream.v1\x1a\x1fgoogle/api/field_behavior.proto\x1a\x1egoogle/protobuf/duration.proto\x1a\x1agoogle/type/datetime.proto\"\x87\x02\n\x10\x45lementaryStream\x12\x0b\n\x03key\x18\x04 \x01(\t\x12\x45\n\x0cvideo_stream\x18\x01 \x01(\x0b\x32-.google.cloud.video.livestream.v1.VideoStreamH\x00\x12\x45\n\x0c\x61udio_stream\x18\x02 \x01(\x0b\x32-.google.cloud.video.livestream.v1.AudioStreamH\x00\x12\x43\n\x0btext_stream\x18\x03 \x01(\x0b\x32,.google.cloud.video.livestream.v1.TextStreamH\x00\x42\x13\n\x11\x65lementary_stream\"\xab\x01\n\tMuxStream\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\x11\n\tcontainer\x18\x03 \x01(\t\x12\x1a\n\x12\x65lementary_streams\x18\x04 \x03(\t\x12K\n\x10segment_settings\x18\x05 \x01(\x0b\x32\x31.google.cloud.video.livestream.v1.SegmentSettings\x12\x15\n\rencryption_id\x18\x06 \x01(\t\"\xbc\x02\n\x08Manifest\x12\x11\n\tfile_name\x18\x01 \x01(\t\x12J\n\x04type\x18\x02 \x01(\x0e\x32\x37.google.cloud.video.livestream.v1.Manifest.ManifestTypeB\x03\xe0\x41\x02\x12\x18\n\x0bmux_streams\x18\x03 \x03(\tB\x03\xe0\x41\x02\x12\x19\n\x11max_segment_count\x18\x04 \x01(\x05\x12\x38\n\x15segment_keep_duration\x18\x05 \x01(\x0b\x32\x19.google.protobuf.Duration\x12 \n\x18use_timecode_as_timeline\x18\x06 \x01(\x08\"@\n\x0cManifestType\x12\x1d\n\x19MANIFEST_TYPE_UNSPECIFIED\x10\x00\x12\x07\n\x03HLS\x10\x01\x12\x08\n\x04\x44\x41SH\x10\x02\"\xe3\x01\n\x0bSpriteSheet\x12\x0e\n\x06\x66ormat\x18\x01 \x01(\t\x12\x18\n\x0b\x66ile_prefix\x18\x02 \x01(\tB\x03\xe0\x41\x02\x12 \n\x13sprite_width_pixels\x18\x03 \x01(\x05\x42\x03\xe0\x41\x02\x12!\n\x14sprite_height_pixels\x18\x04 \x01(\x05\x42\x03\xe0\x41\x02\x12\x14\n\x0c\x63olumn_count\x18\x05 \x01(\x05\x12\x11\n\trow_count\x18\x06 \x01(\x05\x12+\n\x08interval\x18\x07 \x01(\x0b\x32\x19.google.protobuf.Duration\x12\x0f\n\x07quality\x18\x08 \x01(\x05\"\xc5\x03\n\x13PreprocessingConfig\x12J\n\x05\x61udio\x18\x01 \x01(\x0b\x32;.google.cloud.video.livestream.v1.PreprocessingConfig.Audio\x12H\n\x04\x63rop\x18\x02 \x01(\x0b\x32:.google.cloud.video.livestream.v1.PreprocessingConfig.Crop\x12\x46\n\x03pad\x18\x03 \x01(\x0b\x32\x39.google.cloud.video.livestream.v1.PreprocessingConfig.Pad\x1a\x15\n\x05\x41udio\x12\x0c\n\x04lufs\x18\x01 \x01(\x01\x1a\\\n\x04\x43rop\x12\x12\n\ntop_pixels\x18\x01 \x01(\x05\x12\x15\n\rbottom_pixels\x18\x02 \x01(\x05\x12\x13\n\x0bleft_pixels\x18\x03 \x01(\x05\x12\x14\n\x0cright_pixels\x18\x04 \x01(\x05\x1a[\n\x03Pad\x12\x12\n\ntop_pixels\x18\x01 \x01(\x05\x12\x15\n\rbottom_pixels\x18\x02 \x01(\x05\x12\x13\n\x0bleft_pixels\x18\x03 \x01(\x05\x12\x14\n\x0cright_pixels\x18\x04 \x01(\x05\"\xff\x03\n\x0bVideoStream\x12O\n\x04h264\x18\x14 \x01(\x0b\x32?.google.cloud.video.livestream.v1.VideoStream.H264CodecSettingsH\x00\x1a\x8c\x03\n\x11H264CodecSettings\x12\x14\n\x0cwidth_pixels\x18\x01 \x01(\x05\x12\x15\n\rheight_pixels\x18\x02 \x01(\x05\x12\x17\n\nframe_rate\x18\x03 \x01(\x01\x42\x03\xe0\x41\x02\x12\x18\n\x0b\x62itrate_bps\x18\x04 \x01(\x05\x42\x03\xe0\x41\x02\x12\x16\n\x0e\x61llow_open_gop\x18\x06 \x01(\x08\x12\x19\n\x0fgop_frame_count\x18\x07 \x01(\x05H\x00\x12\x31\n\x0cgop_duration\x18\x08 \x01(\x0b\x32\x19.google.protobuf.DurationH\x00\x12\x15\n\rvbv_size_bits\x18\t \x01(\x05\x12\x19\n\x11vbv_fullness_bits\x18\n \x01(\x05\x12\x15\n\rentropy_coder\x18\x0b \x01(\t\x12\x11\n\tb_pyramid\x18\x0c \x01(\x08\x12\x15\n\rb_frame_count\x18\r \x01(\x05\x12\x13\n\x0b\x61q_strength\x18\x0e \x01(\x01\x12\x0f\n\x07profile\x18\x0f \x01(\t\x12\x0c\n\x04tune\x18\x10 \x01(\tB\n\n\x08gop_modeB\x10\n\x0e\x63odec_settings\"\xec\x02\n\x0b\x41udioStream\x12\x10\n\x08transmux\x18\x08 \x01(\x08\x12\r\n\x05\x63odec\x18\x01 \x01(\t\x12\x18\n\x0b\x62itrate_bps\x18\x02 \x01(\x05\x42\x03\xe0\x41\x02\x12\x15\n\rchannel_count\x18\x03 \x01(\x05\x12\x16\n\x0e\x63hannel_layout\x18\x04 \x03(\t\x12K\n\x07mapping\x18\x05 \x03(\x0b\x32:.google.cloud.video.livestream.v1.AudioStream.AudioMapping\x12\x19\n\x11sample_rate_hertz\x18\x06 \x01(\x05\x1a\x8a\x01\n\x0c\x41udioMapping\x12\x16\n\tinput_key\x18\x06 \x01(\tB\x03\xe0\x41\x02\x12\x18\n\x0binput_track\x18\x02 \x01(\x05\x42\x03\xe0\x41\x02\x12\x1a\n\rinput_channel\x18\x03 \x01(\x05\x42\x03\xe0\x41\x02\x12\x1b\n\x0eoutput_channel\x18\x04 \x01(\x05\x42\x03\xe0\x41\x02\x12\x0f\n\x07gain_db\x18\x05 \x01(\x01\" \n\nTextStream\x12\x12\n\x05\x63odec\x18\x01 \x01(\tB\x03\xe0\x41\x02\"F\n\x0fSegmentSettings\x12\x33\n\x10segment_duration\x18\x01 \x01(\x0b\x32\x19.google.protobuf.Duration\"\xac\x02\n\x0eTimecodeConfig\x12O\n\x06source\x18\x01 \x01(\x0e\x32?.google.cloud.video.livestream.v1.TimecodeConfig.TimecodeSource\x12/\n\nutc_offset\x18\x02 \x01(\x0b\x32\x19.google.protobuf.DurationH\x00\x12*\n\ttime_zone\x18\x03 \x01(\x0b\x32\x15.google.type.TimeZoneH\x00\"]\n\x0eTimecodeSource\x12\x1f\n\x1bTIMECODE_SOURCE_UNSPECIFIED\x10\x00\x12\x13\n\x0fMEDIA_TIMESTAMP\x10\x01\x12\x15\n\x11\x45MBEDDED_TIMECODE\x10\x02\x42\r\n\x0btime_offsetB\xe9\x01\n$com.google.cloud.video.livestream.v1B\x0cOutputsProtoP\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"
|
13
|
+
|
14
|
+
pool = Google::Protobuf::DescriptorPool.generated_pool
|
15
|
+
|
16
|
+
begin
|
17
|
+
pool.add_serialized_file(descriptor_data)
|
18
|
+
rescue TypeError => e
|
19
|
+
# Compatibility code: will be removed in the next major version.
|
20
|
+
require 'google/protobuf/descriptor_pb'
|
21
|
+
parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data)
|
22
|
+
parsed.clear_dependency
|
23
|
+
serialized = parsed.class.encode(parsed)
|
24
|
+
file = pool.add_serialized_file(serialized)
|
25
|
+
warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}"
|
26
|
+
imports = [
|
27
|
+
["google.protobuf.Duration", "google/protobuf/duration.proto"],
|
28
|
+
["google.type.TimeZone", "google/type/datetime.proto"],
|
29
|
+
]
|
30
|
+
imports.each do |type_name, expected_filename|
|
31
|
+
import_file = pool.lookup(type_name).file_descriptor
|
32
|
+
if import_file.name != expected_filename
|
33
|
+
warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}"
|
107
34
|
end
|
108
35
|
end
|
36
|
+
warn "Each proto file must use a consistent fully-qualified name."
|
37
|
+
warn "This will become an error in the next major version."
|
109
38
|
end
|
110
39
|
|
111
40
|
module Google
|
@@ -119,6 +48,7 @@ module Google
|
|
119
48
|
Manifest::ManifestType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.video.livestream.v1.Manifest.ManifestType").enummodule
|
120
49
|
SpriteSheet = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.video.livestream.v1.SpriteSheet").msgclass
|
121
50
|
PreprocessingConfig = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.video.livestream.v1.PreprocessingConfig").msgclass
|
51
|
+
PreprocessingConfig::Audio = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.video.livestream.v1.PreprocessingConfig.Audio").msgclass
|
122
52
|
PreprocessingConfig::Crop = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.video.livestream.v1.PreprocessingConfig.Crop").msgclass
|
123
53
|
PreprocessingConfig::Pad = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.video.livestream.v1.PreprocessingConfig.Pad").msgclass
|
124
54
|
VideoStream = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.video.livestream.v1.VideoStream").msgclass
|
@@ -127,6 +57,8 @@ module Google
|
|
127
57
|
AudioStream::AudioMapping = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.video.livestream.v1.AudioStream.AudioMapping").msgclass
|
128
58
|
TextStream = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.video.livestream.v1.TextStream").msgclass
|
129
59
|
SegmentSettings = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.video.livestream.v1.SegmentSettings").msgclass
|
60
|
+
TimecodeConfig = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.video.livestream.v1.TimecodeConfig").msgclass
|
61
|
+
TimecodeConfig::TimecodeSource = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.video.livestream.v1.TimecodeConfig.TimecodeSource").enummodule
|
130
62
|
end
|
131
63
|
end
|
132
64
|
end
|