Google_Service_Compute_Resource_NodeGroups
extends Google_Service_Resource
in package
The "nodeGroups" collection of methods.
Typical usage is:
$computeService = new Google_Service_Compute(...);
$nodeGroups = $computeService->nodeGroups;
Table of Contents
- $client : Google_Client
- $methods : array<string|int, mixed>
- $resourceName : string
- $rootUrl : string
- $serviceName : string
- $servicePath : string
- $stackParameters : mixed
- __construct() : mixed
- addNodes() : Google_Service_Compute_Operation
- Adds specified number of nodes to the node group. (nodeGroups.addNodes)
- aggregatedList() : Google_Service_Compute_NodeGroupAggregatedList
- Retrieves an aggregated list of node groups. Note: use nodeGroups.listNodes for more details about each group. (nodeGroups.aggregatedList)
- call() : Google_Http_Request|expectedClass
- TODO: This function needs simplifying.
- createRequestUri() : string
- Parse/expand request parameters and create a fully qualified request uri.
- delete() : Google_Service_Compute_Operation
- Deletes the specified NodeGroup resource. (nodeGroups.delete)
- deleteNodes() : Google_Service_Compute_Operation
- Deletes specified nodes from the node group. (nodeGroups.deleteNodes)
- get() : Google_Service_Compute_NodeGroup
- 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() : Google_Service_Compute_Policy
- Gets the access control policy for a resource. May be empty if no such policy or resource exists. (nodeGroups.getIamPolicy)
- insert() : Google_Service_Compute_Operation
- Creates a NodeGroup resource in the specified project using the data included in the request. (nodeGroups.insert)
- listNodeGroups() : Google_Service_Compute_NodeGroupList
- Retrieves a list of node groups available to the specified project. Note: use nodeGroups.listNodes for more details about each group.
- listNodes() : Google_Service_Compute_NodeGroupsListNodes
- Lists nodes in the node group. (nodeGroups.listNodes)
- patch() : Google_Service_Compute_Operation
- Updates the specified node group. (nodeGroups.patch)
- setIamPolicy() : Google_Service_Compute_Policy
- Sets the access control policy on the specified resource. Replaces any existing policy. (nodeGroups.setIamPolicy)
- setNodeTemplate() : Google_Service_Compute_Operation
- Updates the node template of the node group. (nodeGroups.setNodeTemplate)
- testIamPermissions() : Google_Service_Compute_TestPermissionsResponse
- Returns permissions that a caller has on the specified resource.
- convertToArrayAndStripNulls() : mixed
Properties
$client
private
Google_Client
$client
$methods
private
array<string|int, mixed>
$methods
$resourceName
private
string
$resourceName
$rootUrl
private
string
$rootUrl
$serviceName
private
string
$serviceName
$servicePath
private
string
$servicePath
$stackParameters
private
mixed
$stackParameters
= array('alt' => array('type' => 'string', 'location' => 'query'), 'fields' => array('type' => 'string', 'location' => 'query'), 'trace' => array('type' => 'string', 'location' => 'query'), 'userIp' => array('type' => 'string', 'location' => 'query'), 'quotaUser' => array('type' => 'string', 'location' => 'query'), 'data' => array('type' => 'string', 'location' => 'body'), 'mimeType' => array('type' => 'string', 'location' => 'header'), 'uploadType' => array('type' => 'string', 'location' => 'query'), 'mediaUpload' => array('type' => 'complex', 'location' => 'query'), 'prettyPrint' => array('type' => 'string', 'location' => 'query'))
Methods
__construct()
public
__construct(mixed $service, mixed $serviceName, mixed $resourceName, mixed $resource) : mixed
Parameters
- $service : mixed
- $serviceName : mixed
- $resourceName : mixed
- $resource : mixed
Return values
mixed —addNodes()
Adds specified number of nodes to the node group. (nodeGroups.addNodes)
public
addNodes(string $project, string $zone, string $nodeGroup, Google_Service_Compute_NodeGroupsAddNodesRequest $postBody[, array<string|int, mixed> $optParams = array() ]) : Google_Service_Compute_Operation
Parameters
- $project : string
-
Project ID for this request.
- $zone : string
-
The name of the zone for this request.
- $nodeGroup : string
-
Name of the NodeGroup resource.
- $postBody : Google_Service_Compute_NodeGroupsAddNodesRequest
- $optParams : array<string|int, mixed> = array()
-
Optional parameters.
Tags
Return values
Google_Service_Compute_Operation —aggregatedList()
Retrieves an aggregated list of node groups. Note: use nodeGroups.listNodes for more details about each group. (nodeGroups.aggregatedList)
public
aggregatedList(string $project[, array<string|int, mixed> $optParams = array() ]) : Google_Service_Compute_NodeGroupAggregatedList
Parameters
- $project : string
-
Project ID for this request.
- $optParams : array<string|int, mixed> = array()
-
Optional parameters.
Tags
Return values
Google_Service_Compute_NodeGroupAggregatedList —call()
TODO: This function needs simplifying.
public
call( $name, $arguments[, $expectedClass = null ]) : Google_Http_Request|expectedClass
Parameters
Tags
Return values
Google_Http_Request|expectedClass —createRequestUri()
Parse/expand request parameters and create a fully qualified request uri.
public
createRequestUri(string $restPath, array<string|int, mixed> $params) : string
Parameters
- $restPath : string
- $params : array<string|int, mixed>
Tags
Return values
string —$requestUrl
delete()
Deletes the specified NodeGroup resource. (nodeGroups.delete)
public
delete(string $project, string $zone, string $nodeGroup[, array<string|int, mixed> $optParams = array() ]) : Google_Service_Compute_Operation
Parameters
- $project : string
-
Project ID for this request.
- $zone : string
-
The name of the zone for this request.
- $nodeGroup : string
-
Name of the NodeGroup resource to delete.
- $optParams : array<string|int, mixed> = array()
-
Optional parameters.
Tags
Return values
Google_Service_Compute_Operation —deleteNodes()
Deletes specified nodes from the node group. (nodeGroups.deleteNodes)
public
deleteNodes(string $project, string $zone, string $nodeGroup, Google_Service_Compute_NodeGroupsDeleteNodesRequest $postBody[, array<string|int, mixed> $optParams = array() ]) : Google_Service_Compute_Operation
Parameters
- $project : string
-
Project ID for this request.
- $zone : string
-
The name of the zone for this request.
- $nodeGroup : string
-
Name of the NodeGroup resource whose nodes will be deleted.
- $postBody : Google_Service_Compute_NodeGroupsDeleteNodesRequest
- $optParams : array<string|int, mixed> = array()
-
Optional parameters.
Tags
Return values
Google_Service_Compute_Operation —get()
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)
public
get(string $project, string $zone, string $nodeGroup[, array<string|int, mixed> $optParams = array() ]) : Google_Service_Compute_NodeGroup
Parameters
- $project : string
-
Project ID for this request.
- $zone : string
-
The name of the zone for this request.
- $nodeGroup : string
-
Name of the node group to return.
- $optParams : array<string|int, mixed> = array()
-
Optional parameters.
Return values
Google_Service_Compute_NodeGroup —getIamPolicy()
Gets the access control policy for a resource. May be empty if no such policy or resource exists. (nodeGroups.getIamPolicy)
public
getIamPolicy(string $project, string $zone, string $resource[, array<string|int, mixed> $optParams = array() ]) : Google_Service_Compute_Policy
Parameters
- $project : string
-
Project ID for this request.
- $zone : string
-
The name of the zone for this request.
- $resource : string
-
Name or id of the resource for this request.
- $optParams : array<string|int, mixed> = array()
-
Optional parameters.
Tags
Return values
Google_Service_Compute_Policy —insert()
Creates a NodeGroup resource in the specified project using the data included in the request. (nodeGroups.insert)
public
insert(string $project, string $zone, int $initialNodeCount, Google_Service_Compute_NodeGroup $postBody[, array<string|int, mixed> $optParams = array() ]) : Google_Service_Compute_Operation
Parameters
- $project : string
-
Project ID for this request.
- $zone : string
-
The name of the zone for this request.
- $initialNodeCount : int
-
Initial count of nodes in the node group.
- $postBody : Google_Service_Compute_NodeGroup
- $optParams : array<string|int, mixed> = array()
-
Optional parameters.
Tags
Return values
Google_Service_Compute_Operation —listNodeGroups()
Retrieves a list of node groups available to the specified project. Note: use nodeGroups.listNodes for more details about each group.
public
listNodeGroups(string $project, string $zone[, array<string|int, mixed> $optParams = array() ]) : Google_Service_Compute_NodeGroupList
(nodeGroups.listNodeGroups)
Parameters
- $project : string
-
Project ID for this request.
- $zone : string
-
The name of the zone for this request.
- $optParams : array<string|int, mixed> = array()
-
Optional parameters.
Tags
Return values
Google_Service_Compute_NodeGroupList —listNodes()
Lists nodes in the node group. (nodeGroups.listNodes)
public
listNodes(string $project, string $zone, string $nodeGroup[, array<string|int, mixed> $optParams = array() ]) : Google_Service_Compute_NodeGroupsListNodes
Parameters
- $project : string
-
Project ID for this request.
- $zone : string
-
The name of the zone for this request.
- $nodeGroup : string
-
Name of the NodeGroup resource whose nodes you want to list.
- $optParams : array<string|int, mixed> = array()
-
Optional parameters.
Tags
Return values
Google_Service_Compute_NodeGroupsListNodes —patch()
Updates the specified node group. (nodeGroups.patch)
public
patch(string $project, string $zone, string $nodeGroup, Google_Service_Compute_NodeGroup $postBody[, array<string|int, mixed> $optParams = array() ]) : Google_Service_Compute_Operation
Parameters
- $project : string
-
Project ID for this request.
- $zone : string
-
The name of the zone for this request.
- $nodeGroup : string
-
Name of the NodeGroup resource to update.
- $postBody : Google_Service_Compute_NodeGroup
- $optParams : array<string|int, mixed> = array()
-
Optional parameters.
Tags
Return values
Google_Service_Compute_Operation —setIamPolicy()
Sets the access control policy on the specified resource. Replaces any existing policy. (nodeGroups.setIamPolicy)
public
setIamPolicy(string $project, string $zone, string $resource, Google_Service_Compute_ZoneSetPolicyRequest $postBody[, array<string|int, mixed> $optParams = array() ]) : Google_Service_Compute_Policy
Parameters
- $project : string
-
Project ID for this request.
- $zone : string
-
The name of the zone for this request.
- $resource : string
-
Name or id of the resource for this request.
- $postBody : Google_Service_Compute_ZoneSetPolicyRequest
- $optParams : array<string|int, mixed> = array()
-
Optional parameters.
Return values
Google_Service_Compute_Policy —setNodeTemplate()
Updates the node template of the node group. (nodeGroups.setNodeTemplate)
public
setNodeTemplate(string $project, string $zone, string $nodeGroup, Google_Service_Compute_NodeGroupsSetNodeTemplateRequest $postBody[, array<string|int, mixed> $optParams = array() ]) : Google_Service_Compute_Operation
Parameters
- $project : string
-
Project ID for this request.
- $zone : string
-
The name of the zone for this request.
- $nodeGroup : string
-
Name of the NodeGroup resource to update.
- $postBody : Google_Service_Compute_NodeGroupsSetNodeTemplateRequest
- $optParams : array<string|int, mixed> = array()
-
Optional parameters.
Tags
Return values
Google_Service_Compute_Operation —testIamPermissions()
Returns permissions that a caller has on the specified resource.
public
testIamPermissions(string $project, string $zone, string $resource, Google_Service_Compute_TestPermissionsRequest $postBody[, array<string|int, mixed> $optParams = array() ]) : Google_Service_Compute_TestPermissionsResponse
(nodeGroups.testIamPermissions)
Parameters
- $project : string
-
Project ID for this request.
- $zone : string
-
The name of the zone for this request.
- $resource : string
-
Name or id of the resource for this request.
- $postBody : Google_Service_Compute_TestPermissionsRequest
- $optParams : array<string|int, mixed> = array()
-
Optional parameters.
Return values
Google_Service_Compute_TestPermissionsResponse —convertToArrayAndStripNulls()
protected
convertToArrayAndStripNulls(mixed $o) : mixed
Parameters
- $o : mixed