Skip to content

Commit 0e04632

Browse files
Google APIscopybara-github
authored andcommitted
chore(python): Add google/apps/script/type as a proto-plus dependency for google/cloud/gsuiteaddons/v1
PiperOrigin-RevId: 567294499
1 parent 5fcf6d8 commit 0e04632

7 files changed

Lines changed: 46 additions & 16 deletions

File tree

google/apps/script/type/calendar/BUILD.bazel

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,9 @@ py_gapic_library(
9090
srcs = [":calendar_proto"],
9191
rest_numeric_enums = False,
9292
transport = "grpc",
93+
opt_args = [
94+
"proto-plus-deps=google.apps.script.type",
95+
],
9396
)
9497

9598
# Open Source Packages

google/apps/script/type/docs/BUILD.bazel

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,9 @@ py_gapic_library(
9090
srcs = [":docs_proto"],
9191
rest_numeric_enums = False,
9292
transport = "grpc",
93+
opt_args = [
94+
"proto-plus-deps=google.apps.script.type",
95+
],
9396
)
9497

9598
# Open Source Packages

google/apps/script/type/drive/BUILD.bazel

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,9 @@ py_gapic_library(
8888
srcs = [":drive_proto"],
8989
rest_numeric_enums = False,
9090
transport = "grpc",
91+
opt_args = [
92+
"proto-plus-deps=google.apps.script.type",
93+
],
9194
)
9295

9396
# Open Source Packages

google/apps/script/type/gmail/BUILD.bazel

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,9 @@ py_gapic_library(
8989
srcs = [":gmail_proto"],
9090
rest_numeric_enums = False,
9191
transport = "grpc",
92+
opt_args = [
93+
"proto-plus-deps=google.apps.script.type",
94+
],
9295
)
9396

9497
# Open Source Packages

google/apps/script/type/sheets/BUILD.bazel

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,9 @@ py_gapic_library(
9090
srcs = [":sheets_proto"],
9191
rest_numeric_enums = False,
9292
transport = "grpc",
93+
opt_args = [
94+
"proto-plus-deps=google.apps.script.type",
95+
],
9396
)
9497

9598
# Open Source Packages

google/apps/script/type/slides/BUILD.bazel

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,9 @@ py_gapic_library(
9090
srcs = [":slides_proto"],
9191
rest_numeric_enums = False,
9292
transport = "grpc",
93+
opt_args = [
94+
"proto-plus-deps=google.apps.script.type",
95+
],
9396
)
9497

9598
# Open Source Packages

google/cloud/gsuiteaddons/v1/BUILD.bazel

Lines changed: 28 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -177,26 +177,38 @@ py_gapic_library(
177177
service_yaml = "gsuiteaddons_v1.yaml",
178178
transport = "grpc+rest",
179179
deps = [
180-
"//google/apps/script/type:type_py_proto",
181-
"//google/apps/script/type/calendar:calendar_py_proto",
182-
"//google/apps/script/type/docs:docs_py_proto",
183-
"//google/apps/script/type/drive:drive_py_proto",
184-
"//google/apps/script/type/gmail:gmail_py_proto",
185-
"//google/apps/script/type/sheets:sheets_py_proto",
186-
"//google/apps/script/type/slides:slides_py_proto",
180+
"//google/apps/script/type:type_py_gapic",
181+
"//google/apps/script/type/calendar:calendar_py_gapic",
182+
"//google/apps/script/type/docs:docs_py_gapic",
183+
"//google/apps/script/type/drive:drive_py_gapic",
184+
"//google/apps/script/type/gmail:gmail_py_gapic",
185+
"//google/apps/script/type/sheets:sheets_py_gapic",
186+
"//google/apps/script/type/slides:slides_py_gapic",
187187
],
188-
)
189-
190-
py_test(
191-
name = "gsuiteaddons_py_gapic_test",
192-
srcs = [
193-
"gsuiteaddons_py_gapic_pytest.py",
194-
"gsuiteaddons_py_gapic_test.py",
188+
opt_args = [
189+
"proto-plus-deps=\
190+
google.apps.script.type.calendar+\
191+
google.apps.script.type.docs+\
192+
google.apps.script.type.drive+\
193+
google.apps.script.type.gmail+\
194+
google.apps.script.type.sheets+\
195+
google.apps.script.type.slides+\
196+
google.apps.script.type"
195197
],
196-
legacy_create_init = False,
197-
deps = [":gsuiteaddons_py_gapic"],
198198
)
199199

200+
# TODO: Uncomment once
201+
# https://github.com/googleapis/gapic-generator-python/issues/1376 is fixed
202+
#py_test(
203+
# name = "gsuiteaddons_py_gapic_test",
204+
# srcs = [
205+
# "gsuiteaddons_py_gapic_pytest.py",
206+
# "gsuiteaddons_py_gapic_test.py",
207+
# ],
208+
# legacy_create_init = False,
209+
# deps = [":gsuiteaddons_py_gapic"],
210+
#)
211+
200212
# Open Source Packages
201213
py_gapic_assembly_pkg(
202214
name = "gsuiteaddons-v1-py",

0 commit comments

Comments
 (0)