Skip to content

Commit 8b9626e

Browse files
Google APIscopybara-github
authored andcommitted
chore: Configure Ruby client for bigquerymigration
PiperOrigin-RevId: 439380358
1 parent a56f9fe commit 8b9626e

2 files changed

Lines changed: 44 additions & 0 deletions

File tree

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
# This build file includes a target for the Ruby wrapper library for
2+
# google-cloud-bigquery-migration.
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 bigquerymigration.
17+
# Ruby wrapper clients are versionless, but are generated from source protos
18+
# for a particular service version, v2 in this case.
19+
ruby_cloud_gapic_library(
20+
name = "migration_ruby_wrapper",
21+
srcs = ["//google/cloud/bigquery/migration/v2:migration_proto_with_info"],
22+
extra_protoc_parameters = [
23+
"ruby-cloud-gem-name=google-cloud-bigquery-migration",
24+
"ruby-cloud-wrapper-of=v2:0.0",
25+
"ruby-cloud-product-url=https://cloud.google.com/bigquery/docs/reference/migration",
26+
"ruby-cloud-api-id=bigquerymigration.googleapis.com",
27+
"ruby-cloud-api-shortname=bigquerymigration",
28+
],
29+
ruby_cloud_description = "The BigQuery Migration Service is a comprehensive solution for migrating your data warehouse to BigQuery.",
30+
ruby_cloud_title = "BigQuery Migration",
31+
)
32+
33+
# Open Source package.
34+
ruby_gapic_assembly_pkg(
35+
name = "google-cloud-bigquery-migration-ruby",
36+
deps = [
37+
":migration_ruby_wrapper",
38+
],
39+
)

google/cloud/bigquery/migration/v2/BUILD.bazel

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -286,8 +286,13 @@ ruby_cloud_gapic_library(
286286
srcs = [":migration_proto_with_info"],
287287
extra_protoc_parameters = [
288288
"ruby-cloud-gem-name=google-cloud-bigquery-migration-v2",
289+
"ruby-cloud-product-url=https://cloud.google.com/bigquery/docs/reference/migration",
290+
"ruby-cloud-api-id=bigquerymigration.googleapis.com",
291+
"ruby-cloud-api-shortname=bigquerymigration",
289292
],
290293
grpc_service_config = "bigquerymigration_grpc_service_config.json",
294+
ruby_cloud_description = "The BigQuery Migration Service is a comprehensive solution for migrating your data warehouse to BigQuery.",
295+
ruby_cloud_title = "BigQuery Migration V2",
291296
deps = [
292297
":migration_ruby_grpc",
293298
":migration_ruby_proto",

0 commit comments

Comments
 (0)