migrate iot BUILD file python part to use microgen

PiperOrigin-RevId: 330824843
This commit is contained in:
Google APIs 2020-09-09 16:40:32 -07:00 committed by Copybara-Service
parent f17ea338b5
commit 3293ef20c7
1 changed files with 5 additions and 45 deletions

View File

@ -151,64 +151,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 = "iot_moved_proto",
srcs = [":iot_proto"],
deps = [
"//google/api:annotations_proto",
"//google/api:client_proto",
"//google/api:field_behavior_proto",
"//google/api:resource_proto",
"//google/iam/v1:iam_policy_proto",
"//google/iam/v1:policy_proto",
"//google/rpc:status_proto",
"@com_google_protobuf//:empty_proto",
"@com_google_protobuf//:field_mask_proto",
"@com_google_protobuf//:timestamp_proto",
],
)
py_proto_library(
name = "iot_py_proto",
plugin = "@protoc_docs_plugin//:docs_plugin",
deps = [":iot_moved_proto"],
)
py_grpc_library(
name = "iot_py_grpc",
srcs = [":iot_moved_proto"],
deps = [":iot_py_proto"],
py_gapic_assembly_pkg = "py_gapic_assembly_pkg2",
py_gapic_library = "py_gapic_library2",
)
py_gapic_library(
name = "iot_py_gapic",
src = ":iot_proto_with_info",
gapic_yaml = "cloudiot_gapic.yaml",
srcs = [":iot_proto"],
grpc_service_config = "cloudiot_grpc_service_config.json",
package = "google.cloud.iot.v1",
service_yaml = "cloudiot_v1.yaml",
deps = [
":iot_py_grpc",
":iot_py_proto",
],
)
# Open Source Packages
py_gapic_assembly_pkg(
name = "iot-v1-py",
deps = [
":iot_py_gapic",
":iot_py_grpc",
":iot_py_proto",
],
)