feat: Move webrisk API v1/v1beta1 to python microgenerator.

PiperOrigin-RevId: 320277413
This commit is contained in:
Google APIs 2020-07-08 15:24:48 -07:00 committed by Copybara-Service
parent 907a15ffee
commit a98ede59fd
2 changed files with 12 additions and 81 deletions

View File

@ -140,59 +140,24 @@ 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 = "webrisk_moved_proto",
srcs = [":webrisk_proto"],
deps = [
"//google/api:annotations_proto",
"//google/api:client_proto",
"//google/api:field_behavior_proto",
"//google/api:resource_proto",
"@com_google_protobuf//:timestamp_proto",
],
)
py_proto_library(
name = "webrisk_py_proto",
plugin = "@protoc_docs_plugin//:docs_plugin",
deps = [":webrisk_moved_proto"],
)
py_grpc_library(
name = "webrisk_py_grpc",
srcs = [":webrisk_moved_proto"],
deps = [":webrisk_py_proto"],
py_gapic_assembly_pkg = "py_gapic_assembly_pkg2",
py_gapic_library = "py_gapic_library2",
)
py_gapic_library(
name = "webrisk_py_gapic",
src = ":webrisk_proto_with_info",
gapic_yaml = "webrisk_gapic.yaml",
grpc_service_config = "webrisk_grpc_service_config.json",
package = "google.cloud.webrisk.v1",
service_yaml = "webrisk_v1.yaml",
deps = [
":webrisk_py_grpc",
":webrisk_py_proto",
],
srcs = [":webrisk_proto"],
)
# Open Source Packages
py_gapic_assembly_pkg(
name = "webrisk-v1-py",
deps = [
":webrisk_py_gapic",
":webrisk_py_grpc",
":webrisk_py_proto",
],
)

View File

@ -139,58 +139,24 @@ 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 = "webrisk_moved_proto",
srcs = [":webrisk_proto"],
deps = [
"//google/api:annotations_proto",
"//google/api:client_proto",
"//google/api:field_behavior_proto",
"@com_google_protobuf//:timestamp_proto",
],
)
py_proto_library(
name = "webrisk_py_proto",
plugin = "@protoc_docs_plugin//:docs_plugin",
deps = [":webrisk_moved_proto"],
)
py_grpc_library(
name = "webrisk_py_grpc",
srcs = [":webrisk_moved_proto"],
deps = [":webrisk_py_proto"],
py_gapic_assembly_pkg = "py_gapic_assembly_pkg2",
py_gapic_library = "py_gapic_library2",
)
py_gapic_library(
name = "webrisk_py_gapic",
src = ":webrisk_proto_with_info",
gapic_yaml = "webrisk_gapic.yaml",
grpc_service_config = "webrisk_grpc_service_config.json",
package = "google.cloud.webrisk.v1beta1",
service_yaml = "webrisk_v1beta1.yaml",
deps = [
":webrisk_py_grpc",
":webrisk_py_proto",
],
srcs = [":webrisk_proto"],
)
# Open Source Packages
py_gapic_assembly_pkg(
name = "webrisk-v1beta1-py",
deps = [
":webrisk_py_gapic",
":webrisk_py_grpc",
":webrisk_py_proto",
],
)