chore: migrate aistreams to the Python microgenerator

Committer: @miraleung
PiperOrigin-RevId: 351458032
This commit is contained in:
Google APIs 2021-01-12 15:08:14 -08:00 committed by Copybara-Service
parent c84dc5428f
commit 3bea7a8876
1 changed files with 3 additions and 42 deletions

View File

@ -151,54 +151,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 = "aistreams_moved_proto",
srcs = [":aistreams_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//:field_mask_proto",
"@com_google_protobuf//:timestamp_proto",
],
)
py_proto_library(
name = "aistreams_py_proto",
plugin = "@protoc_docs_plugin//:docs_plugin",
deps = [":aistreams_moved_proto"],
)
py_grpc_library(
name = "aistreams_py_grpc",
srcs = [":aistreams_moved_proto"],
deps = [":aistreams_py_proto"],
"py_gapic_assembly_pkg",
"py_gapic_library",
)
py_gapic_library(
name = "aistreams_py_gapic",
src = ":aistreams_proto_with_info",
gapic_yaml = "aistreams_gapic.yaml",
srcs = [":aistreams_proto"],
grpc_service_config = "aistreams_grpc_service_config.json",
package = "google.partner.aistreams.v1alpha1",
service_yaml = "aistreams_v1alpha1.yaml",
deps = [
":aistreams_py_grpc",
":aistreams_py_proto",
],
)
# Open Source Packages
@ -206,8 +169,6 @@ py_gapic_assembly_pkg(
name = "partner-aistreams-v1alpha1-py",
deps = [
":aistreams_py_gapic",
":aistreams_py_grpc",
":aistreams_py_proto",
],
)