Class NodeTemplatesResource
The "nodeTemplates" collection of methods.
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. To prevent failure, Google recommends that you set the
returnPartialSuccess
parameter to true
.
Declaration
public virtual NodeTemplatesResource.AggregatedListRequest AggregatedList(string project)
Parameters
Type | Name | Description |
---|---|---|
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 |
---|---|---|
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. |
Returns
Type | Description |
---|---|
NodeTemplatesResource.DeleteRequest |
Get(string, string, string)
Returns the specified node template.
Declaration
public virtual NodeTemplatesResource.GetRequest Get(string project, string region, string nodeTemplate)
Parameters
Type | Name | Description |
---|---|---|
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. |
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 |
---|---|---|
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. |
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. |
string | project | Project ID for this request. |
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 |
---|---|---|
string | project | Project ID for this request. |
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. |
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. |
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. |
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. |
Returns
Type | Description |
---|---|
NodeTemplatesResource.TestIamPermissionsRequest |