Skip to content

Commit 3be31fe

Browse files
Google APIscopybara-github
authored andcommitted
chore: Configure google-cloud-memorystore Ruby client
PiperOrigin-RevId: 703291947
1 parent 3735100 commit 3be31fe

File tree

1 file changed

+36
-0
lines changed

1 file changed

+36
-0
lines changed
Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
# This build file includes a target for the Ruby wrapper library for
2+
# google-cloud-memorystore.
3+
4+
load(
5+
"@com_google_googleapis_imports//:imports.bzl",
6+
"ruby_cloud_gapic_library",
7+
"ruby_gapic_assembly_pkg",
8+
)
9+
10+
# This is an API workspace, having public visibility by default makes perfect sense.
11+
package(default_visibility = ["//visibility:public"])
12+
13+
# Export yaml configs.
14+
exports_files(glob(["*.yaml"]))
15+
16+
# Generates a Ruby wrapper client for memorystore.
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 = "memorystore_ruby_wrapper",
21+
srcs = ["//google/cloud/memorystore/v1:memorystore_proto_with_info"],
22+
extra_protoc_parameters = [
23+
"ruby-cloud-gem-name=google-cloud-memorystore",
24+
"ruby-cloud-wrapper-of=v1:0.0",
25+
],
26+
service_yaml = "//google/cloud/memorystore/v1:memorystore_v1.yaml",
27+
transport = "rest",
28+
)
29+
30+
# Open Source package.
31+
ruby_gapic_assembly_pkg(
32+
name = "google-cloud-memorystore-ruby",
33+
deps = [
34+
":memorystore_ruby_wrapper",
35+
],
36+
)

0 commit comments

Comments
 (0)