Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 5d0eacc

Browse files
Google APIscopybara-github
authored andcommitted
chore: upgrade to gapic-generator-python v0.29.0
Also enables the 'add-iam-method' option for KMS and Pub/Sub. https://github.com/googleapis/gapic-generator-python/releases/tag/v0.29.0 PiperOrigin-RevId: 322659285
1 parent 8d58283 commit 5d0eacc

File tree

3 files changed

+9
-45
lines changed

3 files changed

+9
-45
lines changed

WORKSPACE

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -223,8 +223,8 @@ pip_repositories()
223223
# Change upstream repository once PR is merged
224224
http_archive(
225225
name = "gapic_generator_python",
226-
urls = ["https://github.com/googleapis/gapic-generator-python/archive/v0.28.1.zip"],
227-
strip_prefix = "gapic-generator-python-0.28.1",
226+
urls = ["https://github.com/googleapis/gapic-generator-python/archive/v0.29.0.zip"],
227+
strip_prefix = "gapic-generator-python-0.29.0",
228228
)
229229

230230
load("@gapic_generator_python//:repositories.bzl",

google/cloud/kms/v1/BUILD.bazel

Lines changed: 6 additions & 43 deletions
Original file line numberDiff line numberDiff line change
@@ -164,64 +164,27 @@ go_gapic_assembly_pkg(
164164
##############################################################################
165165
# Python
166166
##############################################################################
167+
# This library is using Python microgenerator.
168+
# DO NOT OVERRIDE this Python section with autogenerated rules.
167169
load(
168170
"@com_google_googleapis_imports//:imports.bzl",
169-
"moved_proto_library",
170-
"py_gapic_assembly_pkg",
171-
"py_gapic_library",
172-
"py_grpc_library",
173-
"py_proto_library",
174-
)
175-
176-
moved_proto_library(
177-
name = "kms_moved_proto",
178-
srcs = [":kms_proto"],
179-
deps = [
180-
"//google/api:annotations_proto",
181-
"//google/api:client_proto",
182-
"//google/api:field_behavior_proto",
183-
"//google/api:resource_proto",
184-
"@com_google_protobuf//:duration_proto",
185-
"@com_google_protobuf//:field_mask_proto",
186-
"@com_google_protobuf//:timestamp_proto",
187-
],
188-
)
189-
190-
py_proto_library(
191-
name = "kms_py_proto",
192-
plugin = "@protoc_docs_plugin//:docs_plugin",
193-
deps = [":kms_moved_proto"],
194-
)
195-
196-
py_grpc_library(
197-
name = "kms_py_grpc",
198-
srcs = [":kms_moved_proto"],
199-
deps = [":kms_py_proto"],
171+
py_gapic_assembly_pkg = "py_gapic_assembly_pkg2",
172+
py_gapic_library = "py_gapic_library2",
200173
)
201174

202175
py_gapic_library(
203176
name = "kms_py_gapic",
204-
src = ":kms_proto_with_info",
205-
gapic_yaml = "cloudkms_gapic.yaml",
177+
srcs = [":kms_proto"],
206178
grpc_service_config = "cloudkms_grpc_service_config.json",
207-
package = "google.cloud.kms.v1",
208-
service_yaml = "cloudkms_v1.yaml",
209-
deps = [
210-
":kms_py_grpc",
211-
":kms_py_proto",
212-
],
179+
opt_args = ["add-iam-methods"]
213180
)
214181

215-
# Open Source Packages
216182
py_gapic_assembly_pkg(
217183
name = "kms-v1-py",
218184
deps = [
219185
":kms_py_gapic",
220-
":kms_py_grpc",
221-
":kms_py_proto",
222186
],
223187
)
224-
225188
##############################################################################
226189
# PHP
227190
##############################################################################

google/pubsub/v1/BUILD.bazel

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -119,6 +119,7 @@ py_gapic_library(
119119
name = "pubsub_py_gapic",
120120
srcs = [":pubsub_proto"],
121121
grpc_service_config = "pubsub_grpc_service_config.json",
122+
opt_args = ["add-iam-methods"]
122123
)
123124

124125
py_gapic_assembly_pkg(

0 commit comments

Comments
 (0)