Skip to content

Commit 56da7b0

Browse files
authored
feat: Add bazel config for Ruby compute wrapper (#699)
1 parent d2c7ff7 commit 56da7b0

1 file changed

Lines changed: 41 additions & 0 deletions

File tree

google/cloud/compute/BUILD.bazel

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
# This build file includes a target for the Ruby wrapper library for
2+
# google-cloud-compute.
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 compute.
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 = "compute_ruby_wrapper",
21+
srcs = ["//google/cloud/compute/v1:compute_proto_with_info"],
22+
extra_protoc_parameters = [
23+
"ruby-cloud-gem-name=google-cloud-compute",
24+
"ruby-cloud-wrapper-of=v1:0.0",
25+
"ruby-cloud-product-url=https://cloud.google.com/compute/",
26+
"ruby-cloud-api-id=compute.googleapis.com",
27+
"ruby-cloud-api-shortname=compute",
28+
"ruby-cloud-generate-transports=rest",
29+
"ruby-cloud-env-prefix=COMPUTE",
30+
],
31+
ruby_cloud_description = "google-cloud-compute is the official client library for the Google Cloud Compute API.",
32+
ruby_cloud_title = "Google Cloud Compute",
33+
)
34+
35+
# Open Source package.
36+
ruby_gapic_assembly_pkg(
37+
name = "google-cloud-compute-ruby",
38+
deps = [
39+
":compute_ruby_wrapper",
40+
],
41+
)

0 commit comments

Comments
 (0)