class NodeGroups extends Resource (View source)

The "nodeGroups" collection of methods.

Typical usage is:

 $computeService = new Google\Service\Compute(...);
 $nodeGroups = $computeService->nodeGroups;

Methods

addNodes(string $project, string $zone, string $nodeGroup, NodeGroupsAddNodesRequest $postBody, array $optParams = [])

Adds specified number of nodes to the node group. (nodeGroups.addNodes)

aggregatedList(string $project, array $optParams = [])

Retrieves an aggregated list of node groups. Note: use nodeGroups.listNodes for more details about each group. To prevent failure, Google recommends that you set the returnPartialSuccess parameter to true.

delete(string $project, string $zone, string $nodeGroup, array $optParams = [])

Deletes the specified NodeGroup resource. (nodeGroups.delete)

deleteNodes(string $project, string $zone, string $nodeGroup, NodeGroupsDeleteNodesRequest $postBody, array $optParams = [])

Deletes specified nodes from the node group. (nodeGroups.deleteNodes)

get(string $project, string $zone, string $nodeGroup, array $optParams = [])

Returns the specified NodeGroup. Get a list of available NodeGroups by making a list() request. Note: the "nodes" field should not be used. Use nodeGroups.listNodes instead. (nodeGroups.get)

getIamPolicy(string $project, string $zone, string $resource, array $optParams = [])

Gets the access control policy for a resource. May be empty if no such policy or resource exists. (nodeGroups.getIamPolicy)

insert(string $project, string $zone, int $initialNodeCount, NodeGroup $postBody, array $optParams = [])

Creates a NodeGroup resource in the specified project using the data included in the request. (nodeGroups.insert)

listNodeGroups(string $project, string $zone, array $optParams = [])

Retrieves a list of node groups available to the specified project. Note: use nodeGroups.listNodes for more details about each group.

listNodes(string $project, string $zone, string $nodeGroup, array $optParams = [])

Lists nodes in the node group. (nodeGroups.listNodes)

patch(string $project, string $zone, string $nodeGroup, NodeGroup $postBody, array $optParams = [])

Updates the specified node group. (nodeGroups.patch)

performMaintenance(string $project, string $zone, string $nodeGroup, NodeGroupsPerformMaintenanceRequest $postBody, array $optParams = [])

Perform maintenance on a subset of nodes in the node group.

setIamPolicy(string $project, string $zone, string $resource, ZoneSetPolicyRequest $postBody, array $optParams = [])

Sets the access control policy on the specified resource. Replaces any existing policy. (nodeGroups.setIamPolicy)

setNodeTemplate(string $project, string $zone, string $nodeGroup, NodeGroupsSetNodeTemplateRequest $postBody, array $optParams = [])

Updates the node template of the node group. (nodeGroups.setNodeTemplate)

simulateMaintenanceEvent(string $project, string $zone, string $nodeGroup, NodeGroupsSimulateMaintenanceEventRequest $postBody, array $optParams = [])

Simulates maintenance event on specified nodes from the node group.

testIamPermissions(string $project, string $zone, string $resource, TestPermissionsRequest $postBody, array $optParams = [])

Returns permissions that a caller has on the specified resource.

Details

Operation addNodes(string $project, string $zone, string $nodeGroup, NodeGroupsAddNodesRequest $postBody, array $optParams = [])

Adds specified number of nodes to the node group. (nodeGroups.addNodes)

Parameters

string $project

Project ID for this request.

string $zone

The name of the zone for this request.

string $nodeGroup

Name of the NodeGroup resource.

NodeGroupsAddNodesRequest $postBody
array $optParams

Optional parameters.

Return Value

Operation

Exceptions

Exception

NodeGroupAggregatedList aggregatedList(string $project, array $optParams = [])

Retrieves an aggregated list of node groups. Note: use nodeGroups.listNodes for more details about each group. To prevent failure, Google recommends that you set the returnPartialSuccess parameter to true.

(nodeGroups.aggregatedList)

Parameters

string $project

Project ID for this request.

array $optParams

Optional parameters.

Return Value

NodeGroupAggregatedList

Exceptions

Exception

Operation delete(string $project, string $zone, string $nodeGroup, array $optParams = [])

Deletes the specified NodeGroup resource. (nodeGroups.delete)

Parameters

string $project

Project ID for this request.

string $zone

The name of the zone for this request.

string $nodeGroup

Name of the NodeGroup resource to delete.

array $optParams

Optional parameters.

Return Value

Operation

Exceptions

Exception

Operation deleteNodes(string $project, string $zone, string $nodeGroup, NodeGroupsDeleteNodesRequest $postBody, array $optParams = [])

Deletes specified nodes from the node group. (nodeGroups.deleteNodes)

Parameters

string $project

Project ID for this request.

string $zone

The name of the zone for this request.

string $nodeGroup

Name of the NodeGroup resource whose nodes will be deleted.

NodeGroupsDeleteNodesRequest $postBody
array $optParams

Optional parameters.

Return Value

Operation

Exceptions

Exception

NodeGroup get(string $project, string $zone, string $nodeGroup, array $optParams = [])

