Skip to content

Commit 430aef9

Browse files
authored
chore(compute): update discovery doc circa 20240430 (#14249)
1 parent 5285eef commit 430aef9

288 files changed

Lines changed: 81038 additions & 80125 deletions

File tree

Some content is hidden

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

generator/discovery/compute_public_google_rest_v1.json

Lines changed: 79336 additions & 79030 deletions
Large diffs are not rendered by default.

google/cloud/compute/disks/v1/disks_proto_export.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,8 @@
3434
#include <google/cloud/compute/v1/internal/common_031.pb.h>
3535
#include <google/cloud/compute/v1/internal/common_114.pb.h>
3636
#include <google/cloud/compute/v1/internal/common_137.pb.h>
37-
#include <google/cloud/compute/v1/internal/common_142.pb.h>
3837
#include <google/cloud/compute/v1/internal/common_143.pb.h>
38+
#include <google/cloud/compute/v1/internal/common_144.pb.h>
3939
// IWYU pragma: end_exports
4040

4141
#endif // GOOGLE_CLOUD_CPP_GOOGLE_CLOUD_COMPUTE_DISKS_V1_DISKS_PROTO_EXPORT_H

google/cloud/compute/health_checks/v1/health_checks_client.h

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -264,7 +264,7 @@ class HealthChecksClient {
264264
/// [`StatusOr`]: @ref google::cloud::StatusOr
265265
/// [`Status`]: @ref google::cloud::Status
266266
/// [google.cloud.cpp.compute.health_checks.v1.GetHealthCheckRequest]: @cloud_cpp_reference_link{google/cloud/compute/health_checks/v1/health_checks.proto#L237}
267-
/// [google.cloud.cpp.compute.v1.HealthCheck]: @cloud_cpp_reference_link{google/cloud/compute/v1/internal/common_042.proto#L269}
267+
/// [google.cloud.cpp.compute.v1.HealthCheck]: @cloud_cpp_reference_link{google/cloud/compute/v1/internal/common_042.proto#L271}
268268
///
269269
// clang-format on
270270
StatusOr<google::cloud::cpp::compute::v1::HealthCheck> GetHealthCheck(
@@ -296,7 +296,7 @@ class HealthChecksClient {
296296
/// [`StatusOr`]: @ref google::cloud::StatusOr
297297
/// [`Status`]: @ref google::cloud::Status
298298
/// [google.cloud.cpp.compute.health_checks.v1.GetHealthCheckRequest]: @cloud_cpp_reference_link{google/cloud/compute/health_checks/v1/health_checks.proto#L237}
299-
/// [google.cloud.cpp.compute.v1.HealthCheck]: @cloud_cpp_reference_link{google/cloud/compute/v1/internal/common_042.proto#L269}
299+
/// [google.cloud.cpp.compute.v1.HealthCheck]: @cloud_cpp_reference_link{google/cloud/compute/v1/internal/common_042.proto#L271}
300300
///
301301
// clang-format on
302302
StatusOr<google::cloud::cpp::compute::v1::HealthCheck> GetHealthCheck(
@@ -411,7 +411,7 @@ class HealthChecksClient {
411411
/// [`StatusOr`]: @ref google::cloud::StatusOr
412412
/// [`Status`]: @ref google::cloud::Status
413413
/// [google.cloud.cpp.compute.health_checks.v1.ListHealthChecksRequest]: @cloud_cpp_reference_link{google/cloud/compute/health_checks/v1/health_checks.proto#L274}
414-
/// [google.cloud.cpp.compute.v1.HealthCheck]: @cloud_cpp_reference_link{google/cloud/compute/v1/internal/common_042.proto#L269}
414+
/// [google.cloud.cpp.compute.v1.HealthCheck]: @cloud_cpp_reference_link{google/cloud/compute/v1/internal/common_042.proto#L271}
415415
///
416416
// clang-format on
417417
StreamRange<google::cloud::cpp::compute::v1::HealthCheck> ListHealthChecks(
@@ -452,7 +452,7 @@ class HealthChecksClient {
452452
/// [`StatusOr`]: @ref google::cloud::StatusOr
453453
/// [`Status`]: @ref google::cloud::Status
454454
/// [google.cloud.cpp.compute.health_checks.v1.ListHealthChecksRequest]: @cloud_cpp_reference_link{google/cloud/compute/health_checks/v1/health_checks.proto#L274}
455-
/// [google.cloud.cpp.compute.v1.HealthCheck]: @cloud_cpp_reference_link{google/cloud/compute/v1/internal/common_042.proto#L269}
455+
/// [google.cloud.cpp.compute.v1.HealthCheck]: @cloud_cpp_reference_link{google/cloud/compute/v1/internal/common_042.proto#L271}
456456
///
457457
// clang-format on
458458
StreamRange<google::cloud::cpp::compute::v1::HealthCheck> ListHealthChecks(

google/cloud/compute/instances/v1/instances_client.h

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -280,7 +280,7 @@ class InstancesClient {
280280
/// [`StatusOr`]: @ref google::cloud::StatusOr
281281
/// [`Status`]: @ref google::cloud::Status
282282
/// [google.cloud.cpp.compute.instances.v1.AggregatedListInstancesRequest]: @cloud_cpp_reference_link{google/cloud/compute/instances/v1/instances.proto#L761}
283-
/// [google.cloud.cpp.compute.v1.InstancesScopedList]: @cloud_cpp_reference_link{google/cloud/compute/v1/internal/common_021.proto#L711}
283+
/// [google.cloud.cpp.compute.v1.InstancesScopedList]: @cloud_cpp_reference_link{google/cloud/compute/v1/internal/common_021.proto#L712}
284284
///
285285
// clang-format on
286286
StreamRange<std::pair<std::string,
@@ -325,7 +325,7 @@ class InstancesClient {
325325
/// [`StatusOr`]: @ref google::cloud::StatusOr
326326
/// [`Status`]: @ref google::cloud::Status
327327
/// [google.cloud.cpp.compute.instances.v1.AggregatedListInstancesRequest]: @cloud_cpp_reference_link{google/cloud/compute/instances/v1/instances.proto#L761}
328-
/// [google.cloud.cpp.compute.v1.InstancesScopedList]: @cloud_cpp_reference_link{google/cloud/compute/v1/internal/common_021.proto#L711}
328+
/// [google.cloud.cpp.compute.v1.InstancesScopedList]: @cloud_cpp_reference_link{google/cloud/compute/v1/internal/common_021.proto#L712}
329329
///
330330
// clang-format on
331331
StreamRange<std::pair<std::string,
@@ -750,7 +750,7 @@ class InstancesClient {
750750
/// [`StatusOr`]: @ref google::cloud::StatusOr
751751
/// [`Status`]: @ref google::cloud::Status
752752
/// [google.cloud.cpp.compute.instances.v1.GetInstanceRequest]: @cloud_cpp_reference_link{google/cloud/compute/instances/v1/instances.proto#L1086}
753-
/// [google.cloud.cpp.compute.v1.Instance]: @cloud_cpp_reference_link{google/cloud/compute/v1/internal/common_021.proto#L92}
753+
/// [google.cloud.cpp.compute.v1.Instance]: @cloud_cpp_reference_link{google/cloud/compute/v1/internal/common_021.proto#L93}
754754
///
755755
// clang-format on
756756
StatusOr<google::cloud::cpp::compute::v1::Instance> GetInstance(
@@ -782,7 +782,7 @@ class InstancesClient {
782782
/// [`StatusOr`]: @ref google::cloud::StatusOr
783783
/// [`Status`]: @ref google::cloud::Status
784784
/// [google.cloud.cpp.compute.instances.v1.GetInstanceRequest]: @cloud_cpp_reference_link{google/cloud/compute/instances/v1/instances.proto#L1086}
785-
/// [google.cloud.cpp.compute.v1.Instance]: @cloud_cpp_reference_link{google/cloud/compute/v1/internal/common_021.proto#L92}
785+
/// [google.cloud.cpp.compute.v1.Instance]: @cloud_cpp_reference_link{google/cloud/compute/v1/internal/common_021.proto#L93}
786786
///
787787
// clang-format on
788788
StatusOr<google::cloud::cpp::compute::v1::Instance> GetInstance(
@@ -813,7 +813,7 @@ class InstancesClient {
813813
/// [`StatusOr`]: @ref google::cloud::StatusOr
814814
/// [`Status`]: @ref google::cloud::Status
815815
/// [google.cloud.cpp.compute.instances.v1.GetEffectiveFirewallsRequest]: @cloud_cpp_reference_link{google/cloud/compute/instances/v1/instances.proto#L1030}
816-
/// [google.cloud.cpp.compute.v1.InstancesGetEffectiveFirewallsResponse]: @cloud_cpp_reference_link{google/cloud/compute/v1/internal/common_021.proto#L674}
816+
/// [google.cloud.cpp.compute.v1.InstancesGetEffectiveFirewallsResponse]: @cloud_cpp_reference_link{google/cloud/compute/v1/internal/common_021.proto#L675}
817817
///
818818
// clang-format on
819819
StatusOr<
@@ -848,7 +848,7 @@ class InstancesClient {
848848
/// [`StatusOr`]: @ref google::cloud::StatusOr
849849
/// [`Status`]: @ref google::cloud::Status
850850
/// [google.cloud.cpp.compute.instances.v1.GetEffectiveFirewallsRequest]: @cloud_cpp_reference_link{google/cloud/compute/instances/v1/instances.proto#L1030}
851-
/// [google.cloud.cpp.compute.v1.InstancesGetEffectiveFirewallsResponse]: @cloud_cpp_reference_link{google/cloud/compute/v1/internal/common_021.proto#L674}
851+
/// [google.cloud.cpp.compute.v1.InstancesGetEffectiveFirewallsResponse]: @cloud_cpp_reference_link{google/cloud/compute/v1/internal/common_021.proto#L675}
852852
///
853853
// clang-format on
854854
StatusOr<
@@ -879,7 +879,7 @@ class InstancesClient {
879879
/// [`StatusOr`]: @ref google::cloud::StatusOr
880880
/// [`Status`]: @ref google::cloud::Status
881881
/// [google.cloud.cpp.compute.instances.v1.GetGuestAttributesRequest]: @cloud_cpp_reference_link{google/cloud/compute/instances/v1/instances.proto#L1048}
882-
/// [google.cloud.cpp.compute.v1.GuestAttributes]: @cloud_cpp_reference_link{google/cloud/compute/v1/internal/common_021.proto#L50}
882+
/// [google.cloud.cpp.compute.v1.GuestAttributes]: @cloud_cpp_reference_link{google/cloud/compute/v1/internal/common_021.proto#L51}
883883
///
884884
// clang-format on
885885
StatusOr<google::cloud::cpp::compute::v1::GuestAttributes> GetGuestAttributes(
@@ -911,7 +911,7 @@ class InstancesClient {
911911
/// [`StatusOr`]: @ref google::cloud::StatusOr
912912
/// [`Status`]: @ref google::cloud::Status
913913
/// [google.cloud.cpp.compute.instances.v1.GetGuestAttributesRequest]: @cloud_cpp_reference_link{google/cloud/compute/instances/v1/instances.proto#L1048}
914-
/// [google.cloud.cpp.compute.v1.GuestAttributes]: @cloud_cpp_reference_link{google/cloud/compute/v1/internal/common_021.proto#L50}
914+
/// [google.cloud.cpp.compute.v1.GuestAttributes]: @cloud_cpp_reference_link{google/cloud/compute/v1/internal/common_021.proto#L51}
915915
///
916916
// clang-format on
917917
StatusOr<google::cloud::cpp::compute::v1::GuestAttributes> GetGuestAttributes(
@@ -1005,7 +1005,7 @@ class InstancesClient {
10051005
/// [`StatusOr`]: @ref google::cloud::StatusOr
10061006
/// [`Status`]: @ref google::cloud::Status
10071007
/// [google.cloud.cpp.compute.instances.v1.GetScreenshotRequest]: @cloud_cpp_reference_link{google/cloud/compute/instances/v1/instances.proto#L1100}
1008-
/// [google.cloud.cpp.compute.v1.Screenshot]: @cloud_cpp_reference_link{google/cloud/compute/v1/internal/common_021.proto#L895}
1008+
/// [google.cloud.cpp.compute.v1.Screenshot]: @cloud_cpp_reference_link{google/cloud/compute/v1/internal/common_021.proto#L896}
10091009
///
10101010
// clang-format on
10111011
StatusOr<google::cloud::cpp::compute::v1::Screenshot> GetScreenshot(
@@ -1037,7 +1037,7 @@ class InstancesClient {
10371037
/// [`StatusOr`]: @ref google::cloud::StatusOr
10381038
/// [`Status`]: @ref google::cloud::Status
10391039
/// [google.cloud.cpp.compute.instances.v1.GetScreenshotRequest]: @cloud_cpp_reference_link{google/cloud/compute/instances/v1/instances.proto#L1100}
1040-
/// [google.cloud.cpp.compute.v1.Screenshot]: @cloud_cpp_reference_link{google/cloud/compute/v1/internal/common_021.proto#L895}
1040+
/// [google.cloud.cpp.compute.v1.Screenshot]: @cloud_cpp_reference_link{google/cloud/compute/v1/internal/common_021.proto#L896}
10411041
///
10421042
// clang-format on
10431043
StatusOr<google::cloud::cpp::compute::v1::Screenshot> GetScreenshot(
@@ -1067,7 +1067,7 @@ class InstancesClient {
10671067
/// [`StatusOr`]: @ref google::cloud::StatusOr
10681068
/// [`Status`]: @ref google::cloud::Status
10691069
/// [google.cloud.cpp.compute.instances.v1.GetSerialPortOutputRequest]: @cloud_cpp_reference_link{google/cloud/compute/instances/v1/instances.proto#L1114}
1070-
/// [google.cloud.cpp.compute.v1.SerialPortOutput]: @cloud_cpp_reference_link{google/cloud/compute/v1/internal/common_021.proto#L905}
1070+
/// [google.cloud.cpp.compute.v1.SerialPortOutput]: @cloud_cpp_reference_link{google/cloud/compute/v1/internal/common_021.proto#L906}
10711071
///
10721072
// clang-format on
10731073
StatusOr<google::cloud::cpp::compute::v1::SerialPortOutput>
@@ -1099,7 +1099,7 @@ class InstancesClient {
10991099
/// [`StatusOr`]: @ref google::cloud::StatusOr
11001100
/// [`Status`]: @ref google::cloud::Status
11011101
/// [google.cloud.cpp.compute.instances.v1.GetSerialPortOutputRequest]: @cloud_cpp_reference_link{google/cloud/compute/instances/v1/instances.proto#L1114}
1102-
/// [google.cloud.cpp.compute.v1.SerialPortOutput]: @cloud_cpp_reference_link{google/cloud/compute/v1/internal/common_021.proto#L905}
1102+
/// [google.cloud.cpp.compute.v1.SerialPortOutput]: @cloud_cpp_reference_link{google/cloud/compute/v1/internal/common_021.proto#L906}
11031103
///
11041104
// clang-format on
11051105
StatusOr<google::cloud::cpp::compute::v1::SerialPortOutput>
@@ -1129,7 +1129,7 @@ class InstancesClient {
11291129
/// [`StatusOr`]: @ref google::cloud::StatusOr
11301130
/// [`Status`]: @ref google::cloud::Status
11311131
/// [google.cloud.cpp.compute.instances.v1.GetShieldedInstanceIdentityRequest]: @cloud_cpp_reference_link{google/cloud/compute/instances/v1/instances.proto#L1145}
1132-
/// [google.cloud.cpp.compute.v1.ShieldedInstanceIdentity]: @cloud_cpp_reference_link{google/cloud/compute/v1/internal/common_021.proto#L931}
1132+
/// [google.cloud.cpp.compute.v1.ShieldedInstanceIdentity]: @cloud_cpp_reference_link{google/cloud/compute/v1/internal/common_021.proto#L932}
11331133
///
11341134
// clang-format on
11351135
StatusOr<google::cloud::cpp::compute::v1::ShieldedInstanceIdentity>
@@ -1162,7 +1162,7 @@ class InstancesClient {
11621162
/// [`StatusOr`]: @ref google::cloud::StatusOr
11631163
/// [`Status`]: @ref google::cloud::Status
11641164
/// [google.cloud.cpp.compute.instances.v1.GetShieldedInstanceIdentityRequest]: @cloud_cpp_reference_link{google/cloud/compute/instances/v1/instances.proto#L1145}
1165-
/// [google.cloud.cpp.compute.v1.ShieldedInstanceIdentity]: @cloud_cpp_reference_link{google/cloud/compute/v1/internal/common_021.proto#L931}
1165+
/// [google.cloud.cpp.compute.v1.ShieldedInstanceIdentity]: @cloud_cpp_reference_link{google/cloud/compute/v1/internal/common_021.proto#L932}
11661166
///
11671167
// clang-format on
11681168
StatusOr<google::cloud::cpp::compute::v1::ShieldedInstanceIdentity>
@@ -1278,7 +1278,7 @@ class InstancesClient {
12781278
/// [`StatusOr`]: @ref google::cloud::StatusOr
12791279
/// [`Status`]: @ref google::cloud::Status
12801280
/// [google.cloud.cpp.compute.instances.v1.ListInstancesRequest]: @cloud_cpp_reference_link{google/cloud/compute/instances/v1/instances.proto#L1211}
1281-
/// [google.cloud.cpp.compute.v1.Instance]: @cloud_cpp_reference_link{google/cloud/compute/v1/internal/common_021.proto#L92}
1281+
/// [google.cloud.cpp.compute.v1.Instance]: @cloud_cpp_reference_link{google/cloud/compute/v1/internal/common_021.proto#L93}
12821282
///
12831283
// clang-format on
12841284
StreamRange<google::cloud::cpp::compute::v1::Instance> ListInstances(
@@ -1318,7 +1318,7 @@ class InstancesClient {
13181318
/// [`StatusOr`]: @ref google::cloud::StatusOr
13191319
/// [`Status`]: @ref google::cloud::Status
13201320
/// [google.cloud.cpp.compute.instances.v1.ListInstancesRequest]: @cloud_cpp_reference_link{google/cloud/compute/instances/v1/instances.proto#L1211}
1321-
/// [google.cloud.cpp.compute.v1.Instance]: @cloud_cpp_reference_link{google/cloud/compute/v1/internal/common_021.proto#L92}
1321+
/// [google.cloud.cpp.compute.v1.Instance]: @cloud_cpp_reference_link{google/cloud/compute/v1/internal/common_021.proto#L93}
13221322
///
13231323
// clang-format on
13241324
StreamRange<google::cloud::cpp::compute::v1::Instance> ListInstances(
@@ -1360,7 +1360,7 @@ class InstancesClient {
13601360
/// [`StatusOr`]: @ref google::cloud::StatusOr
13611361
/// [`Status`]: @ref google::cloud::Status
13621362
/// [google.cloud.cpp.compute.instances.v1.ListReferrersRequest]: @cloud_cpp_reference_link{google/cloud/compute/instances/v1/instances.proto#L1282}
1363-
/// [google.cloud.cpp.compute.v1.Reference]: @cloud_cpp_reference_link{google/cloud/compute/v1/internal/common_021.proto#L867}
1363+
/// [google.cloud.cpp.compute.v1.Reference]: @cloud_cpp_reference_link{google/cloud/compute/v1/internal/common_021.proto#L868}
13641364
///
13651365
// clang-format on
13661366
StreamRange<google::cloud::cpp::compute::v1::Reference> ListReferrers(
@@ -1404,7 +1404,7 @@ class InstancesClient {
14041404
/// [`StatusOr`]: @ref google::cloud::StatusOr
14051405
/// [`Status`]: @ref google::cloud::Status
14061406
/// [google.cloud.cpp.compute.instances.v1.ListReferrersRequest]: @cloud_cpp_reference_link{google/cloud/compute/instances/v1/instances.proto#L1282}
1407-
/// [google.cloud.cpp.compute.v1.Reference]: @cloud_cpp_reference_link{google/cloud/compute/v1/internal/common_021.proto#L867}
1407+
/// [google.cloud.cpp.compute.v1.Reference]: @cloud_cpp_reference_link{google/cloud/compute/v1/internal/common_021.proto#L868}
14081408
///
14091409
// clang-format on
14101410
StreamRange<google::cloud::cpp::compute::v1::Reference> ListReferrers(

google/cloud/compute/instances/v1/instances_proto_export.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,8 @@
4040
#include <google/cloud/compute/v1/internal/common_038.pb.h>
4141
#include <google/cloud/compute/v1/internal/common_076.pb.h>
4242
#include <google/cloud/compute/v1/internal/common_137.pb.h>
43-
#include <google/cloud/compute/v1/internal/common_143.pb.h>
43+
#include <google/cloud/compute/v1/internal/common_138.pb.h>
44+
#include <google/cloud/compute/v1/internal/common_144.pb.h>
4445
// IWYU pragma: end_exports
4546

4647
#endif // GOOGLE_CLOUD_CPP_GOOGLE_CLOUD_COMPUTE_INSTANCES_V1_INSTANCES_PROTO_EXPORT_H

google/cloud/compute/instant_snapshots/v1/instant_snapshots_proto_export.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,8 @@
3232
#include <google/cloud/compute/v1/internal/common_064.pb.h>
3333
#include <google/cloud/compute/v1/internal/common_065.pb.h>
3434
#include <google/cloud/compute/v1/internal/common_137.pb.h>
35-
#include <google/cloud/compute/v1/internal/common_142.pb.h>
3635
#include <google/cloud/compute/v1/internal/common_143.pb.h>
36+
#include <google/cloud/compute/v1/internal/common_144.pb.h>
3737
// IWYU pragma: end_exports
3838

3939
#endif // GOOGLE_CLOUD_CPP_GOOGLE_CLOUD_COMPUTE_INSTANT_SNAPSHOTS_V1_INSTANT_SNAPSHOTS_PROTO_EXPORT_H

google/cloud/compute/node_groups/v1/internal/node_groups_rest_connection_impl.cc

Lines changed: 60 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -488,6 +488,66 @@ NodeGroupsRestConnectionImpl::PatchNodeGroup(
488488
});
489489
}
490490

491+
future<StatusOr<google::cloud::cpp::compute::v1::Operation>>
492+
NodeGroupsRestConnectionImpl::PerformMaintenance(
493+
google::cloud::cpp::compute::node_groups::v1::
494+
PerformMaintenanceRequest const& request) {
495+
auto current = google::cloud::internal::SaveCurrentOptions();
496+
return rest_internal::AsyncRestLongRunningOperation<
497+
google::cloud::cpp::compute::v1::Operation,
498+
google::cloud::cpp::compute::v1::Operation,
499+
google::cloud::cpp::compute::zone_operations::v1::GetOperationRequest,
500+
google::cloud::cpp::compute::zone_operations::v1::DeleteOperationRequest>(
501+
background_->cq(), current, request,
502+
[stub = stub_](CompletionQueue& cq,
503+
std::unique_ptr<rest_internal::RestContext> context,
504+
google::cloud::internal::ImmutableOptions options,
505+
google::cloud::cpp::compute::node_groups::v1::
506+
PerformMaintenanceRequest const& request) {
507+
return stub->AsyncPerformMaintenance(cq, std::move(context),
508+
std::move(options), request);
509+
},
510+
[stub = stub_](CompletionQueue& cq,
511+
std::unique_ptr<rest_internal::RestContext> context,
512+
google::cloud::internal::ImmutableOptions options,
513+
google::cloud::cpp::compute::zone_operations::v1::
514+
GetOperationRequest const& request) {
515+
return stub->AsyncGetOperation(cq, std::move(context),
516+
std::move(options), request);
517+
},
518+
[stub = stub_](CompletionQueue& cq,
519+
std::unique_ptr<rest_internal::RestContext> context,
520+
google::cloud::internal::ImmutableOptions options,
521+
google::cloud::cpp::compute::zone_operations::v1::
522+
DeleteOperationRequest const& request) {
523+
return stub->AsyncCancelOperation(cq, std::move(context),
524+
std::move(options), request);
525+
},
526+
[](StatusOr<google::cloud::cpp::compute::v1::Operation> op,
527+
std::string const&) { return op; },
528+
retry_policy(*current), backoff_policy(*current),
529+
idempotency_policy(*current)->PerformMaintenance(request),
530+
polling_policy(*current), __func__,
531+
[](google::cloud::cpp::compute::v1::Operation const& op) {
532+
return op.status() == "DONE";
533+
},
534+
[request](
535+
std::string const& op,
536+
google::cloud::cpp::compute::zone_operations::v1::GetOperationRequest&
537+
r) {
538+
r.set_project(request.project());
539+
r.set_zone(request.zone());
540+
r.set_operation(op);
541+
},
542+
[request](std::string const& op,
543+
google::cloud::cpp::compute::zone_operations::v1::
544+
DeleteOperationRequest& r) {
545+
r.set_project(request.project());
546+
r.set_zone(request.zone());
547+
r.set_operation(op);
548+
});
549+
}
550+
491551
StatusOr<google::cloud::cpp::compute::v1::Policy>
492552
NodeGroupsRestConnectionImpl::SetIamPolicy(
493553
google::cloud::cpp::compute::node_groups::v1::SetIamPolicyRequest const&

google/cloud/compute/node_groups/v1/internal/node_groups_rest_connection_impl.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,10 @@ class NodeGroupsRestConnectionImpl
9292
google::cloud::cpp::compute::node_groups::v1::PatchNodeGroupRequest const&
9393
request) override;
9494

95+
future<StatusOr<google::cloud::cpp::compute::v1::Operation>>
96+
PerformMaintenance(google::cloud::cpp::compute::node_groups::v1::
97+
PerformMaintenanceRequest const& request) override;
98+
9599
StatusOr<google::cloud::cpp::compute::v1::Policy> SetIamPolicy(
96100
google::cloud::cpp::compute::node_groups::v1::SetIamPolicyRequest const&
97101
request) override;

0 commit comments

Comments
 (0)