Skip to content

Commit

Permalink
chore(ruby): Configure client for google-cloud-cloud_controls_partner
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 609894836
  • Loading branch information
Google APIs authored and Copybara-Service committed Feb 24, 2024
1 parent c5b43c8 commit ec05f42
Show file tree
Hide file tree
Showing 2 changed files with 37 additions and 1 deletion.
36 changes: 36 additions & 0 deletions google/cloud/cloudcontrolspartner/BUILD.bazel
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
# This build file includes a target for the Ruby wrapper library for
# google-cloud-cloud_controls_partner.

# 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 cloudcontrolspartner.
# 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 = "cloudcontrolspartner_ruby_wrapper",
srcs = ["//google/cloud/cloudcontrolspartner/v1beta:cloudcontrolspartner_proto_with_info"],
extra_protoc_parameters = [
"ruby-cloud-gem-name=google-cloud-cloud_controls_partner",
"ruby-cloud-wrapper-of=v1beta:0.0",
],
service_yaml = "//google/cloud/cloudcontrolspartner/v1beta:cloudcontrolspartner_v1beta.yaml",
transport = "grpc+rest",
)

# Open Source package.
ruby_gapic_assembly_pkg(
name = "google-cloud-cloudcontrolspartner-ruby",
deps = [
":cloudcontrolspartner_ruby_wrapper",
],
)
2 changes: 1 addition & 1 deletion google/cloud/cloudcontrolspartner/v1beta/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -293,7 +293,7 @@ ruby_grpc_library(
ruby_cloud_gapic_library(
name = "cloudcontrolspartner_ruby_gapic",
srcs = [":cloudcontrolspartner_proto_with_info"],
extra_protoc_parameters = ["ruby-cloud-gem-name=google-cloud-cloudcontrolspartner-v1beta"],
extra_protoc_parameters = ["ruby-cloud-gem-name=google-cloud-cloud_controls_partner-v1beta"],
grpc_service_config = "cloudcontrolspartner_v1beta_grpc_service_config.json",
rest_numeric_enums = True,
service_yaml = "cloudcontrolspartner_v1beta.yaml",
Expand Down

0 comments on commit ec05f42

Please sign in to comment.