Skip to content

Commit

Permalink
migrate monitoring_v3 python part to use microgen
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 335029068
  • Loading branch information
Google APIs authored and Copybara-Service committed Oct 2, 2020
1 parent 7e837ae commit 4f2a18a
Showing 1 changed file with 6 additions and 52 deletions.
58 changes: 6 additions & 52 deletions google/monitoring/v3/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -183,71 +183,25 @@ 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 = "monitoring_moved_proto",
srcs = [":monitoring_proto"],
deps = [
"//google/api:annotations_proto",
"//google/api:client_proto",
"//google/api:distribution_proto",
"//google/api:field_behavior_proto",
"//google/api:label_proto",
"//google/api:launch_stage_proto",
"//google/api:metric_proto",
"//google/api:monitored_resource_proto",
"//google/api:resource_proto",
"//google/rpc:status_proto",
"//google/type:calendar_period_proto",
"@com_google_protobuf//:duration_proto",
"@com_google_protobuf//:empty_proto",
"@com_google_protobuf//:field_mask_proto",
"@com_google_protobuf//:struct_proto",
"@com_google_protobuf//:timestamp_proto",
"@com_google_protobuf//:wrappers_proto",
],
)

py_proto_library(
name = "monitoring_py_proto",
plugin = "@protoc_docs_plugin//:docs_plugin",
deps = [":monitoring_moved_proto"],
)

py_grpc_library(
name = "monitoring_py_grpc",
srcs = [":monitoring_moved_proto"],
deps = [":monitoring_py_proto"],
py_gapic_assembly_pkg = "py_gapic_assembly_pkg2",
py_gapic_library = "py_gapic_library2",
)

py_gapic_library(
name = "monitoring_py_gapic",
src = ":monitoring_proto_with_info",
gapic_yaml = "monitoring_gapic.yaml",
srcs = [":monitoring_proto"],
opt_args = ["python-gapic-namespace=google.cloud"],
grpc_service_config = "monitoring_grpc_service_config.json",
package = "google.monitoring.v3",
service_yaml = "monitoring.yaml",
deps = [
":monitoring_py_grpc",
":monitoring_py_proto",
],
)

# Open Source Packages
py_gapic_assembly_pkg(
name = "monitoring-v3-py",
deps = [
":monitoring_py_gapic",
":monitoring_py_grpc",
":monitoring_py_proto",
],
)

Expand Down

0 comments on commit 4f2a18a

Please sign in to comment.