migrate redis BUILD file python part to use microgen

PiperOrigin-RevId: 331550506
This commit is contained in:
Google APIs 2020-09-14 08:23:15 -07:00 committed by Copybara-Service
parent fb35cd2789
commit ba5a928ab8
2 changed files with 10 additions and 84 deletions

View File

@ -146,61 +146,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 = "redis_moved_proto",
srcs = [":redis_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 = "redis_py_proto",
plugin = "@protoc_docs_plugin//:docs_plugin",
deps = [":redis_moved_proto"],
)
py_grpc_library(
name = "redis_py_grpc",
srcs = [":redis_moved_proto"],
deps = [":redis_py_proto"],
py_gapic_assembly_pkg = "py_gapic_assembly_pkg2",
py_gapic_library = "py_gapic_library2",
)
py_gapic_library(
name = "redis_py_gapic",
src = ":redis_proto_with_info",
gapic_yaml = "redis_gapic.yaml",
srcs = [":redis_proto"],
grpc_service_config = "redis_grpc_service_config.json",
package = "google.cloud.redis.v1",
service_yaml = "redis_v1.yaml",
deps = [
":redis_py_grpc",
":redis_py_proto",
],
)
# Open Source Packages
py_gapic_assembly_pkg(
name = "redis-v1-py",
deps = [
":redis_py_gapic",
":redis_py_grpc",
":redis_py_proto",
],
)

View File

@ -147,61 +147,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 = "redis_moved_proto",
srcs = [":redis_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 = "redis_py_proto",
plugin = "@protoc_docs_plugin//:docs_plugin",
deps = [":redis_moved_proto"],
)
py_grpc_library(
name = "redis_py_grpc",
srcs = [":redis_moved_proto"],
deps = [":redis_py_proto"],
py_gapic_assembly_pkg = "py_gapic_assembly_pkg2",
py_gapic_library = "py_gapic_library2",
)
py_gapic_library(
name = "redis_py_gapic",
src = ":redis_proto_with_info",
gapic_yaml = "redis_gapic.yaml",
srcs = [":redis_proto"],
grpc_service_config = "redis_grpc_service_config.json",
package = "google.cloud.redis.v1beta1",
service_yaml = "redis_v1beta1.yaml",
deps = [
":redis_py_grpc",
":redis_py_proto",
],
)
# Open Source Packages
py_gapic_assembly_pkg(
name = "redis-v1beta1-py",
deps = [
":redis_py_gapic",
":redis_py_grpc",
":redis_py_proto",
],
)