Skip to content

Commit f735ad0

Browse files
Google APIscopybara-github
authored andcommitted
chore: Configure Ruby builds for google/cloud/batch
PiperOrigin-RevId: 453307935
1 parent ed8b583 commit f735ad0

2 files changed

Lines changed: 45 additions & 1 deletion

File tree

google/cloud/batch/BUILD.bazel

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
# This build file includes a target for the Ruby wrapper library for
2+
# google-cloud-batch.
3+
4+
# This is an API workspace, having public visibility by default makes perfect sense.
5+
package(default_visibility = ["//visibility:public"])
6+
7+
# Export yaml configs.
8+
exports_files(glob(["*.yaml"]))
9+
10+
load(
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 batch.
17+
# Ruby wrapper clients are versionless, but are generated from source protos
18+
# for a particular service version, v1alpha1 in this case.
19+
ruby_cloud_gapic_library(
20+
name = "batch_ruby_wrapper",
21+
srcs = ["//google/cloud/batch/v1alpha1:batch_proto_with_info"],
22+
extra_protoc_parameters = [
23+
"ruby-cloud-api-id=batch.googleapis.com",
24+
"ruby-cloud-api-shortname=batch",
25+
"ruby-cloud-gem-name=google-cloud-batch",
26+
"ruby-cloud-wrapper-of=v1alpha1:0.0",
27+
],
28+
ruby_cloud_description = "Google Cloud Batch is a fully managed service used by scientists, VFX artists, developers to easily and efficiently run batch workloads on Google Cloud. This service manages provisioning of resources to satisfy the requirements of the batch jobs for a variety of workloads including ML, HPC, VFX rendering, transcoding, genomics and others.",
29+
ruby_cloud_title = "Batch",
30+
)
31+
32+
# Open Source package.
33+
ruby_gapic_assembly_pkg(
34+
name = "google-cloud-batch-ruby",
35+
deps = [
36+
":batch_ruby_wrapper",
37+
],
38+
)

google/cloud/batch/v1alpha1/BUILD.bazel

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -278,8 +278,14 @@ ruby_grpc_library(
278278
ruby_cloud_gapic_library(
279279
name = "batch_ruby_gapic",
280280
srcs = [":batch_proto_with_info"],
281-
extra_protoc_parameters = ["ruby-cloud-gem-name=google-cloud-batch-v1alpha1"],
281+
extra_protoc_parameters = [
282+
"ruby-cloud-api-id=batch.googleapis.com",
283+
"ruby-cloud-api-shortname=batch",
284+
"ruby-cloud-gem-name=google-cloud-batch-v1alpha1",
285+
],
282286
grpc_service_config = "batch_grpc_service_config.json",
287+
ruby_cloud_description = "Google Cloud Batch is a fully managed service used by scientists, VFX artists, developers to easily and efficiently run batch workloads on Google Cloud. This service manages provisioning of resources to satisfy the requirements of the batch jobs for a variety of workloads including ML, HPC, VFX rendering, transcoding, genomics and others.",
288+
ruby_cloud_title = "Batch V1alpha1",
283289
deps = [
284290
":batch_ruby_grpc",
285291
":batch_ruby_proto",

0 commit comments

Comments
 (0)