Skip to content

Commit

Permalink
chore(python): Add google/cloud/oslogin/common as a proto-plus depend…
Browse files Browse the repository at this point in the history
…ency for google/cloud/oslogin/v1

PiperOrigin-RevId: 545663652
  • Loading branch information
Google APIs authored and copybara-github committed Jul 5, 2023
1 parent 4981ecb commit 00234dc
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 3 deletions.
9 changes: 9 additions & 0 deletions google/cloud/oslogin/common/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,7 @@ load(
"@com_google_googleapis_imports//:imports.bzl",
"py_gapic_library",
"py_proto_library",
"py_gapic_assembly_pkg",
)

py_gapic_library(
Expand All @@ -94,6 +95,14 @@ py_proto_library(
deps = [":common_proto"],
)

# Open Source Packages
py_gapic_assembly_pkg(
name = "common-py",
deps = [
":common_py_gapic",
],
)

##############################################################################
# PHP
##############################################################################
Expand Down
13 changes: 10 additions & 3 deletions google/cloud/oslogin/v1/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -158,6 +158,14 @@ load(
"@com_google_googleapis_imports//:imports.bzl",
"py_gapic_assembly_pkg",
"py_gapic_library",
"py_import",
)

py_import(
name = "oslogin_common",
srcs = [
"//google/cloud/oslogin/common:common_py_gapic",
],
)

py_gapic_library(
Expand All @@ -168,12 +176,13 @@ py_gapic_library(
grpc_service_config = "oslogin_grpc_service_config.json",
opt_args = [
"warehouse-package-name=google-cloud-os-login",
"proto-plus-deps=google.cloud.oslogin.common",
],
rest_numeric_enums = True,
service_yaml = "oslogin_v1.yaml",
transport = "grpc+rest",
deps = [
"//google/cloud/oslogin/common:common_py_proto",
":oslogin_common",
],
)

Expand All @@ -194,8 +203,6 @@ py_gapic_assembly_pkg(
name = "oslogin-v1-py",
deps = [
":oslogin_py_gapic",
# "//google/cloud/oslogin/common:common_py_gapic",
"//google/cloud/oslogin/common:common_py_proto",
],
)

Expand Down

0 comments on commit 00234dc

Please sign in to comment.