public interface UpdateClusterRequestOrBuilder extends MessageOrBuilder
| Modifier and Type | Method and Description |
|---|---|
Cluster |
getCluster()
Required.
|
java.lang.String |
getClusterName()
Required.
|
ByteString |
getClusterNameBytes()
Required.
|
ClusterOrBuilder |
getClusterOrBuilder()
Required.
|
java.lang.String |
getProjectId()
Required.
|
ByteString |
getProjectIdBytes()
Required.
|
java.lang.String |
getRegion()
Required.
|
ByteString |
getRegionBytes()
Required.
|
FieldMask |
getUpdateMask()
Required.
|
FieldMaskOrBuilder |
getUpdateMaskOrBuilder()
Required.
|
boolean |
hasCluster()
Required.
|
boolean |
hasUpdateMask()
Required.
|
findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneofisInitializedjava.lang.String getProjectId()
Required. The ID of the Google Cloud Platform project the cluster belongs to.
string project_id = 1;ByteString getProjectIdBytes()
Required. The ID of the Google Cloud Platform project the cluster belongs to.
string project_id = 1;java.lang.String getRegion()
Required. The Cloud Dataproc region in which to handle the request.
string region = 5;ByteString getRegionBytes()
Required. The Cloud Dataproc region in which to handle the request.
string region = 5;java.lang.String getClusterName()
Required. The cluster name.
string cluster_name = 2;ByteString getClusterNameBytes()
Required. The cluster name.
string cluster_name = 2;boolean hasCluster()
Required. The changes to the cluster.
.google.cloud.dataproc.v1.Cluster cluster = 3;Cluster getCluster()
Required. The changes to the cluster.
.google.cloud.dataproc.v1.Cluster cluster = 3;ClusterOrBuilder getClusterOrBuilder()
Required. The changes to the cluster.
.google.cloud.dataproc.v1.Cluster cluster = 3;boolean hasUpdateMask()
Required. Specifies the path, relative to `Cluster`, of
the field to update. For example, to change the number of workers
in a cluster to 5, the `update_mask` parameter would be
specified as `config.worker_config.num_instances`,
and the `PATCH` request body would specify the new value, as follows:
{
"config":{
"workerConfig":{
"numInstances":"5"
}
}
}
Similarly, to change the number of preemptible workers in a cluster to 5,
the `update_mask` parameter would be
`config.secondary_worker_config.num_instances`, and the `PATCH` request
body would be set as follows:
{
"config":{
"secondaryWorkerConfig":{
"numInstances":"5"
}
}
}
<strong>Note:</strong> Currently, only the following fields can be updated:
<table>
<tbody>
<tr>
<td><strong>Mask</strong></td>
<td><strong>Purpose</strong></td>
</tr>
<tr>
<td><strong><em>labels</em></strong></td>
<td>Update labels</td>
</tr>
<tr>
<td><strong><em>config.worker_config.num_instances</em></strong></td>
<td>Resize primary worker group</td>
</tr>
<tr>
<td><strong><em>config.secondary_worker_config.num_instances</em></strong></td>
<td>Resize secondary worker group</td>
</tr>
</tbody>
</table>
.google.protobuf.FieldMask update_mask = 4;FieldMask getUpdateMask()
Required. Specifies the path, relative to `Cluster`, of
the field to update. For example, to change the number of workers
in a cluster to 5, the `update_mask` parameter would be
specified as `config.worker_config.num_instances`,
and the `PATCH` request body would specify the new value, as follows:
{
"config":{
"workerConfig":{
"numInstances":"5"
}
}
}
Similarly, to change the number of preemptible workers in a cluster to 5,
the `update_mask` parameter would be
`config.secondary_worker_config.num_instances`, and the `PATCH` request
body would be set as follows:
{
"config":{
"secondaryWorkerConfig":{
"numInstances":"5"
}
}
}
<strong>Note:</strong> Currently, only the following fields can be updated:
<table>
<tbody>
<tr>
<td><strong>Mask</strong></td>
<td><strong>Purpose</strong></td>
</tr>
<tr>
<td><strong><em>labels</em></strong></td>
<td>Update labels</td>
</tr>
<tr>
<td><strong><em>config.worker_config.num_instances</em></strong></td>
<td>Resize primary worker group</td>
</tr>
<tr>
<td><strong><em>config.secondary_worker_config.num_instances</em></strong></td>
<td>Resize secondary worker group</td>
</tr>
</tbody>
</table>
.google.protobuf.FieldMask update_mask = 4;FieldMaskOrBuilder getUpdateMaskOrBuilder()
Required. Specifies the path, relative to `Cluster`, of
the field to update. For example, to change the number of workers
in a cluster to 5, the `update_mask` parameter would be
specified as `config.worker_config.num_instances`,
and the `PATCH` request body would specify the new value, as follows:
{
"config":{
"workerConfig":{
"numInstances":"5"
}
}
}
Similarly, to change the number of preemptible workers in a cluster to 5,
the `update_mask` parameter would be
`config.secondary_worker_config.num_instances`, and the `PATCH` request
body would be set as follows:
{
"config":{
"secondaryWorkerConfig":{
"numInstances":"5"
}
}
}
<strong>Note:</strong> Currently, only the following fields can be updated:
<table>
<tbody>
<tr>
<td><strong>Mask</strong></td>
<td><strong>Purpose</strong></td>
</tr>
<tr>
<td><strong><em>labels</em></strong></td>
<td>Update labels</td>
</tr>
<tr>
<td><strong><em>config.worker_config.num_instances</em></strong></td>
<td>Resize primary worker group</td>
</tr>
<tr>
<td><strong><em>config.secondary_worker_config.num_instances</em></strong></td>
<td>Resize secondary worker group</td>
</tr>
</tbody>
</table>
.google.protobuf.FieldMask update_mask = 4;