aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGoogle APIs <noreply@google.com>2024-04-23 13:58:43 -0700
committerCopybara-Service <copybara-worker@google.com>2024-04-23 14:00:32 -0700
commit988827ee9ea52cf88691fd79ae430e3293546840 (patch)
tree6e4ec867b5ba882cce38f88005223413a3be537e
parentfad53ab05d9c341bb78f427aa77fb9cd29a66c21 (diff)
downloadgoogleapis-988827ee9ea52cf88691fd79ae430e3293546840.tar.gz
chore(ruby): configure clients for google-shopping-merchant-lfp
PiperOrigin-RevId: 627496939
-rw-r--r--google/shopping/merchant/lfp/BUILD.bazel36
-rw-r--r--google/shopping/merchant/lfp/v1beta/BUILD.bazel4
2 files changed, 38 insertions, 2 deletions
diff --git a/google/shopping/merchant/lfp/BUILD.bazel b/google/shopping/merchant/lfp/BUILD.bazel
new file mode 100644
index 000000000..409a0a22e
--- /dev/null
+++ b/google/shopping/merchant/lfp/BUILD.bazel
@@ -0,0 +1,36 @@
+# This build file includes a target for the Ruby wrapper library for
+# google-shopping-merchant-lfp.
+
+# 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 merchant lfp.
+# Ruby wrapper clients are versionless, but are generated from source protos
+# for a particular service version, v1beta in this case.
+ruby_cloud_gapic_library(
+ name = "lfp_ruby_wrapper",
+ srcs = ["//google/shopping/merchant/lfp/v1beta:lfp_proto_with_info"],
+ extra_protoc_parameters = [
+ "ruby-cloud-gem-name=google-shopping-merchant-lfp",
+ "ruby-cloud-wrapper-of=v1beta:0.0",
+ ],
+ service_yaml = "//google/shopping/merchant/lfp/v1beta:merchantapi_v1beta.yaml",
+ transport = "grpc+rest",
+)
+
+# Open Source package.
+ruby_gapic_assembly_pkg(
+ name = "google-shopping-merchant-lfp-ruby",
+ deps = [
+ ":lfp_ruby_wrapper",
+ ],
+)
diff --git a/google/shopping/merchant/lfp/v1beta/BUILD.bazel b/google/shopping/merchant/lfp/v1beta/BUILD.bazel
index 149b887bf..ce65e8b07 100644
--- a/google/shopping/merchant/lfp/v1beta/BUILD.bazel
+++ b/google/shopping/merchant/lfp/v1beta/BUILD.bazel
@@ -315,7 +315,7 @@ ruby_cloud_gapic_library(
name = "lfp_ruby_gapic",
srcs = [":lfp_proto_with_info"],
extra_protoc_parameters = [
- "ruby-cloud-gem-name=google-cloud-merchant-lfp-v1beta",
+ "ruby-cloud-gem-name=google-shopping-merchant-lfp-v1beta",
],
grpc_service_config = "lfp_grpc_service_config.json",
rest_numeric_enums = True,
@@ -329,7 +329,7 @@ ruby_cloud_gapic_library(
# Open Source Packages
ruby_gapic_assembly_pkg(
- name = "google-cloud-merchant-lfp-v1beta-ruby",
+ name = "google-shopping-merchant-lfp-v1beta-ruby",
deps = [
":lfp_ruby_gapic",
":lfp_ruby_grpc",