Skip to content

Commit 1798403

Browse files
Google APIscopybara-github
authored andcommitted
chore(ruby): Configure Ruby generator for Dataplex clients
PiperOrigin-RevId: 428067759
1 parent 8a718b2 commit 1798403

2 files changed

Lines changed: 44 additions & 0 deletions

File tree

google/cloud/dataplex/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-dataplex.
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 dataplex.
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 = "dataplex_ruby_wrapper",
21+
srcs = ["//google/cloud/dataplex/v1:dataplex_proto_with_info"],
22+
extra_protoc_parameters = [
23+
"ruby-cloud-gem-name=google-cloud-dataplex",
24+
"ruby-cloud-wrapper-of=v1:0.0",
25+
"ruby-cloud-product-url=https://cloud.google.com/dataplex/",
26+
"ruby-cloud-api-id=dataplex.googleapis.com",
27+
"ruby-cloud-api-shortname=dataplex",
28+
],
29+
ruby_cloud_description = "Dataplex is an intelligent data fabric that provides a way to centrally manage, monitor, and govern your data across data lakes, data warehouses and data marts, and make this data securely accessible to a variety of analytics and data science tools.",
30+
ruby_cloud_title = "Dataplex",
31+
)
32+
33+
# Open Source package.
34+
ruby_gapic_assembly_pkg(
35+
name = "google-cloud-dataplex-ruby",
36+
deps = [
37+
":dataplex_ruby_wrapper",
38+
],
39+
)

google/cloud/dataplex/v1/BUILD.bazel

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -282,9 +282,14 @@ ruby_cloud_gapic_library(
282282
name = "dataplex_ruby_gapic",
283283
srcs = [":dataplex_proto_with_info"],
284284
extra_protoc_parameters = [
285+
"ruby-cloud-api-id=dataplex.googleapis.com",
286+
"ruby-cloud-api-shortname=dataplex",
285287
"ruby-cloud-gem-name=google-cloud-dataplex-v1",
288+
"ruby-cloud-product-url=https://cloud.google.com/dataplex/",
286289
],
287290
grpc_service_config = "dataplex_grpc_service_config.json",
291+
ruby_cloud_description = "Dataplex is an intelligent data fabric that provides a way to centrally manage, monitor, and govern your data across data lakes, data warehouses and data marts, and make this data securely accessible to a variety of analytics and data science tools.",
292+
ruby_cloud_title = "Dataplex V1",
288293
deps = [
289294
":dataplex_ruby_grpc",
290295
":dataplex_ruby_proto",

0 commit comments

Comments
 (0)