Service for the rollouts resource.
https://cloud.google.com/compute/docs/reference/rest/v1/rollouts
Equality
Instances of this class created via copy-construction or copy-assignment always compare equal. Instances created with equal std::shared_ptr<*Connection> objects compare equal. Objects that compare equal share the same underlying resources.
Performance
Creating a new instance of this class is a relatively expensive operation, new objects establish new connections to the service. In contrast, copy-construction, move-construction, and the corresponding assignment operations are relatively efficient as the copies share all underlying resources.
Thread Safety
Concurrent access to different instances of this class, even if they compare equal, is guaranteed to work. Two or more threads operating on the same instance of this class is not guaranteed to work. Since copy-construction and move-construction is a relatively efficient operation, consider using such a copy when using this class from multiple threads.
Constructors
RolloutsClient(RolloutsClient const &)
Copy and move support
| Parameter | |
|---|---|
| Name | Description |
|
RolloutsClient const &
|
RolloutsClient(RolloutsClient &&)
Copy and move support
| Parameter | |
|---|---|
| Name | Description |
|
RolloutsClient &&
|
RolloutsClient(std::shared_ptr< RolloutsConnection >, Options)
| Parameters | |
|---|---|
| Name | Description |
connection |
std::shared_ptr< RolloutsConnection >
|
opts |
Options
|
Operators
operator=(RolloutsClient const &)
Copy and move support
| Parameter | |
|---|---|
| Name | Description |
|
RolloutsClient const &
|
| Returns | |
|---|---|
| Type | Description |
RolloutsClient & |
|
operator=(RolloutsClient &&)
Copy and move support
| Parameter | |
|---|---|
| Name | Description |
|
RolloutsClient &&
|
| Returns | |
|---|---|
| Type | Description |
RolloutsClient & |
|
Functions
Advance(std::string const &, std::string const &, Options)
Advances a Rollout to the next wave, or completes it if no waves remain.
| Parameters | |
|---|---|
| Name | Description |
project |
std::string const &
Required. Project ID for this request. |
rollout |
std::string const &
Required. Name of the Rollout resource to advance. |
opts |
Options
Optional. Override the class-level options, such as retry and backoff policies. |
| Returns | |
|---|---|
| Type | Description |
future< StatusOr< google::cloud::cpp::compute::v1::Operation > > |
A |
Advance(NoAwaitTag, std::string const &, std::string const &, Options)
Advances a Rollout to the next wave, or completes it if no waves remain.
Specifying the NoAwaitTag immediately returns the [google::cloud::cpp::compute::v1::Operation] that corresponds to the Long Running Operation that has been started. No polling for operation status occurs.
| Parameters | |
|---|---|
| Name | Description |
|
NoAwaitTag
|
project |
std::string const &
|
rollout |
std::string const &
|
opts |
Options
|
| Returns | |
|---|---|
| Type | Description |
StatusOr< google::cloud::cpp::compute::v1::Operation > |
|
Advance(google::cloud::cpp::compute::rollouts::v1::AdvanceRequest const &, Options)
Advances a Rollout to the next wave, or completes it if no waves remain.
| Parameters | |
|---|---|
| Name | Description |
request |
google::cloud::cpp::compute::rollouts::v1::AdvanceRequest const &
Unary RPCs, such as the one wrapped by this function, receive a single |
opts |
Options
Optional. Override the class-level options, such as retry and backoff policies. |
| Returns | |
|---|---|
| Type | Description |
future< StatusOr< google::cloud::cpp::compute::v1::Operation > > |
A |
Advance(NoAwaitTag, google::cloud::cpp::compute::rollouts::v1::AdvanceRequest const &, Options)
Advances a Rollout to the next wave, or completes it if no waves remain.
Specifying the NoAwaitTag immediately returns the [google::cloud::cpp::compute::v1::Operation] that corresponds to the Long Running Operation that has been started. No polling for operation status occurs.
| Parameters | |
|---|---|
| Name | Description |
|
NoAwaitTag
|
request |
google::cloud::cpp::compute::rollouts::v1::AdvanceRequest const &
|
opts |
Options
|
| Returns | |
|---|---|
| Type | Description |
StatusOr< google::cloud::cpp::compute::v1::Operation > |
|
Advance(google::cloud::cpp::compute::v1::Operation const &, Options)
Advances a Rollout to the next wave, or completes it if no waves remain.
This method accepts a google::cloud::cpp::compute::v1::Operation that corresponds to a previously started Long Running Operation (LRO) and polls the status of the LRO in the background.
| Parameters | |
|---|---|
| Name | Description |
operation |
google::cloud::cpp::compute::v1::Operation const &
|
opts |
Options
|
| Returns | |
|---|---|
| Type | Description |
future< StatusOr< google::cloud::cpp::compute::v1::Operation > > |
|
Cancel(std::string const &, std::string const &, Options)
Cancels a Rollout.
| Parameters | |
|---|---|
| Name | Description |
project |
std::string const &
Project ID for this request. |
rollout |
std::string const &
Name of the Rollout resource to cancel. |
opts |
Options
Optional. Override the class-level options, such as retry and backoff policies. |
| Returns | |
|---|---|
| Type | Description |
future< StatusOr< google::cloud::cpp::compute::v1::Operation > > |
A |
Cancel(NoAwaitTag, std::string const &, std::string const &, Options)
Cancels a Rollout.
Specifying the NoAwaitTag immediately returns the [google::cloud::cpp::compute::v1::Operation] that corresponds to the Long Running Operation that has been started. No polling for operation status occurs.
| Parameters | |
|---|---|
| Name | Description |
|
NoAwaitTag
|
project |
std::string const &
|
rollout |
std::string const &
|
opts |
Options
|
| Returns | |
|---|---|
| Type | Description |
StatusOr< google::cloud::cpp::compute::v1::Operation > |
|
Cancel(google::cloud::cpp::compute::rollouts::v1::CancelRequest const &, Options)
Cancels a Rollout.
| Parameters | |
|---|---|
| Name | Description |
request |
google::cloud::cpp::compute::rollouts::v1::CancelRequest const &
Unary RPCs, such as the one wrapped by this function, receive a single |
opts |
Options
Optional. Override the class-level options, such as retry and backoff policies. |
| Returns | |
|---|---|
| Type | Description |
future< StatusOr< google::cloud::cpp::compute::v1::Operation > > |
A |
Cancel(NoAwaitTag, google::cloud::cpp::compute::rollouts::v1::CancelRequest const &, Options)
Cancels a Rollout.
Specifying the NoAwaitTag immediately returns the [google::cloud::cpp::compute::v1::Operation] that corresponds to the Long Running Operation that has been started. No polling for operation status occurs.
| Parameters | |
|---|---|
| Name | Description |
|
NoAwaitTag
|
request |
google::cloud::cpp::compute::rollouts::v1::CancelRequest const &
|
opts |
Options
|
| Returns | |
|---|---|
| Type | Description |
StatusOr< google::cloud::cpp::compute::v1::Operation > |
|
Cancel(google::cloud::cpp::compute::v1::Operation const &, Options)
Cancels a Rollout.
This method accepts a google::cloud::cpp::compute::v1::Operation that corresponds to a previously started Long Running Operation (LRO) and polls the status of the LRO in the background.
| Parameters | |
|---|---|
| Name | Description |
operation |
google::cloud::cpp::compute::v1::Operation const &
|
opts |
Options
|
| Returns | |
|---|---|
| Type | Description |
future< StatusOr< google::cloud::cpp::compute::v1::Operation > > |
|
DeleteRollout(std::string const &, std::string const &, Options)
Deletes a Rollout.
| Parameters | |
|---|---|
| Name | Description |
project |
std::string const &
Project ID for this request. |
rollout |
std::string const &
Name of the Rollout resource to delete. |
opts |
Options
Optional. Override the class-level options, such as retry and backoff policies. |
| Returns | |
|---|---|
| Type | Description |
future< StatusOr< google::cloud::cpp::compute::v1::Operation > > |
A |
DeleteRollout(NoAwaitTag, std::string const &, std::string const &, Options)
Deletes a Rollout.
Specifying the NoAwaitTag immediately returns the [google::cloud::cpp::compute::v1::Operation] that corresponds to the Long Running Operation that has been started. No polling for operation status occurs.
| Parameters | |
|---|---|
| Name | Description |
|
NoAwaitTag
|
project |
std::string const &
|
rollout |
std::string const &
|
opts |
Options
|
| Returns | |
|---|---|
| Type | Description |
StatusOr< google::cloud::cpp::compute::v1::Operation > |
|
DeleteRollout(google::cloud::cpp::compute::rollouts::v1::DeleteRolloutRequest const &, Options)
Deletes a Rollout.
| Parameters | |
|---|---|
| Name | Description |
request |
google::cloud::cpp::compute::rollouts::v1::DeleteRolloutRequest const &
Unary RPCs, such as the one wrapped by this function, receive a single |
opts |
Options
Optional. Override the class-level options, such as retry and backoff policies. |
| Returns | |
|---|---|
| Type | Description |
future< StatusOr< google::cloud::cpp::compute::v1::Operation > > |
A |
DeleteRollout(NoAwaitTag, google::cloud::cpp::compute::rollouts::v1::DeleteRolloutRequest const &, Options)
Deletes a Rollout.
Specifying the NoAwaitTag immediately returns the [google::cloud::cpp::compute::v1::Operation] that corresponds to the Long Running Operation that has been started. No polling for operation status occurs.
| Parameters | |
|---|---|
| Name | Description |
|
NoAwaitTag
|
request |
google::cloud::cpp::compute::rollouts::v1::DeleteRolloutRequest const &
|
opts |
Options
|
| Returns | |
|---|---|
| Type | Description |
StatusOr< google::cloud::cpp::compute::v1::Operation > |
|
DeleteRollout(google::cloud::cpp::compute::v1::Operation const &, Options)
Deletes a Rollout.
This method accepts a google::cloud::cpp::compute::v1::Operation that corresponds to a previously started Long Running Operation (LRO) and polls the status of the LRO in the background.
| Parameters | |
|---|---|
| Name | Description |
operation |
google::cloud::cpp::compute::v1::Operation const &
|
opts |
Options
|
| Returns | |
|---|---|
| Type | Description |
future< StatusOr< google::cloud::cpp::compute::v1::Operation > > |
|
GetRollout(std::string const &, std::string const &, Options)
Gets details of a single project-scoped Rollout.
| Parameters | |
|---|---|
| Name | Description |
project |
std::string const &
Project ID for this request. |
rollout |
std::string const &
Name of the persistent rollout to return. |
opts |
Options
Optional. Override the class-level options, such as retry and backoff policies. |
| Returns | |
|---|---|
| Type | Description |
StatusOr< google::cloud::cpp::compute::v1::Rollout > |
the result of the RPC. The response message type (google.cloud.cpp.compute.v1.Rollout) is mapped to a C++ class using the Protobuf mapping rules. If the request fails, the |
GetRollout(google::cloud::cpp::compute::rollouts::v1::GetRolloutRequest const &, Options)
Gets details of a single project-scoped Rollout.
| Parameters | |
|---|---|
| Name | Description |
request |
google::cloud::cpp::compute::rollouts::v1::GetRolloutRequest const &
Unary RPCs, such as the one wrapped by this function, receive a single |
opts |
Options
Optional. Override the class-level options, such as retry and backoff policies. |
| Returns | |
|---|---|
| Type | Description |
StatusOr< google::cloud::cpp::compute::v1::Rollout > |
the result of the RPC. The response message type (google.cloud.cpp.compute.v1.Rollout) is mapped to a C++ class using the Protobuf mapping rules. If the request fails, the |
ListRollouts(std::string const &, Options)
Lists Rollouts in a given project and location.
| Parameters | |
|---|---|
| Name | Description |
project |
std::string const &
Project ID for this request. |
opts |
Options
Optional. Override the class-level options, such as retry and backoff policies. |
| Returns | |
|---|---|
| Type | Description |
StreamRange< google::cloud::cpp::compute::v1::Rollout > |
a StreamRange to iterate of the results. See the documentation of this type for details. In brief, this class has |
ListRollouts(google::cloud::cpp::compute::rollouts::v1::ListRolloutsRequest, Options)
Lists Rollouts in a given project and location.
| Parameters | |
|---|---|
| Name | Description |
request |
google::cloud::cpp::compute::rollouts::v1::ListRolloutsRequest
Unary RPCs, such as the one wrapped by this function, receive a single |
opts |
Options
Optional. Override the class-level options, such as retry and backoff policies. |
| Returns | |
|---|---|
| Type | Description |
StreamRange< google::cloud::cpp::compute::v1::Rollout > |
a StreamRange to iterate of the results. See the documentation of this type for details. In brief, this class has |
Pause(std::string const &, std::string const &, Options)
Pauses a Rollout.
| Parameters | |
|---|---|
| Name | Description |
project |
std::string const &
Required. Project ID for this request. |
rollout |
std::string const &
Required. Name of the Rollout resource to pause. |
opts |
Options
Optional. Override the class-level options, such as retry and backoff policies. |
| Returns | |
|---|---|
| Type | Description |
future< StatusOr< google::cloud::cpp::compute::v1::Operation > > |
A |
Pause(NoAwaitTag, std::string const &, std::string const &, Options)
Pauses a Rollout.
Specifying the NoAwaitTag immediately returns the [google::cloud::cpp::compute::v1::Operation] that corresponds to the Long Running Operation that has been started. No polling for operation status occurs.
| Parameters | |
|---|---|
| Name | Description |
|
NoAwaitTag
|
project |
std::string const &
|
rollout |
std::string const &
|
opts |
Options
|
| Returns | |
|---|---|
| Type | Description |
StatusOr< google::cloud::cpp::compute::v1::Operation > |
|
Pause(google::cloud::cpp::compute::rollouts::v1::PauseRequest const &, Options)
Pauses a Rollout.
| Parameters | |
|---|---|
| Name | Description |
request |
google::cloud::cpp::compute::rollouts::v1::PauseRequest const &
Unary RPCs, such as the one wrapped by this function, receive a single |
opts |
Options
Optional. Override the class-level options, such as retry and backoff policies. |
| Returns | |
|---|---|
| Type | Description |
future< StatusOr< google::cloud::cpp::compute::v1::Operation > > |
A |
Pause(NoAwaitTag, google::cloud::cpp::compute::rollouts::v1::PauseRequest const &, Options)
Pauses a Rollout.
Specifying the NoAwaitTag immediately returns the [google::cloud::cpp::compute::v1::Operation] that corresponds to the Long Running Operation that has been started. No polling for operation status occurs.
| Parameters | |
|---|---|
| Name | Description |
|
NoAwaitTag
|
request |
google::cloud::cpp::compute::rollouts::v1::PauseRequest const &
|
opts |
Options
|
| Returns | |
|---|---|
| Type | Description |
StatusOr< google::cloud::cpp::compute::v1::Operation > |
|
Pause(google::cloud::cpp::compute::v1::Operation const &, Options)
Pauses a Rollout.
This method accepts a google::cloud::cpp::compute::v1::Operation that corresponds to a previously started Long Running Operation (LRO) and polls the status of the LRO in the background.
| Parameters | |
|---|---|
| Name | Description |
operation |
google::cloud::cpp::compute::v1::Operation const &
|
opts |
Options
|
| Returns | |
|---|---|
| Type | Description |
future< StatusOr< google::cloud::cpp::compute::v1::Operation > > |
|
Resume(std::string const &, std::string const &, Options)
Resumes a Rollout.
| Parameters | |
|---|---|
| Name | Description |
project |
std::string const &
Required. Project ID for this request. |
rollout |
std::string const &
Required. Name of the Rollout resource to resume. |
opts |
Options
Optional. Override the class-level options, such as retry and backoff policies. |
| Returns | |
|---|---|
| Type | Description |
future< StatusOr< google::cloud::cpp::compute::v1::Operation > > |
A |
Resume(NoAwaitTag, std::string const &, std::string const &, Options)
Resumes a Rollout.
Specifying the NoAwaitTag immediately returns the [google::cloud::cpp::compute::v1::Operation] that corresponds to the Long Running Operation that has been started. No polling for operation status occurs.
| Parameters | |
|---|---|
| Name | Description |
|
NoAwaitTag
|
project |
std::string const &
|
rollout |
std::string const &
|
opts |
Options
|
| Returns | |
|---|---|
| Type | Description |
StatusOr< google::cloud::cpp::compute::v1::Operation > |
|
Resume(google::cloud::cpp::compute::rollouts::v1::ResumeRequest const &, Options)
Resumes a Rollout.
| Parameters | |
|---|---|
| Name | Description |
request |
google::cloud::cpp::compute::rollouts::v1::ResumeRequest const &
Unary RPCs, such as the one wrapped by this function, receive a single |
opts |
Options
Optional. Override the class-level options, such as retry and backoff policies. |
| Returns | |
|---|---|
| Type | Description |
future< StatusOr< google::cloud::cpp::compute::v1::Operation > > |
A |
Resume(NoAwaitTag, google::cloud::cpp::compute::rollouts::v1::ResumeRequest const &, Options)
Resumes a Rollout.
Specifying the NoAwaitTag immediately returns the [google::cloud::cpp::compute::v1::Operation] that corresponds to the Long Running Operation that has been started. No polling for operation status occurs.
| Parameters | |
|---|---|
| Name | Description |
|
NoAwaitTag
|
request |
google::cloud::cpp::compute::rollouts::v1::ResumeRequest const &
|
opts |
Options
|
| Returns | |
|---|---|
| Type | Description |
StatusOr< google::cloud::cpp::compute::v1::Operation > |
|
Resume(google::cloud::cpp::compute::v1::Operation const &, Options)
Resumes a Rollout.
This method accepts a google::cloud::cpp::compute::v1::Operation that corresponds to a previously started Long Running Operation (LRO) and polls the status of the LRO in the background.
| Parameters | |
|---|---|
| Name | Description |
operation |
google::cloud::cpp::compute::v1::Operation const &
|
opts |
Options
|
| Returns | |
|---|---|
| Type | Description |
future< StatusOr< google::cloud::cpp::compute::v1::Operation > > |
|