google-cloud-video-transcoder-v1 0.5.0 → 0.7.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,524 @@
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 "google/cloud/video/transcoder/v1/services_pb"
20
+
21
+ module Google
22
+ module Cloud
23
+ module Video
24
+ module Transcoder
25
+ module V1
26
+ module TranscoderService
27
+ module Rest
28
+ ##
29
+ # REST service stub for the TranscoderService service.
30
+ # Service stub contains baseline method implementations
31
+ # including transcoding, making the REST call, and deserialing the response.
32
+ #
33
+ class ServiceStub
34
+ def initialize endpoint:, credentials:
35
+ # These require statements are intentionally placed here to initialize
36
+ # the REST modules only when it's required.
37
+ require "gapic/rest"
38
+
39
+ @client_stub = ::Gapic::Rest::ClientStub.new endpoint: endpoint, credentials: credentials,
40
+ numeric_enums: true,
41
+ raise_faraday_errors: false
42
+ end
43
+
44
+ ##
45
+ # Baseline implementation for the create_job REST call
46
+ #
47
+ # @param request_pb [::Google::Cloud::Video::Transcoder::V1::CreateJobRequest]
48
+ # A request object representing the call parameters. Required.
49
+ # @param options [::Gapic::CallOptions]
50
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
51
+ #
52
+ # @yield [result, operation] Access the result along with the TransportOperation object
53
+ # @yieldparam result [::Google::Cloud::Video::Transcoder::V1::Job]
54
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
55
+ #
56
+ # @return [::Google::Cloud::Video::Transcoder::V1::Job]
57
+ # A result object deserialized from the server's reply
58
+ def create_job request_pb, options = nil
59
+ raise ::ArgumentError, "request must be provided" if request_pb.nil?
60
+
61
+ verb, uri, query_string_params, body = ServiceStub.transcode_create_job_request request_pb
62
+ query_string_params = if query_string_params.any?
63
+ query_string_params.to_h { |p| p.split("=", 2) }
64
+ else
65
+ {}
66
+ end
67
+
68
+ response = @client_stub.make_http_request(
69
+ verb,
70
+ uri: uri,
71
+ body: body || "",
72
+ params: query_string_params,
73
+ options: options
74
+ )
75
+ operation = ::Gapic::Rest::TransportOperation.new response
76
+ result = ::Google::Cloud::Video::Transcoder::V1::Job.decode_json response.body, ignore_unknown_fields: true
77
+
78
+ yield result, operation if block_given?
79
+ result
80
+ end
81
+
82
+ ##
83
+ # Baseline implementation for the list_jobs REST call
84
+ #
85
+ # @param request_pb [::Google::Cloud::Video::Transcoder::V1::ListJobsRequest]
86
+ # A request object representing the call parameters. Required.
87
+ # @param options [::Gapic::CallOptions]
88
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
89
+ #
90
+ # @yield [result, operation] Access the result along with the TransportOperation object
91
+ # @yieldparam result [::Google::Cloud::Video::Transcoder::V1::ListJobsResponse]
92
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
93
+ #
94
+ # @return [::Google::Cloud::Video::Transcoder::V1::ListJobsResponse]
95
+ # A result object deserialized from the server's reply
96
+ def list_jobs request_pb, options = nil
97
+ raise ::ArgumentError, "request must be provided" if request_pb.nil?
98
+
99
+ verb, uri, query_string_params, body = ServiceStub.transcode_list_jobs_request request_pb
100
+ query_string_params = if query_string_params.any?
101
+ query_string_params.to_h { |p| p.split("=", 2) }
102
+ else
103
+ {}
104
+ end
105
+
106
+ response = @client_stub.make_http_request(
107
+ verb,
108
+ uri: uri,
109
+ body: body || "",
110
+ params: query_string_params,
111
+ options: options
112
+ )
113
+ operation = ::Gapic::Rest::TransportOperation.new response
114
+ result = ::Google::Cloud::Video::Transcoder::V1::ListJobsResponse.decode_json response.body, ignore_unknown_fields: true
115
+
116
+ yield result, operation if block_given?
117
+ result
118
+ end
119
+
120
+ ##
121
+ # Baseline implementation for the get_job REST call
122
+ #
123
+ # @param request_pb [::Google::Cloud::Video::Transcoder::V1::GetJobRequest]
124
+ # A request object representing the call parameters. Required.
125
+ # @param options [::Gapic::CallOptions]
126
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
127
+ #
128
+ # @yield [result, operation] Access the result along with the TransportOperation object
129
+ # @yieldparam result [::Google::Cloud::Video::Transcoder::V1::Job]
130
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
131
+ #
132
+ # @return [::Google::Cloud::Video::Transcoder::V1::Job]
133
+ # A result object deserialized from the server's reply
134
+ def get_job request_pb, options = nil
135
+ raise ::ArgumentError, "request must be provided" if request_pb.nil?
136
+
137
+ verb, uri, query_string_params, body = ServiceStub.transcode_get_job_request request_pb
138
+ query_string_params = if query_string_params.any?
139
+ query_string_params.to_h { |p| p.split("=", 2) }
140
+ else
141
+ {}
142
+ end
143
+
144
+ response = @client_stub.make_http_request(
145
+ verb,
146
+ uri: uri,
147
+ body: body || "",
148
+ params: query_string_params,
149
+ options: options
150
+ )
151
+ operation = ::Gapic::Rest::TransportOperation.new response
152
+ result = ::Google::Cloud::Video::Transcoder::V1::Job.decode_json response.body, ignore_unknown_fields: true
153
+
154
+ yield result, operation if block_given?
155
+ result
156
+ end
157
+
158
+ ##
159
+ # Baseline implementation for the delete_job REST call
160
+ #
161
+ # @param request_pb [::Google::Cloud::Video::Transcoder::V1::DeleteJobRequest]
162
+ # A request object representing the call parameters. Required.
163
+ # @param options [::Gapic::CallOptions]
164
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
165
+ #
166
+ # @yield [result, operation] Access the result along with the TransportOperation object
167
+ # @yieldparam result [::Google::Protobuf::Empty]
168
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
169
+ #
170
+ # @return [::Google::Protobuf::Empty]
171
+ # A result object deserialized from the server's reply
172
+ def delete_job request_pb, options = nil
173
+ raise ::ArgumentError, "request must be provided" if request_pb.nil?
174
+
175
+ verb, uri, query_string_params, body = ServiceStub.transcode_delete_job_request request_pb
176
+ query_string_params = if query_string_params.any?
177
+ query_string_params.to_h { |p| p.split("=", 2) }
178
+ else
179
+ {}
180
+ end
181
+
182
+ response = @client_stub.make_http_request(
183
+ verb,
184
+ uri: uri,
185
+ body: body || "",
186
+ params: query_string_params,
187
+ options: options
188
+ )
189
+ operation = ::Gapic::Rest::TransportOperation.new response
190
+ result = ::Google::Protobuf::Empty.decode_json response.body, ignore_unknown_fields: true
191
+
192
+ yield result, operation if block_given?
193
+ result
194
+ end
195
+
196
+ ##
197
+ # Baseline implementation for the create_job_template REST call
198
+ #
199
+ # @param request_pb [::Google::Cloud::Video::Transcoder::V1::CreateJobTemplateRequest]
200
+ # A request object representing the call parameters. Required.
201
+ # @param options [::Gapic::CallOptions]
202
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
203
+ #
204
+ # @yield [result, operation] Access the result along with the TransportOperation object
205
+ # @yieldparam result [::Google::Cloud::Video::Transcoder::V1::JobTemplate]
206
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
207
+ #
208
+ # @return [::Google::Cloud::Video::Transcoder::V1::JobTemplate]
209
+ # A result object deserialized from the server's reply
210
+ def create_job_template request_pb, options = nil
211
+ raise ::ArgumentError, "request must be provided" if request_pb.nil?
212
+
213
+ verb, uri, query_string_params, body = ServiceStub.transcode_create_job_template_request request_pb
214
+ query_string_params = if query_string_params.any?
215
+ query_string_params.to_h { |p| p.split("=", 2) }
216
+ else
217
+ {}
218
+ end
219
+
220
+ response = @client_stub.make_http_request(
221
+ verb,
222
+ uri: uri,
223
+ body: body || "",
224
+ params: query_string_params,
225
+ options: options
226
+ )
227
+ operation = ::Gapic::Rest::TransportOperation.new response
228
+ result = ::Google::Cloud::Video::Transcoder::V1::JobTemplate.decode_json response.body, ignore_unknown_fields: true
229
+
230
+ yield result, operation if block_given?
231
+ result
232
+ end
233
+
234
+ ##
235
+ # Baseline implementation for the list_job_templates REST call
236
+ #
237
+ # @param request_pb [::Google::Cloud::Video::Transcoder::V1::ListJobTemplatesRequest]
238
+ # A request object representing the call parameters. Required.
239
+ # @param options [::Gapic::CallOptions]
240
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
241
+ #
242
+ # @yield [result, operation] Access the result along with the TransportOperation object
243
+ # @yieldparam result [::Google::Cloud::Video::Transcoder::V1::ListJobTemplatesResponse]
244
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
245
+ #
246
+ # @return [::Google::Cloud::Video::Transcoder::V1::ListJobTemplatesResponse]
247
+ # A result object deserialized from the server's reply
248
+ def list_job_templates request_pb, options = nil
249
+ raise ::ArgumentError, "request must be provided" if request_pb.nil?
250
+
251
+ verb, uri, query_string_params, body = ServiceStub.transcode_list_job_templates_request request_pb
252
+ query_string_params = if query_string_params.any?
253
+ query_string_params.to_h { |p| p.split("=", 2) }
254
+ else
255
+ {}
256
+ end
257
+
258
+ response = @client_stub.make_http_request(
259
+ verb,
260
+ uri: uri,
261
+ body: body || "",
262
+ params: query_string_params,
263
+ options: options
264
+ )
265
+ operation = ::Gapic::Rest::TransportOperation.new response
266
+ result = ::Google::Cloud::Video::Transcoder::V1::ListJobTemplatesResponse.decode_json response.body, ignore_unknown_fields: true
267
+
268
+ yield result, operation if block_given?
269
+ result
270
+ end
271
+
272
+ ##
273
+ # Baseline implementation for the get_job_template REST call
274
+ #
275
+ # @param request_pb [::Google::Cloud::Video::Transcoder::V1::GetJobTemplateRequest]
276
+ # A request object representing the call parameters. Required.
277
+ # @param options [::Gapic::CallOptions]
278
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
279
+ #
280
+ # @yield [result, operation] Access the result along with the TransportOperation object
281
+ # @yieldparam result [::Google::Cloud::Video::Transcoder::V1::JobTemplate]
282
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
283
+ #
284
+ # @return [::Google::Cloud::Video::Transcoder::V1::JobTemplate]
285
+ # A result object deserialized from the server's reply
286
+ def get_job_template request_pb, options = nil
287
+ raise ::ArgumentError, "request must be provided" if request_pb.nil?
288
+
289
+ verb, uri, query_string_params, body = ServiceStub.transcode_get_job_template_request request_pb
290
+ query_string_params = if query_string_params.any?
291
+ query_string_params.to_h { |p| p.split("=", 2) }
292
+ else
293
+ {}
294
+ end
295
+
296
+ response = @client_stub.make_http_request(
297
+ verb,
298
+ uri: uri,
299
+ body: body || "",
300
+ params: query_string_params,
301
+ options: options
302
+ )
303
+ operation = ::Gapic::Rest::TransportOperation.new response
304
+ result = ::Google::Cloud::Video::Transcoder::V1::JobTemplate.decode_json response.body, ignore_unknown_fields: true
305
+
306
+ yield result, operation if block_given?
307
+ result
308
+ end
309
+
310
+ ##
311
+ # Baseline implementation for the delete_job_template REST call
312
+ #
313
+ # @param request_pb [::Google::Cloud::Video::Transcoder::V1::DeleteJobTemplateRequest]
314
+ # A request object representing the call parameters. Required.
315
+ # @param options [::Gapic::CallOptions]
316
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
317
+ #
318
+ # @yield [result, operation] Access the result along with the TransportOperation object
319
+ # @yieldparam result [::Google::Protobuf::Empty]
320
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
321
+ #
322
+ # @return [::Google::Protobuf::Empty]
323
+ # A result object deserialized from the server's reply
324
+ def delete_job_template request_pb, options = nil
325
+ raise ::ArgumentError, "request must be provided" if request_pb.nil?
326
+
327
+ verb, uri, query_string_params, body = ServiceStub.transcode_delete_job_template_request request_pb
328
+ query_string_params = if query_string_params.any?
329
+ query_string_params.to_h { |p| p.split("=", 2) }
330
+ else
331
+ {}
332
+ end
333
+
334
+ response = @client_stub.make_http_request(
335
+ verb,
336
+ uri: uri,
337
+ body: body || "",
338
+ params: query_string_params,
339
+ options: options
340
+ )
341
+ operation = ::Gapic::Rest::TransportOperation.new response
342
+ result = ::Google::Protobuf::Empty.decode_json response.body, ignore_unknown_fields: true
343
+
344
+ yield result, operation if block_given?
345
+ result
346
+ end
347
+
348
+ ##
349
+ # @private
350
+ #
351
+ # GRPC transcoding helper method for the create_job REST call
352
+ #
353
+ # @param request_pb [::Google::Cloud::Video::Transcoder::V1::CreateJobRequest]
354
+ # A request object representing the call parameters. Required.
355
+ # @return [Array(String, [String, nil], Hash{String => String})]
356
+ # Uri, Body, Query string parameters
357
+ def self.transcode_create_job_request request_pb
358
+ transcoder = Gapic::Rest::GrpcTranscoder.new
359
+ .with_bindings(
360
+ uri_method: :post,
361
+ uri_template: "/v1/{parent}/jobs",
362
+ body: "job",
363
+ matches: [
364
+ ["parent", %r{^projects/[^/]+/locations/[^/]+/?$}, false]
365
+ ]
366
+ )
367
+ transcoder.transcode request_pb
368
+ end
369
+
370
+ ##
371
+ # @private
372
+ #
373
+ # GRPC transcoding helper method for the list_jobs REST call
374
+ #
375
+ # @param request_pb [::Google::Cloud::Video::Transcoder::V1::ListJobsRequest]
376
+ # A request object representing the call parameters. Required.
377
+ # @return [Array(String, [String, nil], Hash{String => String})]
378
+ # Uri, Body, Query string parameters
379
+ def self.transcode_list_jobs_request request_pb
380
+ transcoder = Gapic::Rest::GrpcTranscoder.new
381
+ .with_bindings(
382
+ uri_method: :get,
383
+ uri_template: "/v1/{parent}/jobs",
384
+ matches: [
385
+ ["parent", %r{^projects/[^/]+/locations/[^/]+/?$}, false]
386
+ ]
387
+ )
388
+ transcoder.transcode request_pb
389
+ end
390
+
391
+ ##
392
+ # @private
393
+ #
394
+ # GRPC transcoding helper method for the get_job REST call
395
+ #
396
+ # @param request_pb [::Google::Cloud::Video::Transcoder::V1::GetJobRequest]
397
+ # A request object representing the call parameters. Required.
398
+ # @return [Array(String, [String, nil], Hash{String => String})]
399
+ # Uri, Body, Query string parameters
400
+ def self.transcode_get_job_request request_pb
401
+ transcoder = Gapic::Rest::GrpcTranscoder.new
402
+ .with_bindings(
403
+ uri_method: :get,
404
+ uri_template: "/v1/{name}",
405
+ matches: [
406
+ ["name", %r{^projects/[^/]+/locations/[^/]+/jobs/[^/]+/?$}, false]
407
+ ]
408
+ )
409
+ transcoder.transcode request_pb
410
+ end
411
+
412
+ ##
413
+ # @private
414
+ #
415
+ # GRPC transcoding helper method for the delete_job REST call
416
+ #
417
+ # @param request_pb [::Google::Cloud::Video::Transcoder::V1::DeleteJobRequest]
418
+ # A request object representing the call parameters. Required.
419
+ # @return [Array(String, [String, nil], Hash{String => String})]
420
+ # Uri, Body, Query string parameters
421
+ def self.transcode_delete_job_request request_pb
422
+ transcoder = Gapic::Rest::GrpcTranscoder.new
423
+ .with_bindings(
424
+ uri_method: :delete,
425
+ uri_template: "/v1/{name}",
426
+ matches: [
427
+ ["name", %r{^projects/[^/]+/locations/[^/]+/jobs/[^/]+/?$}, false]
428
+ ]
429
+ )
430
+ transcoder.transcode request_pb
431
+ end
432
+
433
+ ##
434
+ # @private
435
+ #
436
+ # GRPC transcoding helper method for the create_job_template REST call
437
+ #
438
+ # @param request_pb [::Google::Cloud::Video::Transcoder::V1::CreateJobTemplateRequest]
439
+ # A request object representing the call parameters. Required.
440
+ # @return [Array(String, [String, nil], Hash{String => String})]
441
+ # Uri, Body, Query string parameters
442
+ def self.transcode_create_job_template_request request_pb
443
+ transcoder = Gapic::Rest::GrpcTranscoder.new
444
+ .with_bindings(
445
+ uri_method: :post,
446
+ uri_template: "/v1/{parent}/jobTemplates",
447
+ body: "job_template",
448
+ matches: [
449
+ ["parent", %r{^projects/[^/]+/locations/[^/]+/?$}, false]
450
+ ]
451
+ )
452
+ transcoder.transcode request_pb
453
+ end
454
+
455
+ ##
456
+ # @private
457
+ #
458
+ # GRPC transcoding helper method for the list_job_templates REST call
459
+ #
460
+ # @param request_pb [::Google::Cloud::Video::Transcoder::V1::ListJobTemplatesRequest]
461
+ # A request object representing the call parameters. Required.
462
+ # @return [Array(String, [String, nil], Hash{String => String})]
463
+ # Uri, Body, Query string parameters
464
+ def self.transcode_list_job_templates_request request_pb
465
+ transcoder = Gapic::Rest::GrpcTranscoder.new
466
+ .with_bindings(
467
+ uri_method: :get,
468
+ uri_template: "/v1/{parent}/jobTemplates",
469
+ matches: [
470
+ ["parent", %r{^projects/[^/]+/locations/[^/]+/?$}, false]
471
+ ]
472
+ )
473
+ transcoder.transcode request_pb
474
+ end
475
+
476
+ ##
477
+ # @private
478
+ #
479
+ # GRPC transcoding helper method for the get_job_template REST call
480
+ #
481
+ # @param request_pb [::Google::Cloud::Video::Transcoder::V1::GetJobTemplateRequest]
482
+ # A request object representing the call parameters. Required.
483
+ # @return [Array(String, [String, nil], Hash{String => String})]
484
+ # Uri, Body, Query string parameters
485
+ def self.transcode_get_job_template_request request_pb
486
+ transcoder = Gapic::Rest::GrpcTranscoder.new
487
+ .with_bindings(
488
+ uri_method: :get,
489
+ uri_template: "/v1/{name}",
490
+ matches: [
491
+ ["name", %r{^projects/[^/]+/locations/[^/]+/jobTemplates/[^/]+/?$}, false]
492
+ ]
493
+ )
494
+ transcoder.transcode request_pb
495
+ end
496
+
497
+ ##
498
+ # @private
499
+ #
500
+ # GRPC transcoding helper method for the delete_job_template REST call
501
+ #
502
+ # @param request_pb [::Google::Cloud::Video::Transcoder::V1::DeleteJobTemplateRequest]
503
+ # A request object representing the call parameters. Required.
504
+ # @return [Array(String, [String, nil], Hash{String => String})]
505
+ # Uri, Body, Query string parameters
506
+ def self.transcode_delete_job_template_request request_pb
507
+ transcoder = Gapic::Rest::GrpcTranscoder.new
508
+ .with_bindings(
509
+ uri_method: :delete,
510
+ uri_template: "/v1/{name}",
511
+ matches: [
512
+ ["name", %r{^projects/[^/]+/locations/[^/]+/jobTemplates/[^/]+/?$}, false]
513
+ ]
514
+ )
515
+ transcoder.transcode request_pb
516
+ end
517
+ end
518
+ end
519
+ end
520
+ end
521
+ end
522
+ end
523
+ end
524
+ end
@@ -0,0 +1,59 @@
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/rest"
20
+ require "gapic/config"
21
+ require "gapic/config/method"
22
+
23
+ require "google/cloud/video/transcoder/v1/version"
24
+
25
+ require "google/cloud/video/transcoder/v1/transcoder_service/credentials"
26
+ require "google/cloud/video/transcoder/v1/transcoder_service/paths"
27
+ require "google/cloud/video/transcoder/v1/transcoder_service/rest/client"
28
+
29
+ module Google
30
+ module Cloud
31
+ module Video
32
+ module Transcoder
33
+ module V1
34
+ ##
35
+ # Using the Transcoder API, you can queue asynchronous jobs for transcoding
36
+ # media into various output formats. Output formats may include different
37
+ # streaming standards such as HTTP Live Streaming (HLS) and Dynamic Adaptive
38
+ # Streaming over HTTP (DASH). You can also customize jobs using advanced
39
+ # features such as Digital Rights Management (DRM), audio equalization, content
40
+ # concatenation, and digital ad-stitch ready content generation.
41
+ #
42
+ # To load this service and instantiate a REST client:
43
+ #
44
+ # require "google/cloud/video/transcoder/v1/transcoder_service/rest"
45
+ # client = ::Google::Cloud::Video::Transcoder::V1::TranscoderService::Rest::Client.new
46
+ #
47
+ module TranscoderService
48
+ # Client for the REST transport
49
+ module Rest
50
+ end
51
+ end
52
+ end
53
+ end
54
+ end
55
+ end
56
+ end
57
+
58
+ helper_path = ::File.join __dir__, "rest", "helpers.rb"
59
+ require "google/cloud/video/transcoder/v1/transcoder_service/rest/helpers" if ::File.file? helper_path
@@ -25,6 +25,7 @@ require "google/cloud/video/transcoder/v1/version"
25
25
  require "google/cloud/video/transcoder/v1/transcoder_service/credentials"
