chore: migrate home/graph to the Python microgenerator

Committer: @miraleung
PiperOrigin-RevId: 351457344
This commit is contained in:
Google APIs 2021-01-12 15:04:12 -08:00 committed by Copybara-Service
parent 68a7c4c4dd
commit 50b4755b7d
1 changed files with 4 additions and 41 deletions

View File

@ -138,52 +138,17 @@ go_gapic_assembly_pkg(
##############################################################################
# Python
# DO NOT OVERRIDE with autogenerated rules if NOT migrated to Python Microgen
##############################################################################
load(
"@com_google_googleapis_imports//:imports.bzl",
"moved_proto_library",
"py_grpc_library",
"py_proto_library",
py_gapic_assembly_pkg = "py_gapic_assembly_pkg_legacy",
py_gapic_library = "py_gapic_library_legacy",
)
moved_proto_library(
name = "graph_moved_proto",
srcs = [":graph_proto"],
deps = [
"//google/api:annotations_proto",
"//google/api:client_proto",
"//google/api:field_behavior_proto",
"//google/api:resource_proto",
"@com_google_protobuf//:empty_proto",
"@com_google_protobuf//:struct_proto",
],
)
py_proto_library(
name = "graph_py_proto",
plugin = "@protoc_docs_plugin//:docs_plugin",
deps = [":graph_moved_proto"],
)
py_grpc_library(
name = "graph_py_grpc",
srcs = [":graph_moved_proto"],
deps = [":graph_py_proto"],
"py_gapic_assembly_pkg",
"py_gapic_library",
)
py_gapic_library(
name = "graph_py_gapic",
src = ":graph_proto_with_info",
gapic_yaml = "homegraph_gapic.yaml",
package = "google.home.graph.v1",
service_yaml = "homegraph_v1.yaml",
deps = [
":graph_py_grpc",
":graph_py_proto",
],
srcs = [":graph_proto"],
grpc_service_config = "homegraph_grpc_service_config.json",
)
# Open Source Packages
@ -191,8 +156,6 @@ py_gapic_assembly_pkg(
name = "home-graph-v1-py",
deps = [
":graph_py_gapic",
":graph_py_grpc",
":graph_py_proto",
],
)