Skip to content

Commit

Permalink
chore(ruby): configure clients for google-shopping-merchant-quota
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 617342462
  • Loading branch information
Google APIs authored and Copybara-Service committed Mar 20, 2024
1 parent 12121ee commit 6a4b047
Show file tree
Hide file tree
Showing 2 changed files with 38 additions and 2 deletions.
36 changes: 36 additions & 0 deletions google/shopping/merchant/quota/BUILD.bazel
@@ -0,0 +1,36 @@
# This build file includes a target for the Ruby wrapper library for
# google-shopping-merchant-quota.

# 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 quota.
# 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 = "quota_ruby_wrapper",
srcs = ["//google/shopping/merchant/quota/v1beta:quota_proto_with_info"],
extra_protoc_parameters = [
"ruby-cloud-gem-name=google-shopping-merchant-quota",
"ruby-cloud-wrapper-of=v1beta:0.0",
],
service_yaml = "//google/shopping/merchant/quota/v1beta:merchantapi_v1beta.yaml",
transport = "grpc+rest",
)

# Open Source package.
ruby_gapic_assembly_pkg(
name = "google-shopping-merchant-quota-ruby",
deps = [
":quota_ruby_wrapper",
],
)
4 changes: 2 additions & 2 deletions google/shopping/merchant/quota/v1beta/BUILD.bazel
Expand Up @@ -293,7 +293,7 @@ ruby_cloud_gapic_library(
name = "quota_ruby_gapic",
srcs = [":quota_proto_with_info"],
extra_protoc_parameters = [
"ruby-cloud-gem-name=google-cloud-merchant-quota-v1beta",
"ruby-cloud-gem-name=google-shopping-merchant-quota-v1beta",
],
grpc_service_config = "quota_grpc_service_config.json",
rest_numeric_enums = True,
Expand All @@ -307,7 +307,7 @@ ruby_cloud_gapic_library(

# Open Source Packages
ruby_gapic_assembly_pkg(
name = "google-cloud-merchant-quota-v1beta-ruby",
name = "google-shopping-merchant-quota-v1beta-ruby",
deps = [
":quota_ruby_gapic",
":quota_ruby_grpc",
Expand Down

0 comments on commit 6a4b047

Please sign in to comment.