26
26
  require "google/cloud/video/transcoder/v1/transcoder_service/paths"
27
27
  require "google/cloud/video/transcoder/v1/transcoder_service/client"
28
+ require "google/cloud/video/transcoder/v1/transcoder_service/rest"
28
29
 
29
30
  module Google
30
31
  module Cloud
@@ -39,11 +40,16 @@ module Google
39
40
  # features such as Digital Rights Management (DRM), audio equalization, content
40
41
  # concatenation, and digital ad-stitch ready content generation.
41
42
  #
42
- # To load this service and instantiate a client:
43
+ # @example Load this service and instantiate a gRPC client
43
44
  #
44
45
  # require "google/cloud/video/transcoder/v1/transcoder_service"
45
46
  # client = ::Google::Cloud::Video::Transcoder::V1::TranscoderService::Client.new
46
47
  #
48
+ # @example Load this service and instantiate a REST client
49
+ #
50
+ # require "google/cloud/video/transcoder/v1/transcoder_service/rest"
51
+ # client = ::Google::Cloud::Video::Transcoder::V1::TranscoderService::Rest::Client.new
52
+ #
47
53
  module TranscoderService
48
54
  end
49
55
  end
@@ -22,7 +22,7 @@ module Google
22
22
  module Video
23
23
  module Transcoder
24
24
  module V1
25
- VERSION = "0.5.0"
25
+ VERSION = "0.7.0"
26
26
  end
27
27
  end
28
28
  end
@@ -24,13 +24,18 @@ module Google
24
24
  module Video
25
25
  module Transcoder
26
26
  ##
27
- # To load this package, including all its services, and instantiate a client:
27
+ # API client module.
28
28
  #
29
- # @example
29
+ # @example Load this package, including all its services, and instantiate a gRPC client
30
30
  #
31
31
  # require "google/cloud/video/transcoder/v1"
32
32
  # client = ::Google::Cloud::Video::Transcoder::V1::TranscoderService::Client.new
33
33
  #
34
+ # @example Load this package, including all its services, and instantiate a REST client
35
+ #
36
+ # require "google/cloud/video/transcoder/v1"
37
+ # client = ::Google::Cloud::Video::Transcoder::V1::TranscoderService::Rest::Client.new
38
+ #
34
39
  module V1
35
40
  end
36
41
  end