Class NodeGroupsResource
The "nodeGroups" collection of methods.
Inherited Members
Namespace: Google.Apis.Compute.beta
Assembly: Google.Apis.Compute.beta.dll
Syntax
public class NodeGroupsResource
Constructors
NodeGroupsResource(IClientService)
Constructs a new resource.
Declaration
public NodeGroupsResource(IClientService service)
Parameters
| Type | Name | Description |
|---|---|---|
| IClientService | service |
Methods
AddNodes(NodeGroupsAddNodesRequest, string, string, string)
Adds specified number of nodes to the node group.
Declaration
public virtual NodeGroupsResource.AddNodesRequest AddNodes(NodeGroupsAddNodesRequest body, string project, string zone, string nodeGroup)
Parameters
| Type | Name | Description |
|---|---|---|
| NodeGroupsAddNodesRequest | body | The body of the request. |
| string | project | Project ID for this request. |
| string | zone | The name of the zone for this request. |
| string | nodeGroup | Name of the NodeGroup resource. |
Returns
| Type | Description |
|---|---|
| NodeGroupsResource.AddNodesRequest |
AggregatedList(string)
Retrieves an aggregated list of node groups. Note: use nodeGroups.listNodes for more details about each
group. To prevent failure, Google recommends that you set the returnPartialSuccess parameter to true.
Declaration
public virtual NodeGroupsResource.AggregatedListRequest AggregatedList(string project)
Parameters
| Type | Name | Description |
|---|---|---|
| string | project | Project ID for this request. |
Returns
| Type | Description |
|---|---|
| NodeGroupsResource.AggregatedListRequest |
Delete(string, string, string)
Deletes the specified NodeGroup resource.
Declaration
public virtual NodeGroupsResource.DeleteRequest Delete(string project, string zone, string nodeGroup)
Parameters
| Type | Name | Description |
|---|---|---|
| string | project | Project ID for this request. |
| string | zone | The name of the zone for this request. |
| string | nodeGroup | Name of the NodeGroup resource to delete. |
Returns
| Type | Description |
|---|---|
| NodeGroupsResource.DeleteRequest |
DeleteNodes(NodeGroupsDeleteNodesRequest, string, string, string)
Deletes specified nodes from the node group.
Declaration
public virtual NodeGroupsResource.DeleteNodesRequest DeleteNodes(NodeGroupsDeleteNodesRequest body, string project, string zone, string nodeGroup)
Parameters
| Type | Name | Description |
|---|---|---|
| NodeGroupsDeleteNodesRequest | body | The body of the request. |
| string | project | Project ID for this request. |
| string | zone | The name of the zone for this request. |
| string | nodeGroup | Name of the NodeGroup resource whose nodes will be deleted. |
Returns
| Type | Description |
|---|---|
| NodeGroupsResource.DeleteNodesRequest |
Get(string, string, string)
Returns the specified NodeGroup. Get a list of available NodeGroups by making a list() request. Note: the "nodes" field should not be used. Use nodeGroups.listNodes instead.
Declaration
public virtual NodeGroupsResource.GetRequest Get(string project, string zone, string nodeGroup)
Parameters
| Type | Name | Description |
|---|---|---|
| string | project | Project ID for this request. |
| string | zone | The name of the zone for this request. |
| string | nodeGroup | Name of the node group to return. |
Returns
| Type | Description |
|---|---|
| NodeGroupsResource.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 NodeGroupsResource.GetIamPolicyRequest GetIamPolicy(string project, string zone, string resource)
Parameters
| Type | Name | Description |
|---|---|---|
| string | project | Project ID for this request. |
| string | zone | The name of the zone for this request. |
| string | resource | Name or id of the resource for this request. |
Returns
| Type | Description |
|---|---|
| NodeGroupsResource.GetIamPolicyRequest |
Insert(NodeGroup, string, string, int)
Creates a NodeGroup resource in the specified project using the data included in the request.
Declaration
public virtual NodeGroupsResource.InsertRequest Insert(NodeGroup body, string project, string zone, int initialNodeCount)
Parameters
| Type | Name | Description |
|---|---|---|
| NodeGroup | body | The body of the request. |
| string | project | Project ID for this request. |
| string | zone | The name of the zone for this request. |
| int | initialNodeCount | Initial count of nodes in the node group. |
Returns
| Type | Description |
|---|---|
| NodeGroupsResource.InsertRequest |
List(string, string)
Retrieves a list of node groups available to the specified project. Note: use nodeGroups.listNodes for more details about each group.
Declaration
public virtual NodeGroupsResource.ListRequest List(string project, string zone)
Parameters
| Type | Name | Description |
|---|---|---|
| string | project | Project ID for this request. |
| string | zone | The name of the zone for this request. |
Returns
| Type | Description |
|---|---|
| NodeGroupsResource.ListRequest |
ListNodes(string, string, string)
Lists nodes in the node group.
Declaration
public virtual NodeGroupsResource.ListNodesRequest ListNodes(string project, string zone, string nodeGroup)
Parameters
| Type | Name | Description |
|---|---|---|
| string | project | Project ID for this request. |
| string | zone | The name of the zone for this request. |
| string | nodeGroup | Name of the NodeGroup resource whose nodes you want to list. |
Returns
| Type | Description |
|---|---|
| NodeGroupsResource.ListNodesRequest |
Patch(NodeGroup, string, string, string)
Updates the specified node group.
Declaration
public virtual NodeGroupsResource.PatchRequest Patch(NodeGroup body, string project, string zone, string nodeGroup)
Parameters
| Type | Name | Description |
|---|---|---|
| NodeGroup | body | The body of the request. |
| string | project | Project ID for this request. |
| string | zone | The name of the zone for this request. |
| string | nodeGroup | Name of the NodeGroup resource to update. |
Returns
| Type | Description |
|---|---|
| NodeGroupsResource.PatchRequest |
PerformMaintenance(NodeGroupsPerformMaintenanceRequest, string, string, string)
Perform maintenance on a subset of nodes in the node group.
Declaration
public virtual NodeGroupsResource.PerformMaintenanceRequest PerformMaintenance(NodeGroupsPerformMaintenanceRequest body, string project, string zone, string nodeGroup)
Parameters
| Type | Name | Description |
|---|---|---|
| NodeGroupsPerformMaintenanceRequest | body | The body of the request. |
| string | project | Project ID for this request. |
| string | zone | The name of the zone for this request. |
| string | nodeGroup | Name of the node group scoping this request. |
Returns
| Type | Description |
|---|---|
| NodeGroupsResource.PerformMaintenanceRequest |
SetIamPolicy(ZoneSetPolicyRequest, string, string, string)
Sets the access control policy on the specified resource. Replaces any existing policy.
Declaration
public virtual NodeGroupsResource.SetIamPolicyRequest SetIamPolicy(ZoneSetPolicyRequest body, string project, string zone, string resource)
Parameters
| Type | Name | Description |
|---|---|---|
| ZoneSetPolicyRequest | body | The body of the request. |
| string | project | Project ID for this request. |
| string | zone | The name of the zone for this request. |
| string | resource | Name or id of the resource for this request. |
Returns
| Type | Description |
|---|---|
| NodeGroupsResource.SetIamPolicyRequest |
SetNodeTemplate(NodeGroupsSetNodeTemplateRequest, string, string, string)
Updates the node template of the node group.
Declaration
public virtual NodeGroupsResource.SetNodeTemplateRequest SetNodeTemplate(NodeGroupsSetNodeTemplateRequest body, string project, string zone, string nodeGroup)
Parameters
| Type | Name | Description |
|---|---|---|
| NodeGroupsSetNodeTemplateRequest | body | The body of the request. |
| string | project | Project ID for this request. |
| string | zone | The name of the zone for this request. |
| string | nodeGroup | Name of the NodeGroup resource to update. |
Returns
| Type | Description |
|---|---|
| NodeGroupsResource.SetNodeTemplateRequest |
SimulateMaintenanceEvent(NodeGroupsSimulateMaintenanceEventRequest, string, string, string)
Simulates maintenance event on specified nodes from the node group.
Declaration
public virtual NodeGroupsResource.SimulateMaintenanceEventRequest SimulateMaintenanceEvent(NodeGroupsSimulateMaintenanceEventRequest body, string project, string zone, string nodeGroup)
Parameters
| Type | Name | Description |
|---|---|---|
| NodeGroupsSimulateMaintenanceEventRequest | body | The body of the request. |
| string | project | Project ID for this request. |
| string | zone | The name of the zone for this request. |
| string | nodeGroup | Name of the NodeGroup resource whose nodes will go under maintenance simulation. |
Returns
| Type | Description |
|---|---|
| NodeGroupsResource.SimulateMaintenanceEventRequest |
TestIamPermissions(TestPermissionsRequest, string, string, string)
Returns permissions that a caller has on the specified resource.
Declaration
public virtual NodeGroupsResource.TestIamPermissionsRequest TestIamPermissions(TestPermissionsRequest body, string project, string zone, string resource)
Parameters
| Type | Name | Description |
|---|---|---|
| TestPermissionsRequest | body | The body of the request. |
| string | project | Project ID for this request. |
| string | zone | The name of the zone for this request. |
| string | resource | Name or id of the resource for this request. |
Returns
| Type | Description |
|---|---|
| NodeGroupsResource.TestIamPermissionsRequest |