Skip to content

Commit

Permalink
chore(ruby): Configure clients for google-cloud-redis-cluster
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 580715682
  • Loading branch information
Google APIs authored and Copybara-Service committed Nov 9, 2023
1 parent 72f1796 commit b6f1e15
Show file tree
Hide file tree
Showing 2 changed files with 37 additions and 0 deletions.
36 changes: 36 additions & 0 deletions google/cloud/redis/cluster/BUILD.bazel
@@ -0,0 +1,36 @@
# This build file includes a target for the Ruby wrapper library for
# google-cloud-redis-cluster.

# This is an API workspace, having public visibility by default makes perfect sense.
package(default_visibility = ["//visibility:public"])

# Export yaml configs.
exports_files(glob(["*.yaml"]))

load(
"@com_google_googleapis_imports//:imports.bzl",
"ruby_cloud_gapic_library",
"ruby_gapic_assembly_pkg",
)

# Generates a Ruby wrapper client for redis-cluster.
# Ruby wrapper clients are versionless, but are generated from source protos
# for a particular service version, v1 in this case.
ruby_cloud_gapic_library(
name = "cluster_ruby_wrapper",
srcs = ["//google/cloud/redis/cluster/v1:cluster_proto_with_info"],
extra_protoc_parameters = [
"ruby-cloud-gem-name=google-cloud-redis-cluster",
"ruby-cloud-wrapper-of=v1:0.0",
],
service_yaml = "//google/cloud/redis/cluster/v1:redis_v1.yaml",
transport = "grpc+rest",
)

# Open Source package.
ruby_gapic_assembly_pkg(
name = "google-cloud-redis-cluster-ruby",
deps = [
":cluster_ruby_wrapper",
],
)
1 change: 1 addition & 0 deletions google/cloud/redis/cluster/v1/cloud_redis_cluster.proto
Expand Up @@ -30,6 +30,7 @@ option go_package = "cloud.google.com/go/redis/cluster/apiv1/clusterpb;clusterpb
option java_multiple_files = true;
option java_outer_classname = "CloudRedisClusterProto";
option java_package = "com.google.cloud.redis.cluster.v1";
option ruby_package = "Google::Cloud::Redis::Cluster::V1";

// Configures and manages Cloud Memorystore for Redis clusters
//
Expand Down

0 comments on commit b6f1e15

Please sign in to comment.