Skip to content

Commit

Permalink
migrate cloud asset BUILD.bazel to python microgen
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 323858574
  • Loading branch information
Google APIs authored and copybara-github committed Jul 29, 2020
1 parent d8a3dfb commit c8fc4b7
Show file tree
Hide file tree
Showing 6 changed files with 31 additions and 267 deletions.
56 changes: 5 additions & 51 deletions google/cloud/asset/v1/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -167,70 +167,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 = "asset_moved_proto",
srcs = [":asset_proto"],
deps = [
"//google/api:annotations_proto",
"//google/api:client_proto",
"//google/api:field_behavior_proto",
"//google/api:resource_proto",
"//google/cloud/orgpolicy/v1:orgpolicy_proto",
"//google/iam/v1:policy_proto",
"//google/identity/accesscontextmanager/v1:accesscontextmanager_proto",
"//google/longrunning:operations_proto",
"//google/rpc:code_proto",
"//google/type:expr_proto",
"@com_google_protobuf//:any_proto",
"@com_google_protobuf//:duration_proto",
"@com_google_protobuf//:empty_proto",
"@com_google_protobuf//:field_mask_proto",
"@com_google_protobuf//:struct_proto",
"@com_google_protobuf//:timestamp_proto",
],
)

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

py_grpc_library(
name = "asset_py_grpc",
srcs = [":asset_moved_proto"],
deps = [":asset_py_proto"],
py_gapic_assembly_pkg = "py_gapic_assembly_pkg2",
py_gapic_library = "py_gapic_library2",
)

py_gapic_library(
name = "asset_py_gapic",
src = ":asset_proto_with_info",
gapic_yaml = "cloudasset_gapic.yaml",
srcs = [":asset_proto"],
grpc_service_config = "cloudasset_grpc_service_config.json",
package = "google.cloud.asset.v1",
service_yaml = "cloudasset_v1.yaml",
deps = [
":asset_py_grpc",
":asset_py_proto",
],
)

# Open Source Packages
py_gapic_assembly_pkg(
name = "asset-v1-py",
deps = [
":asset_py_gapic",
":asset_py_grpc",
":asset_py_proto",
],
)

Expand Down
49 changes: 5 additions & 44 deletions google/cloud/asset/v1beta1/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -158,63 +158,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 = "asset_moved_proto",
srcs = [":asset_proto"],
deps = [
"//google/api:annotations_proto",
"//google/api:client_proto",
"//google/api:field_behavior_proto",
"//google/api:resource_proto",
"//google/iam/v1:policy_proto",
"//google/longrunning:operations_proto",
"@com_google_protobuf//:any_proto",
"@com_google_protobuf//:struct_proto",
"@com_google_protobuf//:timestamp_proto",
],
)

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

py_grpc_library(
name = "asset_py_grpc",
srcs = [":asset_moved_proto"],
deps = [":asset_py_proto"],
py_gapic_assembly_pkg = "py_gapic_assembly_pkg2",
py_gapic_library = "py_gapic_library2",
)

py_gapic_library(
name = "asset_py_gapic",
src = ":asset_proto_with_info",
gapic_yaml = "cloudasset_gapic.yaml",
srcs = [":asset_proto"],
grpc_service_config = "cloudasset_grpc_service_config.json",
package = "google.cloud.asset.v1beta1",
service_yaml = "cloudasset_v1beta1.yaml",
deps = [
":asset_py_grpc",
":asset_py_proto",
],
)

# Open Source Packages
py_gapic_assembly_pkg(
name = "asset-v1beta1-py",
deps = [
":asset_py_gapic",
":asset_py_grpc",
":asset_py_proto",
],
)

Expand Down
44 changes: 5 additions & 39 deletions google/cloud/asset/v1p1beta1/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -144,58 +144,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 = "asset_moved_proto",
srcs = [":asset_proto"],
deps = [
"//google/api:annotations_proto",
"//google/api:client_proto",
"//google/api:field_behavior_proto",
"//google/iam/v1:policy_proto",
],
)

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

