Skip to content

Commit 2d8030c

Browse files
Google APIscopybara-github
authored andcommitted
chore(ruby): Configure Ruby client for PublicCA V1beta1
PiperOrigin-RevId: 474084761
1 parent 346e2f2 commit 2d8030c

2 files changed

Lines changed: 49 additions & 1 deletion

File tree

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
# This build file includes a target for the Ruby wrapper library for
2+
# google-cloud-security-public_ca.
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 publicca.
17+
# Ruby wrapper clients are versionless, but are generated from source protos
18+
# for a particular service version, v1beta1 in this case.
19+
ruby_cloud_gapic_library(
20+
name = "publicca_ruby_wrapper",
21+
srcs = ["//google/cloud/security/publicca/v1beta1:publicca_proto_with_info"],
22+
extra_protoc_parameters = [
23+
"ruby-cloud-api-id=publicca.googleapis.com",
24+
"ruby-cloud-api-shortname=publicca",
25+
"ruby-cloud-gem-name=google-cloud-security-public_ca",
26+
"ruby-cloud-gem-namespace=Google::Cloud::Security::PublicCA",
27+
"ruby-cloud-wrapper-of=v1beta1:0.0",
28+
"ruby-cloud-product-url=https://cloud.google.com/certificate-manager/docs/public-ca/",
29+
],
30+
ruby_cloud_description = "Certificate Manager's Public Certificate Authority (CA) functionality allows you to provision and deploy widely trusted X.509 certificates after validating that the certificate requester controls the domains. Certificate Manager lets you directly and programmatically request publicly trusted TLS certificates that are already in the root of trust stores used by major browsers, operating systems, and applications. You can use these TLS certificates to authenticate and encrypt internet traffic.",
31+
ruby_cloud_title = "Public Certificate Authority",
32+
)
33+
34+
# Open Source package.
35+
ruby_gapic_assembly_pkg(
36+
name = "google-cloud-security-publicca-ruby",
37+
deps = [
38+
":publicca_ruby_wrapper",
39+
],
40+
)

google/cloud/security/publicca/v1beta1/BUILD.bazel

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -286,9 +286,17 @@ ruby_grpc_library(
286286
ruby_cloud_gapic_library(
287287
name = "publicca_ruby_gapic",
288288
srcs = [":publicca_proto_with_info"],
289-
extra_protoc_parameters = ["ruby-cloud-gem-name=google-cloud-security-publicca-v1beta1"],
289+
extra_protoc_parameters = [
290+
"ruby-cloud-api-id=publicca.googleapis.com",
291+
"ruby-cloud-api-shortname=publicca",
292+
"ruby-cloud-gem-name=google-cloud-security-public_ca-v1beta1",
293+
"ruby-cloud-gem-namespace=Google::Cloud::Security::PublicCA::V1beta1",
294+
"ruby-cloud-product-url=https://cloud.google.com/certificate-manager/docs/public-ca/",
295+
],
290296
grpc_service_config = "publicca_v1beta1_grpc_service_config.json",
291297
service_yaml = "publicca_v1beta1.yaml",
298+
ruby_cloud_description = "Certificate Manager's Public Certificate Authority (CA) functionality allows you to provision and deploy widely trusted X.509 certificates after validating that the certificate requester controls the domains. Certificate Manager lets you directly and programmatically request publicly trusted TLS certificates that are already in the root of trust stores used by major browsers, operating systems, and applications. You can use these TLS certificates to authenticate and encrypt internet traffic.",
299+
ruby_cloud_title = "Public Certificate Authority V1beta1",
292300
deps = [
293301
":publicca_ruby_grpc",
294302
":publicca_ruby_proto",

0 commit comments

Comments
 (0)