Skip to content

Commit f910a48

Browse files
Google APIscopybara-github
authored andcommitted
feat: add Cloud Commerce Consumer Procurement API
PiperOrigin-RevId: 459792084
1 parent e074554 commit f910a48

5 files changed

Lines changed: 837 additions & 0 deletions

File tree

Lines changed: 366 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,366 @@
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 = "procurement_proto",
23+
srcs = [
24+
"order.proto",
25+
"procurement_service.proto",
26+
],
27+
deps = [
28+
"//google/api:annotations_proto",
29+
"//google/api:client_proto",
30+
"//google/api:field_behavior_proto",
31+
"//google/api:resource_proto",
32+
"//google/longrunning:operations_proto",
33+
"@com_google_protobuf//:timestamp_proto",
34+
],
35+
)
36+
37+
proto_library_with_info(
38+
name = "procurement_proto_with_info",
39+
deps = [
40+
":procurement_proto",
41+
"//google/cloud:common_resources_proto",
42+
],
43+
)
44+
45+
##############################################################################
46+
# Java
47+
##############################################################################
48+
load(
49+
"@com_google_googleapis_imports//:imports.bzl",
50+
"java_gapic_assembly_gradle_pkg",
51+
"java_gapic_library",
52+
"java_gapic_test",
53+
"java_grpc_library",
54+
"java_proto_library",
55+
)
56+
57+
java_proto_library(
58+
name = "procurement_java_proto",
59+
deps = [":procurement_proto"],
60+
)
61+
62+
java_grpc_library(
63+
name = "procurement_java_grpc",
64+
srcs = [":procurement_proto"],
65+
deps = [":procurement_java_proto"],
66+
)
67+
68+
java_gapic_library(
69+
name = "procurement_java_gapic",
70+
srcs = [":procurement_proto_with_info"],
71+
gapic_yaml = None,
72+
grpc_service_config = "commerceconsumerprocurement_grpc_service_config.json",
73+
service_yaml = "cloudcommerceconsumerprocurement_v1alpha1.yaml",
74+
test_deps = [
75+
":procurement_java_grpc",
76+
],
77+
transport = "grpc+rest",
78+
deps = [
79+
":procurement_java_proto",
80+
"//google/api:api_java_proto",
81+
],
82+
)
83+
84+
java_gapic_test(
85+
name = "procurement_java_gapic_test_suite",
86+
test_classes = [
87+
"com.google.cloud.commerce.consumer.procurement.v1alpha1.ConsumerProcurementServiceClientHttpJsonTest",
88+
"com.google.cloud.commerce.consumer.procurement.v1alpha1.ConsumerProcurementServiceClientTest",
89+
],
90+
runtime_deps = [":procurement_java_gapic_test"],
91+
)
92+
93+
# Open Source Packages
94+
java_gapic_assembly_gradle_pkg(
95+
name = "google-cloud-consumer-procurement-v1alpha1-java",
96+
transport = "grpc+rest",
97+
deps = [
98+
":procurement_java_gapic",
99+
":procurement_java_grpc",
100+
":procurement_java_proto",
101+
":procurement_proto",
102+
],
103+
include_samples = True,
104+
)
105+
106+
##############################################################################
107+
# Go
108+
##############################################################################
109+
load(
110+
"@com_google_googleapis_imports//:imports.bzl",
111+
"go_gapic_assembly_pkg",
112+
"go_gapic_library",
113+
"go_proto_library",
114+
"go_test",
115+
)
116+
117+
go_proto_library(
118+
name = "procurement_go_proto",
119+
compilers = ["@io_bazel_rules_go//proto:go_grpc"],
120+
importpath = "google.golang.org/genproto/googleapis/cloud/commerce/consumer/procurement/v1alpha1",
121+
protos = [":procurement_proto"],
122+
deps = [
123+
"//google/api:annotations_go_proto",
124+
"//google/longrunning:longrunning_go_proto",
125+
],
126+
)
127+
128+
go_gapic_library(
129+
name = "procurement_go_gapic",
130+
srcs = [":procurement_proto_with_info"],
131+
grpc_service_config = "commerceconsumerprocurement_grpc_service_config.json",
132+
importpath = "cloud.google.com/go/commerce/consumer/procurement/apiv1alpha1;procurement",
133+
metadata = True,
134+
service_yaml = "cloudcommerceconsumerprocurement_v1alpha1.yaml",
135+
transport = "grpc+rest",
136+
deps = [
137+
":procurement_go_proto",
138+
"//google/longrunning:longrunning_go_proto",
139+
"@com_google_cloud_go//longrunning/autogen:go_default_library",
140+
"@com_google_cloud_go//longrunning:go_default_library",
141+
],
142+
)
143+
144+
go_test(
145+
name = "procurement_go_gapic_test",
146+
srcs = [":procurement_go_gapic_srcjar_test"],
147+
embed = [":procurement_go_gapic"],
148+
importpath = "cloud.google.com/go/commerce/consumer/procurement/apiv1alpha1",
149+
)
150+
151+
# Open Source Packages
152+
go_gapic_assembly_pkg(
153+
name = "gapi-cloud-consumer-procurement-v1alpha1-go",
154+
deps = [
155+
":procurement_go_gapic",
156+
":procurement_go_gapic_srcjar-test.srcjar",
157+
":procurement_go_gapic_srcjar-metadata.srcjar",
158+
":procurement_go_proto",
159+
],
160+
)
161+
162+
##############################################################################
163+
# Python
164+
##############################################################################
165+
load(
166+
"@com_google_googleapis_imports//:imports.bzl",
167+
"py_gapic_assembly_pkg",
168+
"py_gapic_library",
169+
)
170+
171+
py_gapic_library(
172+
name = "procurement_py_gapic",
173+
srcs = [":procurement_proto"],
174+
grpc_service_config = "commerceconsumerprocurement_grpc_service_config.json",
175+
service_yaml = "cloudcommerceconsumerprocurement_v1alpha1.yaml",
176+
)
177+
178+
# Open Source Packages
179+
py_gapic_assembly_pkg(
180+
name = "consumer-procurement-v1alpha1-py",
181+
deps = [
182+
":procurement_py_gapic",
183+
],
184+
)
185+
186+
##############################################################################
187+
# PHP
188+
##############################################################################
189+
load(
190+
"@com_google_googleapis_imports//:imports.bzl",
191+
"php_gapic_assembly_pkg",
192+
"php_gapic_library",
193+
"php_grpc_library",
194+
"php_proto_library",
195+
)
196+
197+
php_proto_library(
198+
name = "procurement_php_proto",
199+
deps = [":procurement_proto"],
200+
)
201+
202+
php_grpc_library(
203+
name = "procurement_php_grpc",
204+
srcs = [":procurement_proto"],
205+
deps = [":procurement_php_proto"],
206+
)
207+
208+
php_gapic_library(
209+
name = "procurement_php_gapic",
210+
srcs = [":procurement_proto_with_info"],
211+
grpc_service_config = "commerceconsumerprocurement_grpc_service_config.json",
212+
service_yaml = "cloudcommerceconsumerprocurement_v1alpha1.yaml",
213+
deps = [
214+
":procurement_php_grpc",
215+
":procurement_php_proto",
216+
],
217+
)
218+
219+
# Open Source Packages
220+
php_gapic_assembly_pkg(
221+
name = "google-cloud-consumer-procurement-v1alpha1-php",
222+
deps = [
223+
":procurement_php_gapic",
224+
":procurement_php_grpc",
225+
":procurement_php_proto",
226+
],
227+
)
228+
229+
##############################################################################
230+
# Node.js
231+
##############################################################################
232+
load(
233+
"@com_google_googleapis_imports//:imports.bzl",
234+
"nodejs_gapic_assembly_pkg",
235+
"nodejs_gapic_library",
236+
)
237+
238+
nodejs_gapic_library(
239+
name = "procurement_nodejs_gapic",
240+
package_name = "@google-cloud/procurement",
241+
src = ":procurement_proto_with_info",
242+
extra_protoc_parameters = ["metadata"],
243+
grpc_service_config = "commerceconsumerprocurement_grpc_service_config.json",
244+
package = "google.cloud.commerce.consumer.procurement.v1alpha1",
245+
service_yaml = "cloudcommerceconsumerprocurement_v1alpha1.yaml",
246+
deps = [],
247+
)
248+
249+
nodejs_gapic_assembly_pkg(
250+
name = "consumer-procurement-v1alpha1-nodejs",
251+
deps = [
252+
":procurement_nodejs_gapic",
253+
":procurement_proto",
254+
],
255+
)
256+
257+
##############################################################################
258+
# Ruby
259+
##############################################################################
260+
load(
261+
"@com_google_googleapis_imports//:imports.bzl",
262+
"ruby_gapic_assembly_pkg",
263+
"ruby_cloud_gapic_library",
264+
"ruby_grpc_library",
265+
"ruby_proto_library",
266+
)
267+
268+
ruby_proto_library(
269+
name = "procurement_ruby_proto",
270+
deps = [":procurement_proto"],
271+
)
272+
273+
ruby_grpc_library(
274+
name = "procurement_ruby_grpc",
275+
srcs = [":procurement_proto"],
276+
deps = [":procurement_ruby_proto"],
277+
)
278+
279+
ruby_cloud_gapic_library(
280+
name = "procurement_ruby_gapic",
281+
srcs = [":procurement_proto_with_info"],
282+
extra_protoc_parameters = [
283+
"ruby-cloud-gem-name=google-cloud-consumer-procurement-v1alpha1",
284+
],
285+
grpc_service_config = "commerceconsumerprocurement_grpc_service_config.json",
286+
service_yaml = "cloudcommerceconsumerprocurement_v1alpha1.yaml",
287+
deps = [
288+
":procurement_ruby_grpc",
289+
":procurement_ruby_proto",
290+
],
291+
)
292+
293+
# Open Source Packages
294+
ruby_gapic_assembly_pkg(
295+
name = "google-cloud-consumer-procurement-v1alpha1-ruby",
296+
deps = [
297+
":procurement_ruby_gapic",
298+
":procurement_ruby_grpc",
299+
":procurement_ruby_proto",
300+
],
301+
)
302+
303+
##############################################################################
304+
# C#
305+
##############################################################################
306+
load(
307+
"@com_google_googleapis_imports//:imports.bzl",
308+
"csharp_gapic_assembly_pkg",
309+
"csharp_gapic_library",
310+
"csharp_grpc_library",
311+
"csharp_proto_library",
312+
)
313+
314+
csharp_proto_library(
315+
name = "procurement_csharp_proto",
316+
deps = [":procurement_proto"],
317+
)
318+
319+
csharp_grpc_library(
320+
name = "procurement_csharp_grpc",
321+
srcs = [":procurement_proto"],
322+
deps = [":procurement_csharp_proto"],
323+
)
324+
325+
csharp_gapic_library(
326+
name = "procurement_csharp_gapic",
327+
srcs = [":procurement_proto_with_info"],
328+
common_resources_config = "@gax_dotnet//:Google.Api.Gax/ResourceNames/CommonResourcesConfig.json",
329+
grpc_service_config = "commerceconsumerprocurement_grpc_service_config.json",
330+
service_yaml = "cloudcommerceconsumerprocurement_v1alpha1.yaml",
331+
deps = [
332+
":procurement_csharp_grpc",
333+
":procurement_csharp_proto",
334+
],
335+
)
336+
337+
# Open Source Packages
338+
csharp_gapic_assembly_pkg(
339+
name = "google-cloud-consumer-procurement-v1alpha1-csharp",
340+
deps = [
341+
":procurement_csharp_gapic",
342+
":procurement_csharp_grpc",
343+
":procurement_csharp_proto",
344+
],
345+
)
346+
347+
##############################################################################
348+
# C++
349+
##############################################################################
350+
load(
351+
"@com_google_googleapis_imports//:imports.bzl",
352+
"cc_grpc_library",
353+
"cc_proto_library",
354+
)
355+
356+
cc_proto_library(
357+
name = "procurement_cc_proto",
358+
deps = [":procurement_proto"],
359+
)
360+
361+
cc_grpc_library(
362+
name = "procurement_cc_grpc",
363+
srcs = [":procurement_proto"],
364+
grpc_only = True,
365+
deps = [":procurement_cc_proto"],
366+
)
Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
type: google.api.Service
2+
config_version: 3
3+
name: cloudcommerceconsumerprocurement.googleapis.com
4+
title: Cloud Commerce Consumer Procurement API
5+
6+
apis:
7+
- name: google.cloud.commerce.consumer.procurement.v1alpha1.ConsumerProcurementService
8+
- name: google.longrunning.Operations
9+
10+
types:
11+
- name: google.cloud.commerce.consumer.procurement.v1alpha1.PlaceOrderMetadata
12+
13+
documentation:
14+
summary: Enables consumers to procure products served by Cloud Marketplace platform
15+
16+
http:
17+
rules:
18+
- selector: google.longrunning.Operations.GetOperation
19+
get: '/v1alpha1/{name=billingAccounts/*/orders/*/operations/*}'
20+
21+
authentication:
22+
rules:
23+
- selector: 'google.cloud.commerce.consumer.procurement.v1alpha1.ConsumerProcurementService.*'
24+
oauth:
25+
canonical_scopes: |-
26+
https://www.googleapis.com/auth/cloud-platform
27+
- selector: google.longrunning.Operations.GetOperation
28+
oauth:
29+
canonical_scopes: |-
30+
https://www.googleapis.com/auth/cloud-platform

0 commit comments

Comments
 (0)