Skip to content

Commit b3195f8

Browse files
Google APIscopybara-github
authored andcommitted
feat: initial generation of APIs
This is the first release of the storageinsights client APIs. PiperOrigin-RevId: 481818508
1 parent 87d221a commit b3195f8

File tree

4 files changed

+950
-0
lines changed

4 files changed

+950
-0
lines changed
Lines changed: 389 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,389 @@
1+
# 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.
11+
12+
# This is an API workspace, having public visibility by default makes perfect sense.
13+
package(default_visibility = ["//visibility:public"])
14+
15+
##############################################################################
16+
# Common
17+
##############################################################################
18+
load("@rules_proto//proto:defs.bzl", "proto_library")
19+
load("@com_google_googleapis_imports//:imports.bzl", "proto_library_with_info")
20+
21+
proto_library(
22+
name = "storageinsights_proto",
23+
srcs = [
24+
"storageinsights.proto",
25+
],
26+
deps = [
27+
"//google/api:annotations_proto",
28+
"//google/api:client_proto",
29+
"//google/api:field_behavior_proto",
30+
"//google/api:resource_proto",
31+
"//google/rpc:status_proto",
32+
"//google/type:date_proto",
33+
"//google/type:datetime_proto",
34+
"@com_google_protobuf//:empty_proto",
35+
"@com_google_protobuf//:field_mask_proto",
36+
"@com_google_protobuf//:timestamp_proto",
37+
],
38+
)
39+
40+
proto_library_with_info(
41+
name = "storageinsights_proto_with_info",
42+
deps = [
43+
":storageinsights_proto",
44+
"//google/cloud/location:location_proto",
45+
"//google/cloud:common_resources_proto",
46+
],
47+
)
48+
49+
##############################################################################
50+
# Java
51+
##############################################################################
52+
load(
53+
"@com_google_googleapis_imports//:imports.bzl",
54+
"java_gapic_assembly_gradle_pkg",
55+
"java_gapic_library",
56+
"java_gapic_test",
57+
"java_grpc_library",
58+
"java_proto_library",
59+
)
60+
61+
java_proto_library(
62+
name = "storageinsights_java_proto",
63+
deps = [":storageinsights_proto"],
64+
)
65+
66+
java_grpc_library(
67+
name = "storageinsights_java_grpc",
68+
srcs = [":storageinsights_proto"],
69+
deps = [":storageinsights_java_proto"],
70+
)
71+
72+
java_gapic_library(
73+
name = "storageinsights_java_gapic",
74+
srcs = [":storageinsights_proto_with_info"],
75+
gapic_yaml = None,
76+
grpc_service_config = "storageinsights_grpc_service_config.json",
77+
service_yaml = "storageinsights_v1.yaml",
78+
test_deps = [
79+
":storageinsights_java_grpc",
80+
"//google/cloud/location:location_java_grpc",
81+
],
82+
transport = "grpc+rest",
83+
deps = [
84+
":storageinsights_java_proto",
85+
"//google/api:api_java_proto",
86+
"//google/cloud/location:location_java_proto",
87+
],
88+
)
89+
90+
java_gapic_test(
91+
name = "storageinsights_java_gapic_test_suite",
92+
test_classes = [
93+
"com.google.cloud.storageinsights.v1.StorageInsightsClientHttpJsonTest",
94+
"com.google.cloud.storageinsights.v1.StorageInsightsClientTest",
95+
],
96+
runtime_deps = [":storageinsights_java_gapic_test"],
97+
)
98+
99+
# Open Source Packages
100+
java_gapic_assembly_gradle_pkg(
101+
name = "google-cloud-storageinsights-v1-java",
102+
transport = "grpc+rest",
103+
deps = [
104+
":storageinsights_java_gapic",
105+
":storageinsights_java_grpc",
106+
":storageinsights_java_proto",
107+
":storageinsights_proto",
108+
],
109+
include_samples = True,
110+
)
111+
112+
##############################################################################
113+
# Go
114+
##############################################################################
115+
load(
116+
"@com_google_googleapis_imports//:imports.bzl",
117+
"go_gapic_assembly_pkg",
118+
"go_gapic_library",
119+
"go_proto_library",
120+
"go_test",
121+
)
122+
123+
go_proto_library(
124+
name = "storageinsights_go_proto",
125+
compilers = ["@io_bazel_rules_go//proto:go_grpc"],
126+
importpath = "google.golang.org/genproto/googleapis/cloud/storageinsights/v1",
127+
protos = [":storageinsights_proto"],
128+
deps = [
129+
"//google/api:annotations_go_proto",
130+
"//google/rpc:status_go_proto",
131+
"//google/type:date_go_proto",
132+
"//google/type:datetime_go_proto",
133+
],
134+
)
135+
136+
go_gapic_library(
137+
name = "storageinsights_go_gapic",
138+
srcs = [":storageinsights_proto_with_info"],
139+
grpc_service_config = "storageinsights_grpc_service_config.json",
140+
importpath = "cloud.google.com/go/storageinsights/apiv1;storageinsights",
141+
metadata = True,
142+
service_yaml = "storageinsights_v1.yaml",
143+
transport = "grpc+rest",
144+
rest_numeric_enums = True,
145+
deps = [
146+
":storageinsights_go_proto",
147+
"//google/cloud/location:location_go_proto",
148+
"//google/iam/v1:iam_go_proto", ## manual change
149+
"//google/longrunning:longrunning_go_proto", ## manual change
150+
],
151+
)
152+
153+
go_test(
154+
name = "storageinsights_go_gapic_test",
155+
srcs = [":storageinsights_go_gapic_srcjar_test"],
156+
embed = [":storageinsights_go_gapic"],
157+
importpath = "cloud.google.com/go/storageinsights/apiv1",
158+
)
159+
160+
# Open Source Packages
161+
go_gapic_assembly_pkg(
162+
name = "gapi-cloud-storageinsights-v1-go",
163+
deps = [
164+
":storageinsights_go_gapic",
165+
":storageinsights_go_gapic_srcjar-test.srcjar",
166+
":storageinsights_go_gapic_srcjar-metadata.srcjar",
167+
":storageinsights_go_proto",
168+
],
169+
)
170+
171+
##############################################################################
172+
# Python
173+
##############################################################################
174+
load(
175+
"@com_google_googleapis_imports//:imports.bzl",
176+
"py_gapic_assembly_pkg",
177+
"py_gapic_library",
178+
"py_test",
179+
)
180+
181+
py_gapic_library(
182+
name = "storageinsights_py_gapic",
183+
srcs = [":storageinsights_proto"],
184+
grpc_service_config = "storageinsights_grpc_service_config.json",
185+
service_yaml = "storageinsights_v1.yaml",
186+
transport = "grpc+rest",
187+
deps = [
188+
],
189+
)
190+
191+
py_test(
192+
name = "storageinsights_py_gapic_test",
193+
srcs = [
194+
"storageinsights_py_gapic_pytest.py",
195+
"storageinsights_py_gapic_test.py",
196+
],
197+
legacy_create_init = False,
198+
deps = [":storageinsights_py_gapic"],
199+
)
200+
201+
# Open Source Packages
202+
py_gapic_assembly_pkg(
203+
name = "storageinsights-v1-py",
204+
deps = [
205+
":storageinsights_py_gapic",
206+
],
207+
)
208+
209+
##############################################################################
210+
# PHP
211+
##############################################################################
212+
load(
213+
"@com_google_googleapis_imports//:imports.bzl",
214+
"php_gapic_assembly_pkg",
215+
"php_gapic_library",
216+
"php_grpc_library",
217+
"php_proto_library",
218+
)
219+
220+
php_proto_library(
221+
name = "storageinsights_php_proto",
222+
deps = [":storageinsights_proto"],
223+
)
224+
225+
php_grpc_library(
226+
name = "storageinsights_php_grpc",
227+
srcs = [":storageinsights_proto"],
228+
deps = [":storageinsights_php_proto"],
229+
)
230+
231+
php_gapic_library(
232+
name = "storageinsights_php_gapic",
233+
srcs = [":storageinsights_proto_with_info"],
234+
grpc_service_config = "storageinsights_grpc_service_config.json",
235+
service_yaml = "storageinsights_v1.yaml",
236+
deps = [
237+
":storageinsights_php_grpc",
238+
":storageinsights_php_proto",
239+
],
240+
)
241+
242+
# Open Source Packages
243+
php_gapic_assembly_pkg(
244+
name = "google-cloud-storageinsights-v1-php",
245+
deps = [
246+
":storageinsights_php_gapic",
247+
":storageinsights_php_grpc",
248+
":storageinsights_php_proto",
249+
],
250+
)
251+
252+
##############################################################################
253+
# Node.js
254+
##############################################################################
255+
load(
256+
"@com_google_googleapis_imports//:imports.bzl",
257+
"nodejs_gapic_assembly_pkg",
258+
"nodejs_gapic_library",
259+
)
260+
261+
nodejs_gapic_library(
262+
name = "storageinsights_nodejs_gapic",
263+
package_name = "@google-cloud/storageinsights",
264+
src = ":storageinsights_proto_with_info",
265+
extra_protoc_parameters = ["metadata"],
266+
grpc_service_config = "storageinsights_grpc_service_config.json",
267+
package = "google.cloud.storageinsights.v1",
268+
service_yaml = "storageinsights_v1.yaml",
269+
deps = [],
270+
)
271+
272+
nodejs_gapic_assembly_pkg(
273+
name = "storageinsights-v1-nodejs",
274+
deps = [
275+
":storageinsights_nodejs_gapic",
276+
":storageinsights_proto",
277+
],
278+
)
279+
280+
##############################################################################
281+
# Ruby
282+
##############################################################################
283+
load(
284+
"@com_google_googleapis_imports//:imports.bzl",
285+
"ruby_gapic_assembly_pkg",
286+
"ruby_cloud_gapic_library",
287+
"ruby_grpc_library",
288+
"ruby_proto_library",
289+
)
290+
291+
ruby_proto_library(
292+
name = "storageinsights_ruby_proto",
293+
deps = [":storageinsights_proto"],
294+
)
295+
296+
ruby_grpc_library(
297+
name = "storageinsights_ruby_grpc",
298+
srcs = [":storageinsights_proto"],
299+
deps = [":storageinsights_ruby_proto"],
300+
)
301+
302+
ruby_cloud_gapic_library(
303+
name = "storageinsights_ruby_gapic",
304+
srcs = [":storageinsights_proto_with_info"],
305+
extra_protoc_parameters = [
306+
"ruby-cloud-gem-name=google-cloud-storageinsights-v1",
307+
],
308+
grpc_service_config = "storageinsights_grpc_service_config.json",
309+
service_yaml = "storageinsights_v1.yaml",
310+
deps = [
311+
":storageinsights_ruby_grpc",
312+
":storageinsights_ruby_proto",
313+
],
314+
)
315+
316+
# Open Source Packages
317+
ruby_gapic_assembly_pkg(
318+
name = "google-cloud-storageinsights-v1-ruby",
319+
deps = [
320+
":storageinsights_ruby_gapic",
321+
":storageinsights_ruby_grpc",
322+
":storageinsights_ruby_proto",
323+
],
324+
)
325+
326+
##############################################################################
327+
# C#
328+
##############################################################################
329+
load(
330+
"@com_google_googleapis_imports//:imports.bzl",
331+
"csharp_gapic_assembly_pkg",
332+
"csharp_gapic_library",
333+
"csharp_grpc_library",
334+
"csharp_proto_library",
335+
)
336+
337+
csharp_proto_library(
338+
name = "storageinsights_csharp_proto",
339+
deps = [":storageinsights_proto"],
340+
)
341+
342+
csharp_grpc_library(
343+
name = "storageinsights_csharp_grpc",
344+
srcs = [":storageinsights_proto"],
345+
deps = [":storageinsights_csharp_proto"],
346+
)
347+
348+
csharp_gapic_library(
349+
name = "storageinsights_csharp_gapic",
350+
srcs = [":storageinsights_proto_with_info"],
351+
common_resources_config = "@gax_dotnet//:Google.Api.Gax/ResourceNames/CommonResourcesConfig.json",
352+
grpc_service_config = "storageinsights_grpc_service_config.json",
353+
service_yaml = "storageinsights_v1.yaml",
354+
deps = [
355+
":storageinsights_csharp_grpc",
356+
":storageinsights_csharp_proto",
357+
],
358+
)
359+
360+
# Open Source Packages
361+
csharp_gapic_assembly_pkg(
362+
name = "google-cloud-storageinsights-v1-csharp",
363+
deps = [
364+
":storageinsights_csharp_gapic",
365+
":storageinsights_csharp_grpc",
366+
":storageinsights_csharp_proto",
367+
],
368+
)
369+
370+
##############################################################################
371+
# C++
372+
##############################################################################
373+
load(
374+
"@com_google_googleapis_imports//:imports.bzl",
375+
"cc_grpc_library",
376+
"cc_proto_library",
377+
)
378+
379+
cc_proto_library(
380+
name = "storageinsights_cc_proto",
381+
deps = [":storageinsights_proto"],
382+
)
383+
384+
cc_grpc_library(
385+
name = "storageinsights_cc_grpc",
386+
srcs = [":storageinsights_proto"],
387+
grpc_only = True,
388+
deps = [":storageinsights_cc_proto"],
389+
)

0 commit comments

Comments
 (0)