Skip to content

Commit 5e52dcd

Browse files
authored
feat(parallelstore): generate library (#14805)
* feat(parallelstore): generate library * Run generators and format their outputs * Add API baseline * Manually update READMEs, quickstart, and top-level stuff * use zone-id for quickstart input
1 parent 58a05d0 commit 5e52dcd

File tree

55 files changed

+7531
-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

+7531
-0
lines changed

README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -338,6 +338,9 @@ See each library's `README.md` file for more information about:
338338
- [Cloud OS Login API](google/cloud/oslogin/README.md)
339339
[\[quickstart\]](google/cloud/oslogin/quickstart/README.md)
340340
[\[reference\]](https://cloud.google.com/cpp/docs/reference/oslogin/latest)
341+
- [Parallelstore API](google/cloud/parallelstore/README.md)
342+
[\[quickstart\]](google/cloud/parallelstore/quickstart/README.md)
343+
[\[reference\]](https://cloud.google.com/cpp/docs/reference/parallelstore/latest)
341344
- [Policy Simulator API](google/cloud/policysimulator/README.md)
342345
[\[quickstart\]](google/cloud/policysimulator/quickstart/README.md)
343346
[\[reference\]](https://cloud.google.com/cpp/docs/reference/policysimulator/latest)
Binary file not shown.

ci/etc/expected_install_directories

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -920,6 +920,10 @@
920920
./include/google/cloud/oslogin/v1
921921
./include/google/cloud/oslogin/v1/internal
922922
./include/google/cloud/oslogin/v1/mocks
923+
./include/google/cloud/parallelstore
924+
./include/google/cloud/parallelstore/v1
925+
./include/google/cloud/parallelstore/v1/internal
926+
./include/google/cloud/parallelstore/v1/mocks
923927
./include/google/cloud/policysimulator
924928
./include/google/cloud/policysimulator/v1
925929
./include/google/cloud/policysimulator/v1/internal
@@ -1433,6 +1437,8 @@
14331437
./lib64/cmake/google_cloud_cpp_osconfig_mocks
14341438
./lib64/cmake/google_cloud_cpp_oslogin
14351439
./lib64/cmake/google_cloud_cpp_oslogin_mocks
1440+
./lib64/cmake/google_cloud_cpp_parallelstore
1441+
./lib64/cmake/google_cloud_cpp_parallelstore_mocks
14361442
./lib64/cmake/google_cloud_cpp_policysimulator
14371443
./lib64/cmake/google_cloud_cpp_policysimulator_mocks
14381444
./lib64/cmake/google_cloud_cpp_policytroubleshooter

cmake/GoogleCloudCppFeatures.cmake

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -127,6 +127,7 @@ set(GOOGLE_CLOUD_CPP_GA_LIBRARIES
127127
"orgpolicy"
128128
"osconfig"
129129
"oslogin"
130+
"parallelstore"
130131
"policysimulator"
131132
"policytroubleshooter"
132133
"privateca"
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
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:field_info_proto
5+
@com_google_googleapis//google/api:http_proto
6+
@com_google_googleapis//google/api:launch_stage_proto
7+
@com_google_googleapis//google/api:resource_proto
8+
@com_google_googleapis//google/longrunning:operations_proto
9+
@com_google_googleapis//google/rpc:status_proto
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
@com_google_googleapis//google/cloud/parallelstore/v1:parallelstore.proto

external/googleapis/update_libraries.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -216,6 +216,7 @@ declare -A -r LIBRARIES=(
216216
"@com_google_googleapis//google/cloud/oslogin/v1:oslogin_cc_grpc" \
217217
"@com_google_googleapis//google/cloud/oslogin/common:common_cc_grpc"
218218
)"
219+
["parallelstore"]="@com_google_googleapis//google/cloud/parallelstore/v1:parallelstore_cc_grpc"
219220
["policysimulator"]="@com_google_googleapis//google/cloud/policysimulator/v1:policysimulator_cc_grpc"
220221
["policytroubleshooter"]="$(
221222
printf ",%s" \

generator/generator_config.textproto

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2986,6 +2986,13 @@ service {
29862986
retryable_status_codes: ["kUnavailable"]
29872987
}
29882988
2989+
service {
2990+
service_proto_path: "google/cloud/parallelstore/v1/parallelstore.proto"
2991+
product_path: "google/cloud/parallelstore/v1"
2992+
initial_copyright_year: "2024"
2993+
retryable_status_codes: ["kUnavailable"]
2994+
}
2995+
29892996
# Cloud Profiler
29902997
service {
29912998
service_proto_path: "google/devtools/cloudprofiler/v2/profiler.proto"
Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
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+
load("//bazel:gapic.bzl", "cc_gapic_library")
16+
17+
package(default_visibility = ["//visibility:private"])
18+
19+
licenses(["notice"]) # Apache 2.0
20+
21+
service_dirs = ["v1/"]
22+
23+
googleapis_deps = [
24+
"@com_google_googleapis//google/cloud/parallelstore/v1:parallelstore_cc_grpc",
25+
]
26+
27+
cc_gapic_library(
28+
name = "parallelstore",
29+
googleapis_deps = googleapis_deps,
30+
service_dirs = service_dirs,
31+
)
Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
# ~~~
2+
# Copyright 2024 Google LLC
3+
#
4+
# Licensed under the Apache License, Version 2.0 (the "License");
5+
# you may not use this file except in compliance with the License.
6+
# You may obtain a copy of the License at
7+
#
8+
# https://www.apache.org/licenses/LICENSE-2.0
9+
#
10+
# Unless required by applicable law or agreed to in writing, software
11+
# distributed under the License is distributed on an "AS IS" BASIS,
12+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
# See the License for the specific language governing permissions and
14+
# limitations under the License.
15+
# ~~~
16+
17+
include(GoogleCloudCppLibrary)
18+
19+
google_cloud_cpp_add_gapic_library(parallelstore "Parallelstore API"
20+
SERVICE_DIRS "v1/")
21+
22+
if (BUILD_TESTING AND GOOGLE_CLOUD_CPP_ENABLE_CXX_EXCEPTIONS)
23+
add_executable(parallelstore_quickstart "quickstart/quickstart.cc")
24+
target_link_libraries(parallelstore_quickstart
25+
PRIVATE google-cloud-cpp::parallelstore)
26+
google_cloud_cpp_add_common_options(parallelstore_quickstart)
27+
add_test(
28+
NAME parallelstore_quickstart
29+
COMMAND
30+
cmake -P "${PROJECT_SOURCE_DIR}/cmake/quickstart-runner.cmake"
31+
$<TARGET_FILE:parallelstore_quickstart> GOOGLE_CLOUD_PROJECT
32+
GOOGLE_CLOUD_CPP_TEST_ZONE)
33+
set_tests_properties(parallelstore_quickstart
34+
PROPERTIES LABELS "integration-test;quickstart")
35+
endif ()

0 commit comments

Comments
 (0)