Class RegionInstanceTemplatesResource
The "regionInstanceTemplates" collection of methods.
Inherited Members
Namespace: Google.Apis.Compute.beta
Assembly: Google.Apis.Compute.beta.dll
Syntax
public class RegionInstanceTemplatesResource
Constructors
RegionInstanceTemplatesResource(IClientService)
Constructs a new resource.
Declaration
public RegionInstanceTemplatesResource(IClientService service)
Parameters
Type | Name | Description |
---|---|---|
IClientService | service |
Methods
Delete(string, string, string)
Deletes the specified instance template. Deleting an instance template is permanent and cannot be undone.
Declaration
public virtual RegionInstanceTemplatesResource.DeleteRequest Delete(string project, string region, string instanceTemplate)
Parameters
Type | Name | Description |
---|---|---|
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. |
Returns
Type | Description |
---|---|
RegionInstanceTemplatesResource.DeleteRequest |
Get(string, string, string)
Returns the specified instance template.
Declaration
public virtual RegionInstanceTemplatesResource.GetRequest Get(string project, string region, string instanceTemplate)
Parameters
Type | Name | Description |
---|---|---|
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. |
Returns
Type | Description |
---|---|
RegionInstanceTemplatesResource.GetRequest |
Insert(InstanceTemplate, string, string)
Creates an instance template in the specified project and region using the global instance template whose URL is included in the request.
Declaration
public virtual RegionInstanceTemplatesResource.InsertRequest Insert(InstanceTemplate body, string project, string region)
Parameters
Type | Name | Description |
---|---|---|
InstanceTemplate | body | The body of the request. |
string | project | Project ID for this request. |
string | region | The name of the region for this request. |
Returns
Type | Description |
---|---|
RegionInstanceTemplatesResource.InsertRequest |
List(string, string)
Retrieves a list of instance templates that are contained within the specified project and region.
Declaration
public virtual RegionInstanceTemplatesResource.ListRequest List(string project, string region)
Parameters
Type | Name | Description |
---|---|---|
string | project | Project ID for this request. |
string | region | The name of the regions for this request. |
Returns
Type | Description |
---|---|
RegionInstanceTemplatesResource.ListRequest |