chore: move bigquery connections to python microgenerator

PiperOrigin-RevId: 325339219
This commit is contained in:
Google APIs 2020-08-06 16:54:12 -07:00 committed by Copybara-Service
parent 33b5d45e93
commit fb84629a56
2 changed files with 11 additions and 86 deletions

View File

@ -148,54 +148,18 @@ 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 = "connection_moved_proto",
srcs = [":connection_proto"],
deps = [
"//google/api:annotations_proto",
"//google/api:client_proto",
"//google/api:field_behavior_proto",
"//google/api:resource_proto",
"//google/iam/v1:iam_policy_proto",
"//google/iam/v1:policy_proto",
"@com_google_protobuf//:empty_proto",
"@com_google_protobuf//:field_mask_proto",
"@com_google_protobuf//:wrappers_proto",
],
)
py_proto_library(
name = "connection_py_proto",
plugin = "@protoc_docs_plugin//:docs_plugin",
deps = [":connection_moved_proto"],
)
py_grpc_library(
name = "connection_py_grpc",
srcs = [":connection_moved_proto"],
deps = [":connection_py_proto"],
py_gapic_assembly_pkg = "py_gapic_assembly_pkg2",
py_gapic_library = "py_gapic_library2",
)
py_gapic_library(
name = "connection_py_gapic",
src = ":connection_proto_with_info",
gapic_yaml = "connection_gapic.yaml",
srcs = [":connection_proto"],
grpc_service_config = "bigqueryconnection_grpc_service_config.json",
package = "google.cloud.bigquery.connection.v1",
service_yaml = "bigqueryconnection_v1.yaml",
deps = [
":connection_py_grpc",
":connection_py_proto",
],
)
# Open Source Packages
@ -203,8 +167,6 @@ py_gapic_assembly_pkg(
name = "bigquery-connection-v1-py",
deps = [
":connection_py_gapic",
":connection_py_grpc",
":connection_py_proto",
],
)

View File

@ -148,54 +148,18 @@ 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 = "connection_moved_proto",
srcs = [":connection_proto"],
deps = [
"//google/api:annotations_proto",
"//google/api:client_proto",
"//google/api:field_behavior_proto",
"//google/api:resource_proto",
"//google/iam/v1:iam_policy_proto",
"//google/iam/v1:policy_proto",
"@com_google_protobuf//:empty_proto",
"@com_google_protobuf//:field_mask_proto",
"@com_google_protobuf//:wrappers_proto",
],
)
py_proto_library(
name = "connection_py_proto",
plugin = "@protoc_docs_plugin//:docs_plugin",
deps = [":connection_moved_proto"],
)
py_grpc_library(
name = "connection_py_grpc",
srcs = [":connection_moved_proto"],
deps = [":connection_py_proto"],
py_gapic_assembly_pkg = "py_gapic_assembly_pkg2",
py_gapic_library = "py_gapic_library2",
)
py_gapic_library(
name = "connection_py_gapic",
src = ":connection_proto_with_info",
gapic_yaml = "bigqueryconnection_gapic.yaml",
srcs = [":connection_proto"],
grpc_service_config = "bigqueryconnection_grpc_service_config.json",
package = "google.cloud.bigquery.connection.v1beta1",
service_yaml = "bigqueryconnection_v1beta1.yaml",
deps = [
":connection_py_grpc",
":connection_py_proto",
],
)
# Open Source Packages
@ -203,11 +167,10 @@ py_gapic_assembly_pkg(
name = "bigquery-connection-v1beta1-py",
deps = [
":connection_py_gapic",
":connection_py_grpc",
":connection_py_proto",
],
)
##############################################################################
# PHP
##############################################################################