Skip to content

Commit 959b0bc

Browse files
Google APIscopybara-github
authored andcommitted
feat: Update the ruby_cloud_gapic_library rules for the libraries published to google-cloud-ruby to the form that works with build_gen (separate parameters for ruby_cloud_title and ruby_cloud_description).
chore: Update Bazel-Ruby rules version. chore: Update build_gen version. PiperOrigin-RevId: 358357761
1 parent 5402036 commit 959b0bc

106 files changed

Lines changed: 399 additions & 349 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

WORKSPACE

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -125,8 +125,8 @@ gazelle_dependencies()
125125

126126
http_archive(
127127
name = "rules_gapic",
128-
strip_prefix = "rules_gapic-0.3.0",
129-
urls = ["https://github.com/googleapis/rules_gapic/archive/v0.3.0.tar.gz"],
128+
strip_prefix = "rules_gapic-428c05b06e0fe487f377929776285c81aa12e8c2",
129+
urls = ["https://github.com/googleapis/rules_gapic/archive/428c05b06e0fe487f377929776285c81aa12e8c2.zip"],
130130
)
131131
load("@rules_gapic//:repositories.bzl", "rules_gapic_repositories")
132132
rules_gapic_repositories()
@@ -376,9 +376,8 @@ gapic_generator_csharp_repositories()
376376

377377
http_archive(
378378
name = "gapic_generator_ruby",
379-
sha256 = "48e4054927cc163f20e6ecc7e2239e021610fbcc74042f024c638ce4896995fe",
380-
strip_prefix = "gapic-generator-ruby-gapic-generator-v0.6.10",
381-
urls = ["https://github.com/googleapis/gapic-generator-ruby/archive/gapic-generator/v0.6.10.zip"],
379+
strip_prefix = "gapic-generator-ruby-56da7d96565f670ceaaa64d6489431f13e60574e",
380+
urls = ["https://github.com/googleapis/gapic-generator-ruby/archive/56da7d96565f670ceaaa64d6489431f13e60574e.zip"],
382381
)
383382

384383
load("@gapic_generator_ruby//rules_ruby_gapic:repositories.bzl", "gapic_generator_ruby_repositories")

