Skip to content

Commit

Permalink
feat: migrate websecurityscanner v1alpha BUILD.bazel python part to u…
Browse files Browse the repository at this point in the history
…se micro-gen

PiperOrigin-RevId: 317812187
  • Loading branch information
Google APIs authored and copybara-github committed Jun 23, 2020
1 parent 5b85137 commit cf41866
Showing 1 changed file with 5 additions and 43 deletions.
48 changes: 5 additions & 43 deletions google/cloud/websecurityscanner/v1alpha/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -148,61 +148,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 = "websecurityscanner_moved_proto",
srcs = [":websecurityscanner_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",
],
)

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

py_grpc_library(
name = "websecurityscanner_py_grpc",
srcs = [":websecurityscanner_moved_proto"],
deps = [":websecurityscanner_py_proto"],
py_gapic_assembly_pkg = "py_gapic_assembly_pkg2",
py_gapic_library = "py_gapic_library2",
)

py_gapic_library(
name = "websecurityscanner_py_gapic",
src = ":websecurityscanner_proto_with_info",
gapic_yaml = "websecurityscanner_gapic.yaml",
grpc_service_config = "websecurityscanner_grpc_service_config.json",
package = "google.cloud.websecurityscanner.v1alpha",
service_yaml = "websecurityscanner_v1alpha.yaml",
deps = [
":websecurityscanner_py_grpc",
":websecurityscanner_py_proto",
],
srcs = [":websecurityscanner_proto"],
)

# Open Source Packages
py_gapic_assembly_pkg(
name = "websecurityscanner-v1alpha-py",
deps = [
":websecurityscanner_py_gapic",
":websecurityscanner_py_grpc",
":websecurityscanner_py_proto",
],
)

Expand Down

0 comments on commit cf41866

Please sign in to comment.