class NodeTemplates extends Resource (View source)

The "nodeTemplates" collection of methods.

Typical usage is:

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

Methods

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

Retrieves an aggregated list of node templates. To prevent failure, Google recommends that you set the returnPartialSuccess parameter to true.

delete(string $project, string $region, string $nodeTemplate, array $optParams = [])

Deletes the specified NodeTemplate resource. (nodeTemplates.delete)

get(string $project, string $region, string $nodeTemplate, array $optParams = [])

Returns the specified node template. (nodeTemplates.get)

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

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

insert(string $project, string $region, NodeTemplate $postBody, array $optParams = [])

Creates a NodeTemplate resource in the specified project using the data included in the request. (nodeTemplates.insert)

listNodeTemplates(string $project, string $region, array $optParams = [])

Retrieves a list of node templates available to the specified project.

setIamPolicy(string $project, string $region, string $resource, RegionSetPolicyRequest $postBody, array $optParams = [])

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

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

Returns permissions that a caller has on the specified resource.

Details

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

Retrieves an aggregated list of node templates. To prevent failure, Google recommends that you set the returnPartialSuccess parameter to true.

(nodeTemplates.aggregatedList)

Parameters

string $project

Project ID for this request.

array $optParams

Optional parameters.

Return Value

NodeTemplateAggregatedList

Exceptions

Exception

Operation delete(string $project, string $region, string $nodeTemplate, array $optParams = [])

Deletes the specified NodeTemplate resource. (nodeTemplates.delete)

Parameters

string $project

Project ID for this request.

string $region

The name of the region for this request.

string $nodeTemplate

Name of the NodeTemplate resource to delete.

array $optParams

Optional parameters.

Return Value

Operation

Exceptions

Exception

NodeTemplate get(string $project, string $region, string $nodeTemplate, array $optParams = [])

Returns the specified node template. (nodeTemplates.get)

Parameters

string $project

Project ID for this request.

string $region

The name of the region for this request.

string $nodeTemplate

Name of the node template to return.

array $optParams

Optional parameters.

Return Value

NodeTemplate

Exceptions

Exception

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

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

Parameters

string $project

Project ID for this request.

string $region

The name of the region 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 $region, NodeTemplate $postBody, array $optParams = [])

Creates a NodeTemplate resource in the specified project using the data included in the request. (nodeTemplates.insert)

Parameters

string $project

Project ID for this request.

string $region

The name of the region for this request.

NodeTemplate $postBody
array $optParams

Optional parameters.

Return Value

Operation

Exceptions

Exception

NodeTemplateList listNodeTemplates(string $project, string $region, array $optParams = [])

Retrieves a list of node templates available to the specified project.

(nodeTemplates.listNodeTemplates)

Parameters

string $project

Project ID for this request.

string $region

The name of the region for this request.

array $optParams

Optional parameters.

Return Value

NodeTemplateList

Exceptions

Exception

Policy setIamPolicy(string $project, string $region, string $resource, RegionSetPolicyRequest $postBody, array $optParams = [])

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

Parameters

string $project

Project ID for this request.

string $region

The name of the region for this request.

string $resource

Name or id of the resource for this request.

RegionSetPolicyRequest $postBody
array $optParams

Optional parameters.

Return Value

Policy

Exceptions

Exception

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

Returns permissions that a caller has on the specified resource.

(nodeTemplates.testIamPermissions)

Parameters

string $project

Project ID for this request.

string $region

The name of the region 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