Skip to content

Commit 62c5867

Browse files
Google APIscopybara-github
authored andcommitted
feat: Add location methods
PiperOrigin-RevId: 499272288
1 parent 025f73e commit 62c5867

2 files changed

Lines changed: 36 additions & 6 deletions

File tree

google/cloud/bigquery/datatransfer/v1/BUILD.bazel

Lines changed: 29 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,13 @@
11
# This file was automatically generated by BuildFileGenerator
2+
# https://github.com/googleapis/rules_gapic/tree/master/bazel
3+
4+
# Most of the manual changes to this file will be overwritten.
5+
# It's **only** allowed to change the following rule attribute values:
6+
# - names of *_gapic_assembly_* rules
7+
# - certain parameters of *_gapic_library rules, including but not limited to:
8+
# * extra_protoc_parameters
9+
# * extra_protoc_file_parameters
10+
# The complete list of preserved parameters can be found in the source code.
211

312
# This is an API workspace, having public visibility by default makes perfect sense.
413
package(default_visibility = ["//visibility:public"])
@@ -35,6 +44,7 @@ proto_library_with_info(
3544
deps = [
3645
":datatransfer_proto",
3746
"//google/cloud:common_resources_proto",
47+
"//google/cloud/location:location_proto",
3848
],
3949
)
4050

@@ -64,14 +74,19 @@ java_grpc_library(
6474
java_gapic_library(
6575
name = "datatransfer_java_gapic",
6676
srcs = [":datatransfer_proto_with_info"],
77+
gapic_yaml = None,
6778
grpc_service_config = "bigquerydatatransfer_grpc_service_config.json",
6879
rest_numeric_enums = True,
80+
service_yaml = "bigquerydatatransfer_v1.yaml",
6981
test_deps = [
7082
":datatransfer_java_grpc",
83+
"//google/cloud/location:location_java_grpc",
7184
],
7285
transport = "grpc+rest",
7386
deps = [
7487
":datatransfer_java_proto",
88+
"//google/api:api_java_proto",
89+
"//google/cloud/location:location_java_proto",
7590
],
7691
)
7792

@@ -124,11 +139,13 @@ go_gapic_library(
124139
srcs = [":datatransfer_proto_with_info"],
125140
grpc_service_config = "bigquerydatatransfer_grpc_service_config.json",
126141
importpath = "cloud.google.com/go/bigquery/datatransfer/apiv1;datatransfer",
142+
metadata = True,
127143
rest_numeric_enums = True,
128144
service_yaml = "bigquerydatatransfer_v1.yaml",
129145
transport = "grpc+rest",
130146
deps = [
131147
":datatransfer_go_proto",
148+
"//google/cloud/location:location_go_proto",
132149
"@io_bazel_rules_go//proto/wkt:duration_go_proto",
133150
],
134151
)
@@ -145,6 +162,7 @@ go_gapic_assembly_pkg(
145162
name = "gapi-cloud-bigquery-datatransfer-v1-go",
146163
deps = [
147164
":datatransfer_go_gapic",
165+
":datatransfer_go_gapic_srcjar-metadata.srcjar",
148166
":datatransfer_go_gapic_srcjar-test.srcjar",
149167
":datatransfer_go_proto",
150168
],
@@ -153,7 +171,6 @@ go_gapic_assembly_pkg(
153171
##############################################################################
154172
# Python
155173
##############################################################################
156-
157174
load(
158175
"@com_google_googleapis_imports//:imports.bzl",
159176
"py_gapic_assembly_pkg",
@@ -166,11 +183,14 @@ py_gapic_library(
166183
srcs = [":datatransfer_proto"],
167184
grpc_service_config = "bigquerydatatransfer_grpc_service_config.json",
168185
opt_args = [
169-
"python-gapic-namespace=google.cloud",
170186
"python-gapic-name=bigquery_datatransfer",
187+
"python-gapic-namespace=google.cloud",
171188
],
172189
rest_numeric_enums = True,
190+
service_yaml = "bigquerydatatransfer_v1.yaml",
173191
transport = "grpc",
192+
deps = [
193+
],
174194
)
175195

176196
py_test(
@@ -183,6 +203,7 @@ py_test(
183203
deps = [":datatransfer_py_gapic"],
184204
)
185205

206+
# Open Source Packages
186207
py_gapic_assembly_pkg(
187208
name = "bigquery-datatransfer-v1-py",
188209
deps = [
@@ -217,6 +238,7 @@ php_gapic_library(
217238
srcs = [":datatransfer_proto_with_info"],
218239
grpc_service_config = "bigquerydatatransfer_grpc_service_config.json",
219240
rest_numeric_enums = True,
241+
service_yaml = "bigquerydatatransfer_v1.yaml",
220242
transport = "grpc+rest",
221243
deps = [
222244
":datatransfer_php_grpc",
@@ -290,17 +312,18 @@ ruby_cloud_gapic_library(
290312
name = "datatransfer_ruby_gapic",
291313
srcs = [":datatransfer_proto_with_info"],
292314
extra_protoc_parameters = [
293-
"ruby-cloud-gem-name=google-cloud-bigquery-data_transfer-v1",
294-
"ruby-cloud-env-prefix=DATA_TRANSFER",
295-
"ruby-cloud-yard-strict=false",
296-
"ruby-cloud-product-url=https://cloud.google.com/bigquery/transfer",
297315
"ruby-cloud-api-id=bigquerydatatransfer.googleapis.com",
298316
"ruby-cloud-api-shortname=bigquerydatatransfer",
317+
"ruby-cloud-env-prefix=DATA_TRANSFER",
318+
"ruby-cloud-gem-name=google-cloud-bigquery-data_transfer-v1",
319+
"ruby-cloud-product-url=https://cloud.google.com/bigquery/transfer",
320+
"ruby-cloud-yard-strict=false",
299321
],
300322
grpc_service_config = "bigquerydatatransfer_grpc_service_config.json",
301323
rest_numeric_enums = True,
302324
ruby_cloud_description = "Schedules queries and transfers external data from SaaS applications to Google BigQuery on a regular basis.",
303325
ruby_cloud_title = "BigQuery Data Transfer Service V1",
326+
service_yaml = "bigquerydatatransfer_v1.yaml",
304327
deps = [
305328
":datatransfer_ruby_grpc",
306329
":datatransfer_ruby_proto",

google/cloud/bigquery/datatransfer/v1/bigquerydatatransfer_v1.yaml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,3 +32,10 @@ authentication:
3232
oauth:
3333
canonical_scopes: |-
3434
https://www.googleapis.com/auth/cloud-platform
35+
36+
http:
37+
rules:
38+
- selector: google.cloud.location.Locations.GetLocation
39+
get: '/v1/{name=projects/*/locations/*}'
40+
- selector: google.cloud.location.Locations.ListLocations
41+
get: '/v1/{name=projects/*}/locations'

0 commit comments

Comments
 (0)