google-cloud-video-live_stream-v1 0.1.0 → 0.3.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 +1 -1
- data/README.md +11 -6
- data/lib/google/cloud/video/live_stream/v1/livestream_service/client.rb +44 -50
- data/lib/google/cloud/video/live_stream/v1/livestream_service/operations.rb +15 -14
- data/lib/google/cloud/video/live_stream/v1/livestream_service/rest/client.rb +1697 -0
- data/lib/google/cloud/video/live_stream/v1/livestream_service/rest/operations.rb +795 -0
- data/lib/google/cloud/video/live_stream/v1/livestream_service/rest/service_stub.rb +1001 -0
- data/lib/google/cloud/video/live_stream/v1/livestream_service/rest.rb +59 -0
- data/lib/google/cloud/video/live_stream/v1/livestream_service.rb +7 -1
- data/lib/google/cloud/video/live_stream/v1/rest.rb +39 -0
- data/lib/google/cloud/video/live_stream/v1/version.rb +1 -1
- data/lib/google/cloud/video/live_stream/v1.rb +8 -1
- data/lib/google/cloud/video/livestream/v1/outputs_pb.rb +2 -2
- data/lib/google/cloud/video/livestream/v1/resources_pb.rb +3 -2
- data/lib/google/cloud/video/livestream/v1/service_pb.rb +2 -1
- data/proto_docs/google/api/client.rb +318 -0
- data/proto_docs/google/api/launch_stage.rb +71 -0
- data/proto_docs/google/cloud/video/livestream/v1/outputs.rb +1 -1
- data/proto_docs/google/cloud/video/livestream/v1/resources.rb +5 -2
- data/proto_docs/google/protobuf/any.rb +3 -3
- data/proto_docs/google/protobuf/empty.rb +0 -2
- data/proto_docs/google/rpc/status.rb +4 -2
- metadata +19 -12
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 335800f66cbab8eb96937f2a2b30f67d98f1fb406524ed5aee96d0cad93af800
|
4
|
+
data.tar.gz: 8f6eb801f7b71a50f91c4aaf78cbe03d20b9f4a0bc876dd22699cc0d12e89042
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4dd076aedef42281c62bc714622aca73169e6dc6528fdd4776c63596467823d8db02afb1e9495b03f2466fbca386d8d8473a20c40847f43d843e1c86cede2048
|
7
|
+
data.tar.gz: 651ec92784c62a50a96df9d3a1ba7c9211911a061a3d7ebf3906173720edf86279f3c49def86167a76e535762d5424d76cf4cac50f90119f35bab8433d76d5f7
|
data/AUTHENTICATION.md
CHANGED
@@ -112,7 +112,7 @@ credentials are discovered.
|
|
112
112
|
To configure your system for this, simply:
|
113
113
|
|
114
114
|
1. [Download and install the Cloud SDK](https://cloud.google.com/sdk)
|
115
|
-
2. Authenticate using OAuth 2.0 `$ gcloud auth login`
|
115
|
+
2. Authenticate using OAuth 2.0 `$ gcloud auth application-default login`
|
116
116
|
3. Write code as if already authenticated.
|
117
117
|
|
118
118
|
**NOTE:** This is _not_ recommended for running in production. The Cloud SDK
|
data/README.md
CHANGED
@@ -46,7 +46,7 @@ for general usage information.
|
|
46
46
|
## Enabling Logging
|
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
|
-
The logger that you set may be a Ruby stdlib [`Logger`](https://ruby-doc.org/
|
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
50
|
or a [`Google::Cloud::Logging::Logger`](https://googleapis.dev/ruby/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.
|
@@ -69,16 +69,21 @@ module GRPC
|
|
69
69
|
end
|
70
70
|
```
|
71
71
|
|
72
|
+
|
73
|
+
## Google Cloud Samples
|
74
|
+
|
75
|
+
To browse ready to use code samples check [Google Cloud Samples](https://cloud.google.com/docs/samples).
|
76
|
+
|
72
77
|
## Supported Ruby Versions
|
73
78
|
|
74
|
-
This library is supported on Ruby 2.
|
79
|
+
This library is supported on Ruby 2.6+.
|
75
80
|
|
76
81
|
Google provides official support for Ruby versions that are actively supported
|
77
82
|
by Ruby Core—that is, Ruby versions that are either in normal maintenance or
|
78
|
-
in security maintenance, and not end of life.
|
79
|
-
|
80
|
-
|
81
|
-
|
83
|
+
in security maintenance, and not end of life. Older versions of Ruby _may_
|
84
|
+
still work, but are unsupported and not recommended. See
|
85
|
+
https://www.ruby-lang.org/en/downloads/branches/ for details about the Ruby
|
86
|
+
support schedule.
|
82
87
|
|
83
88
|
## Which client should I use?
|
84
89
|
|
@@ -275,14 +275,14 @@ module Google
|
|
275
275
|
# # Call the create_channel method.
|
276
276
|
# result = client.create_channel request
|
277
277
|
#
|
278
|
-
# # The returned object is of type Gapic::Operation. You can use
|
279
|
-
# #
|
280
|
-
# #
|
278
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
279
|
+
# # check the status of an operation, cancel it, or wait for results.
|
280
|
+
# # Here is how to wait for a response.
|
281
281
|
# result.wait_until_done! timeout: 60
|
282
282
|
# if result.response?
|
283
283
|
# p result.response
|
284
284
|
# else
|
285
|
-
# puts "
|
285
|
+
# puts "No response received."
|
286
286
|
# end
|
287
287
|
#
|
288
288
|
def create_channel request, options = nil
|
@@ -382,13 +382,11 @@ module Google
|
|
382
382
|
# # Call the list_channels method.
|
383
383
|
# result = client.list_channels request
|
384
384
|
#
|
385
|
-
# # The returned object is of type Gapic::PagedEnumerable. You can
|
386
|
-
# #
|
387
|
-
#
|
388
|
-
# # methods are also available for managing paging directly.
|
389
|
-
# result.each do |response|
|
385
|
+
# # The returned object is of type Gapic::PagedEnumerable. You can iterate
|
386
|
+
# # over elements, and API calls will be issued to fetch pages as needed.
|
387
|
+
# result.each do |item|
|
390
388
|
# # Each element is of type ::Google::Cloud::Video::LiveStream::V1::Channel.
|
391
|
-
# p
|
389
|
+
# p item
|
392
390
|
# end
|
393
391
|
#
|
394
392
|
def list_channels request, options = nil
|
@@ -580,14 +578,14 @@ module Google
|
|
580
578
|
# # Call the delete_channel method.
|
581
579
|
# result = client.delete_channel request
|
582
580
|
#
|
583
|
-
# # The returned object is of type Gapic::Operation. You can use
|
584
|
-
# #
|
585
|
-
# #
|
581
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
582
|
+
# # check the status of an operation, cancel it, or wait for results.
|
583
|
+
# # Here is how to wait for a response.
|
586
584
|
# result.wait_until_done! timeout: 60
|
587
585
|
# if result.response?
|
588
586
|
# p result.response
|
589
587
|
# else
|
590
|
-
# puts "
|
588
|
+
# puts "No response received."
|
591
589
|
# end
|
592
590
|
#
|
593
591
|
def delete_channel request, options = nil
|
@@ -700,14 +698,14 @@ module Google
|
|
700
698
|
# # Call the update_channel method.
|
701
699
|
# result = client.update_channel request
|
702
700
|
#
|
703
|
-
# # The returned object is of type Gapic::Operation. You can use
|
704
|
-
# #
|
705
|
-
# #
|
701
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
702
|
+
# # check the status of an operation, cancel it, or wait for results.
|
703
|
+
# # Here is how to wait for a response.
|
706
704
|
# result.wait_until_done! timeout: 60
|
707
705
|
# if result.response?
|
708
706
|
# p result.response
|
709
707
|
# else
|
710
|
-
# puts "
|
708
|
+
# puts "No response received."
|
711
709
|
# end
|
712
710
|
#
|
713
711
|
def update_channel request, options = nil
|
@@ -809,14 +807,14 @@ module Google
|
|
809
807
|
# # Call the start_channel method.
|
810
808
|
# result = client.start_channel request
|
811
809
|
#
|
812
|
-
# # The returned object is of type Gapic::Operation. You can use
|
813
|
-
# #
|
814
|
-
# #
|
810
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
811
|
+
# # check the status of an operation, cancel it, or wait for results.
|
812
|
+
# # Here is how to wait for a response.
|
815
813
|
# result.wait_until_done! timeout: 60
|
816
814
|
# if result.response?
|
817
815
|
# p result.response
|
818
816
|
# else
|
819
|
-
# puts "
|
817
|
+
# puts "No response received."
|
820
818
|
# end
|
821
819
|
#
|
822
820
|
def start_channel request, options = nil
|
@@ -918,14 +916,14 @@ module Google
|
|
918
916
|
# # Call the stop_channel method.
|
919
917
|
# result = client.stop_channel request
|
920
918
|
#
|
921
|
-
# # The returned object is of type Gapic::Operation. You can use
|
922
|
-
# #
|
923
|
-
# #
|
919
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
920
|
+
# # check the status of an operation, cancel it, or wait for results.
|
921
|
+
# # Here is how to wait for a response.
|
924
922
|
# result.wait_until_done! timeout: 60
|
925
923
|
# if result.response?
|
926
924
|
# p result.response
|
927
925
|
# else
|
928
|
-
# puts "
|
926
|
+
# puts "No response received."
|
929
927
|
# end
|
930
928
|
#
|
931
929
|
def stop_channel request, options = nil
|
@@ -1032,14 +1030,14 @@ module Google
|
|
1032
1030
|
# # Call the create_input method.
|
1033
1031
|
# result = client.create_input request
|
1034
1032
|
#
|
1035
|
-
# # The returned object is of type Gapic::Operation. You can use
|
1036
|
-
# #
|
1037
|
-
# #
|
1033
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
1034
|
+
# # check the status of an operation, cancel it, or wait for results.
|
1035
|
+
# # Here is how to wait for a response.
|
1038
1036
|
# result.wait_until_done! timeout: 60
|
1039
1037
|
# if result.response?
|
1040
1038
|
# p result.response
|
1041
1039
|
# else
|
1042
|
-
# puts "
|
1040
|
+
# puts "No response received."
|
1043
1041
|
# end
|
1044
1042
|
#
|
1045
1043
|
def create_input request, options = nil
|
@@ -1139,13 +1137,11 @@ module Google
|
|
1139
1137
|
# # Call the list_inputs method.
|
1140
1138
|
# result = client.list_inputs request
|
1141
1139
|
#
|
1142
|
-
# # The returned object is of type Gapic::PagedEnumerable. You can
|
1143
|
-
# #
|
1144
|
-
#
|
1145
|
-
# # methods are also available for managing paging directly.
|
1146
|
-
# result.each do |response|
|
1140
|
+
# # The returned object is of type Gapic::PagedEnumerable. You can iterate
|
1141
|
+
# # over elements, and API calls will be issued to fetch pages as needed.
|
1142
|
+
# result.each do |item|
|
1147
1143
|
# # Each element is of type ::Google::Cloud::Video::LiveStream::V1::Input.
|
1148
|
-
# p
|
1144
|
+
# p item
|
1149
1145
|
# end
|
1150
1146
|
#
|
1151
1147
|
def list_inputs request, options = nil
|
@@ -1332,14 +1328,14 @@ module Google
|
|
1332
1328
|
# # Call the delete_input method.
|
1333
1329
|
# result = client.delete_input request
|
1334
1330
|
#
|
1335
|
-
# # The returned object is of type Gapic::Operation. You can use
|
1336
|
-
# #
|
1337
|
-
# #
|
1331
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
1332
|
+
# # check the status of an operation, cancel it, or wait for results.
|
1333
|
+
# # Here is how to wait for a response.
|
1338
1334
|
# result.wait_until_done! timeout: 60
|
1339
1335
|
# if result.response?
|
1340
1336
|
# p result.response
|
1341
1337
|
# else
|
1342
|
-
# puts "
|
1338
|
+
# puts "No response received."
|
1343
1339
|
# end
|
1344
1340
|
#
|
1345
1341
|
def delete_input request, options = nil
|
@@ -1448,14 +1444,14 @@ module Google
|
|
1448
1444
|
# # Call the update_input method.
|
1449
1445
|
# result = client.update_input request
|
1450
1446
|
#
|
1451
|
-
# # The returned object is of type Gapic::Operation. You can use
|
1452
|
-
# #
|
1453
|
-
# #
|
1447
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
1448
|
+
# # check the status of an operation, cancel it, or wait for results.
|
1449
|
+
# # Here is how to wait for a response.
|
1454
1450
|
# result.wait_until_done! timeout: 60
|
1455
1451
|
# if result.response?
|
1456
1452
|
# p result.response
|
1457
1453
|
# else
|
1458
|
-
# puts "
|
1454
|
+
# puts "No response received."
|
1459
1455
|
# end
|
1460
1456
|
#
|
1461
1457
|
def update_input request, options = nil
|
@@ -1661,13 +1657,11 @@ module Google
|
|
1661
1657
|
# # Call the list_events method.
|
1662
1658
|
# result = client.list_events request
|
1663
1659
|
#
|
1664
|
-
# # The returned object is of type Gapic::PagedEnumerable. You can
|
1665
|
-
# #
|
1666
|
-
#
|
1667
|
-
# # methods are also available for managing paging directly.
|
1668
|
-
# result.each do |response|
|
1660
|
+
# # The returned object is of type Gapic::PagedEnumerable. You can iterate
|
1661
|
+
# # over elements, and API calls will be issued to fetch pages as needed.
|
1662
|
+
# result.each do |item|
|
1669
1663
|
# # Each element is of type ::Google::Cloud::Video::LiveStream::V1::Event.
|
1670
|
-
# p
|
1664
|
+
# p item
|
1671
1665
|
# end
|
1672
1666
|
#
|
1673
1667
|
def list_events request, options = nil
|
@@ -96,6 +96,9 @@ module Google
|
|
96
96
|
channel_args: @config.channel_args,
|
97
97
|
interceptors: @config.interceptors
|
98
98
|
)
|
99
|
+
|
100
|
+
# Used by an LRO wrapper for some methods of this service
|
101
|
+
@operations_client = self
|
99
102
|
end
|
100
103
|
|
101
104
|
# Service calls
|
@@ -156,13 +159,11 @@ module Google
|
|
156
159
|
# # Call the list_operations method.
|
157
160
|
# result = client.list_operations request
|
158
161
|
#
|
159
|
-
# # The returned object is of type Gapic::PagedEnumerable. You can
|
160
|
-
# #
|
161
|
-
#
|
162
|
-
# # methods are also available for managing paging directly.
|
163
|
-
# result.each do |response|
|
162
|
+
# # The returned object is of type Gapic::PagedEnumerable. You can iterate
|
163
|
+
# # over elements, and API calls will be issued to fetch pages as needed.
|
164
|
+
# result.each do |item|
|
164
165
|
# # Each element is of type ::Google::Longrunning::Operation.
|
165
|
-
# p
|
166
|
+
# p item
|
166
167
|
# end
|
167
168
|
#
|
168
169
|
def list_operations request, options = nil
|
@@ -251,14 +252,14 @@ module Google
|
|
251
252
|
# # Call the get_operation method.
|
252
253
|
# result = client.get_operation request
|
253
254
|
#
|
254
|
-
# # The returned object is of type Gapic::Operation. You can use
|
255
|
-
# #
|
256
|
-
# #
|
255
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
256
|
+
# # check the status of an operation, cancel it, or wait for results.
|
257
|
+
# # Here is how to wait for a response.
|
257
258
|
# result.wait_until_done! timeout: 60
|
258
259
|
# if result.response?
|
259
260
|
# p result.response
|
260
261
|
# else
|
261
|
-
# puts "
|
262
|
+
# puts "No response received."
|
262
263
|
# end
|
263
264
|
#
|
264
265
|
def get_operation request, options = nil
|
@@ -538,14 +539,14 @@ module Google
|
|
538
539
|
# # Call the wait_operation method.
|
539
540
|
# result = client.wait_operation request
|
540
541
|
#
|
541
|
-
# # The returned object is of type Gapic::Operation. You can use
|
542
|
-
# #
|
543
|
-
# #
|
542
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
543
|
+
# # check the status of an operation, cancel it, or wait for results.
|
544
|
+
# # Here is how to wait for a response.
|
544
545
|
# result.wait_until_done! timeout: 60
|
545
546
|
# if result.response?
|
546
547
|
# p result.response
|
547
548
|
# else
|
548
|
-
# puts "
|
549
|
+
# puts "No response received."
|
549
550
|
# end
|
550
551
|
#
|
551
552
|
def wait_operation request, options = nil
|