class RegionInstanceTemplates extends Resource (View source)

The "regionInstanceTemplates" collection of methods.

Typical usage is:

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

Methods

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

Deletes the specified instance template. Deleting an instance template is permanent and cannot be undone. (regionInstanceTemplates.delete)

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

Returns the specified instance template. (regionInstanceTemplates.get)

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

Creates an instance template in the specified project and region using the global instance template whose URL is included in the request.

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

Retrieves a list of instance templates that are contained within the specified project and region.

Details

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

Deletes the specified instance template. Deleting an instance template is permanent and cannot be undone. (regionInstanceTemplates.delete)

Parameters

string $project

Project ID for this request.

string $region

The name of the region for this request.

string $instanceTemplate

The name of the instance template to delete.

array $optParams

Optional parameters.

Return Value

Operation

Exceptions

Exception

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

Returns the specified instance template. (regionInstanceTemplates.get)

Parameters

string $project

Project ID for this request.

string $region

The name of the region for this request.

string $instanceTemplate

The name of the instance template.

array $optParams

Optional parameters.

Return Value

InstanceTemplate

Exceptions

Exception

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

Creates an instance template in the specified project and region using the global instance template whose URL is included in the request.

(regionInstanceTemplates.insert)

Parameters

string $project

Project ID for this request.

string $region

The name of the region for this request.

InstanceTemplate $postBody
array $optParams

Optional parameters.

Return Value

Operation

Exceptions

Exception

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

Retrieves a list of instance templates that are contained within the specified project and region.

(regionInstanceTemplates.listRegionInstanceTemplates)

Parameters

string $project

Project ID for this request.

string $region

The name of the regions for this request.

array $optParams

Optional parameters.

Return Value

InstanceTemplateList

Exceptions

Exception