Skip to content

Commit 7c7a99a

Browse files
Google APIscopybara-github
authored andcommitted
chore(ruby): Configure Ruby generator for Video Live Stream clients
PiperOrigin-RevId: 428111509
1 parent 4807247 commit 7c7a99a

2 files changed

Lines changed: 47 additions & 1 deletion

File tree

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
# This build file includes a target for the Ruby wrapper library for
2+
# google-cloud-video-live_stream.
3+
4+
# This is an API workspace, having public visibility by default makes perfect sense.
5+
package(default_visibility = ["//visibility:public"])
6+
7+
# Export yaml configs.
8+
exports_files(glob(["*.yaml"]))
9+
10+
load(
11+
"@com_google_googleapis_imports//:imports.bzl",
12+
"ruby_cloud_gapic_library",
13+
"ruby_gapic_assembly_pkg",
14+
)
15+
16+
# Generates a Ruby wrapper client for livestream.
17+
# Ruby wrapper clients are versionless, but are generated from source protos
18+
# for a particular service version, v1 in this case.
19+
ruby_cloud_gapic_library(
20+
name = "livestream_ruby_wrapper",
21+
srcs = ["//google/cloud/video/livestream/v1:livestream_proto_with_info"],
22+
extra_protoc_parameters = [
23+
"ruby-cloud-gem-name=google-cloud-video-live_stream",
24+
"ruby-cloud-wrapper-of=v1:0.0",
25+
"ruby-cloud-product-url=https://cloud.google.com/livestream/",
26+
"ruby-cloud-api-id=livestream.googleapis.com",
27+
"ruby-cloud-api-shortname=livestream",
28+
],
29+
ruby_cloud_description = "The Live Stream API transcodes mezzanine live signals into direct-to-consumer streaming formats, including Dynamic Adaptive Streaming over HTTP (DASH/MPEG-DASH), and HTTP Live Streaming (HLS), for multiple device platforms.",
30+
ruby_cloud_title = "Live Stream",
31+
)
32+
33+
# Open Source package.
34+
ruby_gapic_assembly_pkg(
35+
name = "google-cloud-video-livestream-ruby",
36+
deps = [
37+
":livestream_ruby_wrapper",
38+
],
39+
)

google/cloud/video/livestream/v1/BUILD.bazel

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -285,8 +285,15 @@ ruby_grpc_library(
285285
ruby_cloud_gapic_library(
286286
name = "livestream_ruby_gapic",
287287
srcs = [":livestream_proto_with_info"],
288-
extra_protoc_parameters = ["ruby-cloud-gem-name=google-cloud-video-livestream-v1"],
288+
extra_protoc_parameters = [
289+
"ruby-cloud-api-id=livestream.googleapis.com",
290+
"ruby-cloud-api-shortname=livestream",
291+
"ruby-cloud-gem-name=google-cloud-video-live_stream-v1",
292+
"ruby-cloud-product-url=https://cloud.google.com/livestream/",
293+
],
289294
grpc_service_config = "livestream_grpc_service_config.json",
295+
ruby_cloud_description = "The Live Stream API transcodes mezzanine live signals into direct-to-consumer streaming formats, including Dynamic Adaptive Streaming over HTTP (DASH/MPEG-DASH), and HTTP Live Streaming (HLS), for multiple device platforms.",
296+
ruby_cloud_title = "Live Stream V1",
290297
deps = [
291298
":livestream_ruby_grpc",
292299
":livestream_ruby_proto",

0 commit comments

Comments
 (0)