Skip to content

Commit

Permalink
migrate container v1/v1beta1 BUILD.bazel python part to micro-gen
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 321423020
  • Loading branch information
Google APIs authored and copybara-github committed Jul 15, 2020
1 parent 3d29ffc commit 4115e19
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 82 deletions.
46 changes: 5 additions & 41 deletions google/container/v1/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -140,59 +140,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 = "container_moved_proto",
srcs = [":container_proto"],
deps = [
"//google/api:annotations_proto",
"//google/api:client_proto",
"//google/api:field_behavior_proto",
"@com_google_protobuf//:empty_proto",
"@com_google_protobuf//:timestamp_proto",
],
)

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

py_grpc_library(
name = "container_py_grpc",
srcs = [":container_moved_proto"],
deps = [":container_py_proto"],
py_gapic_assembly_pkg = "py_gapic_assembly_pkg2",
py_gapic_library = "py_gapic_library2",
)

py_gapic_library(
name = "container_py_gapic",
src = ":container_proto_with_info",
gapic_yaml = "container_gapic.yaml",
grpc_service_config = "container_grpc_service_config.json",
package = "google.container.v1",
service_yaml = "container_v1.yaml",
deps = [
":container_py_grpc",
":container_py_proto",
],
srcs = [":container_proto"],
)

# Open Source Packages
py_gapic_assembly_pkg(
name = "container-v1-py",
deps = [
":container_py_gapic",
":container_py_grpc",
":container_py_proto",
],
)

Expand Down
46 changes: 5 additions & 41 deletions google/container/v1beta1/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -140,59 +140,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 = "container_moved_proto",
srcs = [":container_proto"],
deps = [
"//google/api:annotations_proto",
"//google/api:client_proto",
"//google/api:field_behavior_proto",
"@com_google_protobuf//:empty_proto",
"@com_google_protobuf//:timestamp_proto",
],
)

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

py_grpc_library(
name = "container_py_grpc",
srcs = [":container_moved_proto"],
deps = [":container_py_proto"],
py_gapic_assembly_pkg = "py_gapic_assembly_pkg2",
py_gapic_library = "py_gapic_library2",
)

py_gapic_library(
name = "container_py_gapic",
src = ":container_proto_with_info",
gapic_yaml = "container_gapic.yaml",
grpc_service_config = "container_grpc_service_config.json",
package = "google.container.v1beta1",
service_yaml = "container_v1beta1.yaml",
deps = [
":container_py_grpc",
":container_py_proto",
],
srcs = [":container_proto"],
)

# Open Source Packages
py_gapic_assembly_pkg(
name = "container-v1beta1-py",
deps = [
":container_py_gapic",
":container_py_grpc",
":container_py_proto",
],
)

Expand Down

0 comments on commit 4115e19

Please sign in to comment.