migrate dlp BUILD file python part to use microgen

PiperOrigin-RevId: 327164238
This commit is contained in:
Google APIs 2020-08-17 22:07:54 -07:00 committed by Copybara-Service
parent 457ae33da7
commit 84c02b526d
1 changed files with 6 additions and 47 deletions

View File

@ -153,66 +153,25 @@ 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 = "dlp_moved_proto",
srcs = [":dlp_proto"],
deps = [
"//google/api:annotations_proto",
"//google/api:client_proto",
"//google/api:field_behavior_proto",
"//google/api:resource_proto",
"//google/rpc:status_proto",
"//google/type:date_proto",
"//google/type:dayofweek_proto",
"//google/type:timeofday_proto",
"@com_google_protobuf//:duration_proto",
"@com_google_protobuf//:empty_proto",
"@com_google_protobuf//:field_mask_proto",
"@com_google_protobuf//:timestamp_proto",
],
)
py_proto_library(
name = "dlp_py_proto",
plugin = "@protoc_docs_plugin//:docs_plugin",
deps = [":dlp_moved_proto"],
)
py_grpc_library(
name = "dlp_py_grpc",
srcs = [":dlp_moved_proto"],
deps = [":dlp_py_proto"],
py_gapic_assembly_pkg = "py_gapic_assembly_pkg2",
py_gapic_library = "py_gapic_library2",
)
py_gapic_library(
name = "dlp_py_gapic",
src = ":dlp_proto_with_info",
gapic_yaml = "dlp_gapic.yaml",
srcs = [":dlp_proto"],
opt_args = ["python-gapic-namespace=google.cloud"],
grpc_service_config = "dlp_grpc_service_config.json",
package = "google.privacy.dlp.v2",
service_yaml = "dlp_v2.yaml",
deps = [
":dlp_py_grpc",
":dlp_py_proto",
],
)
# Open Source Packages
py_gapic_assembly_pkg(
name = "privacy-dlp-v2-py",
deps = [
":dlp_py_gapic",
":dlp_py_grpc",
":dlp_py_proto",
],
)