feat: move talent API to python microgenerator

PiperOrigin-RevId: 323823010
This commit is contained in:
Google APIs 2020-07-29 10:58:30 -07:00 committed by Copybara-Service
parent 706053bbfb
commit 87c7babc80
1 changed files with 5 additions and 52 deletions

View File

@ -186,71 +186,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 = "talent_moved_proto",
srcs = [":talent_proto"],
deps = [
"//google/api:annotations_proto",
"//google/api:client_proto",
"//google/api:field_behavior_proto",
"//google/api:resource_proto",
"//google/longrunning:operations_proto",
"//google/rpc:status_proto",
"//google/type:date_proto",
"//google/type:latlng_proto",
"//google/type:money_proto",
"//google/type:postal_address_proto",
"//google/type:timeofday_proto",
"@com_google_protobuf//:any_proto",
"@com_google_protobuf//:duration_proto",
"@com_google_protobuf//:empty_proto",
"@com_google_protobuf//:field_mask_proto",
"@com_google_protobuf//:timestamp_proto",
"@com_google_protobuf//:wrappers_proto",
],
)
py_proto_library(
name = "talent_py_proto",
plugin = "@protoc_docs_plugin//:docs_plugin",
deps = [":talent_moved_proto"],
)
py_grpc_library(
name = "talent_py_grpc",
srcs = [":talent_moved_proto"],
deps = [":talent_py_proto"],
py_gapic_assembly_pkg = "py_gapic_assembly_pkg2",
py_gapic_library = "py_gapic_library2",
)
py_gapic_library(
name = "talent_py_gapic",
src = ":talent_proto_with_info",
gapic_yaml = "talent_gapic.yaml",
srcs = [":talent_proto"],
grpc_service_config = "talent_grpc_service_config.json",
package = "google.cloud.talent.v4beta1",
service_yaml = "//google/cloud/talent:talent_v4beta1.yaml",
deps = [
":talent_py_grpc",
":talent_py_proto",
],
)
# Open Source Packages
py_gapic_assembly_pkg(
name = "talent-v4beta1-py",
deps = [
":talent_py_gapic",
":talent_py_grpc",
":talent_py_proto",
],
)