The NodeGroupControllerService
provides methods to manage node groups of Compute Engine managed instances.
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
NodeGroupControllerClient(NodeGroupControllerClient const &)
Copy and move support
Parameter | |
---|---|
Name | Description |
|
NodeGroupControllerClient const &
|
NodeGroupControllerClient(NodeGroupControllerClient &&)
Copy and move support
Parameter | |
---|---|
Name | Description |
|
NodeGroupControllerClient &&
|
NodeGroupControllerClient(std::shared_ptr< NodeGroupControllerConnection >, Options)
Parameters | |
---|---|
Name | Description |
connection |
std::shared_ptr< NodeGroupControllerConnection >
|
opts |
Options
|
Operators
operator=(NodeGroupControllerClient const &)
Copy and move support
Parameter | |
---|---|
Name | Description |
|
NodeGroupControllerClient const &
|
Returns | |
---|---|
Type | Description |
NodeGroupControllerClient & |
operator=(NodeGroupControllerClient &&)
Copy and move support
Parameter | |
---|---|
Name | Description |
|
NodeGroupControllerClient &&
|
Returns | |
---|---|
Type | Description |
NodeGroupControllerClient & |
Functions
CreateNodeGroup(std::string const &, google::cloud::dataproc::v1::NodeGroup const &, std::string const &, Options)
Creates a node group in a cluster.
The returned Operation.metadata is NodeGroupOperationMetadata.
Parameters | |
---|---|
Name | Description |
parent |
std::string const &
Required. The parent resource where this node group will be created. Format: |
node_group |
google::cloud::dataproc::v1::NodeGroup const &
Required. The node group to create. |
node_group_id |
std::string const &
Optional. An optional node group ID. Generated if not specified. |
opts |
Options
Optional. Override the class-level options, such as retry and backoff policies. |
Returns | |
---|---|
Type | Description |
future< StatusOr< google::cloud::dataproc::v1::NodeGroup > > |
A |
CreateNodeGroup(NoAwaitTag, std::string const &, google::cloud::dataproc::v1::NodeGroup const &, std::string const &, Options)
Creates a node group in a cluster.
Specifying the NoAwaitTag
immediately returns the [google::longrunning::Operation
] that corresponds to the Long Running Operation that has been started. No polling for operation status occurs.
Parameters | |
---|---|
Name | Description |
|
NoAwaitTag
|
parent |
std::string const &
|
node_group |
google::cloud::dataproc::v1::NodeGroup const &
|
node_group_id |
std::string const &
|
opts |
Options
|
Returns | |
---|---|
Type | Description |
StatusOr< google::longrunning::Operation > |
CreateNodeGroup(google::cloud::dataproc::v1::CreateNodeGroupRequest const &, Options)
Creates a node group in a cluster.
The returned Operation.metadata is NodeGroupOperationMetadata.
Parameters | |
---|---|
Name | Description |
request |
google::cloud::dataproc::v1::CreateNodeGroupRequest 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::dataproc::v1::NodeGroup > > |
A |
CreateNodeGroup(NoAwaitTag, google::cloud::dataproc::v1::CreateNodeGroupRequest const &, Options)
Creates a node group in a cluster.
Specifying the NoAwaitTag
immediately returns the [google::longrunning::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::dataproc::v1::CreateNodeGroupRequest const &
|
opts |
Options
|
Returns | |
---|---|
Type | Description |
StatusOr< google::longrunning::Operation > |
CreateNodeGroup(google::longrunning::Operation const &, Options)
Creates a node group in a cluster.
This method accepts a google::longrunning::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::longrunning::Operation const &
|
opts |
Options
|
Returns | |
---|---|
Type | Description |
future< StatusOr< google::cloud::dataproc::v1::NodeGroup > > |
ResizeNodeGroup(std::string const &, std::int32_t, Options)
Resizes a node group in a cluster.
The returned Operation.metadata is NodeGroupOperationMetadata.
Parameters | |
---|---|
Name | Description |
name |
std::string const &
Required. The name of the node group to resize. Format: |
size |
std::int32_t
Required. The number of running instances for the node group to maintain. The group adds or removes instances to maintain the number of instances specified by this parameter. |
opts |
Options
Optional. Override the class-level options, such as retry and backoff policies. |
Returns | |
---|---|
Type | Description |
future< StatusOr< google::cloud::dataproc::v1::NodeGroup > > |
A |
ResizeNodeGroup(NoAwaitTag, std::string const &, std::int32_t, Options)
Resizes a node group in a cluster.
Specifying the NoAwaitTag
immediately returns the [google::longrunning::Operation
] that corresponds to the Long Running Operation that has been started. No polling for operation status occurs.
Parameters | |
---|---|
Name | Description |
|
NoAwaitTag
|
name |
std::string const &
|
size |
std::int32_t
|
opts |
Options
|
Returns | |
---|---|
Type | Description |
StatusOr< google::longrunning::Operation > |
ResizeNodeGroup(google::cloud::dataproc::v1::ResizeNodeGroupRequest const &, Options)
Resizes a node group in a cluster.
The returned Operation.metadata is NodeGroupOperationMetadata.
Parameters | |
---|---|
Name | Description |
request |
google::cloud::dataproc::v1::ResizeNodeGroupRequest 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::dataproc::v1::NodeGroup > > |
A |
ResizeNodeGroup(NoAwaitTag, google::cloud::dataproc::v1::ResizeNodeGroupRequest const &, Options)
Resizes a node group in a cluster.
Specifying the NoAwaitTag
immediately returns the [google::longrunning::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::dataproc::v1::ResizeNodeGroupRequest const &
|
opts |
Options
|
Returns | |
---|---|
Type | Description |
StatusOr< google::longrunning::Operation > |
ResizeNodeGroup(google::longrunning::Operation const &, Options)
Resizes a node group in a cluster.
This method accepts a google::longrunning::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::longrunning::Operation const &
|
opts |
Options
|
Returns | |
---|---|
Type | Description |
future< StatusOr< google::cloud::dataproc::v1::NodeGroup > > |
GetNodeGroup(std::string const &, Options)
Gets the resource representation for a node group in a cluster.
Parameters | |
---|---|
Name | Description |
name |
std::string const &
Required. The name of the node group to retrieve. Format: |
opts |
Options
Optional. Override the class-level options, such as retry and backoff policies. |
Returns | |
---|---|
Type | Description |
StatusOr< google::cloud::dataproc::v1::NodeGroup > |
the result of the RPC. The response message type (google.cloud.dataproc.v1.NodeGroup) is mapped to a C++ class using the Protobuf mapping rules. If the request fails, the |
GetNodeGroup(google::cloud::dataproc::v1::GetNodeGroupRequest const &, Options)
Gets the resource representation for a node group in a cluster.
Parameters | |
---|---|
Name | Description |
request |
google::cloud::dataproc::v1::GetNodeGroupRequest 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::dataproc::v1::NodeGroup > |
the result of the RPC. The response message type (google.cloud.dataproc.v1.NodeGroup) is mapped to a C++ class using the Protobuf mapping rules. If the request fails, the |