py_grpc_library(
name = "asset_py_grpc",
srcs = [":asset_moved_proto"],
deps = [":asset_py_proto"],
py_gapic_assembly_pkg = "py_gapic_assembly_pkg2",
py_gapic_library = "py_gapic_library2",
)

py_gapic_library(
name = "asset_py_gapic",
src = ":asset_proto_with_info",
gapic_yaml = "cloudasset_gapic.yaml",
srcs = [":asset_proto"],
grpc_service_config = "cloudasset_grpc_service_config.json",
package = "google.cloud.asset.v1p1beta1",
service_yaml = "cloudasset_v1p1beta1.yaml",
deps = [
":asset_py_grpc",
":asset_py_proto",
],
)

# Open Source Packages
py_gapic_assembly_pkg(
name = "asset-v1p1beta1-py",
deps = [
":asset_py_gapic",
":asset_py_grpc",
":asset_py_proto",
],
)

Expand Down
51 changes: 5 additions & 46 deletions google/cloud/asset/v1p2beta1/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -157,65 +157,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 = "asset_moved_proto",
srcs = [":asset_proto"],
deps = [
"//google/api:annotations_proto",
"//google/api:client_proto",
"//google/api:field_behavior_proto",
"//google/api:resource_proto",
"//google/iam/v1:policy_proto",
"//google/longrunning:operations_proto",
"@com_google_protobuf//:any_proto",
"@com_google_protobuf//:empty_proto",
"@com_google_protobuf//:field_mask_proto",
"@com_google_protobuf//:struct_proto",
"@com_google_protobuf//:timestamp_proto",
],
)

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

py_grpc_library(
name = "asset_py_grpc",
srcs = [":asset_moved_proto"],
deps = [":asset_py_proto"],
py_gapic_assembly_pkg = "py_gapic_assembly_pkg2",
py_gapic_library = "py_gapic_library2",
)

py_gapic_library(
name = "asset_py_gapic",
src = ":asset_proto_with_info",
gapic_yaml = "cloudasset_gapic.yaml",
srcs = [":asset_proto"],
grpc_service_config = "cloudasset_grpc_service_config.json",
package = "google.cloud.asset.v1p2beta1",
service_yaml = "cloudasset_v1p2beta1.yaml",
deps = [
":asset_py_grpc",
":asset_py_proto",
],
)

# Open Source Packages
py_gapic_assembly_pkg(
name = "asset-v1p2beta1-py",
deps = [
":asset_py_gapic",
":asset_py_grpc",
":asset_py_proto",
],
)

Expand Down
47 changes: 5 additions & 42 deletions google/cloud/asset/v1p4beta1/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -153,61 +153,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 = "asset_moved_proto",
srcs = [":asset_proto"],
deps = [
"//google/api:annotations_proto",
"//google/api:client_proto",
"//google/api:field_behavior_proto",
"//google/iam/v1:policy_proto",
"//google/longrunning:operations_proto",
"//google/rpc:code_proto",
"@com_google_protobuf//:duration_proto",
],
)

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

py_grpc_library(
name = "asset_py_grpc",
srcs = [":asset_moved_proto"],
deps = [":asset_py_proto"],
py_gapic_assembly_pkg = "py_gapic_assembly_pkg2",
py_gapic_library = "py_gapic_library2",
)

py_gapic_library(
name = "asset_py_gapic",
src = ":asset_proto_with_info",
gapic_yaml = "cloudasset_gapic.yaml",
srcs = [":asset_proto"],
grpc_service_config = "cloudasset_grpc_service_config.json",
package = "google.cloud.asset.v1p4beta1",
service_yaml = "cloudasset_v1p4beta1.yaml",
deps = [
":asset_py_grpc",
":asset_py_proto",
],
)

# Open Source Packages
py_gapic_assembly_pkg(
name = "asset-v1p4beta1-py",
deps = [
":asset_py_gapic",
":asset_py_grpc",
":asset_py_proto",
],
)

Expand Down
Loading

0 comments on commit c8fc4b7

Please sign in to comment.