google/analytics/data/v1beta/BUILD.bazel

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -268,13 +268,13 @@ ruby_cloud_gapic_library(
268268
srcs = [":data_proto_with_info"],
269269
extra_protoc_parameters = [
270270
"ruby-cloud-gem-name=google-analytics-data-v1",
271-
"ruby-cloud-title=Google Analytics Data V1",
272-
"ruby-cloud-description=The Google Analytics Data API V1 provides programmatic methods to access report data in Google Analytics 4 (GA4) properties.",
273271
"ruby-cloud-env-prefix=ANALYTICSDATA",
274272
"ruby-cloud-product-url=https://developers.google.com/analytics/devguides/reporting/data/v1",
275273
"ruby-cloud-api-id=analyticsdata.googleapis.com",
276274
"ruby-cloud-api-shortname=analyticsdata",
277275
],
276+
ruby_cloud_description = "The Google Analytics Data API V1 provides programmatic methods to access report data in Google Analytics 4 (GA4) properties.",
277+
ruby_cloud_title = "Google Analytics Data V1",
278278
grpc_service_config = "analytics_data_grpc_service_config.json",
279279
deps = [
280280
":data_ruby_grpc",

google/api/servicecontrol/v1/BUILD.bazel

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -277,17 +277,16 @@ ruby_grpc_library(
277277

278278
ruby_cloud_gapic_library(
279279
name = "servicecontrol_ruby_gapic",
280-
srcs = [":servicecontrol_proto_with_info",],
280+
srcs = [":servicecontrol_proto_with_info"],
281281
extra_protoc_parameters = [
282282
"ruby-cloud-gem-name=google-cloud-service_control-v1",
283-
"ruby-cloud-title=Service Control API V1",
284-
"ruby-cloud-description=The Service Control API provides control plane functionality to managed services, such as logging, monitoring, and status checks.",
285283
"ruby-cloud-env-prefix=SERVICE_CONTROL",
286284
"ruby-cloud-product-url=https://cloud.google.com/service-infrastructure/docs/overview/",
287285
"ruby-cloud-api-id=servicecontrol.googleapis.com",
288286
"ruby-cloud-api-shortname=servicecontrol",
289287
],
290-
grpc_service_config = None,
288+
ruby_cloud_description = "The Service Control API provides control plane functionality to managed services, such as logging, monitoring, and status checks.",
289+
ruby_cloud_title = "Service Control API V1",
291290
deps = [
292291
":servicecontrol_ruby_grpc",
293292
":servicecontrol_ruby_proto",

google/api/servicemanagement/v1/BUILD.bazel

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -273,16 +273,16 @@ ruby_grpc_library(
273273

274274
ruby_cloud_gapic_library(
275275
name = "servicemanagement_ruby_gapic",
276-
srcs = [":servicemanagement_proto_with_info",],
276+
srcs = [":servicemanagement_proto_with_info"],
277277
extra_protoc_parameters = [
278278
"ruby-cloud-gem-name=google-cloud-service_management-v1",
279-
"ruby-cloud-title=Service Management API V1",
280-
"ruby-cloud-description=Google Service Management allows service producers to publish their services on Google Cloud Platform so that they can be discovered and used by service consumers.",
281279
"ruby-cloud-env-prefix=SERVICE_MANAGEMENT",
282280
"ruby-cloud-product-url=https://cloud.google.com/service-infrastructure/docs/overview/",
283281
"ruby-cloud-api-id=servicemanagement.googleapis.com",
284282
"ruby-cloud-api-shortname=servicemanagement",
285283
],
284+
ruby_cloud_description = "Google Service Management allows service producers to publish their services on Google Cloud Platform so that they can be discovered and used by service consumers.",
285+
ruby_cloud_title = "Service Management API V1",
286286
deps = [
287287
":servicemanagement_ruby_grpc",
288288
":servicemanagement_ruby_proto",

google/bigtable/admin/v2/BUILD.bazel

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,10 @@ py_gapic_library(
168168
name = "bigtable_admin_py_gapic",
169169
srcs = [":admin_proto"],
170170
grpc_service_config = "bigtableadmin_grpc_service_config.json",
171-
opt_args = ["python-gapic-namespace=google.cloud", "python-gapic-name=bigtable_admin"],
171+
opt_args = [
172+
"python-gapic-namespace=google.cloud",
173+
"python-gapic-name=bigtable_admin",
174+
],
172175
)
173176

174177
# Open Source Packages
@@ -277,17 +280,17 @@ ruby_grpc_library(
277280

278281
ruby_cloud_gapic_library(
279282
name = "admin_ruby_gapic",
280-
srcs = [":admin_proto_with_info",],
283+
srcs = [":admin_proto_with_info"],
281284
extra_protoc_parameters = [
282285
"ruby-cloud-gem-name=google-cloud-bigtable-admin-v2",
283-
"ruby-cloud-title=Cloud Bigtable Admin V2",
284-
"ruby-cloud-description=Cloud Bigtable is a fully managed, scalable NoSQL database service for large analytical and operational workloads.",
285286
"ruby-cloud-env-prefix=BIGTABLE",
286287
"ruby-cloud-product-url=https://cloud.google.com/bigtable",
287288
"ruby-cloud-api-id=bigtable.googleapis.com",
288289
"ruby-cloud-api-shortname=bigtable",
289290
],
290291
grpc_service_config = "bigtableadmin_grpc_service_config.json",
292+
ruby_cloud_description = "Cloud Bigtable is a fully managed, scalable NoSQL database service for large analytical and operational workloads.",
293+
ruby_cloud_title = "Cloud Bigtable Admin V2",
291294
deps = [
292295
":admin_ruby_grpc",
293296
":admin_ruby_proto",

google/bigtable/v2/BUILD.bazel

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -258,17 +258,17 @@ ruby_grpc_library(
258258

259259
ruby_cloud_gapic_library(
260260
name = "bigtable_ruby_gapic",
261-
srcs = [":bigtable_proto_with_info",],
261+
srcs = [":bigtable_proto_with_info"],
262262
extra_protoc_parameters = [
263263
"ruby-cloud-gem-name=google-cloud-bigtable-v2",
264-
"ruby-cloud-title=Cloud Bigtable V2",
265-
"ruby-cloud-description=Cloud Bigtable is a fully managed, scalable NoSQL database service for large analytical and operational workloads.",
266264
"ruby-cloud-env-prefix=BIGTABLE",
267265
"ruby-cloud-product-url=https://cloud.google.com/bigtable",
268266
"ruby-cloud-api-id=bigtable.googleapis.com",
269267
"ruby-cloud-api-shortname=bigtable",
270268
],
271269
grpc_service_config = "bigtable_grpc_service_config.json",
270+
ruby_cloud_description = "Cloud Bigtable is a fully managed, scalable NoSQL database service for large analytical and operational workloads.",
271+
ruby_cloud_title = "Cloud Bigtable V2",
272272
deps = [
273273
":bigtable_ruby_grpc",
274274
":bigtable_ruby_proto",

google/cloud/accessapproval/v1/BUILD.bazel

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -265,17 +265,17 @@ ruby_grpc_library(
265265

266266
ruby_cloud_gapic_library(
267267
name = "accessapproval_ruby_gapic",
268-
srcs = [":accessapproval_proto_with_info",],
268+
srcs = [":accessapproval_proto_with_info"],
269269
extra_protoc_parameters = [
270270
"ruby-cloud-gem-name=google-cloud-access_approval-v1",
271-
"ruby-cloud-title=Access Approval V1",
272-
"ruby-cloud-description=An API for controlling access to data by Google personnel.",
273271
"ruby-cloud-env-prefix=ACCESS_APPROVAL",
274272
"ruby-cloud-product-url=https://cloud.google.com/access-approval/",
275273
"ruby-cloud-api-id=accessapproval.googleapis.com",
276274
"ruby-cloud-api-shortname=accessapproval",
277275
],
278276
grpc_service_config = "accessapproval_grpc_service_config.json",
277+
ruby_cloud_description = "An API for controlling access to data by Google personnel.",
278+
ruby_cloud_title = "Access Approval V1",
279279
deps = [
280280
":accessapproval_ruby_grpc",
281281
":accessapproval_ruby_proto",

google/cloud/asset/v1/BUILD.bazel

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -283,17 +283,17 @@ ruby_grpc_library(
283283

284284
ruby_cloud_gapic_library(
285285
name = "asset_ruby_gapic",
286-
srcs = [":asset_proto_with_info",],
286+
srcs = [":asset_proto_with_info"],
287287
extra_protoc_parameters = [
288288
"ruby-cloud-gem-name=google-cloud-asset-v1",
289-
"ruby-cloud-title=Cloud Asset V1",
290-
"ruby-cloud-description=A metadata inventory service that allows you to view, monitor, and analyze all your GCP and Anthos assets across projects and services.",
291289
"ruby-cloud-env-prefix=ASSET",
292290
"ruby-cloud-product-url=https://cloud.google.com/asset-inventory/",
293291
"ruby-cloud-api-id=cloudasset.googleapis.com",
294292
"ruby-cloud-api-shortname=cloudasset",
295293
],
296294
grpc_service_config = "cloudasset_grpc_service_config.json",
295+
ruby_cloud_description = "A metadata inventory service that allows you to view, monitor, and analyze all your GCP and Anthos assets across projects and services.",
296+
ruby_cloud_title = "Cloud Asset V1",
297297
deps = [
298298
":asset_ruby_grpc",
299299
":asset_ruby_proto",

google/cloud/assuredworkloads/v1beta1/BUILD.bazel

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -272,17 +272,17 @@ ruby_grpc_library(
272272

273273
ruby_cloud_gapic_library(
274274
name = "assuredworkloads_ruby_gapic",
275-
srcs = [":assuredworkloads_proto_with_info",],
275+
srcs = [":assuredworkloads_proto_with_info"],
276276
extra_protoc_parameters = [
277277
"ruby-cloud-gem-name=google-cloud-assured_workloads-v1beta1",
278-
"ruby-cloud-title=Assured Workloads for Government V1beta1",
279-
"ruby-cloud-description=Assured Workloads for Government secures government workloads and accelerates the path to running compliant workloads on Google Cloud.",
280278
"ruby-cloud-env-prefix=ASSURED_WORKLOADS",
281279
"ruby-cloud-product-url=https://cloud.google.com/assured-workloads/",
282280
"ruby-cloud-api-id=assuredworkloads.googleapis.com",
283281
"ruby-cloud-api-shortname=assuredworkloads",
284282
],
285283
grpc_service_config = "assuredworkloads_grpc_service_config.json",
284+
ruby_cloud_description = "Assured Workloads for Government secures government workloads and accelerates the path to running compliant workloads on Google Cloud.",
285+
ruby_cloud_title = "Assured Workloads for Government V1beta1",
286286
deps = [
287287
":assuredworkloads_ruby_grpc",
288288
":assuredworkloads_ruby_proto",

google/cloud/automl/v1/BUILD.bazel

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -289,11 +289,9 @@ ruby_grpc_library(
289289

290290
ruby_cloud_gapic_library(
291291
name = "automl_ruby_gapic",
292-
srcs = [":automl_proto_with_info",],
292+
srcs = [":automl_proto_with_info"],
293293
extra_protoc_parameters = [
294294
"ruby-cloud-gem-name=google-cloud-automl-v1",
295-
"ruby-cloud-title=Cloud AutoML V1",
296-
"ruby-cloud-description=AutoML makes the power of machine learning available to you even if you have limited knowledge of machine learning. You can use AutoML to build on Google's machine learning capabilities to create your own custom machine learning models that are tailored to your business needs, and then integrate those models into your applications and web sites.",
297295
"ruby-cloud-env-prefix=AUTOML",
298296
"ruby-cloud-path-override=auto_ml=automl",
299297
"ruby-cloud-namespace-override=AutoMl=AutoML;Automl=AutoML",
@@ -303,6 +301,8 @@ ruby_cloud_gapic_library(
303301
"ruby-cloud-api-shortname=automl",
304302
],
305303
grpc_service_config = "automl_grpc_service_config.json",
304+
ruby_cloud_description = "AutoML makes the power of machine learning available to you even if you have limited knowledge of machine learning. You can use AutoML to build on Google's machine learning capabilities to create your own custom machine learning models that are tailored to your business needs, and then integrate those models into your applications and web sites.",
305+
ruby_cloud_title = "Cloud AutoML V1",
306306
deps = [
307307
":automl_ruby_grpc",
308308
":automl_ruby_proto",

0 commit comments

Comments
 (0)