Skip to content

Commit

Permalink
chore: use python microgenerator for Private CA
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 335110052
  • Loading branch information
Google APIs authored and Copybara-Service committed Oct 2, 2020
1 parent 62a8f17 commit eabe7c0
Showing 1 changed file with 5 additions and 44 deletions.
49 changes: 5 additions & 44 deletions google/cloud/security/privateca/v1beta1/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -159,63 +159,24 @@ 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 = "privateca_moved_proto",
srcs = [":privateca_proto"],
deps = [
"//google/api:annotations_proto",
"//google/api:client_proto",
"//google/api:field_behavior_proto",
"//google/api:resource_proto",
"//google/longrunning:operations_proto",
"@com_google_protobuf//:duration_proto",
"@com_google_protobuf//:field_mask_proto",
"@com_google_protobuf//:timestamp_proto",
"@com_google_protobuf//:wrappers_proto",
],
)

py_proto_library(
name = "privateca_py_proto",
plugin = "@protoc_docs_plugin//:docs_plugin",
deps = [":privateca_moved_proto"],
)

py_grpc_library(
name = "privateca_py_grpc",
srcs = [":privateca_moved_proto"],
deps = [":privateca_py_proto"],
py_gapic_assembly_pkg = "py_gapic_assembly_pkg2",
py_gapic_library = "py_gapic_library2",
)

py_gapic_library(
name = "privateca_py_gapic",
src = ":privateca_proto_with_info",
gapic_yaml = "privateca_gapic.yaml",
srcs = [":privateca_proto"],
grpc_service_config = "privateca_grpc_service_config.json",
package = "google.cloud.security.privateca.v1beta1",
service_yaml = "privateca_v1beta1.yaml",
deps = [
":privateca_py_grpc",
":privateca_py_proto",
],
)

# Open Source Packages
py_gapic_assembly_pkg(
name = "security-privateca-v1beta1-py",
deps = [
":privateca_py_gapic",
":privateca_py_grpc",
":privateca_py_proto",
],
)

Expand Down

0 comments on commit eabe7c0

Please sign in to comment.