From 82f29df2e41d793502d613e2cac4905387bbac9a Mon Sep 17 00:00:00 2001 From: Google APIs Date: Wed, 15 Jul 2020 10:37:49 -0700 Subject: [PATCH] feat: move monitoring/dashboard API to python microgenerator PiperOrigin-RevId: 321390096 --- google/monitoring/dashboard/v1/BUILD.bazel | 49 +++------------------- 1 file changed, 5 insertions(+), 44 deletions(-) diff --git a/google/monitoring/dashboard/v1/BUILD.bazel b/google/monitoring/dashboard/v1/BUILD.bazel index 93ba573a1c21b..1440c3391a575 100644 --- a/google/monitoring/dashboard/v1/BUILD.bazel +++ b/google/monitoring/dashboard/v1/BUILD.bazel @@ -156,62 +156,23 @@ 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 = "dashboard_moved_proto", - srcs = [":dashboard_proto"], - deps = [ - "//google/api:annotations_proto", - "//google/api:client_proto", - "//google/api:distribution_proto", - "//google/api:field_behavior_proto", - "//google/api:resource_proto", - "@com_google_protobuf//:duration_proto", - "@com_google_protobuf//:empty_proto", - "@com_google_protobuf//:field_mask_proto", - ], -) - -py_proto_library( - name = "dashboard_py_proto", - plugin = "@protoc_docs_plugin//:docs_plugin", - deps = [":dashboard_moved_proto"], -) - -py_grpc_library( - name = "dashboard_py_grpc", - srcs = [":dashboard_moved_proto"], - deps = [":dashboard_py_proto"], + py_gapic_assembly_pkg = "py_gapic_assembly_pkg2", + py_gapic_library = "py_gapic_library2", ) py_gapic_library( name = "dashboard_py_gapic", - src = ":dashboard_proto_with_info", - gapic_yaml = "monitoring_gapic.yaml", - grpc_service_config = "dashboards_grpc_service_config.json", - package = "google.monitoring.dashboard.v1", - service_yaml = "monitoring.yaml", - deps = [ - ":dashboard_py_grpc", - ":dashboard_py_proto", - ], + srcs = [":dashboard_proto"], ) -# Open Source Packages py_gapic_assembly_pkg( name = "monitoring-dashboard-v1-py", deps = [ ":dashboard_py_gapic", - ":dashboard_py_grpc", - ":dashboard_py_proto", ], )