xref: /aosp_15_r20/external/googleapis/google/cloud/phishingprotection/BUILD.bazel (revision d5c09012810ac0c9f33fe448fb6da8260d444cc9)
1# This build file includes a target for the Ruby wrapper library for
2# google-cloud-phishing_protection.
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 phishingprotection.
17# Ruby wrapper clients are versionless, but are generated from source protos
18# for a particular service version, v1beta1 in this case.
19ruby_cloud_gapic_library(
20    name = "phishingprotection_ruby_wrapper",
21    srcs = ["//google/cloud/phishingprotection/v1beta1:phishingprotection_proto_with_info"],
22    extra_protoc_parameters = [
23        "ruby-cloud-gem-name=google-cloud-phishing_protection",
24        "ruby-cloud-env-prefix=PHISHING_PROTECTION",
25        "ruby-cloud-wrapper-of=v1beta1:0.8",
26        "ruby-cloud-product-url=https://cloud.google.com/phishing-protection",
27        "ruby-cloud-api-id=phishingprotection.googleapis.com",
28        "ruby-cloud-api-shortname=phishingprotection",
29        "ruby-cloud-migration-version=0.10",
30        "ruby-cloud-service-override=PhishingProtectionServiceV1Beta1=PhishingProtectionService",
31    ],
32    ruby_cloud_description = "Phishing Protection helps prevent users from accessing phishing sites by identifying various signals associated with malicious content, including the use of your brand assets, classifying malicious content that uses your brand and reporting the unsafe URLs to Google Safe Browsing.",
33    ruby_cloud_title = "Phishing Protection",
34    transport = "grpc+rest",
35)
36
37# Open Source package.
38ruby_gapic_assembly_pkg(
39    name = "google-cloud-phishingprotection-ruby",
40    deps = [
41        ":phishingprotection_ruby_wrapper",
42    ],
43)
44