Skip to content

Commit

Permalink
chore: use python microgenerator for notebooks and pubsublite
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 323111268
  • Loading branch information
Google APIs authored and Copybara-Service committed Jul 25, 2020
1 parent a6b2dac commit d5b06c7
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 83 deletions.
44 changes: 5 additions & 39 deletions google/cloud/notebooks/v1beta1/BUILD.bazel
Expand Up @@ -156,60 +156,26 @@ 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",
py_gapic_assembly_pkg = "py_gapic_assembly_pkg2",
py_gapic_library = "py_gapic_library2",
)

moved_proto_library(
name = "notebooks_moved_proto",
srcs = [":notebooks_proto"],
deps = [
"//google/api:annotations_proto",
"//google/api:client_proto",
"//google/api:field_behavior_proto",
"//google/api:resource_proto",
"//google/longrunning:operations_proto",
"@com_google_protobuf//:timestamp_proto",
],
)

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

py_grpc_library(
name = "notebooks_py_grpc",
srcs = [":notebooks_moved_proto"],
deps = [":notebooks_py_proto"],
)

py_gapic_library(
name = "notebooks_py_gapic",
src = ":notebooks_proto_with_info",
gapic_yaml = "notebooks_gapic.yaml",
srcs = [":notebooks_proto"],
grpc_service_config = "notebooks_grpc_service_config.json",
package = "google.cloud.notebooks.v1beta1",
service_yaml = "notebooks_v1beta1.yaml",
deps = [
":notebooks_py_grpc",
":notebooks_py_proto",
],
)

# Open Source Packages
py_gapic_assembly_pkg(
name = "notebooks-v1beta1-py",
deps = [
":notebooks_py_gapic",
":notebooks_py_grpc",
":notebooks_py_proto",
],
)

Expand Down
49 changes: 5 additions & 44 deletions google/cloud/pubsublite/v1/BUILD.bazel
Expand Up @@ -163,62 +163,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 = "pubsublite_moved_proto",
srcs = [":pubsublite_proto"],
deps = [
"//google/api:annotations_proto",
"//google/api:client_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",
"@com_google_protobuf//:timestamp_proto",
],
)

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

py_grpc_library(
name = "pubsublite_py_grpc",
srcs = [":pubsublite_moved_proto"],
deps = [":pubsublite_py_proto"],
py_gapic_assembly_pkg = "py_gapic_assembly_pkg2",
py_gapic_library = "py_gapic_library2",
)

py_gapic_library(
name = "pubsublite_py_gapic",
src = ":pubsublite_proto_with_info",
gapic_yaml = "gapic.yaml",
grpc_service_config = None,
package = "google.cloud.pubsublite.v1",
service_yaml = "pubsublite_v1.yaml",
deps = [
":pubsublite_py_grpc",
":pubsublite_py_proto",
],
srcs = [":pubsublite_proto"],
)

# Open Source Packages
py_gapic_assembly_pkg(
name = "pubsublite-v1-py",
deps = [
":pubsublite_py_gapic",
":pubsublite_py_grpc",
":pubsublite_py_proto",
],
)

Expand Down

0 comments on commit d5b06c7

Please sign in to comment.