Returns the specified NodeGroup. Get a list of available NodeGroups by making a list() request. Note: the "nodes" field should not be used. Use nodeGroups.listNodes instead. (nodeGroups.get)

Parameters

string $project

Project ID for this request.

string $zone

The name of the zone for this request.

string $nodeGroup

Name of the node group to return.

array $optParams

Optional parameters.

Return Value

NodeGroup

Exceptions

Exception

Policy getIamPolicy(string $project, string $zone, string $resource, array $optParams = [])

Gets the access control policy for a resource. May be empty if no such policy or resource exists. (nodeGroups.getIamPolicy)

Parameters

string $project

Project ID for this request.

string $zone

The name of the zone for this request.

string $resource

Name or id of the resource for this request.

array $optParams

Optional parameters.

Return Value

Policy

Exceptions

Exception

Operation insert(string $project, string $zone, int $initialNodeCount, NodeGroup $postBody, array $optParams = [])

Creates a NodeGroup resource in the specified project using the data included in the request. (nodeGroups.insert)

Parameters

string $project

Project ID for this request.

string $zone

The name of the zone for this request.

int $initialNodeCount

Initial count of nodes in the node group.

NodeGroup $postBody
array $optParams

Optional parameters.

Return Value

Operation

Exceptions

Exception

NodeGroupList listNodeGroups(string $project, string $zone, array $optParams = [])

Retrieves a list of node groups available to the specified project. Note: use nodeGroups.listNodes for more details about each group.

(nodeGroups.listNodeGroups)

Parameters

string $project

Project ID for this request.

string $zone

The name of the zone for this request.

array $optParams

Optional parameters.

Return Value

NodeGroupList

Exceptions

Exception

NodeGroupsListNodes listNodes(string $project, string $zone, string $nodeGroup, array $optParams = [])

Lists nodes in the node group. (nodeGroups.listNodes)

Parameters

string $project

Project ID for this request.

string $zone

The name of the zone for this request.

string $nodeGroup

Name of the NodeGroup resource whose nodes you want to list.

array $optParams

Optional parameters.

Return Value

NodeGroupsListNodes

Exceptions

Exception

Operation patch(string $project, string $zone, string $nodeGroup, NodeGroup $postBody, array $optParams = [])

Updates the specified node group. (nodeGroups.patch)

Parameters

string $project

Project ID for this request.

string $zone

The name of the zone for this request.

string $nodeGroup

Name of the NodeGroup resource to update.

NodeGroup $postBody
array $optParams

Optional parameters.

Return Value

Operation

Exceptions

Exception

Operation performMaintenance(string $project, string $zone, string $nodeGroup, NodeGroupsPerformMaintenanceRequest $postBody, array $optParams = [])

Perform maintenance on a subset of nodes in the node group.

(nodeGroups.performMaintenance)

Parameters

string $project

Project ID for this request.

string $zone

The name of the zone for this request.

string $nodeGroup

Name of the node group scoping this request.

NodeGroupsPerformMaintenanceRequest $postBody
array $optParams

Optional parameters.

Return Value

Operation

Exceptions

Exception

Policy setIamPolicy(string $project, string $zone, string $resource, ZoneSetPolicyRequest $postBody, array $optParams = [])

Sets the access control policy on the specified resource. Replaces any existing policy. (nodeGroups.setIamPolicy)

Parameters

string $project

Project ID for this request.

string $zone

The name of the zone for this request.

string $resource

Name or id of the resource for this request.

ZoneSetPolicyRequest $postBody
array $optParams

Optional parameters.

Return Value

Policy

Exceptions

Exception

Operation setNodeTemplate(string $project, string $zone, string $nodeGroup, NodeGroupsSetNodeTemplateRequest $postBody, array $optParams = [])

Updates the node template of the node group. (nodeGroups.setNodeTemplate)

Parameters

string $project

Project ID for this request.

string $zone

The name of the zone for this request.

string $nodeGroup

Name of the NodeGroup resource to update.

NodeGroupsSetNodeTemplateRequest $postBody
array $optParams

Optional parameters.

Return Value

Operation

Exceptions

Exception

Operation simulateMaintenanceEvent(string $project, string $zone, string $nodeGroup, NodeGroupsSimulateMaintenanceEventRequest $postBody, array $optParams = [])

Simulates maintenance event on specified nodes from the node group.

(nodeGroups.simulateMaintenanceEvent)

Parameters

string $project

Project ID for this request.

string $zone

The name of the zone for this request.

string $nodeGroup

Name of the NodeGroup resource whose nodes will go under maintenance simulation.

NodeGroupsSimulateMaintenanceEventRequest $postBody
array $optParams

Optional parameters.

Return Value

Operation

Exceptions

Exception

TestPermissionsResponse testIamPermissions(string $project, string $zone, string $resource, TestPermissionsRequest $postBody, array $optParams = [])

Returns permissions that a caller has on the specified resource.

(nodeGroups.testIamPermissions)

Parameters

string $project

Project ID for this request.

string $zone

The name of the zone for this request.

string $resource

Name or id of the resource for this request.

TestPermissionsRequest $postBody
array $optParams

Optional parameters.

Return Value

TestPermissionsResponse

Exceptions

Exception