1# This build file includes a target for the Ruby wrapper library for 2# google-cloud-tpu. 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 tpu. 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 = "tpu_ruby_wrapper", 21 srcs = ["//google/cloud/tpu/v1:tpu_proto_with_info"], 22 extra_protoc_parameters = [ 23 "ruby-cloud-gem-name=google-cloud-tpu", 24 "ruby-cloud-env-prefix=CLOUD_TPU", 25 "ruby-cloud-wrapper-of=v1:0.6", 26 "ruby-cloud-product-url=https://cloud.google.com/tpu/", 27 "ruby-cloud-api-id=tpu.googleapis.com", 28 "ruby-cloud-api-shortname=tpu", 29 ], 30 ruby_cloud_description = "Tensor Processing Units (TPUs) are Google's custom-developed application-specific integrated circuits (ASICs) used to accelerate machine learning workloads. Cloud TPUs allow you to access TPUs from Compute Engine, Google Kubernetes Engine and AI Platform.", 31 ruby_cloud_title = "Cloud TPU", 32 transport = "grpc", 33) 34 35# Open Source package. 36ruby_gapic_assembly_pkg( 37 name = "google-cloud-tpu-ruby", 38 deps = [ 39 ":tpu_ruby_wrapper", 40 ], 41) 42