class ProjectsZonesClustersNodePools extends Resource (View source)

The "nodePools" collection of methods.

Typical usage is:

 $containerService = new Google\Service\Container(...);
 $nodePools = $containerService->projects_zones_clusters_nodePools;

Methods

autoscaling(string $projectId, string $zone, string $clusterId, string $nodePoolId, SetNodePoolAutoscalingRequest $postBody, array $optParams = [])

Sets the autoscaling settings for the specified node pool.

create(string $projectId, string $zone, string $clusterId, CreateNodePoolRequest $postBody, array $optParams = [])

Creates a node pool for a cluster. (nodePools.create)

delete(string $projectId, string $zone, string $clusterId, string $nodePoolId, array $optParams = [])

Deletes a node pool from a cluster. (nodePools.delete)

get(string $projectId, string $zone, string $clusterId, string $nodePoolId, array $optParams = [])

Retrieves the requested node pool. (nodePools.get)

listProjectsZonesClustersNodePools(string $projectId, string $zone, string $clusterId, array $optParams = [])

Lists the node pools for a cluster.

rollback(string $projectId, string $zone, string $clusterId, string $nodePoolId, RollbackNodePoolUpgradeRequest $postBody, array $optParams = [])

Rolls back a previously Aborted or Failed NodePool upgrade. This makes no changes if the last upgrade successfully completed. (nodePools.rollback)

setManagement(string $projectId, string $zone, string $clusterId, string $nodePoolId, SetNodePoolManagementRequest $postBody, array $optParams = [])

Sets the NodeManagement options for a node pool. (nodePools.setManagement)

setSize(string $projectId, string $zone, string $clusterId, string $nodePoolId, SetNodePoolSizeRequest $postBody, array $optParams = [])

Sets the size for a specific node pool. The new size will be used for all replicas, including future replicas created by modifying NodePool.locations.

update(string $projectId, string $zone, string $clusterId, string $nodePoolId, UpdateNodePoolRequest $postBody, array $optParams = [])

Updates the version and/or image type for the specified node pool.

Details

Operation autoscaling(string $projectId, string $zone, string $clusterId, string $nodePoolId, SetNodePoolAutoscalingRequest $postBody, array $optParams = [])

Sets the autoscaling settings for the specified node pool.

(nodePools.autoscaling)

Parameters

string $projectId

Deprecated. The Google Developers Console project ID or project number. This field has been deprecated and replaced by the name field.

string $zone

Deprecated. The name of the Google Compute Engine zone in which the cluster resides. This field has been deprecated and replaced by the name field.

string $clusterId

Deprecated. The name of the cluster to upgrade. This field has been deprecated and replaced by the name field.

string $nodePoolId

Deprecated. The name of the node pool to upgrade. This field has been deprecated and replaced by the name field.

SetNodePoolAutoscalingRequest $postBody
array $optParams

Optional parameters.

Return Value

Operation

Exceptions

Exception

Operation create(string $projectId, string $zone, string $clusterId, CreateNodePoolRequest $postBody, array $optParams = [])

Creates a node pool for a cluster. (nodePools.create)

Parameters

string $projectId

Deprecated. The Google Developers Console project ID or project number. This field has been deprecated and replaced by the parent field.

string $zone

Deprecated. The name of the Google Compute Engine zone in which the cluster resides. This field has been deprecated and replaced by the parent field.

string $clusterId

Deprecated. The name of the cluster. This field has been deprecated and replaced by the parent field.

CreateNodePoolRequest $postBody
array $optParams

Optional parameters.

Return Value

Operation

Exceptions

Exception

Operation delete(string $projectId, string $zone, string $clusterId, string $nodePoolId, array $optParams = [])

Deletes a node pool from a cluster. (nodePools.delete)

Parameters

string $projectId

Deprecated. The Google Developers Console project ID or project number. This field has been deprecated and replaced by the name field.

string $zone

Deprecated. The name of the Google Compute Engine zone in which the cluster resides. This field has been deprecated and replaced by the name field.

string $clusterId

Deprecated. The name of the cluster. This field has been deprecated and replaced by the name field.

string $nodePoolId

Deprecated. The name of the node pool to delete. This field has been deprecated and replaced by the name field.

array $optParams

Optional parameters.

Return Value

Operation

Exceptions

Exception

NodePool get(string $projectId, string $zone, string $clusterId, string $nodePoolId, array $optParams = [])

Retrieves the requested node pool. (nodePools.get)

Parameters

string $projectId

Deprecated. The Google Developers Console project ID or project number. This field has been deprecated and replaced by the name field.

