class ProjectsRegionsClustersNodeGroups extends Resource (View source)

The "nodeGroups" collection of methods.

Typical usage is:

 $dataprocService = new Google\Service\Dataproc(...);
 $nodeGroups = $dataprocService->projects_regions_clusters_nodeGroups;

Methods

create(string $parent, NodeGroup $postBody, array $optParams = [])

Creates a node group in a cluster. The returned Operation.metadata is NodeGroupOperationMetadata (https://cloud.google.com/dataproc/docs/reference/ rpc/google.cloud.dataproc.v1#nodegroupoperationmetadata). (nodeGroups.create)

get(string $name, array $optParams = [])

Gets the resource representation for a node group in a cluster.

repair(string $name, RepairNodeGroupRequest $postBody, array $optParams = [])

Repair nodes in a node group. (nodeGroups.repair)

resize(string $name, ResizeNodeGroupRequest $postBody, array $optParams = [])

Resizes a node group in a cluster. The returned Operation.metadata is NodeGroupOperationMetadata (https://cloud.google.com/dataproc/docs/reference/ rpc/google.cloud.dataproc.v1#nodegroupoperationmetadata). (nodeGroups.resize)

Details

Operation create(string $parent, NodeGroup $postBody, array $optParams = [])

Creates a node group in a cluster. The returned Operation.metadata is NodeGroupOperationMetadata (https://cloud.google.com/dataproc/docs/reference/ rpc/google.cloud.dataproc.v1#nodegroupoperationmetadata). (nodeGroups.create)

Parameters

string $parent

Required. The parent resource where this node group will be created. Format: projects/{project}/regions/{region}/clusters/{cluster}

NodeGroup $postBody
array $optParams

Optional parameters.

Return Value

Operation

Exceptions

Exception

NodeGroup get(string $name, array $optParams = [])

Gets the resource representation for a node group in a cluster.

(nodeGroups.get)

Parameters

string $name

Required. The name of the node group to retrieve. Format: projects/{project}/regions/{region}/clusters/{cluster}/nodeGroups/{nodeGroup}

array $optParams

Optional parameters.

Return Value

NodeGroup

Exceptions

Exception

Operation repair(string $name, RepairNodeGroupRequest $postBody, array $optParams = [])

Repair nodes in a node group. (nodeGroups.repair)

Parameters

string $name

Required. The name of the node group to resize. Format: projects/{project}/regions/{region}/clusters/{cluster}/nodeGroups/{nodeGroup}

RepairNodeGroupRequest $postBody
array $optParams

Optional parameters.

Return Value

Operation

Exceptions

Exception

Operation resize(string $name, ResizeNodeGroupRequest $postBody, array $optParams = [])

Resizes a node group in a cluster. The returned Operation.metadata is NodeGroupOperationMetadata (https://cloud.google.com/dataproc/docs/reference/ rpc/google.cloud.dataproc.v1#nodegroupoperationmetadata). (nodeGroups.resize)

Parameters

string $name

Required. The name of the node group to resize. Format: projects/{project}/regions/{region}/clusters/{cluster}/nodeGroups/{nodeGroup}

ResizeNodeGroupRequest $postBody
array $optParams

Optional parameters.

Return Value

Operation

Exceptions

Exception