Google Cloud Dataproc V1 Client - Class NodeGroup (3.10.1)

Reference documentation and code samples for the Google Cloud Dataproc V1 Client class NodeGroup.

Dataproc Node Group.

The Dataproc NodeGroup resource is not related to the Dataproc NodeGroupAffinity resource.

Generated from protobuf message google.cloud.dataproc.v1.NodeGroup

Namespace

Google \ Cloud \ Dataproc \ V1

Methods

__construct

Constructor.

Parameters
NameDescription
data array

Optional. Data for populating the Message object.

↳ name string

The Node group resource name.

↳ roles array

Required. Node group roles.

↳ node_group_config Google\Cloud\Dataproc\V1\InstanceGroupConfig

Optional. The node group instance group configuration.

↳ labels array|Google\Protobuf\Internal\MapField

Optional. Node group labels. * Label keys must consist of from 1 to 63 characters and conform to RFC 1035. * Label values can be empty. If specified, they must consist of from 1 to 63 characters and conform to RFC 1035. * The node group must have no more than 32 labels.

getName

The Node group resource name.

Returns
TypeDescription
string

setName

The Node group resource name.

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getRoles

Required. Node group roles.

Returns
TypeDescription
Google\Protobuf\Internal\RepeatedField

setRoles

Required. Node group roles.

Parameter
NameDescription
var int[]
Returns
TypeDescription
$this

getNodeGroupConfig

Optional. The node group instance group configuration.

Returns
TypeDescription
Google\Cloud\Dataproc\V1\InstanceGroupConfig|null

hasNodeGroupConfig

clearNodeGroupConfig

setNodeGroupConfig

Optional. The node group instance group configuration.

Parameter
NameDescription
var Google\Cloud\Dataproc\V1\InstanceGroupConfig
Returns
TypeDescription
$this

getLabels

Optional. Node group labels.

  • Label keys must consist of from 1 to 63 characters and conform to RFC 1035.
  • Label values can be empty. If specified, they must consist of from 1 to 63 characters and conform to RFC 1035.
  • The node group must have no more than 32 labels.
Returns
TypeDescription
Google\Protobuf\Internal\MapField

setLabels

Optional. Node group labels.

  • Label keys must consist of from 1 to 63 characters and conform to RFC 1035.
  • Label values can be empty. If specified, they must consist of from 1 to 63 characters and conform to RFC 1035.
  • The node group must have no more than 32 labels.
Parameter
NameDescription
var array|Google\Protobuf\Internal\MapField
Returns
TypeDescription
$this