Skip to content

Commit e27a826

Browse files
authored
feat(cloudquotas): generate library (#13394)
1 parent 8001216 commit e27a826

File tree

55 files changed

+4119
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

55 files changed

+4119
-0
lines changed

CHANGELOG.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,13 @@ breaking changes in the upcoming 3.x release. This release is scheduled for
66

77
## v2.20.0 - TBD
88

9+
### New Libraries
10+
11+
We are happy to announce the following GA libraries. Unless specifically noted,
12+
the APIs in these libraries are stable, and are ready for production use.
13+
14+
- [Cloud Quotas](/google/cloud/cloudquotas/README.md)
15+
916
## v2.19.0 - 2023-12
1017

1118
### New Libraries

README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -154,6 +154,9 @@ See each library's `README.md` file for more information about:
154154
- [Cloud Build API](google/cloud/cloudbuild/README.md)
155155
[\[quickstart\]](google/cloud/cloudbuild/quickstart/README.md)
156156
[\[reference\]](https://cloud.google.com/cpp/docs/reference/cloudbuild/latest)
157+
- [Cloud Quotas API](google/cloud/cloudquotas/README.md)
158+
[\[quickstart\]](google/cloud/cloudquotas/quickstart/README.md)
159+
[\[reference\]](https://cloud.google.com/cpp/docs/reference/cloudquotas/latest)
157160
- [Cloud Commerce Consumer Procurement API](google/cloud/commerce/README.md)
158161
[\[quickstart\]](google/cloud/commerce/quickstart/README.md)
159162
[\[reference\]](https://cloud.google.com/cpp/docs/reference/commerce/latest)
297 KB
Binary file not shown.

ci/etc/expected_install_directories

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@
44
./include/google/api
55
./include/google/api/apikeys
66
./include/google/api/apikeys/v2
7+
./include/google/api/cloudquotas
8+
./include/google/api/cloudquotas/v1
79
./include/google/api/servicecontrol
810
./include/google/api/servicecontrol/v1
911
./include/google/api/servicecontrol/v2
@@ -177,6 +179,10 @@
177179
./include/google/cloud/cloudbuild/v2/mocks
178180
./include/google/cloud/clouddms
179181
./include/google/cloud/clouddms/v1
182+
./include/google/cloud/cloudquotas
183+
./include/google/cloud/cloudquotas/v1
184+
./include/google/cloud/cloudquotas/v1/internal
185+
./include/google/cloud/cloudquotas/v1/mocks
180186
./include/google/cloud/commerce
181187
./include/google/cloud/commerce/consumer
182188
./include/google/cloud/commerce/consumer/procurement
@@ -1192,6 +1198,7 @@
11921198
./lib64/cmake/google_cloud_cpp_certificatemanager
11931199
./lib64/cmake/google_cloud_cpp_channel
11941200
./lib64/cmake/google_cloud_cpp_cloudbuild
1201+
./lib64/cmake/google_cloud_cpp_cloudquotas
11951202
./lib64/cmake/google_cloud_cpp_commerce
11961203
./lib64/cmake/google_cloud_cpp_composer
11971204
./lib64/cmake/google_cloud_cpp_compute

cmake/GoogleCloudCppFeatures.cmake

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,7 @@ set(GOOGLE_CLOUD_CPP_GA_LIBRARIES
6363
"certificatemanager"
6464
"channel"
6565
"cloudbuild"
66+
"cloudquotas"
6667
"commerce"
6768
"composer"
6869
"compute"
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
@com_google_googleapis//google/api:annotations_proto
2+
@com_google_googleapis//google/api:client_proto
3+
@com_google_googleapis//google/api:field_behavior_proto
4+
@com_google_googleapis//google/api:http_proto
5+
@com_google_googleapis//google/api:launch_stage_proto
6+
@com_google_googleapis//google/api:resource_proto
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
@com_google_googleapis//google/api/cloudquotas/v1:cloudquotas.proto
2+
@com_google_googleapis//google/api/cloudquotas/v1:resources.proto

external/googleapis/update_libraries.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,7 @@ declare -A -r LIBRARIES=(
8989
"@com_google_googleapis//google/devtools/cloudbuild/v1:cloudbuild_cc_grpc" \
9090
"@com_google_googleapis//google/devtools/cloudbuild/v2:cloudbuild_cc_grpc"
9191
)"
92+
["cloudquotas"]="@com_google_googleapis//google/api/cloudquotas/v1:cloudquotas_cc_grpc"
9293
["commerce"]="@com_google_googleapis//google/cloud/commerce/consumer/procurement/v1:procurement_cc_grpc"
9394
["common"]="@com_google_googleapis//google/cloud/common:common_cc_grpc"
9495
["composer"]="@com_google_googleapis//google/cloud/orchestration/airflow/service/v1:service_cc_grpc"

generator/generator_config.textproto

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -582,6 +582,14 @@ service {
582582
emitted_rpcs: ["RunReportJob", "FetchReportResults", "ListReports"]
583583
}
584584
585+
# Cloud Quotas
586+
service {
587+
service_proto_path: "google/api/cloudquotas/v1/cloudquotas.proto"
588+
product_path: "google/cloud/cloudquotas/v1"
589+
initial_copyright_year: "2024"
590+
retryable_status_codes: ["kUnavailable"]
591+
}
592+
585593
# Composer
586594
service {
587595
service_proto_path: "google/cloud/orchestration/airflow/service/v1/environments.proto"
Lines changed: 75 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,75 @@
1+
# Copyright 2024 Google LLC
2+
#
3+
# Licensed under the Apache License, Version 2.0 (the "License");
4+
# you may not use this file except in compliance with the License.
5+
# You may obtain a copy of the License at
6+
#
7+
# https://www.apache.org/licenses/LICENSE-2.0
8+
#
9+
# Unless required by applicable law or agreed to in writing, software
10+
# distributed under the License is distributed on an "AS IS" BASIS,
11+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
# See the License for the specific language governing permissions and
13+
# limitations under the License.
14+
15+
package(default_visibility = ["//visibility:private"])
16+
17+
licenses(["notice"]) # Apache 2.0
18+
19+
service_dirs = ["v1/"]
20+
21+
src_dirs = service_dirs + [d + "internal/" for d in service_dirs]
22+
23+
filegroup(
24+
name = "srcs",
25+
srcs = glob([d + "*.cc" for d in src_dirs]),
26+
)
27+
28+
filegroup(
29+
name = "hdrs",
30+
srcs = glob([d + "*.h" for d in src_dirs]),
31+
)
32+
33+
filegroup(
34+
name = "public_hdrs",
35+
srcs = glob([d + "*.h" for d in service_dirs]),
36+
visibility = ["//:__pkg__"],
37+
)
38+
39+
filegroup(
40+
name = "mocks",
41+
srcs = glob([d + "mocks/*.h" for d in service_dirs]),
42+
visibility = ["//:__pkg__"],
43+
)
44+
45+
cc_library(
46+
name = "google_cloud_cpp_cloudquotas",
47+
srcs = [":srcs"],
48+
hdrs = [":hdrs"],
49+
visibility = ["//:__pkg__"],
50+
deps = [
51+
"//:common",
52+
"//:grpc_utils",
53+
"@com_google_googleapis//google/api/cloudquotas/v1:cloudquotas_cc_grpc",
54+
],
55+
)
56+
57+
cc_library(
58+
name = "google_cloud_cpp_cloudquotas_mocks",
59+
hdrs = [":mocks"],
60+
visibility = ["//:__pkg__"],
61+
deps = [
62+
":google_cloud_cpp_cloudquotas",
63+
"@com_google_googletest//:gtest",
64+
],
65+
)
66+
67+
[cc_test(
68+
name = sample.replace("/", "_").replace(".cc", ""),
69+
srcs = [sample],
70+
tags = ["integration-test"],
71+
deps = [
72+
"//:cloudquotas",
73+
"//google/cloud/testing_util:google_cloud_cpp_testing_private",
74+
],
75+
) for sample in glob([d + "samples/*.cc" for d in service_dirs])]

0 commit comments

Comments
 (0)