From cc68fa0b20060ac8688cbb733f9fae47de721575 Mon Sep 17 00:00:00 2001 From: Google APIs Date: Tue, 14 Jul 2020 21:30:10 -0700 Subject: [PATCH] feat: move PhishingProtection API to python microgenerator. PiperOrigin-RevId: 321294662 --- .../phishingprotection/v1beta1/BUILD.bazel | 46 +++---------------- 1 file changed, 6 insertions(+), 40 deletions(-) diff --git a/google/cloud/phishingprotection/v1beta1/BUILD.bazel b/google/cloud/phishingprotection/v1beta1/BUILD.bazel index 88774d98..12730a56 100644 --- a/google/cloud/phishingprotection/v1beta1/BUILD.bazel +++ b/google/cloud/phishingprotection/v1beta1/BUILD.bazel @@ -139,61 +139,27 @@ go_gapic_assembly_pkg( ############################################################################## # Python ############################################################################## +# This library is using Python microgenerator. +# DO NOT OVERRIDE this Python section with autogenerated rules. load( "@com_google_googleapis_imports//:imports.bzl", - "moved_proto_library", - "py_gapic_assembly_pkg", - "py_gapic_library", - "py_grpc_library", - "py_proto_library", -) - -moved_proto_library( - name = "phishingprotection_moved_proto", - srcs = [":phishingprotection_proto"], - deps = [ - "//google/api:annotations_proto", - "//google/api:client_proto", - "//google/api:field_behavior_proto", - "//google/api:resource_proto", - ], -) - -py_proto_library( - name = "phishingprotection_py_proto", - plugin = "@protoc_docs_plugin//:docs_plugin", - deps = [":phishingprotection_moved_proto"], -) - -py_grpc_library( - name = "phishingprotection_py_grpc", - srcs = [":phishingprotection_moved_proto"], - deps = [":phishingprotection_py_proto"], + py_gapic_assembly_pkg = "py_gapic_assembly_pkg2", + py_gapic_library = "py_gapic_library2", ) py_gapic_library( name = "phishingprotection_py_gapic", - src = ":phishingprotection_proto_with_info", - gapic_yaml = "phishingprotection_gapic.yaml", - grpc_service_config = "phishingprotection_grpc_service_config.json", - package = "google.cloud.phishingprotection.v1beta1", - service_yaml = "phishingprotection_v1beta1.yaml", - deps = [ - ":phishingprotection_py_grpc", - ":phishingprotection_py_proto", - ], + srcs = [":phishingprotection_proto"], ) -# Open Source Packages py_gapic_assembly_pkg( name = "phishingprotection-v1beta1-py", deps = [ ":phishingprotection_py_gapic", - ":phishingprotection_py_grpc", - ":phishingprotection_py_proto", ], ) + ############################################################################## # PHP ##############################################################################