xref: /aosp_15_r20/external/googleapis/google/iam/credentials/BUILD.bazel (revision d5c09012810ac0c9f33fe448fb6da8260d444cc9)
1# This build file includes a target for the Ruby wrapper library for
2# google-iam-credentials.
3
4# This is an API workspace, having public visibility by default makes perfect sense.
5package(default_visibility = ["//visibility:public"])
6
7# Export yaml configs.
8exports_files(glob(["*.yaml"]))
9
10load(
11    "@com_google_googleapis_imports//:imports.bzl",
12    "ruby_cloud_gapic_library",
13    "ruby_gapic_assembly_pkg",
14)
15
16# Generates a Ruby wrapper client for iamcredentials.
17# Ruby wrapper clients are versionless, but are generated from source protos
18# for a particular service version, v1 in this case.
19ruby_cloud_gapic_library(
20    name = "iamcredentials_ruby_wrapper",
21    srcs = ["//google/iam/credentials/v1:credentials_proto_with_info"],
22    extra_protoc_parameters = [
23        "ruby-cloud-gem-name=google-iam-credentials",
24        "ruby-cloud-env-prefix=IAM_CREDENTIALS",
25        "ruby-cloud-wrapper-of=v1:0.8",
26        "ruby-cloud-product-url=https://cloud.google.com/iam",
27        "ruby-cloud-api-id=iamcredentials.googleapis.com",
28        "ruby-cloud-api-shortname=iamcredentials",
29    ],
30    ruby_cloud_description = "The Service Account Credentials API creates short-lived credentials for Identity and Access Management (IAM) service accounts. You can also use this API to sign JSON Web Tokens (JWTs), as well as blobs of binary data that contain other types of tokens.",
31    ruby_cloud_title = "IAM Service Account Credentials",
32    transport = "grpc+rest",
33)
34
35# Open Source package.
36ruby_gapic_assembly_pkg(
37    name = "google-iam-credentials-ruby",
38    deps = [
39        ":iamcredentials_ruby_wrapper",
40    ],
41)
42