NodeGroups
class NodeGroups extends Resource (View source)
The "nodeGroups" collection of methods.
Typical usage is:
$computeService = new Google\Service\Compute(...);
$nodeGroups = $computeService->nodeGroups;
Methods
Adds specified number of nodes to the node group. (nodeGroups.addNodes)
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
.
Deletes the specified NodeGroup resource. (nodeGroups.delete)
Deletes specified nodes from the node group. (nodeGroups.deleteNodes)
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)
Gets the access control policy for a resource. May be empty if no such policy or resource exists. (nodeGroups.getIamPolicy)
Retrieves a list of node groups available to the specified project. Note: use nodeGroups.listNodes for more details about each group.
Lists nodes in the node group. (nodeGroups.listNodes)
Perform maintenance on a subset of nodes in the node group.
Sets the access control policy on the specified resource. Replaces any existing policy. (nodeGroups.setIamPolicy)
Updates the node template of the node group. (nodeGroups.setNodeTemplate)
Simulates maintenance event on specified nodes from the node group.
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)
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)
Operation
delete(string $project, string $zone, string $nodeGroup, array $optParams = [])
Deletes the specified NodeGroup resource. (nodeGroups.delete)
Operation
deleteNodes(string $project, string $zone, string $nodeGroup, NodeGroupsDeleteNodesRequest $postBody, array $optParams = [])
Deletes specified nodes from the node group. (nodeGroups.deleteNodes)
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)
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)
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)
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)
NodeGroupsListNodes
listNodes(string $project, string $zone, string $nodeGroup, array $optParams = [])
Lists nodes in the node group. (nodeGroups.listNodes)
Operation
patch(string $project, string $zone, string $nodeGroup, NodeGroup $postBody, array $optParams = [])
Updates the specified node group. (nodeGroups.patch)
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)
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)
Operation
setNodeTemplate(string $project, string $zone, string $nodeGroup, NodeGroupsSetNodeTemplateRequest $postBody, array $optParams = [])
Updates the node template of the node group. (nodeGroups.setNodeTemplate)
Operation
simulateMaintenanceEvent(string $project, string $zone, string $nodeGroup, NodeGroupsSimulateMaintenanceEventRequest $postBody, array $optParams = [])
Simulates maintenance event on specified nodes from the node group.
(nodeGroups.simulateMaintenanceEvent)
TestPermissionsResponse
testIamPermissions(string $project, string $zone, string $resource, TestPermissionsRequest $postBody, array $optParams = [])
Returns permissions that a caller has on the specified resource.
(nodeGroups.testIamPermissions)