Skip to content

Commit 9da5e7f

Browse files
Google APIscopybara-github
authored andcommitted
chore(ruby): configure Ruby builds for datastream v1, run v2, and the run wrapper
PiperOrigin-RevId: 438645968
1 parent 59b819d commit 9da5e7f

3 files changed

Lines changed: 49 additions & 0 deletions

File tree

google/cloud/datastream/v1/BUILD.bazel

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -282,8 +282,13 @@ ruby_cloud_gapic_library(
282282
srcs = [":datastream_proto_with_info"],
283283
extra_protoc_parameters = [
284284
"ruby-cloud-gem-name=google-cloud-datastream-v1",
285+
"ruby-cloud-product-url=https://cloud.google.com/datastream/",
286+
"ruby-cloud-api-id=datastream.googleapis.com",
287+
"ruby-cloud-api-shortname=datastream",
285288
],
286289
grpc_service_config = "datastream_grpc_service_config.json",
290+
ruby_cloud_description = "Datastream is a serverless and easy-to-use change data capture (CDC) and replication service. It allows you to synchronize data across heterogeneous databases and applications reliably, and with minimal latency and downtime.",
291+
ruby_cloud_title = "Datastream V1",
287292
deps = [
288293
":datastream_ruby_grpc",
289294
":datastream_ruby_proto",

google/cloud/run/BUILD.bazel

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-run.
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 run.
17+
# Ruby wrapper clients are versionless, but are generated from source protos
18+
# for a particular service version, v2 in this case.
19+
ruby_cloud_gapic_library(
20+
name = "run_ruby_wrapper",
21+
srcs = ["//google/cloud/run/v2:run_proto_with_info"],
22+
extra_protoc_parameters = [
23+
"ruby-cloud-gem-name=google-cloud-run",
24+
"ruby-cloud-wrapper-of=v2:0.0",
25+
"ruby-cloud-product-url=https://cloud.google.com/run",
26+
"ruby-cloud-api-id=run.googleapis.com",
27+
"ruby-cloud-api-shortname=run",
28+
],
29+
ruby_cloud_description = "Cloud Run deploys and manages user provided container images that scale automatically based on incoming requests.",
30+
ruby_cloud_title = "Cloud Run",
31+
)
32+
33+
# Open Source package.
34+
ruby_gapic_assembly_pkg(
35+
name = "google-cloud-run-ruby",
36+
deps = [
37+
":run_ruby_wrapper",
38+
],
39+
)

google/cloud/run/v2/BUILD.bazel

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -292,8 +292,13 @@ ruby_cloud_gapic_library(
292292
srcs = [":run_proto_with_info"],
293293
extra_protoc_parameters = [
294294
"ruby-cloud-gem-name=google-cloud-run-v2",
295+
"ruby-cloud-product-url=https://cloud.google.com/run/",
296+
"ruby-cloud-api-id=run.googleapis.com",
297+
"ruby-cloud-api-shortname=run",
295298
],
296299
grpc_service_config = "run_grpc_service_config.json",
300+
ruby_cloud_description = "Cloud Run deploys and manages user provided container images that scale automatically based on incoming requests.",
301+
ruby_cloud_title = "Cloud Run V2",
297302
deps = [
298303
":run_ruby_grpc",
299304
":run_ruby_proto",

0 commit comments

Comments
 (0)