Skip to content

Commit

Permalink
chore: use Python microgenerator for Analytics Admin API
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 321238566
  • Loading branch information
Google APIs authored and copybara-github committed Jul 14, 2020
1 parent 54dec99 commit e9f3e97
Showing 1 changed file with 5 additions and 48 deletions.
53 changes: 5 additions & 48 deletions google/analytics/admin/v1alpha/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -153,66 +153,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 = "admin_moved_proto",
srcs = [":admin_proto"],
# Customization (ikuleshov): Without this parameter, the proto resources
# are generated with "google.cloud" package prefix and the generated
# clients do not compile.
import_prefix="google/analytics/admin/v1alpha/proto",
deps = [
"//google/api:annotations_proto",
"//google/api:client_proto",
"//google/api:field_behavior_proto",
"//google/api:resource_proto",
"@com_google_protobuf//:empty_proto",
"@com_google_protobuf//:field_mask_proto",
"@com_google_protobuf//:timestamp_proto",
"@com_google_protobuf//:wrappers_proto",
],
)

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

py_grpc_library(
name = "admin_py_grpc",
srcs = [":admin_moved_proto"],
deps = [":admin_py_proto"],
py_gapic_assembly_pkg = "py_gapic_assembly_pkg2",
py_gapic_library = "py_gapic_library2",
)

py_gapic_library(
name = "admin_py_gapic",
src = ":admin_proto_with_info",
gapic_yaml = "analyticsadmin_gapic.yaml",
grpc_service_config = "admin_grpc_service_config.json",
package = "google.analytics.admin.v1alpha",
service_yaml = "analyticsadmin_v1alpha.yaml",
deps = [
":admin_py_grpc",
":admin_py_proto",
],
srcs = [":admin_proto"],
)

# Open Source Packages
py_gapic_assembly_pkg(
name = "google-analytics-admin-v1alpha-py",
deps = [
":admin_py_gapic",
":admin_py_grpc",
":admin_py_proto",
],
)

Expand Down

0 comments on commit e9f3e97

Please sign in to comment.