diff options
author | Google APIs <noreply@google.com> | 2024-04-23 13:58:43 -0700 |
---|---|---|
committer | Copybara-Service <copybara-worker@google.com> | 2024-04-23 14:00:32 -0700 |
commit | 988827ee9ea52cf88691fd79ae430e3293546840 (patch) | |
tree | 6e4ec867b5ba882cce38f88005223413a3be537e /google/shopping/merchant/lfp/BUILD.bazel | |
parent | fad53ab05d9c341bb78f427aa77fb9cd29a66c21 (diff) | |
download | googleapis-988827ee9ea52cf88691fd79ae430e3293546840.tar.gz |
chore(ruby): configure clients for google-shopping-merchant-lfp
PiperOrigin-RevId: 627496939
Diffstat (limited to 'google/shopping/merchant/lfp/BUILD.bazel')
-rw-r--r-- | google/shopping/merchant/lfp/BUILD.bazel | 36 |
1 files changed, 36 insertions, 0 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", + ], +) |