string $zone

Deprecated. The name of the Google Compute Engine zone in which the cluster resides. This field has been deprecated and replaced by the name field.

string $clusterId

Deprecated. The name of the cluster. This field has been deprecated and replaced by the name field.

string $nodePoolId

Deprecated. The name of the node pool. This field has been deprecated and replaced by the name field.

array $optParams

Optional parameters.

Return Value

NodePool

Exceptions

Exception

ListNodePoolsResponse listProjectsZonesClustersNodePools(string $projectId, string $zone, string $clusterId, array $optParams = [])

Lists the node pools for a cluster.

(nodePools.listProjectsZonesClustersNodePools)

Parameters

string $projectId

Deprecated. The Google Developers Console project ID or project number. This field has been deprecated and replaced by the parent field.

string $zone

Deprecated. The name of the Google Compute Engine zone in which the cluster resides. This field has been deprecated and replaced by the parent field.

string $clusterId

Deprecated. The name of the cluster. This field has been deprecated and replaced by the parent field.

array $optParams

Optional parameters.

Return Value

ListNodePoolsResponse

Exceptions

Exception

Operation rollback(string $projectId, string $zone, string $clusterId, string $nodePoolId, RollbackNodePoolUpgradeRequest $postBody, array $optParams = [])

Rolls back a previously Aborted or Failed NodePool upgrade. This makes no changes if the last upgrade successfully completed. (nodePools.rollback)

Parameters

string $projectId

Deprecated. The Google Developers Console project ID or project number. This field has been deprecated and replaced by the name field.

string $zone

Deprecated. The name of the Google Compute Engine zone in which the cluster resides. This field has been deprecated and replaced by the name field.

string $clusterId

Deprecated. The name of the cluster to rollback. This field has been deprecated and replaced by the name field.

string $nodePoolId

Deprecated. The name of the node pool to rollback. This field has been deprecated and replaced by the name field.

RollbackNodePoolUpgradeRequest $postBody
array $optParams

Optional parameters.

Return Value

Operation

Exceptions

Exception

Operation setManagement(string $projectId, string $zone, string $clusterId, string $nodePoolId, SetNodePoolManagementRequest $postBody, array $optParams = [])

Sets the NodeManagement options for a node pool. (nodePools.setManagement)

Parameters

string $projectId

Deprecated. The Google Developers Console project ID or project number. This field has been deprecated and replaced by the name field.

string $zone

Deprecated. The name of the Google Compute Engine zone in which the cluster resides. This field has been deprecated and replaced by the name field.

string $clusterId

Deprecated. The name of the cluster to update. This field has been deprecated and replaced by the name field.

string $nodePoolId

Deprecated. The name of the node pool to update. This field has been deprecated and replaced by the name field.

SetNodePoolManagementRequest $postBody
array $optParams

Optional parameters.

Return Value

Operation

Exceptions

Exception

Operation setSize(string $projectId, string $zone, string $clusterId, string $nodePoolId, SetNodePoolSizeRequest $postBody, array $optParams = [])

Sets the size for a specific node pool. The new size will be used for all replicas, including future replicas created by modifying NodePool.locations.

(nodePools.setSize)

Parameters

string $projectId

Deprecated. The Google Developers Console project ID or project number. This field has been deprecated and replaced by the name field.

string $zone

Deprecated. The name of the Google Compute Engine zone in which the cluster resides. This field has been deprecated and replaced by the name field.

string $clusterId

Deprecated. The name of the cluster to update. This field has been deprecated and replaced by the name field.

string $nodePoolId

Deprecated. The name of the node pool to update. This field has been deprecated and replaced by the name field.

SetNodePoolSizeRequest $postBody
array $optParams

Optional parameters.

Return Value

Operation

Exceptions

Exception

Operation update(string $projectId, string $zone, string $clusterId, string $nodePoolId, UpdateNodePoolRequest $postBody, array $optParams = [])

Updates the version and/or image type for the specified node pool.

(nodePools.update)

Parameters

string $projectId

Deprecated. The Google Developers Console project ID or project number. This field has been deprecated and replaced by the name field.

string $zone

Deprecated. The name of the Google Compute Engine zone in which the cluster resides. This field has been deprecated and replaced by the name field.

string $clusterId

Deprecated. The name of the cluster to upgrade. This field has been deprecated and replaced by the name field.

string $nodePoolId

Deprecated. The name of the node pool to upgrade. This field has been deprecated and replaced by the name field.

UpdateNodePoolRequest $postBody
array $optParams

Optional parameters.

Return Value

Operation

Exceptions

Exception