xref: /aosp_15_r20/external/googleapis/google/cloud/resourcemanager/v3/BUILD.bazel (revision d5c09012810ac0c9f33fe448fb6da8260d444cc9)
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.
13package(default_visibility = ["//visibility:public"])
14
15##############################################################################
16# Common
17##############################################################################
18load("@rules_proto//proto:defs.bzl", "proto_library")
19load("@com_google_googleapis_imports//:imports.bzl", "proto_library_with_info")
20
21proto_library(
22    name = "resourcemanager_proto",
23    srcs = [
24        "folders.proto",
25        "organizations.proto",
26        "projects.proto",
27        "tag_bindings.proto",
28        "tag_holds.proto",
29        "tag_keys.proto",
30        "tag_values.proto",
31    ],
32    deps = [
33        "//google/api:annotations_proto",
34        "//google/api:client_proto",
35        "//google/api:field_behavior_proto",
36        "//google/api:resource_proto",
37        "//google/iam/v1:iam_policy_proto",
38        "//google/iam/v1:policy_proto",
39        "//google/longrunning:operations_proto",
40        "@com_google_protobuf//:empty_proto",
41        "@com_google_protobuf//:field_mask_proto",
42        "@com_google_protobuf//:timestamp_proto",
43    ],
44)
45
46proto_library_with_info(
47    name = "resourcemanager_proto_with_info",
48    deps = [
49        ":resourcemanager_proto",
50        # This line was manually modified since Projects, Folders, Organizations
51        # are special cased since they are also common resources.
52        #"//google/cloud:common_resources_proto",
53    ],
54)
55
56##############################################################################
57# Java
58##############################################################################
59load(
60    "@com_google_googleapis_imports//:imports.bzl",
61    "java_gapic_assembly_gradle_pkg",
62    "java_gapic_library",
63    "java_gapic_test",
64    "java_grpc_library",
65    "java_proto_library",
66)
67
68java_proto_library(
69    name = "resourcemanager_java_proto",
70    deps = [":resourcemanager_proto"],
71)
72
73java_grpc_library(
74    name = "resourcemanager_java_grpc",
75    srcs = [":resourcemanager_proto"],
76    deps = [":resourcemanager_java_proto"],
77)
78
79java_gapic_library(
80    name = "resourcemanager_java_gapic",
81    srcs = [":resourcemanager_proto_with_info"],
82    gapic_yaml = None,
83    grpc_service_config = "cloudresourcemanager_v3_grpc_service_config.json",
84    rest_numeric_enums = True,
85    service_yaml = "cloudresourcemanager_v3.yaml",
86    test_deps = [
87        ":resourcemanager_java_grpc",
88        "//google/iam/v1:iam_java_grpc",
89    ],
90    transport = "grpc+rest",
91    deps = [
92        ":resourcemanager_java_proto",
93        "//google/api:api_java_proto",
94        "//google/iam/v1:iam_java_proto",
95    ],
96)
97
98java_gapic_test(
99    name = "resourcemanager_java_gapic_test_suite",
100    test_classes = [
101        "com.google.cloud.resourcemanager.v3.FoldersClientHttpJsonTest",
102        "com.google.cloud.resourcemanager.v3.FoldersClientTest",
103        "com.google.cloud.resourcemanager.v3.OrganizationsClientHttpJsonTest",
104        "com.google.cloud.resourcemanager.v3.OrganizationsClientTest",
105        "com.google.cloud.resourcemanager.v3.ProjectsClientHttpJsonTest",
106        "com.google.cloud.resourcemanager.v3.ProjectsClientTest",
107        "com.google.cloud.resourcemanager.v3.TagBindingsClientHttpJsonTest",
108        "com.google.cloud.resourcemanager.v3.TagBindingsClientTest",
109        "com.google.cloud.resourcemanager.v3.TagHoldsClientHttpJsonTest",
110        "com.google.cloud.resourcemanager.v3.TagHoldsClientTest",
111        "com.google.cloud.resourcemanager.v3.TagKeysClientHttpJsonTest",
112        "com.google.cloud.resourcemanager.v3.TagKeysClientTest",
113        "com.google.cloud.resourcemanager.v3.TagValuesClientHttpJsonTest",
114        "com.google.cloud.resourcemanager.v3.TagValuesClientTest",
115    ],
116    runtime_deps = [":resourcemanager_java_gapic_test"],
117)
118
119# Open Source Packages
120java_gapic_assembly_gradle_pkg(
121    name = "google-cloud-resourcemanager-v3-java",
122    include_samples = True,
123    transport = "grpc+rest",
124    deps = [
125        ":resourcemanager_java_gapic",
126        ":resourcemanager_java_grpc",
127        ":resourcemanager_java_proto",
128        ":resourcemanager_proto",
129    ],
130)
131
132##############################################################################
133# Go
134##############################################################################
135load(
136    "@com_google_googleapis_imports//:imports.bzl",
137    "go_gapic_assembly_pkg",
138    "go_gapic_library",
139    "go_proto_library",
140)
141
142go_proto_library(
143    name = "resourcemanager_go_proto",
144    compilers = ["@io_bazel_rules_go//proto:go_grpc"],
145    importpath = "cloud.google.com/go/resourcemanager/apiv3/resourcemanagerpb",
146    protos = [":resourcemanager_proto"],
147    deps = [
148        "//google/api:annotations_go_proto",
149        "//google/iam/v1:iam_go_proto",
150        "//google/longrunning:longrunning_go_proto",
151    ],
152)
153
154go_gapic_library(
155    name = "resourcemanager_go_gapic",
156    srcs = [":resourcemanager_proto_with_info"],
157    grpc_service_config = "cloudresourcemanager_v3_grpc_service_config.json",
158    importpath = "cloud.google.com/go/resourcemanager/apiv3;resourcemanager",
159    metadata = True,
160    release_level = "ga",
161    rest_numeric_enums = True,
162    service_yaml = "cloudresourcemanager_v3.yaml",
163    transport = "grpc+rest",
164    deps = [
165        ":resourcemanager_go_proto",
166        "//google/iam/v1:iam_go_proto",
167        "//google/longrunning:longrunning_go_proto",
168        "@com_google_cloud_go_longrunning//:go_default_library",
169        "@com_google_cloud_go_longrunning//autogen:go_default_library",
170    ],
171)
172
173# Open Source Packages
174go_gapic_assembly_pkg(
175    name = "gapi-cloud-resourcemanager-v3-go",
176    deps = [
177        ":resourcemanager_go_gapic",
178        ":resourcemanager_go_gapic_srcjar-metadata.srcjar",
179        ":resourcemanager_go_gapic_srcjar-snippets.srcjar",
180        ":resourcemanager_go_gapic_srcjar-test.srcjar",
181        ":resourcemanager_go_proto",
182    ],
183)
184
185##############################################################################
186# Python
187##############################################################################
188load(
189    "@com_google_googleapis_imports//:imports.bzl",
190    "py_gapic_assembly_pkg",
191    "py_gapic_library",
192    "py_test",
193)
194
195py_gapic_library(
196    name = "resourcemanager_py_gapic",
197    srcs = [":resourcemanager_proto"],
198    grpc_service_config = "cloudresourcemanager_v3_grpc_service_config.json",
199    opt_args = ["warehouse-package-name=google-cloud-resource-manager"],
200    rest_numeric_enums = True,
201    service_yaml = "cloudresourcemanager_v3.yaml",
202    transport = "grpc+rest",
203    deps = [
204        "//google/iam/v1:iam_policy_py_proto",
205    ],
206)
207
208py_test(
209    name = "resourcemanager_py_gapic_test",
210    srcs = [
211        "resourcemanager_py_gapic_pytest.py",
212        "resourcemanager_py_gapic_test.py",
213    ],
214    legacy_create_init = False,
215    deps = [":resourcemanager_py_gapic"],
216)
217
218# Open Source Packages
219py_gapic_assembly_pkg(
220    name = "resourcemanager-v3-py",
221    deps = [
222        ":resourcemanager_py_gapic",
223    ],
224)
225
226##############################################################################
227# PHP
228##############################################################################
229load(
230    "@com_google_googleapis_imports//:imports.bzl",
231    "php_gapic_assembly_pkg",
232    "php_gapic_library",
233    "php_proto_library",
234)
235
236php_proto_library(
237    name = "resourcemanager_php_proto",
238    deps = [":resourcemanager_proto"],
239)
240
241php_gapic_library(
242    name = "resourcemanager_php_gapic",
243    srcs = [":resourcemanager_proto_with_info"],
244    grpc_service_config = "cloudresourcemanager_v3_grpc_service_config.json",
245    migration_mode = "MIGRATING",
246    rest_numeric_enums = True,
247    service_yaml = "cloudresourcemanager_v3.yaml",
248    transport = "grpc+rest",
249    deps = [":resourcemanager_php_proto"],
250)
251
252# Open Source Packages
253php_gapic_assembly_pkg(
254    name = "google-cloud-resourcemanager-v3-php",
255    deps = [
256        ":resourcemanager_php_gapic",
257        ":resourcemanager_php_proto",
258    ],
259)
260
261##############################################################################
262# Node.js
263##############################################################################
264load(
265    "@com_google_googleapis_imports//:imports.bzl",
266    "nodejs_gapic_assembly_pkg",
267    "nodejs_gapic_library",
268)
269
270nodejs_gapic_library(
271    name = "resourcemanager_nodejs_gapic",
272    package_name = "@google-cloud/resource-manager",
273    src = ":resourcemanager_proto_with_info",
274    extra_protoc_parameters = ["metadata"],
275    grpc_service_config = "cloudresourcemanager_v3_grpc_service_config.json",
276    package = "google.cloud.resourcemanager.v3",
277    rest_numeric_enums = True,
278    service_yaml = "cloudresourcemanager_v3.yaml",
279    transport = "grpc+rest",
280    deps = [],
281)
282
283nodejs_gapic_assembly_pkg(
284    name = "resourcemanager-v3-nodejs",
285    deps = [
286        ":resourcemanager_nodejs_gapic",
287        ":resourcemanager_proto",
288    ],
289)
290
291##############################################################################
292# Ruby
293##############################################################################
294load(
295    "@com_google_googleapis_imports//:imports.bzl",
296    "ruby_cloud_gapic_library",
297    "ruby_gapic_assembly_pkg",
298    "ruby_grpc_library",
299    "ruby_proto_library",
300)
301
302ruby_proto_library(
303    name = "resourcemanager_ruby_proto",
304    deps = [":resourcemanager_proto"],
305)
306
307ruby_grpc_library(
308    name = "resourcemanager_ruby_grpc",
309    srcs = [":resourcemanager_proto"],
310    deps = [":resourcemanager_ruby_proto"],
311)
312
313ruby_cloud_gapic_library(
314    name = "resourcemanager_ruby_gapic",
315    srcs = [":resourcemanager_proto_with_info"],
316    extra_protoc_parameters = [
317        "ruby-cloud-api-id=cloudresourcemanager.googleapis.com",
318        "ruby-cloud-api-shortname=cloudresourcemanager",
319        "ruby-cloud-env-prefix=RESOURCE_MANAGER",
320        "ruby-cloud-gem-name=google-cloud-resource_manager-v3",
321        "ruby-cloud-product-url=https://cloud.google.com/resource-manager/",
322    ],
323    grpc_service_config = "cloudresourcemanager_v3_grpc_service_config.json",
324    rest_numeric_enums = True,
325    ruby_cloud_description = "Google Cloud provides container resources such as organizations and projects that allow you to group and hierarchically organize other Google Cloud resources. This hierarchical organization helps you manage common aspects of your resources, such as access control and configuration settings. The Resource Manager API enables you to programmatically manage these container resources.",
326    ruby_cloud_title = "Resource Manager V3",
327    service_yaml = "cloudresourcemanager_v3.yaml",
328    transport = "grpc+rest",
329    deps = [
330        ":resourcemanager_ruby_grpc",
331        ":resourcemanager_ruby_proto",
332    ],
333)
334
335# Open Source Packages
336ruby_gapic_assembly_pkg(
337    name = "google-cloud-resourcemanager-v3-ruby",
338    deps = [
339        ":resourcemanager_ruby_gapic",
340        ":resourcemanager_ruby_grpc",
341        ":resourcemanager_ruby_proto",
342    ],
343)
344
345##############################################################################
346# C#
347##############################################################################
348load(
349    "@com_google_googleapis_imports//:imports.bzl",
350    "csharp_gapic_assembly_pkg",
351    "csharp_gapic_library",
352    "csharp_grpc_library",
353    "csharp_proto_library",
354)
355
356csharp_proto_library(
357    name = "resourcemanager_csharp_proto",
358    deps = [":resourcemanager_proto"],
359)
360
361csharp_grpc_library(
362    name = "resourcemanager_csharp_grpc",
363    srcs = [":resourcemanager_proto"],
364    deps = [":resourcemanager_csharp_proto"],
365)
366
367csharp_gapic_library(
368    name = "resourcemanager_csharp_gapic",
369    srcs = [":resourcemanager_proto_with_info"],
370    common_resources_config = "@gax_dotnet//:Google.Api.Gax/ResourceNames/CommonResourcesConfig.json",
371    grpc_service_config = "cloudresourcemanager_v3_grpc_service_config.json",
372    rest_numeric_enums = True,
373    service_yaml = "cloudresourcemanager_v3.yaml",
374    transport = "grpc+rest",
375    deps = [
376        ":resourcemanager_csharp_grpc",
377        ":resourcemanager_csharp_proto",
378    ],
379)
380
381# Open Source Packages
382csharp_gapic_assembly_pkg(
383    name = "google-cloud-resourcemanager-v3-csharp",
384    deps = [
385        ":resourcemanager_csharp_gapic",
386        ":resourcemanager_csharp_grpc",
387        ":resourcemanager_csharp_proto",
388    ],
389)
390
391##############################################################################
392# C++
393##############################################################################
394load(
395    "@com_google_googleapis_imports//:imports.bzl",
396    "cc_grpc_library",
397    "cc_proto_library",
398)
399
400cc_proto_library(
401    name = "resourcemanager_cc_proto",
402    deps = [":resourcemanager_proto"],
403)
404
405cc_grpc_library(
406    name = "resourcemanager_cc_grpc",
407    srcs = [":resourcemanager_proto"],
408    grpc_only = True,
409    deps = [":resourcemanager_cc_proto"],
410)
411