Class NodeTemplatesResource
The "nodeTemplates" collection of methods.
Inheritance
Inherited Members
Namespace: Google.Apis.Compute.v1
Assembly: Google.Apis.Compute.v1.dll
Syntax
public class NodeTemplatesResource
Constructors
NodeTemplatesResource(IClientService)
Constructs a new resource.
Declaration
public NodeTemplatesResource(IClientService service)
Parameters
| Type | Name | Description |
|---|---|---|
| IClientService | service |
Methods
AggregatedList(String)
Retrieves an aggregated list of node templates.
Declaration
public virtual NodeTemplatesResource.AggregatedListRequest AggregatedList(string project)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | project | Project ID for this request. |
Returns
| Type | Description |
|---|---|
| NodeTemplatesResource.AggregatedListRequest |
Delete(String, String, String)
Deletes the specified NodeTemplate resource.
Declaration
public virtual NodeTemplatesResource.DeleteRequest Delete(string project, string region, string nodeTemplate)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | project | Project ID for this request. |
| System.String | region | The name of the region for this request. |
| System.String | nodeTemplate | Name of the NodeTemplate resource to delete. |
Returns
| Type | Description |
|---|---|
| NodeTemplatesResource.DeleteRequest |
Get(String, String, String)
Returns the specified node template. Gets a list of available node templates by making a list() request.
Declaration
public virtual NodeTemplatesResource.GetRequest Get(string project, string region, string nodeTemplate)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | project | Project ID for this request. |
| System.String | region | The name of the region for this request. |
| System.String | nodeTemplate | Name of the node template to return. |
Returns
| Type | Description |
|---|---|
| NodeTemplatesResource.GetRequest |
GetIamPolicy(String, String, String)
Gets the access control policy for a resource. May be empty if no such policy or resource exists.
Declaration
public virtual NodeTemplatesResource.GetIamPolicyRequest GetIamPolicy(string project, string region, string resource)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | project | Project ID for this request. |
| System.String | region | The name of the region for this request. |
| System.String | resource | Name or id of the resource for this request. |
Returns
| Type | Description |
|---|---|
| NodeTemplatesResource.GetIamPolicyRequest |
Insert(NodeTemplate, String, String)
Creates a NodeTemplate resource in the specified project using the data included in the request.
Declaration
public virtual NodeTemplatesResource.InsertRequest Insert(NodeTemplate body, string project, string region)
Parameters
| Type | Name | Description |
|---|---|---|
| NodeTemplate | body | The body of the request. |
| System.String | project | Project ID for this request. |
| System.String | region | The name of the region for this request. |
Returns
| Type | Description |
|---|---|
| NodeTemplatesResource.InsertRequest |
List(String, String)
Retrieves a list of node templates available to the specified project.
Declaration
public virtual NodeTemplatesResource.ListRequest List(string project, string region)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | project | Project ID for this request. |
| System.String | region | The name of the region for this request. |
Returns
| Type | Description |
|---|---|
| NodeTemplatesResource.ListRequest |
SetIamPolicy(RegionSetPolicyRequest, String, String, String)
Sets the access control policy on the specified resource. Replaces any existing policy.
Declaration
public virtual NodeTemplatesResource.SetIamPolicyRequest SetIamPolicy(RegionSetPolicyRequest body, string project, string region, string resource)
Parameters
| Type | Name | Description |
|---|---|---|
| RegionSetPolicyRequest | body | The body of the request. |
| System.String | project | Project ID for this request. |
| System.String | region | The name of the region for this request. |
| System.String | resource | Name or id of the resource for this request. |
Returns
| Type | Description |
|---|---|
| NodeTemplatesResource.SetIamPolicyRequest |
TestIamPermissions(TestPermissionsRequest, String, String, String)
Returns permissions that a caller has on the specified resource.
Declaration
public virtual NodeTemplatesResource.TestIamPermissionsRequest TestIamPermissions(TestPermissionsRequest body, string project, string region, string resource)
Parameters
| Type | Name | Description |
|---|---|---|
| TestPermissionsRequest | body | The body of the request. |
| System.String | project | Project ID for this request. |
| System.String | region | The name of the region for this request. |
| System.String | resource | Name or id of the resource for this request. |
Returns
| Type | Description |
|---|---|
| NodeTemplatesResource.TestIamPermissionsRequest |