google-cloud-video-live_stream-v1 0.1.0 → 0.3.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: b06b5b13a5bb98e5e2fc45cfa092a09b1803bf6b818a75aa8252c446729d7d3a
4
- data.tar.gz: 79b3e480831c08c8ffd53e61dad9c471e050ae2f9a5c100533f1fae32abc987c
3
+ metadata.gz: 335800f66cbab8eb96937f2a2b30f67d98f1fb406524ed5aee96d0cad93af800
4
+ data.tar.gz: 8f6eb801f7b71a50f91c4aaf78cbe03d20b9f4a0bc876dd22699cc0d12e89042
5
5
  SHA512:
6
- metadata.gz: 93c9d8b219fa9ff89ba476b8cdb9622cb3cf4c8ad9681b8166eafbbcd3a29fc84f76460023e52475c1587b6ad73074ef29eb3e608f2fbbe2556af0e207edbb9d
7
- data.tar.gz: a9e5dd6c47126077efa27d3a9024c1ebf17b64e1bab4292dbe10d6cd3017d09fe6c934813970e2166f2eac2f426f2048d99a09faae67dbcfb167921996f5da37
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/stdlib/libdoc/logger/rdoc/Logger.html) as shown below,
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.5+.
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. Currently, this means Ruby 2.5
79
- and later. Older versions of Ruby _may_ still work, but are unsupported and not
80
- recommended. See https://www.ruby-lang.org/en/downloads/branches/ for details
81
- about the Ruby support schedule.
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 this
279
- # # object to check the status of an operation, cancel it, or wait
280
- # # for results. Here is how to block until completion:
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 "Error!"
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
- # # iterate over all elements by calling #each, and the enumerable
387
- # # will lazily make API calls to fetch subsequent pages. Other
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 response
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 this
584
- # # object to check the status of an operation, cancel it, or wait
585
- # # for results. Here is how to block until completion:
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 "Error!"
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 this
704
- # # object to check the status of an operation, cancel it, or wait
705
- # # for results. Here is how to block until completion:
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 "Error!"
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 this
813
- # # object to check the status of an operation, cancel it, or wait
814
- # # for results. Here is how to block until completion:
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 "Error!"
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 this
922
- # # object to check the status of an operation, cancel it, or wait
923
- # # for results. Here is how to block until completion:
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 "Error!"
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 this
1036
- # # object to check the status of an operation, cancel it, or wait
1037
- # # for results. Here is how to block until completion:
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 "Error!"
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
- # # iterate over all elements by calling #each, and the enumerable
1144
- # # will lazily make API calls to fetch subsequent pages. Other
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 response
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 this
1336
- # # object to check the status of an operation, cancel it, or wait
1337
- # # for results. Here is how to block until completion:
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 "Error!"
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 this
1452
- # # object to check the status of an operation, cancel it, or wait
1453
- # # for results. Here is how to block until completion:
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 "Error!"
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
- # # iterate over all elements by calling #each, and the enumerable
1666
- # # will lazily make API calls to fetch subsequent pages. Other
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 response
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
- # # iterate over all elements by calling #each, and the enumerable
161
- # # will lazily make API calls to fetch subsequent pages. Other
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 response
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 this
255
- # # object to check the status of an operation, cancel it, or wait
256
- # # for results. Here is how to block until completion:
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 "Error!"
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 this
542
- # # object to check the status of an operation, cancel it, or wait
543
- # # for results. Here is how to block until completion:
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 "Error!"
549
+ # puts "No response received."
549
550
  # end
550
551
  #
551
552
  def wait_operation request, options = nil