chore: use python microgenerator rules for billing

PiperOrigin-RevId: 343372581
This commit is contained in:
Google APIs 2020-11-19 14:38:49 -08:00 committed by Copybara-Service
parent 7ea91db77f
commit 64dd7a3072
1 changed files with 5 additions and 43 deletions

View File

@ -151,54 +151,18 @@ 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 = "billing_moved_proto",
srcs = [":billing_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/type:money_proto",
"@com_google_protobuf//:field_mask_proto",
"@com_google_protobuf//:timestamp_proto",
],
)
py_proto_library(
name = "billing_py_proto",
plugin = "@protoc_docs_plugin//:docs_plugin",
deps = [":billing_moved_proto"],
)
py_grpc_library(
name = "billing_py_grpc",
srcs = [":billing_moved_proto"],
deps = [":billing_py_proto"],
py_gapic_assembly_pkg = "py_gapic_assembly_pkg2",
py_gapic_library = "py_gapic_library2",
)
py_gapic_library(
name = "billing_py_gapic",
src = ":billing_proto_with_info",
gapic_yaml = "cloud_billing_gapic.yaml",
srcs = [":billing_proto"],
grpc_service_config = "cloud_billing_grpc_service_config.json",
package = "google.cloud.billing.v1",
service_yaml = "cloudbilling.yaml",
deps = [
":billing_py_grpc",
":billing_py_proto",
],
)
# Open Source Packages
@ -206,8 +170,6 @@ py_gapic_assembly_pkg(
name = "billing-v1-py",
deps = [
":billing_py_gapic",
":billing_py_grpc",
":billing_py_proto",
],
)