xref: /aosp_15_r20/external/googleapis/google/cloud/tasks/BUILD.bazel (revision d5c09012810ac0c9f33fe448fb6da8260d444cc9)
1# This build file includes a target for the Ruby wrapper library for
2# google-cloud-tasks.
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 cloudtasks.
17# Ruby wrapper clients are versionless, but are generated from source protos
18# for a particular service version, v2 in this case.
19ruby_cloud_gapic_library(
20    name = "cloudtasks_ruby_wrapper",
21    srcs = ["//google/cloud/tasks/v2:tasks_proto_with_info"],
22    extra_protoc_parameters = [
23        "ruby-cloud-gem-name=google-cloud-tasks",
24        "ruby-cloud-env-prefix=TASKS",
25        "ruby-cloud-wrapper-of=v2:0.10;v2beta2:0.11;v2beta3:0.12",
26        "ruby-cloud-product-url=https://cloud.google.com/tasks",
27        "ruby-cloud-api-id=cloudtasks.googleapis.com",
28        "ruby-cloud-api-shortname=cloudtasks",
29        "ruby-cloud-migration-version=2.0",
30    ],
31    ruby_cloud_description = "Cloud Tasks is a fully managed service that allows you to manage the execution, dispatch and delivery of a large number of distributed tasks. You can asynchronously perform work outside of a user request. Your tasks can be executed on App Engine or any arbitrary HTTP endpoint.",
32    ruby_cloud_title = "Cloud Tasks",
33    transport = "grpc+rest",
34)
35
36# Open Source package.
37ruby_gapic_assembly_pkg(
38    name = "google-cloud-tasks-ruby",
39    deps = [
40        ":cloudtasks_ruby_wrapper",
41    ],
42)
43