Skip to content

Commit 79a04d4

Browse files
committed
Manually update READMEs, quickstart, and top-level stuff
1 parent c98aacd commit 79a04d4

File tree

9 files changed

+45
-11
lines changed

9 files changed

+45
-11
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.45.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 Maintenance API](/google/cloud/maintenance/README.md)
15+
916
## v2.44.0 - 2025-12
1017

1118
### [BigQueryControl](google/cloud/bigquerycontrol/README.md)

cmake/GoogleCloudCppFeatures.cmake

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -118,6 +118,7 @@ set(GOOGLE_CLOUD_CPP_GA_LIBRARIES
118118
"licensemanager"
119119
"logging"
120120
"lustre"
121+
"maintenance"
121122
"managedidentities"
122123
"managedkafka"
123124
"memcache"

google/cloud/CMakeLists.txt

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,11 @@ mark_as_advanced(GOOGLE_CLOUD_CPP_BUILD_METADATA)
5252

5353
include("${CMAKE_CURRENT_SOURCE_DIR}/google_cloud_cpp_common.cmake")
5454

55+
# We need the REST libraries for the full suite of samples.
56+
if (BUILD_TESTING AND GOOGLE_CLOUD_CPP_ENABLE_CXX_EXCEPTIONS)
57+
set(GOOGLE_CLOUD_CPP_ENABLE_REST ON)
58+
endif ()
59+
5560
add_subdirectory(testing_util)
5661

5762
if (GOOGLE_CLOUD_CPP_ENABLE_GRPC)
@@ -77,3 +82,10 @@ if (universe_domain IN_LIST GOOGLE_CLOUD_CPP_ENABLE
7782
"${CMAKE_CURRENT_SOURCE_DIR}/google_cloud_cpp_universe_domain.cmake")
7883
add_subdirectory(universe_domain)
7984
endif ()
85+
86+
# We need the universe_domain library for the full suite of samples.
87+
if (BUILD_TESTING AND GOOGLE_CLOUD_CPP_ENABLE_CXX_EXCEPTIONS)
88+
include(
89+
"${CMAKE_CURRENT_SOURCE_DIR}/google_cloud_cpp_universe_domain.cmake")
90+
add_subdirectory(universe_domain)
91+
endif ()

google/cloud/maintenance/BUILD.bazel

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ licenses(["notice"]) # Apache 2.0
2121
service_dirs = ["api/v1/"]
2222

2323
googleapis_deps = [
24-
"@com_google_googleapis//google/cloud/maintenance/api/v1:maintenance_cc_grpc",
24+
"@com_google_googleapis//google/cloud/maintenance/api/v1:api_cc_grpc",
2525
]
2626

2727
cc_gapic_library(

google/cloud/maintenance/CMakeLists.txt

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,7 @@ if (BUILD_TESTING AND GOOGLE_CLOUD_CPP_ENABLE_CXX_EXCEPTIONS)
2929
COMMAND
3030
cmake -P "${PROJECT_SOURCE_DIR}/cmake/quickstart-runner.cmake"
3131
$<TARGET_FILE:maintenance_quickstart> GOOGLE_CLOUD_PROJECT
32-
GOOGLE_CLOUD_CPP_TEST_REGION # EDIT HERE
33-
)
32+
GOOGLE_CLOUD_CPP_TEST_REGION)
3433
set_tests_properties(maintenance_quickstart
3534
PROPERTIES LABELS "integration-test;quickstart")
3635
endif ()

google/cloud/maintenance/README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ this library.
2222
<!-- inject-quickstart-start -->
2323

2424
```cc
25-
#include "google/cloud/maintenance/api/v1/ EDIT HERE _client.h"
25+
#include "google/cloud/maintenance/api/v1/maintenance_client.h"
2626
#include "google/cloud/location.h"
2727
#include <iostream>
2828

@@ -35,10 +35,10 @@ int main(int argc, char* argv[]) try {
3535
auto const location = google::cloud::Location(argv[1], argv[2]);
3636

3737
namespace maintenance = ::google::cloud::maintenance_api_v1;
38-
auto client = maintenance::ServiceClient(
39-
maintenance::MakeServiceConnection()); // EDIT HERE
38+
auto client =
39+
maintenance::MaintenanceClient(maintenance::MakeMaintenanceConnection());
4040

41-
for (auto r : client.List /*EDIT HERE*/ (location.FullName())) {
41+
for (auto r : client.ListResourceMaintenances(location.FullName())) {
4242
if (!r) throw std::move(r).status();
4343
std::cout << r->DebugString() << "\n";
4444
}
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
{
2+
"api_id": "maintenance.googleapis.com",
3+
"api_shortname": "maintenance",
4+
"client_documentation": "https://cloud.google.com/cpp/docs/reference/maintenance/latest",
5+
"distribution_name": "google-cloud-cpp",
6+
"issue_tracker": "https://issuetracker.google.com/issues/new?component=1673988&template=1161103",
7+
"language": "cpp",
8+
"library_type": "GAPIC_AUTO",
9+
"name_pretty": "Maintenance API",
10+
"product_documentation": "https://cloud.google.com/unified-maintenance/docs/overview",
11+
"release_level": "stable",
12+
"repo": "googleapis/google-cloud-cpp",
13+
"requires_billing": true
14+
}

google/cloud/maintenance/quickstart/quickstart.cc

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
// limitations under the License.
1414

1515
//! [all]
16-
#include "google/cloud/maintenance/api/v1/ EDIT HERE _client.h"
16+
#include "google/cloud/maintenance/api/v1/maintenance_client.h"
1717
#include "google/cloud/location.h"
1818
#include <iostream>
1919

@@ -26,10 +26,10 @@ int main(int argc, char* argv[]) try {
2626
auto const location = google::cloud::Location(argv[1], argv[2]);
2727

2828
namespace maintenance = ::google::cloud::maintenance_api_v1;
29-
auto client = maintenance::ServiceClient(
30-
maintenance::MakeServiceConnection()); // EDIT HERE
29+
auto client =
30+
maintenance::MaintenanceClient(maintenance::MakeMaintenanceConnection());
3131

32-
for (auto r : client.List /*EDIT HERE*/ (location.FullName())) {
32+
for (auto r : client.ListResourceMaintenances(location.FullName())) {
3333
if (!r) throw std::move(r).status();
3434
std::cout << r->DebugString() << "\n";
3535
}

libraries.bzl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -178,6 +178,7 @@ GOOGLE_CLOUD_CPP_GA_LIBRARIES = [
178178
"licensemanager",
179179
"logging",
180180
"lustre",
181+
"maintenance",
181182
"managedidentities",
182183
"managedkafka",
183184
"memcache",

0 commit comments

Comments
 (0)