Skip to content

Commit

Permalink
chore(ruby): Configure build rules for IAM V2 Ruby clients
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 471568627
  • Loading branch information
Google APIs authored and Copybara-Service committed Sep 1, 2022
1 parent 2de0a6b commit 42c571c
Show file tree
Hide file tree
Showing 2 changed files with 46 additions and 1 deletion.
38 changes: 38 additions & 0 deletions google/iam/BUILD.bazel
@@ -1 +1,39 @@
# This build file includes a target for the Ruby wrapper library for
# google-iam.

# 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 iam.
# Ruby wrapper clients are versionless, but are generated from source protos
# for a particular service version, v2 in this case.
ruby_cloud_gapic_library(
name = "iam_ruby_wrapper",
srcs = ["//google/iam/v2:iam_proto_with_info"],
extra_protoc_parameters = [
"ruby-cloud-gem-name=google-iam",
"ruby-cloud-wrapper-of=v2:0.0",
"ruby-cloud-product-url=https://cloud.google.com/iam",
"ruby-cloud-api-id=iam.googleapis.com",
"ruby-cloud-api-shortname=iam",
],
ruby_cloud_description = "Manages identity and access control policies for Google Cloud Platform resources.",
ruby_cloud_title = "IAM",
)

# Open Source package.
ruby_gapic_assembly_pkg(
name = "google-iam-ruby",
deps = [
":iam_ruby_wrapper",
],
)
9 changes: 8 additions & 1 deletion google/iam/v2/BUILD.bazel
Expand Up @@ -298,9 +298,16 @@ ruby_grpc_library(
ruby_cloud_gapic_library(
name = "iam_ruby_gapic",
srcs = [":iam_proto_with_info"],
extra_protoc_parameters = ["ruby-cloud-gem-name=google-cloud-iam-v2"],
extra_protoc_parameters = [
"ruby-cloud-api-id=iam.googleapis.com",
"ruby-cloud-api-shortname=iam",
"ruby-cloud-gem-name=google-iam-v2",
"ruby-cloud-product-url=https://cloud.google.com/iam",
],
grpc_service_config = "iam_grpc_service_config.json",
service_yaml = "iam_v2.yaml",
ruby_cloud_description = "Manages identity and access control policies for Google Cloud Platform resources.",
ruby_cloud_title = "IAM V2",
deps = [
":iam_ruby_grpc",
":iam_ruby_proto",
Expand Down

0 comments on commit 42c571c

Please sign in to comment.