Compute Engine v1 API - Class NodeGroupsClient (2.15.0)

public abstract class NodeGroupsClient

Reference documentation and code samples for the Compute Engine v1 API class NodeGroupsClient.

NodeGroups client wrapper, for convenient use.

Inheritance

object > NodeGroupsClient

Derived Types

Namespace

Google.Cloud.Compute.V1

Assembly

Google.Cloud.Compute.V1.dll

Remarks

The NodeGroups API.

Properties

AddNodesOperationsClient

public virtual OperationsClient AddNodesOperationsClient { get; }

The long-running operations client for AddNodes.

Property Value
TypeDescription
OperationsClient

DefaultEndpoint

public static string DefaultEndpoint { get; }

The default endpoint for the NodeGroups service, which is a host of "compute.googleapis.com" and a port of 443.

Property Value
TypeDescription
string

DefaultScopes

public static IReadOnlyList<string> DefaultScopes { get; }

The default NodeGroups scopes.

Property Value
TypeDescription
IReadOnlyListstring
Remarks

DeleteNodesOperationsClient

public virtual OperationsClient DeleteNodesOperationsClient { get; }

The long-running operations client for DeleteNodes.

Property Value
TypeDescription
OperationsClient

DeleteOperationsClient

public virtual OperationsClient DeleteOperationsClient { get; }

The long-running operations client for Delete.

Property Value
TypeDescription
OperationsClient

GrpcClient

public virtual NodeGroups.NodeGroupsClient GrpcClient { get; }

The underlying gRPC NodeGroups client

Property Value
TypeDescription
NodeGroupsNodeGroupsClient

InsertOperationsClient

public virtual OperationsClient InsertOperationsClient { get; }

The long-running operations client for Insert.

Property Value
TypeDescription
OperationsClient

PatchOperationsClient

public virtual OperationsClient PatchOperationsClient { get; }

The long-running operations client for Patch.

Property Value
TypeDescription
OperationsClient

ServiceMetadata

public static ServiceMetadata ServiceMetadata { get; }

The service metadata associated with this client type.

Property Value
TypeDescription
ServiceMetadata

SetNodeTemplateOperationsClient

public virtual OperationsClient SetNodeTemplateOperationsClient { get; }

The long-running operations client for SetNodeTemplate.

Property Value
TypeDescription
OperationsClient

SimulateMaintenanceEventOperationsClient

public virtual OperationsClient SimulateMaintenanceEventOperationsClient { get; }

The long-running operations client for SimulateMaintenanceEvent.

Property Value
TypeDescription
OperationsClient

Methods

AddNodes(AddNodesNodeGroupRequest, CallSettings)

public virtual Operation<Operation, Operation> AddNodes(AddNodesNodeGroupRequest request, CallSettings callSettings = null)

Adds specified number of nodes to the node group.

Parameters
NameDescription
requestAddNodesNodeGroupRequest

The request object containing all of the parameters for the API call.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
OperationOperationOperation

The RPC response.

Example
// Create client
NodeGroupsClient nodeGroupsClient = NodeGroupsClient.Create();
// Initialize request argument(s)
AddNodesNodeGroupRequest request = new AddNodesNodeGroupRequest
{
    Zone = "",
    RequestId = "",
    NodeGroupsAddNodesRequestResource = new NodeGroupsAddNodesRequest(),
    Project = "",
    NodeGroup = "",
};
// Make the request
lro::Operation<Operation, Operation> response = nodeGroupsClient.AddNodes(request);

// Poll until the returned long-running operation is complete
lro::Operation<Operation, Operation> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
Operation result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
lro::Operation<Operation, Operation> retrievedResponse = nodeGroupsClient.PollOnceAddNodes(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Operation retrievedResult = retrievedResponse.Result;
}

AddNodes(string, string, string, NodeGroupsAddNodesRequest, CallSettings)

public virtual Operation<Operation, Operation> AddNodes(string project, string zone, string nodeGroup, NodeGroupsAddNodesRequest nodeGroupsAddNodesRequestResource, CallSettings callSettings = null)

Adds specified number of nodes to the node group.

Parameters
NameDescription
projectstring

Project ID for this request.

zonestring

The name of the zone for this request.

nodeGroupstring

Name of the NodeGroup resource.

nodeGroupsAddNodesRequestResourceNodeGroupsAddNodesRequest

The body resource for this request

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
OperationOperationOperation

The RPC response.

Example
// Create client
NodeGroupsClient nodeGroupsClient = NodeGroupsClient.Create();
// Initialize request argument(s)
string project = "";
string zone = "";
string nodeGroup = "";
NodeGroupsAddNodesRequest nodeGroupsAddNodesRequestResource = new NodeGroupsAddNodesRequest();
// Make the request
lro::Operation<Operation, Operation> response = nodeGroupsClient.AddNodes(project, zone, nodeGroup, nodeGroupsAddNodesRequestResource);

// Poll until the returned long-running operation is complete
lro::Operation<Operation, Operation> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
Operation result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
lro::Operation<Operation, Operation> retrievedResponse = nodeGroupsClient.PollOnceAddNodes(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Operation retrievedResult = retrievedResponse.Result;
}

AddNodesAsync(AddNodesNodeGroupRequest, CallSettings)

public virtual Task<Operation<Operation, Operation>> AddNodesAsync(AddNodesNodeGroupRequest request, CallSettings callSettings = null)

Adds specified number of nodes to the node group.

Parameters
NameDescription
requestAddNodesNodeGroupRequest

The request object containing all of the parameters for the API call.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
TaskOperationOperationOperation

A Task containing the RPC response.

Example
// Create client
NodeGroupsClient nodeGroupsClient = await NodeGroupsClient.CreateAsync();
// Initialize request argument(s)
AddNodesNodeGroupRequest request = new AddNodesNodeGroupRequest
{
    Zone = "",
    RequestId = "",
    NodeGroupsAddNodesRequestResource = new NodeGroupsAddNodesRequest(),
    Project = "",
    NodeGroup = "",
};
// Make the request
lro::Operation<Operation, Operation> response = await nodeGroupsClient.AddNodesAsync(request);

// Poll until the returned long-running operation is complete
lro::Operation<Operation, Operation> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Operation result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
lro::Operation<Operation, Operation> retrievedResponse = await nodeGroupsClient.PollOnceAddNodesAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Operation retrievedResult = retrievedResponse.Result;
}

AddNodesAsync(AddNodesNodeGroupRequest, CancellationToken)

public virtual Task<Operation<Operation, Operation>> AddNodesAsync(AddNodesNodeGroupRequest request, CancellationToken cancellationToken)

Adds specified number of nodes to the node group.

Parameters
NameDescription
requestAddNodesNodeGroupRequest

The request object containing all of the parameters for the API call.

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
TaskOperationOperationOperation

A Task containing the RPC response.

Example
// Create client
NodeGroupsClient nodeGroupsClient = await NodeGroupsClient.CreateAsync();
// Initialize request argument(s)
AddNodesNodeGroupRequest request = new AddNodesNodeGroupRequest
{
    Zone = "",
    RequestId = "",
    NodeGroupsAddNodesRequestResource = new NodeGroupsAddNodesRequest(),
    Project = "",
    NodeGroup = "",
};
// Make the request
lro::Operation<Operation, Operation> response = await nodeGroupsClient.AddNodesAsync(request);

// Poll until the returned long-running operation is complete
lro::Operation<Operation, Operation> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Operation result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
lro::Operation<Operation, Operation> retrievedResponse = await nodeGroupsClient.PollOnceAddNodesAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Operation retrievedResult = retrievedResponse.Result;
}

AddNodesAsync(string, string, string, NodeGroupsAddNodesRequest, CallSettings)

public virtual Task<Operation<Operation, Operation>> AddNodesAsync(string project, string zone, string nodeGroup, NodeGroupsAddNodesRequest nodeGroupsAddNodesRequestResource, CallSettings callSettings = null)

Adds specified number of nodes to the node group.

Parameters
NameDescription
projectstring

Project ID for this request.

zonestring

The name of the zone for this request.

nodeGroupstring

Name of the NodeGroup resource.

nodeGroupsAddNodesRequestResourceNodeGroupsAddNodesRequest

The body resource for this request

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
TaskOperationOperationOperation

A Task containing the RPC response.

Example
// Create client
NodeGroupsClient nodeGroupsClient = await NodeGroupsClient.CreateAsync();
// Initialize request argument(s)
string project = "";
string zone = "";
string nodeGroup = "";
NodeGroupsAddNodesRequest nodeGroupsAddNodesRequestResource = new NodeGroupsAddNodesRequest();
// Make the request
lro::Operation<Operation, Operation> response = await nodeGroupsClient.AddNodesAsync(project, zone, nodeGroup, nodeGroupsAddNodesRequestResource);

// Poll until the returned long-running operation is complete
lro::Operation<Operation, Operation> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Operation result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
lro::Operation<Operation, Operation> retrievedResponse = await nodeGroupsClient.PollOnceAddNodesAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Operation retrievedResult = retrievedResponse.Result;
}

AddNodesAsync(string, string, string, NodeGroupsAddNodesRequest, CancellationToken)

public virtual Task<Operation<Operation, Operation>> AddNodesAsync(string project, string zone, string nodeGroup, NodeGroupsAddNodesRequest nodeGroupsAddNodesRequestResource, CancellationToken cancellationToken)

Adds specified number of nodes to the node group.

Parameters
NameDescription
projectstring

Project ID for this request.

zonestring

The name of the zone for this request.

nodeGroupstring

Name of the NodeGroup resource.

nodeGroupsAddNodesRequestResourceNodeGroupsAddNodesRequest

The body resource for this request

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
TaskOperationOperationOperation

A Task containing the RPC response.

Example
// Create client
NodeGroupsClient nodeGroupsClient = await NodeGroupsClient.CreateAsync();
// Initialize request argument(s)
string project = "";
string zone = "";
string nodeGroup = "";
NodeGroupsAddNodesRequest nodeGroupsAddNodesRequestResource = new NodeGroupsAddNodesRequest();
// Make the request
lro::Operation<Operation, Operation> response = await nodeGroupsClient.AddNodesAsync(project, zone, nodeGroup, nodeGroupsAddNodesRequestResource);

// Poll until the returned long-running operation is complete
lro::Operation<Operation, Operation> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Operation result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
lro::Operation<Operation, Operation> retrievedResponse = await nodeGroupsClient.PollOnceAddNodesAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Operation retrievedResult = retrievedResponse.Result;
}

AggregatedList(AggregatedListNodeGroupsRequest, CallSettings)

public virtual PagedEnumerable<NodeGroupAggregatedList, KeyValuePair<string, NodeGroupsScopedList>> AggregatedList(AggregatedListNodeGroupsRequest request, CallSettings callSettings = null)

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.

Parameters
NameDescription
requestAggregatedListNodeGroupsRequest

The request object containing all of the parameters for the API call.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
PagedEnumerableNodeGroupAggregatedListKeyValuePairstringNodeGroupsScopedList

A pageable sequence of KeyValuePair<TKey, TValue> resources.

Example
// Create client
NodeGroupsClient nodeGroupsClient = NodeGroupsClient.Create();
// Initialize request argument(s)
AggregatedListNodeGroupsRequest request = new AggregatedListNodeGroupsRequest
{
    OrderBy = "",
    Project = "",
    ServiceProjectNumber = 0L,
    Filter = "",
    IncludeAllScopes = false,
    ReturnPartialSuccess = false,
};
// Make the request
PagedEnumerable<NodeGroupAggregatedList, KeyValuePair<string, NodeGroupsScopedList>> response = nodeGroupsClient.AggregatedList(request);

// Iterate over all response items, lazily performing RPCs as required
foreach (KeyValuePair<string, NodeGroupsScopedList> item in response)
{
    // Do something with each item
    Console.WriteLine(item);
}

// Or iterate over pages (of server-defined size), performing one RPC per page
foreach (NodeGroupAggregatedList page in response.AsRawResponses())
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (KeyValuePair<string, NodeGroupsScopedList> item in page)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
}

// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<KeyValuePair<string, NodeGroupsScopedList>> singlePage = response.ReadPage(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (KeyValuePair<string, NodeGroupsScopedList> item in singlePage)
{
    // Do something with each item
    Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;

AggregatedList(string, string, int?, CallSettings)

public virtual PagedEnumerable<NodeGroupAggregatedList, KeyValuePair<string, NodeGroupsScopedList>> AggregatedList(string project, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

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.

Parameters
NameDescription
projectstring

Project ID for this request.

pageTokenstring

The token returned from the previous request. A value of null or an empty string retrieves the first page.

pageSizeint

The size of page to request. The response will not be larger than this, but may be smaller. A value of null or 0 uses a server-defined page size.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
PagedEnumerableNodeGroupAggregatedListKeyValuePairstringNodeGroupsScopedList

A pageable sequence of KeyValuePair<TKey, TValue> resources.

Example
// Create client
NodeGroupsClient nodeGroupsClient = NodeGroupsClient.Create();
// Initialize request argument(s)
string project = "";
// Make the request
PagedEnumerable<NodeGroupAggregatedList, KeyValuePair<string, NodeGroupsScopedList>> response = nodeGroupsClient.AggregatedList(project);

// Iterate over all response items, lazily performing RPCs as required
foreach (KeyValuePair<string, NodeGroupsScopedList> item in response)
{
    // Do something with each item
    Console.WriteLine(item);
}

// Or iterate over pages (of server-defined size), performing one RPC per page
foreach (NodeGroupAggregatedList page in response.AsRawResponses())
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (KeyValuePair<string, NodeGroupsScopedList> item in page)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
}

// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<KeyValuePair<string, NodeGroupsScopedList>> singlePage = response.ReadPage(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (KeyValuePair<string, NodeGroupsScopedList> item in singlePage)
{
    // Do something with each item
    Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;

AggregatedListAsync(AggregatedListNodeGroupsRequest, CallSettings)

public virtual PagedAsyncEnumerable<NodeGroupAggregatedList, KeyValuePair<string, NodeGroupsScopedList>> AggregatedListAsync(AggregatedListNodeGroupsRequest request, CallSettings callSettings = null)

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.

Parameters
NameDescription
requestAggregatedListNodeGroupsRequest

The request object containing all of the parameters for the API call.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
PagedAsyncEnumerableNodeGroupAggregatedListKeyValuePairstringNodeGroupsScopedList

A pageable asynchronous sequence of KeyValuePair<TKey, TValue> resources.

Example
// Create client
NodeGroupsClient nodeGroupsClient = await NodeGroupsClient.CreateAsync();
// Initialize request argument(s)
AggregatedListNodeGroupsRequest request = new AggregatedListNodeGroupsRequest
{
    OrderBy = "",
    Project = "",
    ServiceProjectNumber = 0L,
    Filter = "",
    IncludeAllScopes = false,
    ReturnPartialSuccess = false,
};
// Make the request
PagedAsyncEnumerable<NodeGroupAggregatedList, KeyValuePair<string, NodeGroupsScopedList>> response = nodeGroupsClient.AggregatedListAsync(request);

// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((KeyValuePair<string, NodeGroupsScopedList> item) =>
{
    // Do something with each item
    Console.WriteLine(item);
});

// Or iterate over pages (of server-defined size), performing one RPC per page
await response.AsRawResponses().ForEachAsync((NodeGroupAggregatedList page) =>
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (KeyValuePair<string, NodeGroupsScopedList> item in page)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
});

// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<KeyValuePair<string, NodeGroupsScopedList>> singlePage = await response.ReadPageAsync(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (KeyValuePair<string, NodeGroupsScopedList> item in singlePage)
{
    // Do something with each item
    Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;

AggregatedListAsync(string, string, int?, CallSettings)

public virtual PagedAsyncEnumerable<NodeGroupAggregatedList, KeyValuePair<string, NodeGroupsScopedList>> AggregatedListAsync(string project, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

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.

Parameters
NameDescription
projectstring

Project ID for this request.

pageTokenstring

The token returned from the previous request. A value of null or an empty string retrieves the first page.

pageSizeint

The size of page to request. The response will not be larger than this, but may be smaller. A value of null or 0 uses a server-defined page size.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
PagedAsyncEnumerableNodeGroupAggregatedListKeyValuePairstringNodeGroupsScopedList

A pageable asynchronous sequence of KeyValuePair<TKey, TValue> resources.

Example
// Create client
NodeGroupsClient nodeGroupsClient = await NodeGroupsClient.CreateAsync();
// Initialize request argument(s)
string project = "";
// Make the request
PagedAsyncEnumerable<NodeGroupAggregatedList, KeyValuePair<string, NodeGroupsScopedList>> response = nodeGroupsClient.AggregatedListAsync(project);

// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((KeyValuePair<string, NodeGroupsScopedList> item) =>
{
    // Do something with each item
    Console.WriteLine(item);
});

// Or iterate over pages (of server-defined size), performing one RPC per page
await response.AsRawResponses().ForEachAsync((NodeGroupAggregatedList page) =>
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (KeyValuePair<string, NodeGroupsScopedList> item in page)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
});

// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<KeyValuePair<string, NodeGroupsScopedList>> singlePage = await response.ReadPageAsync(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (KeyValuePair<string, NodeGroupsScopedList> item in singlePage)
{
    // Do something with each item
    Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;

Create()

public static NodeGroupsClient Create()

Synchronously creates a NodeGroupsClient using the default credentials, endpoint and settings. To specify custom credentials or other settings, use NodeGroupsClientBuilder.

Returns
TypeDescription
NodeGroupsClient

The created NodeGroupsClient.

CreateAsync(CancellationToken)

public static Task<NodeGroupsClient> CreateAsync(CancellationToken cancellationToken = default)

Asynchronously creates a NodeGroupsClient using the default credentials, endpoint and settings. To specify custom credentials or other settings, use NodeGroupsClientBuilder.

Parameter
NameDescription
cancellationTokenCancellationToken

The CancellationToken to use while creating the client.

Returns
TypeDescription
TaskNodeGroupsClient

The task representing the created NodeGroupsClient.

Delete(DeleteNodeGroupRequest, CallSettings)

public virtual Operation<Operation, Operation> Delete(DeleteNodeGroupRequest request, CallSettings callSettings = null)

Deletes the specified NodeGroup resource.

Parameters
NameDescription
requestDeleteNodeGroupRequest

The request object containing all of the parameters for the API call.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
OperationOperationOperation

The RPC response.

Example
// Create client
NodeGroupsClient nodeGroupsClient = NodeGroupsClient.Create();
// Initialize request argument(s)
DeleteNodeGroupRequest request = new DeleteNodeGroupRequest
{
    Zone = "",
    RequestId = "",
    Project = "",
    NodeGroup = "",
};
// Make the request
lro::Operation<Operation, Operation> response = nodeGroupsClient.Delete(request);

// Poll until the returned long-running operation is complete
lro::Operation<Operation, Operation> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
Operation result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
lro::Operation<Operation, Operation> retrievedResponse = nodeGroupsClient.PollOnceDelete(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Operation retrievedResult = retrievedResponse.Result;
}

Delete(string, string, string, CallSettings)

public virtual Operation<Operation, Operation> Delete(string project, string zone, string nodeGroup, CallSettings callSettings = null)

Deletes the specified NodeGroup resource.

Parameters
NameDescription
projectstring

Project ID for this request.

zonestring

The name of the zone for this request.

nodeGroupstring

Name of the NodeGroup resource to delete.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
OperationOperationOperation

The RPC response.

Example
// Create client
NodeGroupsClient nodeGroupsClient = NodeGroupsClient.Create();
// Initialize request argument(s)
string project = "";
string zone = "";
string nodeGroup = "";
// Make the request
lro::Operation<Operation, Operation> response = nodeGroupsClient.Delete(project, zone, nodeGroup);

// Poll until the returned long-running operation is complete
lro::Operation<Operation, Operation> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
Operation result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
lro::Operation<Operation, Operation> retrievedResponse = nodeGroupsClient.PollOnceDelete(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Operation retrievedResult = retrievedResponse.Result;
}

DeleteAsync(DeleteNodeGroupRequest, CallSettings)

public virtual Task<Operation<Operation, Operation>> DeleteAsync(DeleteNodeGroupRequest request, CallSettings callSettings = null)

Deletes the specified NodeGroup resource.

Parameters
NameDescription
requestDeleteNodeGroupRequest

The request object containing all of the parameters for the API call.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
TaskOperationOperationOperation

A Task containing the RPC response.

Example
// Create client
NodeGroupsClient nodeGroupsClient = await NodeGroupsClient.CreateAsync();
// Initialize request argument(s)
DeleteNodeGroupRequest request = new DeleteNodeGroupRequest
{
    Zone = "",
    RequestId = "",
    Project = "",
    NodeGroup = "",
};
// Make the request
lro::Operation<Operation, Operation> response = await nodeGroupsClient.DeleteAsync(request);

// Poll until the returned long-running operation is complete
lro::Operation<Operation, Operation> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Operation result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
lro::Operation<Operation, Operation> retrievedResponse = await nodeGroupsClient.PollOnceDeleteAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Operation retrievedResult = retrievedResponse.Result;
}

DeleteAsync(DeleteNodeGroupRequest, CancellationToken)

public virtual Task<Operation<Operation, Operation>> DeleteAsync(DeleteNodeGroupRequest request, CancellationToken cancellationToken)

Deletes the specified NodeGroup resource.

Parameters
NameDescription
requestDeleteNodeGroupRequest

The request object containing all of the parameters for the API call.

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
TaskOperationOperationOperation

A Task containing the RPC response.

Example
// Create client
NodeGroupsClient nodeGroupsClient = await NodeGroupsClient.CreateAsync();
// Initialize request argument(s)
DeleteNodeGroupRequest request = new DeleteNodeGroupRequest
{
    Zone = "",
    RequestId = "",
    Project = "",
    NodeGroup = "",
};
// Make the request
lro::Operation<Operation, Operation> response = await nodeGroupsClient.DeleteAsync(request);

// Poll until the returned long-running operation is complete
lro::Operation<Operation, Operation> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Operation result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
lro::Operation<Operation, Operation> retrievedResponse = await nodeGroupsClient.PollOnceDeleteAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Operation retrievedResult = retrievedResponse.Result;
}

DeleteAsync(string, string, string, CallSettings)

public virtual Task<Operation<Operation, Operation>> DeleteAsync(string project, string zone, string nodeGroup, CallSettings callSettings = null)

Deletes the specified NodeGroup resource.

Parameters
NameDescription
projectstring

Project ID for this request.

zonestring

The name of the zone for this request.

nodeGroupstring

Name of the NodeGroup resource to delete.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
TaskOperationOperationOperation

A Task containing the RPC response.

Example
// Create client
NodeGroupsClient nodeGroupsClient = await NodeGroupsClient.CreateAsync();
// Initialize request argument(s)
string project = "";
string zone = "";
string nodeGroup = "";
// Make the request
lro::Operation<Operation, Operation> response = await nodeGroupsClient.DeleteAsync(project, zone, nodeGroup);

// Poll until the returned long-running operation is complete
lro::Operation<Operation, Operation> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Operation result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
lro::Operation<Operation, Operation> retrievedResponse = await nodeGroupsClient.PollOnceDeleteAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Operation retrievedResult = retrievedResponse.Result;
}

DeleteAsync(string, string, string, CancellationToken)

public virtual Task<Operation<Operation, Operation>> DeleteAsync(string project, string zone, string nodeGroup, CancellationToken cancellationToken)

Deletes the specified NodeGroup resource.

Parameters
NameDescription
projectstring

Project ID for this request.

zonestring

The name of the zone for this request.

nodeGroupstring

Name of the NodeGroup resource to delete.

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
TaskOperationOperationOperation

A Task containing the RPC response.

Example
// Create client
NodeGroupsClient nodeGroupsClient = await NodeGroupsClient.CreateAsync();
// Initialize request argument(s)
string project = "";
string zone = "";
string nodeGroup = "";
// Make the request
lro::Operation<Operation, Operation> response = await nodeGroupsClient.DeleteAsync(project, zone, nodeGroup);

// Poll until the returned long-running operation is complete
lro::Operation<Operation, Operation> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Operation result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
lro::Operation<Operation, Operation> retrievedResponse = await nodeGroupsClient.PollOnceDeleteAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Operation retrievedResult = retrievedResponse.Result;
}

DeleteNodes(DeleteNodesNodeGroupRequest, CallSettings)

public virtual Operation<Operation, Operation> DeleteNodes(DeleteNodesNodeGroupRequest request, CallSettings callSettings = null)

Deletes specified nodes from the node group.

Parameters
NameDescription
requestDeleteNodesNodeGroupRequest

The request object containing all of the parameters for the API call.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
OperationOperationOperation

The RPC response.

Example
// Create client
NodeGroupsClient nodeGroupsClient = NodeGroupsClient.Create();
// Initialize request argument(s)
DeleteNodesNodeGroupRequest request = new DeleteNodesNodeGroupRequest
{
    Zone = "",
    RequestId = "",
    NodeGroupsDeleteNodesRequestResource = new NodeGroupsDeleteNodesRequest(),
    Project = "",
    NodeGroup = "",
};
// Make the request
lro::Operation<Operation, Operation> response = nodeGroupsClient.DeleteNodes(request);

// Poll until the returned long-running operation is complete
lro::Operation<Operation, Operation> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
Operation result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
lro::Operation<Operation, Operation> retrievedResponse = nodeGroupsClient.PollOnceDeleteNodes(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Operation retrievedResult = retrievedResponse.Result;
}

DeleteNodes(string, string, string, NodeGroupsDeleteNodesRequest, CallSettings)

public virtual Operation<Operation, Operation> DeleteNodes(string project, string zone, string nodeGroup, NodeGroupsDeleteNodesRequest nodeGroupsDeleteNodesRequestResource, CallSettings callSettings = null)

Deletes specified nodes from the node group.

Parameters
NameDescription
projectstring

Project ID for this request.

zonestring

The name of the zone for this request.

nodeGroupstring

Name of the NodeGroup resource whose nodes will be deleted.

nodeGroupsDeleteNodesRequestResourceNodeGroupsDeleteNodesRequest

The body resource for this request

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
OperationOperationOperation

The RPC response.

Example
// Create client
NodeGroupsClient nodeGroupsClient = NodeGroupsClient.Create();
// Initialize request argument(s)
string project = "";
string zone = "";
string nodeGroup = "";
NodeGroupsDeleteNodesRequest nodeGroupsDeleteNodesRequestResource = new NodeGroupsDeleteNodesRequest();
// Make the request
lro::Operation<Operation, Operation> response = nodeGroupsClient.DeleteNodes(project, zone, nodeGroup, nodeGroupsDeleteNodesRequestResource);

// Poll until the returned long-running operation is complete
lro::Operation<Operation, Operation> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
Operation result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
lro::Operation<Operation, Operation> retrievedResponse = nodeGroupsClient.PollOnceDeleteNodes(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Operation retrievedResult = retrievedResponse.Result;
}

DeleteNodesAsync(DeleteNodesNodeGroupRequest, CallSettings)

public virtual Task<Operation<Operation, Operation>> DeleteNodesAsync(DeleteNodesNodeGroupRequest request, CallSettings callSettings = null)

Deletes specified nodes from the node group.

Parameters
NameDescription
requestDeleteNodesNodeGroupRequest

The request object containing all of the parameters for the API call.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
TaskOperationOperationOperation

A Task containing the RPC response.

Example
// Create client
NodeGroupsClient nodeGroupsClient = await NodeGroupsClient.CreateAsync();
// Initialize request argument(s)
DeleteNodesNodeGroupRequest request = new DeleteNodesNodeGroupRequest
{
    Zone = "",
    RequestId = "",
    NodeGroupsDeleteNodesRequestResource = new NodeGroupsDeleteNodesRequest(),
    Project = "",
    NodeGroup = "",
};
// Make the request
lro::Operation<Operation, Operation> response = await nodeGroupsClient.DeleteNodesAsync(request);

// Poll until the returned long-running operation is complete
lro::Operation<Operation, Operation> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Operation result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
lro::Operation<Operation, Operation> retrievedResponse = await nodeGroupsClient.PollOnceDeleteNodesAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Operation retrievedResult = retrievedResponse.Result;
}

DeleteNodesAsync(DeleteNodesNodeGroupRequest, CancellationToken)

public virtual Task<Operation<Operation, Operation>> DeleteNodesAsync(DeleteNodesNodeGroupRequest request, CancellationToken cancellationToken)

Deletes specified nodes from the node group.

Parameters
NameDescription
requestDeleteNodesNodeGroupRequest

The request object containing all of the parameters for the API call.

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
TaskOperationOperationOperation

A Task containing the RPC response.

Example
// Create client
NodeGroupsClient nodeGroupsClient = await NodeGroupsClient.CreateAsync();
// Initialize request argument(s)
DeleteNodesNodeGroupRequest request = new DeleteNodesNodeGroupRequest
{
    Zone = "",
    RequestId = "",
    NodeGroupsDeleteNodesRequestResource = new NodeGroupsDeleteNodesRequest(),
    Project = "",
    NodeGroup = "",
};
// Make the request
lro::Operation<Operation, Operation> response = await nodeGroupsClient.DeleteNodesAsync(request);

// Poll until the returned long-running operation is complete
lro::Operation<Operation, Operation> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Operation result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
lro::Operation<Operation, Operation> retrievedResponse = await nodeGroupsClient.PollOnceDeleteNodesAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Operation retrievedResult = retrievedResponse.Result;
}

DeleteNodesAsync(string, string, string, NodeGroupsDeleteNodesRequest, CallSettings)

public virtual Task<Operation<Operation, Operation>> DeleteNodesAsync(string project, string zone, string nodeGroup, NodeGroupsDeleteNodesRequest nodeGroupsDeleteNodesRequestResource, CallSettings callSettings = null)

Deletes specified nodes from the node group.

Parameters
NameDescription
projectstring

Project ID for this request.

zonestring

The name of the zone for this request.

nodeGroupstring

Name of the NodeGroup resource whose nodes will be deleted.

nodeGroupsDeleteNodesRequestResourceNodeGroupsDeleteNodesRequest

The body resource for this request

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
TaskOperationOperationOperation

A Task containing the RPC response.

Example
// Create client
NodeGroupsClient nodeGroupsClient = await NodeGroupsClient.CreateAsync();
// Initialize request argument(s)
string project = "";
string zone = "";
string nodeGroup = "";
NodeGroupsDeleteNodesRequest nodeGroupsDeleteNodesRequestResource = new NodeGroupsDeleteNodesRequest();
// Make the request
lro::Operation<Operation, Operation> response = await nodeGroupsClient.DeleteNodesAsync(project, zone, nodeGroup, nodeGroupsDeleteNodesRequestResource);

// Poll until the returned long-running operation is complete
lro::Operation<Operation, Operation> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Operation result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
lro::Operation<Operation, Operation> retrievedResponse = await nodeGroupsClient.PollOnceDeleteNodesAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Operation retrievedResult = retrievedResponse.Result;
}

DeleteNodesAsync(string, string, string, NodeGroupsDeleteNodesRequest, CancellationToken)

public virtual Task<Operation<Operation, Operation>> DeleteNodesAsync(string project, string zone, string nodeGroup, NodeGroupsDeleteNodesRequest nodeGroupsDeleteNodesRequestResource, CancellationToken cancellationToken)

Deletes specified nodes from the node group.

Parameters
NameDescription
projectstring

Project ID for this request.

zonestring

The name of the zone for this request.

nodeGroupstring

Name of the NodeGroup resource whose nodes will be deleted.

nodeGroupsDeleteNodesRequestResourceNodeGroupsDeleteNodesRequest

The body resource for this request

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
TaskOperationOperationOperation

A Task containing the RPC response.

Example
// Create client
NodeGroupsClient nodeGroupsClient = await NodeGroupsClient.CreateAsync();
// Initialize request argument(s)
string project = "";
string zone = "";
string nodeGroup = "";
NodeGroupsDeleteNodesRequest nodeGroupsDeleteNodesRequestResource = new NodeGroupsDeleteNodesRequest();
// Make the request
lro::Operation<Operation, Operation> response = await nodeGroupsClient.DeleteNodesAsync(project, zone, nodeGroup, nodeGroupsDeleteNodesRequestResource);

// Poll until the returned long-running operation is complete
lro::Operation<Operation, Operation> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Operation result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
lro::Operation<Operation, Operation> retrievedResponse = await nodeGroupsClient.PollOnceDeleteNodesAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Operation retrievedResult = retrievedResponse.Result;
}

Get(GetNodeGroupRequest, CallSettings)

public virtual NodeGroup Get(GetNodeGroupRequest request, CallSettings callSettings = null)

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.

Parameters
NameDescription
requestGetNodeGroupRequest

The request object containing all of the parameters for the API call.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
NodeGroup

The RPC response.

Example
// Create client
NodeGroupsClient nodeGroupsClient = NodeGroupsClient.Create();
// Initialize request argument(s)
GetNodeGroupRequest request = new GetNodeGroupRequest
{
    Zone = "",
    Project = "",
    NodeGroup = "",
};
// Make the request
NodeGroup response = nodeGroupsClient.Get(request);

Get(string, string, string, CallSettings)

public virtual NodeGroup Get(string project, string zone, string nodeGroup, CallSettings callSettings = null)

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.

Parameters
NameDescription
projectstring

Project ID for this request.

zonestring

The name of the zone for this request.

nodeGroupstring

Name of the node group to return.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
NodeGroup

The RPC response.

Example
// Create client
NodeGroupsClient nodeGroupsClient = NodeGroupsClient.Create();
// Initialize request argument(s)
string project = "";
string zone = "";
string nodeGroup = "";
// Make the request
NodeGroup response = nodeGroupsClient.Get(project, zone, nodeGroup);

GetAsync(GetNodeGroupRequest, CallSettings)

public virtual Task<NodeGroup> GetAsync(GetNodeGroupRequest request, CallSettings callSettings = null)

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.

Parameters
NameDescription
requestGetNodeGroupRequest

The request object containing all of the parameters for the API call.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
TaskNodeGroup

A Task containing the RPC response.

Example
// Create client
NodeGroupsClient nodeGroupsClient = await NodeGroupsClient.CreateAsync();
// Initialize request argument(s)
GetNodeGroupRequest request = new GetNodeGroupRequest
{
    Zone = "",
    Project = "",
    NodeGroup = "",
};
// Make the request
NodeGroup response = await nodeGroupsClient.GetAsync(request);

GetAsync(GetNodeGroupRequest, CancellationToken)

public virtual Task<NodeGroup> GetAsync(GetNodeGroupRequest request, CancellationToken cancellationToken)

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.

Parameters
NameDescription
requestGetNodeGroupRequest

The request object containing all of the parameters for the API call.

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
TaskNodeGroup

A Task containing the RPC response.

Example
// Create client
NodeGroupsClient nodeGroupsClient = await NodeGroupsClient.CreateAsync();
// Initialize request argument(s)
GetNodeGroupRequest request = new GetNodeGroupRequest
{
    Zone = "",
    Project = "",
    NodeGroup = "",
};
// Make the request
NodeGroup response = await nodeGroupsClient.GetAsync(request);

GetAsync(string, string, string, CallSettings)

public virtual Task<NodeGroup> GetAsync(string project, string zone, string nodeGroup, CallSettings callSettings = null)

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.

Parameters
NameDescription
projectstring

Project ID for this request.

zonestring

The name of the zone for this request.

nodeGroupstring

Name of the node group to return.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
TaskNodeGroup

A Task containing the RPC response.

Example
// Create client
NodeGroupsClient nodeGroupsClient = await NodeGroupsClient.CreateAsync();
// Initialize request argument(s)
string project = "";
string zone = "";
string nodeGroup = "";
// Make the request
NodeGroup response = await nodeGroupsClient.GetAsync(project, zone, nodeGroup);

GetAsync(string, string, string, CancellationToken)

public virtual Task<NodeGroup> GetAsync(string project, string zone, string nodeGroup, CancellationToken cancellationToken)

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.

Parameters
NameDescription
projectstring

Project ID for this request.

zonestring

The name of the zone for this request.

nodeGroupstring

Name of the node group to return.

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
TaskNodeGroup

A Task containing the RPC response.

Example
// Create client
NodeGroupsClient nodeGroupsClient = await NodeGroupsClient.CreateAsync();
// Initialize request argument(s)
string project = "";
string zone = "";
string nodeGroup = "";
// Make the request
NodeGroup response = await nodeGroupsClient.GetAsync(project, zone, nodeGroup);

GetIamPolicy(GetIamPolicyNodeGroupRequest, CallSettings)

public virtual Policy GetIamPolicy(GetIamPolicyNodeGroupRequest request, CallSettings callSettings = null)

Gets the access control policy for a resource. May be empty if no such policy or resource exists.

Parameters
NameDescription
requestGetIamPolicyNodeGroupRequest

The request object containing all of the parameters for the API call.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Policy

The RPC response.

Example
// Create client
NodeGroupsClient nodeGroupsClient = NodeGroupsClient.Create();
// Initialize request argument(s)
GetIamPolicyNodeGroupRequest request = new GetIamPolicyNodeGroupRequest
{
    Zone = "",
    Resource = "",
    Project = "",
    OptionsRequestedPolicyVersion = 0,
};
// Make the request
Policy response = nodeGroupsClient.GetIamPolicy(request);

GetIamPolicy(string, string, string, CallSettings)

public virtual Policy GetIamPolicy(string project, string zone, string resource, CallSettings callSettings = null)

Gets the access control policy for a resource. May be empty if no such policy or resource exists.

Parameters
NameDescription
projectstring

Project ID for this request.

zonestring

The name of the zone for this request.

resourcestring

Name or id of the resource for this request.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Policy

The RPC response.

Example
// Create client
NodeGroupsClient nodeGroupsClient = NodeGroupsClient.Create();
// Initialize request argument(s)
string project = "";
string zone = "";
string resource = "";
// Make the request
Policy response = nodeGroupsClient.GetIamPolicy(project, zone, resource);

GetIamPolicyAsync(GetIamPolicyNodeGroupRequest, CallSettings)

public virtual Task<Policy> GetIamPolicyAsync(GetIamPolicyNodeGroupRequest request, CallSettings callSettings = null)

Gets the access control policy for a resource. May be empty if no such policy or resource exists.

Parameters
NameDescription
requestGetIamPolicyNodeGroupRequest

The request object containing all of the parameters for the API call.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
TaskPolicy

A Task containing the RPC response.

Example
// Create client
NodeGroupsClient nodeGroupsClient = await NodeGroupsClient.CreateAsync();
// Initialize request argument(s)
GetIamPolicyNodeGroupRequest request = new GetIamPolicyNodeGroupRequest
{
    Zone = "",
    Resource = "",
    Project = "",
    OptionsRequestedPolicyVersion = 0,
};
// Make the request
Policy response = await nodeGroupsClient.GetIamPolicyAsync(request);

GetIamPolicyAsync(GetIamPolicyNodeGroupRequest, CancellationToken)

public virtual Task<Policy> GetIamPolicyAsync(GetIamPolicyNodeGroupRequest request, CancellationToken cancellationToken)

Gets the access control policy for a resource. May be empty if no such policy or resource exists.

Parameters
NameDescription
requestGetIamPolicyNodeGroupRequest

The request object containing all of the parameters for the API call.

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
TaskPolicy

A Task containing the RPC response.

Example
// Create client
NodeGroupsClient nodeGroupsClient = await NodeGroupsClient.CreateAsync();
// Initialize request argument(s)
GetIamPolicyNodeGroupRequest request = new GetIamPolicyNodeGroupRequest
{
    Zone = "",
    Resource = "",
    Project = "",
    OptionsRequestedPolicyVersion = 0,
};
// Make the request
Policy response = await nodeGroupsClient.GetIamPolicyAsync(request);

GetIamPolicyAsync(string, string, string, CallSettings)

public virtual Task<Policy> GetIamPolicyAsync(string project, string zone, string resource, CallSettings callSettings = null)

Gets the access control policy for a resource. May be empty if no such policy or resource exists.

Parameters
NameDescription
projectstring

Project ID for this request.

zonestring

The name of the zone for this request.

resourcestring

Name or id of the resource for this request.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
TaskPolicy

A Task containing the RPC response.

Example
// Create client
NodeGroupsClient nodeGroupsClient = await NodeGroupsClient.CreateAsync();
// Initialize request argument(s)
string project = "";
string zone = "";
string resource = "";
// Make the request
Policy response = await nodeGroupsClient.GetIamPolicyAsync(project, zone, resource);

GetIamPolicyAsync(string, string, string, CancellationToken)

public virtual Task<Policy> GetIamPolicyAsync(string project, string zone, string resource, CancellationToken cancellationToken)

Gets the access control policy for a resource. May be empty if no such policy or resource exists.

Parameters
NameDescription
projectstring

Project ID for this request.

zonestring

The name of the zone for this request.

resourcestring

Name or id of the resource for this request.

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
TaskPolicy

A Task containing the RPC response.

Example
// Create client
NodeGroupsClient nodeGroupsClient = await NodeGroupsClient.CreateAsync();
// Initialize request argument(s)
string project = "";
string zone = "";
string resource = "";
// Make the request
Policy response = await nodeGroupsClient.GetIamPolicyAsync(project, zone, resource);

Insert(InsertNodeGroupRequest, CallSettings)

public virtual Operation<Operation, Operation> Insert(InsertNodeGroupRequest request, CallSettings callSettings = null)

Creates a NodeGroup resource in the specified project using the data included in the request.

Parameters
NameDescription
requestInsertNodeGroupRequest

The request object containing all of the parameters for the API call.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
OperationOperationOperation

The RPC response.

Example
// Create client
NodeGroupsClient nodeGroupsClient = NodeGroupsClient.Create();
// Initialize request argument(s)
InsertNodeGroupRequest request = new InsertNodeGroupRequest
{
    Zone = "",
    RequestId = "",
    InitialNodeCount = 0,
    Project = "",
    NodeGroupResource = new NodeGroup(),
};
// Make the request
lro::Operation<Operation, Operation> response = nodeGroupsClient.Insert(request);

// Poll until the returned long-running operation is complete
lro::Operation<Operation, Operation> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
Operation result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
lro::Operation<Operation, Operation> retrievedResponse = nodeGroupsClient.PollOnceInsert(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Operation retrievedResult = retrievedResponse.Result;
}

Insert(string, string, int, NodeGroup, CallSettings)

public virtual Operation<Operation, Operation> Insert(string project, string zone, int initialNodeCount, NodeGroup nodeGroupResource, CallSettings callSettings = null)

Creates a NodeGroup resource in the specified project using the data included in the request.

Parameters
NameDescription
projectstring

Project ID for this request.

zonestring

The name of the zone for this request.

initialNodeCountint

Initial count of nodes in the node group.

nodeGroupResourceNodeGroup

The body resource for this request

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
OperationOperationOperation

The RPC response.

Example
// Create client
NodeGroupsClient nodeGroupsClient = NodeGroupsClient.Create();
// Initialize request argument(s)
string project = "";
string zone = "";
int initialNodeCount = 0;
NodeGroup nodeGroupResource = new NodeGroup();
// Make the request
lro::Operation<Operation, Operation> response = nodeGroupsClient.Insert(project, zone, initialNodeCount, nodeGroupResource);

// Poll until the returned long-running operation is complete
lro::Operation<Operation, Operation> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
Operation result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
lro::Operation<Operation, Operation> retrievedResponse = nodeGroupsClient.PollOnceInsert(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Operation retrievedResult = retrievedResponse.Result;
}

InsertAsync(InsertNodeGroupRequest, CallSettings)

public virtual Task<Operation<Operation, Operation>> InsertAsync(InsertNodeGroupRequest request, CallSettings callSettings = null)

Creates a NodeGroup resource in the specified project using the data included in the request.

Parameters
NameDescription
requestInsertNodeGroupRequest

The request object containing all of the parameters for the API call.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
TaskOperationOperationOperation

A Task containing the RPC response.

Example
// Create client
NodeGroupsClient nodeGroupsClient = await NodeGroupsClient.CreateAsync();
// Initialize request argument(s)
InsertNodeGroupRequest request = new InsertNodeGroupRequest
{
    Zone = "",
    RequestId = "",
    InitialNodeCount = 0,
    Project = "",
    NodeGroupResource = new NodeGroup(),
};
// Make the request
lro::Operation<Operation, Operation> response = await nodeGroupsClient.InsertAsync(request);

// Poll until the returned long-running operation is complete
lro::Operation<Operation, Operation> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Operation result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
lro::Operation<Operation, Operation> retrievedResponse = await nodeGroupsClient.PollOnceInsertAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Operation retrievedResult = retrievedResponse.Result;
}

InsertAsync(InsertNodeGroupRequest, CancellationToken)

public virtual Task<Operation<Operation, Operation>> InsertAsync(InsertNodeGroupRequest request, CancellationToken cancellationToken)

Creates a NodeGroup resource in the specified project using the data included in the request.

Parameters
NameDescription
requestInsertNodeGroupRequest

The request object containing all of the parameters for the API call.

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
TaskOperationOperationOperation

A Task containing the RPC response.

Example
// Create client
NodeGroupsClient nodeGroupsClient = await NodeGroupsClient.CreateAsync();
// Initialize request argument(s)
InsertNodeGroupRequest request = new InsertNodeGroupRequest
{
    Zone = "",
    RequestId = "",
    InitialNodeCount = 0,
    Project = "",
    NodeGroupResource = new NodeGroup(),
};
// Make the request
lro::Operation<Operation, Operation> response = await nodeGroupsClient.InsertAsync(request);

// Poll until the returned long-running operation is complete
lro::Operation<Operation, Operation> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Operation result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
lro::Operation<Operation, Operation> retrievedResponse = await nodeGroupsClient.PollOnceInsertAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Operation retrievedResult = retrievedResponse.Result;
}

InsertAsync(string, string, int, NodeGroup, CallSettings)

public virtual Task<Operation<Operation, Operation>> InsertAsync(string project, string zone, int initialNodeCount, NodeGroup nodeGroupResource, CallSettings callSettings = null)

Creates a NodeGroup resource in the specified project using the data included in the request.

Parameters
NameDescription
projectstring

Project ID for this request.

zonestring

The name of the zone for this request.

initialNodeCountint

Initial count of nodes in the node group.

nodeGroupResourceNodeGroup

The body resource for this request

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
TaskOperationOperationOperation

A Task containing the RPC response.

Example
// Create client
NodeGroupsClient nodeGroupsClient = await NodeGroupsClient.CreateAsync();
// Initialize request argument(s)
string project = "";
string zone = "";
int initialNodeCount = 0;
NodeGroup nodeGroupResource = new NodeGroup();
// Make the request
lro::Operation<Operation, Operation> response = await nodeGroupsClient.InsertAsync(project, zone, initialNodeCount, nodeGroupResource);

// Poll until the returned long-running operation is complete
lro::Operation<Operation, Operation> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Operation result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
lro::Operation<Operation, Operation> retrievedResponse = await nodeGroupsClient.PollOnceInsertAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Operation retrievedResult = retrievedResponse.Result;
}

InsertAsync(string, string, int, NodeGroup, CancellationToken)

public virtual Task<Operation<Operation, Operation>> InsertAsync(string project, string zone, int initialNodeCount, NodeGroup nodeGroupResource, CancellationToken cancellationToken)

Creates a NodeGroup resource in the specified project using the data included in the request.

Parameters
NameDescription
projectstring

Project ID for this request.

zonestring

The name of the zone for this request.

initialNodeCountint

Initial count of nodes in the node group.

nodeGroupResourceNodeGroup

The body resource for this request

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
TaskOperationOperationOperation

A Task containing the RPC response.

Example
// Create client
NodeGroupsClient nodeGroupsClient = await NodeGroupsClient.CreateAsync();
// Initialize request argument(s)
string project = "";
string zone = "";
int initialNodeCount = 0;
NodeGroup nodeGroupResource = new NodeGroup();
// Make the request
lro::Operation<Operation, Operation> response = await nodeGroupsClient.InsertAsync(project, zone, initialNodeCount, nodeGroupResource);

// Poll until the returned long-running operation is complete
lro::Operation<Operation, Operation> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Operation result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
lro::Operation<Operation, Operation> retrievedResponse = await nodeGroupsClient.PollOnceInsertAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Operation retrievedResult = retrievedResponse.Result;
}

List(ListNodeGroupsRequest, CallSettings)

public virtual PagedEnumerable<NodeGroupList, NodeGroup> List(ListNodeGroupsRequest request, CallSettings callSettings = null)

Retrieves a list of node groups available to the specified project. Note: use nodeGroups.listNodes for more details about each group.

Parameters
NameDescription
requestListNodeGroupsRequest

The request object containing all of the parameters for the API call.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
PagedEnumerableNodeGroupListNodeGroup

A pageable sequence of NodeGroup resources.

Example
// Create client
NodeGroupsClient nodeGroupsClient = NodeGroupsClient.Create();
// Initialize request argument(s)
ListNodeGroupsRequest request = new ListNodeGroupsRequest
{
    Zone = "",
    OrderBy = "",
    Project = "",
    Filter = "",
    ReturnPartialSuccess = false,
};
// Make the request
PagedEnumerable<NodeGroupList, NodeGroup> response = nodeGroupsClient.List(request);

// Iterate over all response items, lazily performing RPCs as required
foreach (NodeGroup item in response)
{
    // Do something with each item
    Console.WriteLine(item);
}

// Or iterate over pages (of server-defined size), performing one RPC per page
foreach (NodeGroupList page in response.AsRawResponses())
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (NodeGroup item in page)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
}

// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<NodeGroup> singlePage = response.ReadPage(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (NodeGroup item in singlePage)
{
    // Do something with each item
    Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;

List(string, string, string, int?, CallSettings)

public virtual PagedEnumerable<NodeGroupList, NodeGroup> List(string project, string zone, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

Retrieves a list of node groups available to the specified project. Note: use nodeGroups.listNodes for more details about each group.

Parameters
NameDescription
projectstring

Project ID for this request.

zonestring

The name of the zone for this request.

pageTokenstring

The token returned from the previous request. A value of null or an empty string retrieves the first page.

pageSizeint

The size of page to request. The response will not be larger than this, but may be smaller. A value of null or 0 uses a server-defined page size.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
PagedEnumerableNodeGroupListNodeGroup

A pageable sequence of NodeGroup resources.

Example
// Create client
NodeGroupsClient nodeGroupsClient = NodeGroupsClient.Create();
// Initialize request argument(s)
string project = "";
string zone = "";
// Make the request
PagedEnumerable<NodeGroupList, NodeGroup> response = nodeGroupsClient.List(project, zone);

// Iterate over all response items, lazily performing RPCs as required
foreach (NodeGroup item in response)
{
    // Do something with each item
    Console.WriteLine(item);
}

// Or iterate over pages (of server-defined size), performing one RPC per page
foreach (NodeGroupList page in response.AsRawResponses())
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (NodeGroup item in page)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
}

// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<NodeGroup> singlePage = response.ReadPage(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (NodeGroup item in singlePage)
{
    // Do something with each item
    Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;

ListAsync(ListNodeGroupsRequest, CallSettings)

public virtual PagedAsyncEnumerable<NodeGroupList, NodeGroup> ListAsync(ListNodeGroupsRequest request, CallSettings callSettings = null)

Retrieves a list of node groups available to the specified project. Note: use nodeGroups.listNodes for more details about each group.

Parameters
NameDescription
requestListNodeGroupsRequest

The request object containing all of the parameters for the API call.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
PagedAsyncEnumerableNodeGroupListNodeGroup

A pageable asynchronous sequence of NodeGroup resources.

Example
// Create client
NodeGroupsClient nodeGroupsClient = await NodeGroupsClient.CreateAsync();
// Initialize request argument(s)
ListNodeGroupsRequest request = new ListNodeGroupsRequest
{
    Zone = "",
    OrderBy = "",
    Project = "",
    Filter = "",
    ReturnPartialSuccess = false,
};
// Make the request
PagedAsyncEnumerable<NodeGroupList, NodeGroup> response = nodeGroupsClient.ListAsync(request);

// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((NodeGroup item) =>
{
    // Do something with each item
    Console.WriteLine(item);
});

// Or iterate over pages (of server-defined size), performing one RPC per page
await response.AsRawResponses().ForEachAsync((NodeGroupList page) =>
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (NodeGroup item in page)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
});

// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<NodeGroup> singlePage = await response.ReadPageAsync(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (NodeGroup item in singlePage)
{
    // Do something with each item
    Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;

ListAsync(string, string, string, int?, CallSettings)

public virtual PagedAsyncEnumerable<NodeGroupList, NodeGroup> ListAsync(string project, string zone, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

Retrieves a list of node groups available to the specified project. Note: use nodeGroups.listNodes for more details about each group.

Parameters
NameDescription
projectstring

Project ID for this request.

zonestring

The name of the zone for this request.

pageTokenstring

The token returned from the previous request. A value of null or an empty string retrieves the first page.

pageSizeint

The size of page to request. The response will not be larger than this, but may be smaller. A value of null or 0 uses a server-defined page size.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
PagedAsyncEnumerableNodeGroupListNodeGroup

A pageable asynchronous sequence of NodeGroup resources.

Example
// Create client
NodeGroupsClient nodeGroupsClient = await NodeGroupsClient.CreateAsync();
// Initialize request argument(s)
string project = "";
string zone = "";
// Make the request
PagedAsyncEnumerable<NodeGroupList, NodeGroup> response = nodeGroupsClient.ListAsync(project, zone);

// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((NodeGroup item) =>
{
    // Do something with each item
    Console.WriteLine(item);
});

// Or iterate over pages (of server-defined size), performing one RPC per page
await response.AsRawResponses().ForEachAsync((NodeGroupList page) =>
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (NodeGroup item in page)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
});

// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<NodeGroup> singlePage = await response.ReadPageAsync(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (NodeGroup item in singlePage)
{
    // Do something with each item
    Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;

ListNodes(ListNodesNodeGroupsRequest, CallSettings)

public virtual PagedEnumerable<NodeGroupsListNodes, NodeGroupNode> ListNodes(ListNodesNodeGroupsRequest request, CallSettings callSettings = null)

Lists nodes in the node group.

Parameters
NameDescription
requestListNodesNodeGroupsRequest

The request object containing all of the parameters for the API call.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
PagedEnumerableNodeGroupsListNodesNodeGroupNode

A pageable sequence of NodeGroupNode resources.

Example
// Create client
NodeGroupsClient nodeGroupsClient = NodeGroupsClient.Create();
// Initialize request argument(s)
ListNodesNodeGroupsRequest request = new ListNodesNodeGroupsRequest
{
    Zone = "",
    OrderBy = "",
    Project = "",
    Filter = "",
    NodeGroup = "",
    ReturnPartialSuccess = false,
};
// Make the request
PagedEnumerable<NodeGroupsListNodes, NodeGroupNode> response = nodeGroupsClient.ListNodes(request);

// Iterate over all response items, lazily performing RPCs as required
foreach (NodeGroupNode item in response)
{
    // Do something with each item
    Console.WriteLine(item);
}

// Or iterate over pages (of server-defined size), performing one RPC per page
foreach (NodeGroupsListNodes page in response.AsRawResponses())
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (NodeGroupNode item in page)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
}

// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<NodeGroupNode> singlePage = response.ReadPage(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (NodeGroupNode item in singlePage)
{
    // Do something with each item
    Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;

ListNodes(string, string, string, string, int?, CallSettings)

public virtual PagedEnumerable<NodeGroupsListNodes, NodeGroupNode> ListNodes(string project, string zone, string nodeGroup, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

Lists nodes in the node group.

Parameters
NameDescription
projectstring

Project ID for this request.

zonestring

The name of the zone for this request.

nodeGroupstring

Name of the NodeGroup resource whose nodes you want to list.

pageTokenstring

The token returned from the previous request. A value of null or an empty string retrieves the first page.

pageSizeint

The size of page to request. The response will not be larger than this, but may be smaller. A value of null or 0 uses a server-defined page size.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
PagedEnumerableNodeGroupsListNodesNodeGroupNode

A pageable sequence of NodeGroupNode resources.

Example
// Create client
NodeGroupsClient nodeGroupsClient = NodeGroupsClient.Create();
// Initialize request argument(s)
string project = "";
string zone = "";
string nodeGroup = "";
// Make the request
PagedEnumerable<NodeGroupsListNodes, NodeGroupNode> response = nodeGroupsClient.ListNodes(project, zone, nodeGroup);

// Iterate over all response items, lazily performing RPCs as required
foreach (NodeGroupNode item in response)
{
    // Do something with each item
    Console.WriteLine(item);
}

// Or iterate over pages (of server-defined size), performing one RPC per page
foreach (NodeGroupsListNodes page in response.AsRawResponses())
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (NodeGroupNode item in page)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
}

// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<NodeGroupNode> singlePage = response.ReadPage(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (NodeGroupNode item in singlePage)
{
    // Do something with each item
    Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;

ListNodesAsync(ListNodesNodeGroupsRequest, CallSettings)

public virtual PagedAsyncEnumerable<NodeGroupsListNodes, NodeGroupNode> ListNodesAsync(ListNodesNodeGroupsRequest request, CallSettings callSettings = null)

Lists nodes in the node group.

Parameters
NameDescription
requestListNodesNodeGroupsRequest

The request object containing all of the parameters for the API call.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
PagedAsyncEnumerableNodeGroupsListNodesNodeGroupNode

A pageable asynchronous sequence of NodeGroupNode resources.

Example
// Create client
NodeGroupsClient nodeGroupsClient = await NodeGroupsClient.CreateAsync();
// Initialize request argument(s)
ListNodesNodeGroupsRequest request = new ListNodesNodeGroupsRequest
{
    Zone = "",
    OrderBy = "",
    Project = "",
    Filter = "",
    NodeGroup = "",
    ReturnPartialSuccess = false,
};
// Make the request
PagedAsyncEnumerable<NodeGroupsListNodes, NodeGroupNode> response = nodeGroupsClient.ListNodesAsync(request);

// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((NodeGroupNode item) =>
{
    // Do something with each item
    Console.WriteLine(item);
});

// Or iterate over pages (of server-defined size), performing one RPC per page
await response.AsRawResponses().ForEachAsync((NodeGroupsListNodes page) =>
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (NodeGroupNode item in page)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
});

// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<NodeGroupNode> singlePage = await response.ReadPageAsync(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (NodeGroupNode item in singlePage)
{
    // Do something with each item
    Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;

ListNodesAsync(string, string, string, string, int?, CallSettings)

public virtual PagedAsyncEnumerable<NodeGroupsListNodes, NodeGroupNode> ListNodesAsync(string project, string zone, string nodeGroup, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

Lists nodes in the node group.

Parameters
NameDescription
projectstring

Project ID for this request.

zonestring

The name of the zone for this request.

nodeGroupstring

Name of the NodeGroup resource whose nodes you want to list.

pageTokenstring

The token returned from the previous request. A value of null or an empty string retrieves the first page.

pageSizeint

The size of page to request. The response will not be larger than this, but may be smaller. A value of null or 0 uses a server-defined page size.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
PagedAsyncEnumerableNodeGroupsListNodesNodeGroupNode

A pageable asynchronous sequence of NodeGroupNode resources.

Example
// Create client
NodeGroupsClient nodeGroupsClient = await NodeGroupsClient.CreateAsync();
// Initialize request argument(s)
string project = "";
string zone = "";
string nodeGroup = "";
// Make the request
PagedAsyncEnumerable<NodeGroupsListNodes, NodeGroupNode> response = nodeGroupsClient.ListNodesAsync(project, zone, nodeGroup);

// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((NodeGroupNode item) =>
{
    // Do something with each item
    Console.WriteLine(item);
});

// Or iterate over pages (of server-defined size), performing one RPC per page
await response.AsRawResponses().ForEachAsync((NodeGroupsListNodes page) =>
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (NodeGroupNode item in page)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
});

// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<NodeGroupNode> singlePage = await response.ReadPageAsync(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (NodeGroupNode item in singlePage)
{
    // Do something with each item
    Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;

Patch(PatchNodeGroupRequest, CallSettings)

public virtual Operation<Operation, Operation> Patch(PatchNodeGroupRequest request, CallSettings callSettings = null)

Updates the specified node group.

Parameters
NameDescription
requestPatchNodeGroupRequest

The request object containing all of the parameters for the API call.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
OperationOperationOperation

The RPC response.

Example
// Create client
NodeGroupsClient nodeGroupsClient = NodeGroupsClient.Create();
// Initialize request argument(s)
PatchNodeGroupRequest request = new PatchNodeGroupRequest
{
    Zone = "",
    RequestId = "",
    Project = "",
    NodeGroup = "",
    NodeGroupResource = new NodeGroup(),
};
// Make the request
lro::Operation<Operation, Operation> response = nodeGroupsClient.Patch(request);

// Poll until the returned long-running operation is complete
lro::Operation<Operation, Operation> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
Operation result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
lro::Operation<Operation, Operation> retrievedResponse = nodeGroupsClient.PollOncePatch(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Operation retrievedResult = retrievedResponse.Result;
}

Patch(string, string, string, NodeGroup, CallSettings)

public virtual Operation<Operation, Operation> Patch(string project, string zone, string nodeGroup, NodeGroup nodeGroupResource, CallSettings callSettings = null)

Updates the specified node group.

Parameters
NameDescription
projectstring

Project ID for this request.

zonestring

The name of the zone for this request.

nodeGroupstring

Name of the NodeGroup resource to update.

nodeGroupResourceNodeGroup

The body resource for this request

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
OperationOperationOperation

The RPC response.

Example
// Create client
NodeGroupsClient nodeGroupsClient = NodeGroupsClient.Create();
// Initialize request argument(s)
string project = "";
string zone = "";
string nodeGroup = "";
NodeGroup nodeGroupResource = new NodeGroup();
// Make the request
lro::Operation<Operation, Operation> response = nodeGroupsClient.Patch(project, zone, nodeGroup, nodeGroupResource);

// Poll until the returned long-running operation is complete
lro::Operation<Operation, Operation> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
Operation result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
lro::Operation<Operation, Operation> retrievedResponse = nodeGroupsClient.PollOncePatch(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Operation retrievedResult = retrievedResponse.Result;
}

PatchAsync(PatchNodeGroupRequest, CallSettings)

public virtual Task<Operation<Operation, Operation>> PatchAsync(PatchNodeGroupRequest request, CallSettings callSettings = null)

Updates the specified node group.

Parameters
NameDescription
requestPatchNodeGroupRequest

The request object containing all of the parameters for the API call.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
TaskOperationOperationOperation

A Task containing the RPC response.

Example
// Create client
NodeGroupsClient nodeGroupsClient = await NodeGroupsClient.CreateAsync();
// Initialize request argument(s)
PatchNodeGroupRequest request = new PatchNodeGroupRequest
{
    Zone = "",
    RequestId = "",
    Project = "",
    NodeGroup = "",
    NodeGroupResource = new NodeGroup(),
};
// Make the request
lro::Operation<Operation, Operation> response = await nodeGroupsClient.PatchAsync(request);

// Poll until the returned long-running operation is complete
lro::Operation<Operation, Operation> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Operation result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
lro::Operation<Operation, Operation> retrievedResponse = await nodeGroupsClient.PollOncePatchAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Operation retrievedResult = retrievedResponse.Result;
}

PatchAsync(PatchNodeGroupRequest, CancellationToken)

public virtual Task<Operation<Operation, Operation>> PatchAsync(PatchNodeGroupRequest request, CancellationToken cancellationToken)

Updates the specified node group.

Parameters
NameDescription
requestPatchNodeGroupRequest

The request object containing all of the parameters for the API call.

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
TaskOperationOperationOperation

A Task containing the RPC response.

Example
// Create client
NodeGroupsClient nodeGroupsClient = await NodeGroupsClient.CreateAsync();
// Initialize request argument(s)
PatchNodeGroupRequest request = new PatchNodeGroupRequest
{
    Zone = "",
    RequestId = "",
    Project = "",
    NodeGroup = "",
    NodeGroupResource = new NodeGroup(),
};
// Make the request
lro::Operation<Operation, Operation> response = await nodeGroupsClient.PatchAsync(request);

// Poll until the returned long-running operation is complete
lro::Operation<Operation, Operation> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Operation result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
lro::Operation<Operation, Operation> retrievedResponse = await nodeGroupsClient.PollOncePatchAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Operation retrievedResult = retrievedResponse.Result;
}

PatchAsync(string, string, string, NodeGroup, CallSettings)

public virtual Task<Operation<Operation, Operation>> PatchAsync(string project, string zone, string nodeGroup, NodeGroup nodeGroupResource, CallSettings callSettings = null)

Updates the specified node group.

Parameters
NameDescription
projectstring

Project ID for this request.

zonestring

The name of the zone for this request.

nodeGroupstring

Name of the NodeGroup resource to update.

nodeGroupResourceNodeGroup

The body resource for this request

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
TaskOperationOperationOperation

A Task containing the RPC response.

Example
// Create client
NodeGroupsClient nodeGroupsClient = await NodeGroupsClient.CreateAsync();
// Initialize request argument(s)
string project = "";
string zone = "";
string nodeGroup = "";
NodeGroup nodeGroupResource = new NodeGroup();
// Make the request
lro::Operation<Operation, Operation> response = await nodeGroupsClient.PatchAsync(project, zone, nodeGroup, nodeGroupResource);

// Poll until the returned long-running operation is complete
lro::Operation<Operation, Operation> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Operation result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
lro::Operation<Operation, Operation> retrievedResponse = await nodeGroupsClient.PollOncePatchAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Operation retrievedResult = retrievedResponse.Result;
}

PatchAsync(string, string, string, NodeGroup, CancellationToken)

public virtual Task<Operation<Operation, Operation>> PatchAsync(string project, string zone, string nodeGroup, NodeGroup nodeGroupResource, CancellationToken cancellationToken)

Updates the specified node group.

Parameters
NameDescription
projectstring

Project ID for this request.

zonestring

The name of the zone for this request.

nodeGroupstring

Name of the NodeGroup resource to update.

nodeGroupResourceNodeGroup

The body resource for this request

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
TaskOperationOperationOperation

A Task containing the RPC response.

Example
// Create client
NodeGroupsClient nodeGroupsClient = await NodeGroupsClient.CreateAsync();
// Initialize request argument(s)
string project = "";
string zone = "";
string nodeGroup = "";
NodeGroup nodeGroupResource = new NodeGroup();
// Make the request
lro::Operation<Operation, Operation> response = await nodeGroupsClient.PatchAsync(project, zone, nodeGroup, nodeGroupResource);

// Poll until the returned long-running operation is complete
lro::Operation<Operation, Operation> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Operation result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
lro::Operation<Operation, Operation> retrievedResponse = await nodeGroupsClient.PollOncePatchAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Operation retrievedResult = retrievedResponse.Result;
}

PollOnceAddNodes(string, CallSettings)

public virtual Operation<Operation, Operation> PollOnceAddNodes(string operationName, CallSettings callSettings = null)

Poll an operation once, using an operationName from a previous invocation of AddNodes.

Parameters
NameDescription
operationNamestring

The name of a previously invoked operation. Must not be null or empty.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
OperationOperationOperation

The result of polling the operation.

PollOnceAddNodesAsync(string, CallSettings)

public virtual Task<Operation<Operation, Operation>> PollOnceAddNodesAsync(string operationName, CallSettings callSettings = null)

Asynchronously poll an operation once, using an operationName from a previous invocation of AddNodes.

Parameters
NameDescription
operationNamestring

The name of a previously invoked operation. Must not be null or empty.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
TaskOperationOperationOperation

A task representing the result of polling the operation.

PollOnceDelete(string, CallSettings)

public virtual Operation<Operation, Operation> PollOnceDelete(string operationName, CallSettings callSettings = null)

Poll an operation once, using an operationName from a previous invocation of Delete.

Parameters
NameDescription
operationNamestring

The name of a previously invoked operation. Must not be null or empty.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
OperationOperationOperation

The result of polling the operation.

PollOnceDeleteAsync(string, CallSettings)

public virtual Task<Operation<Operation, Operation>> PollOnceDeleteAsync(string operationName, CallSettings callSettings = null)

Asynchronously poll an operation once, using an operationName from a previous invocation of Delete .

Parameters
NameDescription
operationNamestring

The name of a previously invoked operation. Must not be null or empty.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
TaskOperationOperationOperation

A task representing the result of polling the operation.

PollOnceDeleteNodes(string, CallSettings)

public virtual Operation<Operation, Operation> PollOnceDeleteNodes(string operationName, CallSettings callSettings = null)

Poll an operation once, using an operationName from a previous invocation of DeleteNodes.

Parameters
NameDescription
operationNamestring

The name of a previously invoked operation. Must not be null or empty.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
OperationOperationOperation

The result of polling the operation.

PollOnceDeleteNodesAsync(string, CallSettings)

public virtual Task<Operation<Operation, Operation>> PollOnceDeleteNodesAsync(string operationName, CallSettings callSettings = null)

Asynchronously poll an operation once, using an operationName from a previous invocation of DeleteNodes.

Parameters
NameDescription
operationNamestring

The name of a previously invoked operation. Must not be null or empty.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
TaskOperationOperationOperation

A task representing the result of polling the operation.

PollOnceInsert(string, CallSettings)

public virtual Operation<Operation, Operation> PollOnceInsert(string operationName, CallSettings callSettings = null)

Poll an operation once, using an operationName from a previous invocation of Insert.

Parameters
NameDescription
operationNamestring

The name of a previously invoked operation. Must not be null or empty.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
OperationOperationOperation

The result of polling the operation.

PollOnceInsertAsync(string, CallSettings)

public virtual Task<Operation<Operation, Operation>> PollOnceInsertAsync(string operationName, CallSettings callSettings = null)

Asynchronously poll an operation once, using an operationName from a previous invocation of Insert .

Parameters
NameDescription
operationNamestring

The name of a previously invoked operation. Must not be null or empty.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
TaskOperationOperationOperation

A task representing the result of polling the operation.

PollOncePatch(string, CallSettings)

public virtual Operation<Operation, Operation> PollOncePatch(string operationName, CallSettings callSettings = null)

Poll an operation once, using an operationName from a previous invocation of Patch.

Parameters
NameDescription
operationNamestring

The name of a previously invoked operation. Must not be null or empty.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
OperationOperationOperation

The result of polling the operation.

PollOncePatchAsync(string, CallSettings)

public virtual Task<Operation<Operation, Operation>> PollOncePatchAsync(string operationName, CallSettings callSettings = null)

Asynchronously poll an operation once, using an operationName from a previous invocation of Patch .

Parameters
NameDescription
operationNamestring

The name of a previously invoked operation. Must not be null or empty.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
TaskOperationOperationOperation

A task representing the result of polling the operation.

PollOnceSetNodeTemplate(string, CallSettings)

public virtual Operation<Operation, Operation> PollOnceSetNodeTemplate(string operationName, CallSettings callSettings = null)

Poll an operation once, using an operationName from a previous invocation of SetNodeTemplate.

Parameters
NameDescription
operationNamestring

The name of a previously invoked operation. Must not be null or empty.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
OperationOperationOperation

The result of polling the operation.

PollOnceSetNodeTemplateAsync(string, CallSettings)

public virtual Task<Operation<Operation, Operation>> PollOnceSetNodeTemplateAsync(string operationName, CallSettings callSettings = null)

Asynchronously poll an operation once, using an operationName from a previous invocation of SetNodeTemplate.

Parameters
NameDescription
operationNamestring

The name of a previously invoked operation. Must not be null or empty.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
TaskOperationOperationOperation

A task representing the result of polling the operation.

PollOnceSimulateMaintenanceEvent(string, CallSettings)

public virtual Operation<Operation, Operation> PollOnceSimulateMaintenanceEvent(string operationName, CallSettings callSettings = null)

Poll an operation once, using an operationName from a previous invocation of SimulateMaintenanceEvent.

Parameters
NameDescription
operationNamestring

The name of a previously invoked operation. Must not be null or empty.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
OperationOperationOperation

The result of polling the operation.

PollOnceSimulateMaintenanceEventAsync(string, CallSettings)

public virtual Task<Operation<Operation, Operation>> PollOnceSimulateMaintenanceEventAsync(string operationName, CallSettings callSettings = null)

Asynchronously poll an operation once, using an operationName from a previous invocation of SimulateMaintenanceEvent.

Parameters
NameDescription
operationNamestring

The name of a previously invoked operation. Must not be null or empty.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
TaskOperationOperationOperation

A task representing the result of polling the operation.

SetIamPolicy(SetIamPolicyNodeGroupRequest, CallSettings)

public virtual Policy SetIamPolicy(SetIamPolicyNodeGroupRequest request, CallSettings callSettings = null)

Sets the access control policy on the specified resource. Replaces any existing policy.

Parameters
NameDescription
requestSetIamPolicyNodeGroupRequest

The request object containing all of the parameters for the API call.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Policy

The RPC response.

Example
// Create client
NodeGroupsClient nodeGroupsClient = NodeGroupsClient.Create();
// Initialize request argument(s)
SetIamPolicyNodeGroupRequest request = new SetIamPolicyNodeGroupRequest
{
    Zone = "",
    Resource = "",
    Project = "",
    ZoneSetPolicyRequestResource = new ZoneSetPolicyRequest(),
};
// Make the request
Policy response = nodeGroupsClient.SetIamPolicy(request);

SetIamPolicy(string, string, string, ZoneSetPolicyRequest, CallSettings)

public virtual Policy SetIamPolicy(string project, string zone, string resource, ZoneSetPolicyRequest zoneSetPolicyRequestResource, CallSettings callSettings = null)

Sets the access control policy on the specified resource. Replaces any existing policy.

Parameters
NameDescription
projectstring

Project ID for this request.

zonestring

The name of the zone for this request.

resourcestring

Name or id of the resource for this request.

zoneSetPolicyRequestResourceZoneSetPolicyRequest

The body resource for this request

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Policy

The RPC response.

Example
// Create client
NodeGroupsClient nodeGroupsClient = NodeGroupsClient.Create();
// Initialize request argument(s)
string project = "";
string zone = "";
string resource = "";
ZoneSetPolicyRequest zoneSetPolicyRequestResource = new ZoneSetPolicyRequest();
// Make the request
Policy response = nodeGroupsClient.SetIamPolicy(project, zone, resource, zoneSetPolicyRequestResource);

SetIamPolicyAsync(SetIamPolicyNodeGroupRequest, CallSettings)

public virtual Task<Policy> SetIamPolicyAsync(SetIamPolicyNodeGroupRequest request, CallSettings callSettings = null)

Sets the access control policy on the specified resource. Replaces any existing policy.

Parameters
NameDescription
requestSetIamPolicyNodeGroupRequest

The request object containing all of the parameters for the API call.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
TaskPolicy

A Task containing the RPC response.

Example
// Create client
NodeGroupsClient nodeGroupsClient = await NodeGroupsClient.CreateAsync();
// Initialize request argument(s)
SetIamPolicyNodeGroupRequest request = new SetIamPolicyNodeGroupRequest
{
    Zone = "",
    Resource = "",
    Project = "",
    ZoneSetPolicyRequestResource = new ZoneSetPolicyRequest(),
};
// Make the request
Policy response = await nodeGroupsClient.SetIamPolicyAsync(request);

SetIamPolicyAsync(SetIamPolicyNodeGroupRequest, CancellationToken)

public virtual Task<Policy> SetIamPolicyAsync(SetIamPolicyNodeGroupRequest request, CancellationToken cancellationToken)

Sets the access control policy on the specified resource. Replaces any existing policy.

Parameters
NameDescription
requestSetIamPolicyNodeGroupRequest

The request object containing all of the parameters for the API call.

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
TaskPolicy

A Task containing the RPC response.

Example
// Create client
NodeGroupsClient nodeGroupsClient = await NodeGroupsClient.CreateAsync();
// Initialize request argument(s)
SetIamPolicyNodeGroupRequest request = new SetIamPolicyNodeGroupRequest
{
    Zone = "",
    Resource = "",
    Project = "",
    ZoneSetPolicyRequestResource = new ZoneSetPolicyRequest(),
};
// Make the request
Policy response = await nodeGroupsClient.SetIamPolicyAsync(request);

SetIamPolicyAsync(string, string, string, ZoneSetPolicyRequest, CallSettings)

public virtual Task<Policy> SetIamPolicyAsync(string project, string zone, string resource, ZoneSetPolicyRequest zoneSetPolicyRequestResource, CallSettings callSettings = null)

Sets the access control policy on the specified resource. Replaces any existing policy.

Parameters
NameDescription
projectstring

Project ID for this request.

zonestring

The name of the zone for this request.

resourcestring

Name or id of the resource for this request.

zoneSetPolicyRequestResourceZoneSetPolicyRequest

The body resource for this request

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
TaskPolicy

A Task containing the RPC response.

Example
// Create client
NodeGroupsClient nodeGroupsClient = await NodeGroupsClient.CreateAsync();
// Initialize request argument(s)
string project = "";
string zone = "";
string resource = "";
ZoneSetPolicyRequest zoneSetPolicyRequestResource = new ZoneSetPolicyRequest();
// Make the request
Policy response = await nodeGroupsClient.SetIamPolicyAsync(project, zone, resource, zoneSetPolicyRequestResource);

SetIamPolicyAsync(string, string, string, ZoneSetPolicyRequest, CancellationToken)

public virtual Task<Policy> SetIamPolicyAsync(string project, string zone, string resource, ZoneSetPolicyRequest zoneSetPolicyRequestResource, CancellationToken cancellationToken)

Sets the access control policy on the specified resource. Replaces any existing policy.

Parameters
NameDescription
projectstring

Project ID for this request.

zonestring

The name of the zone for this request.

resourcestring

Name or id of the resource for this request.

zoneSetPolicyRequestResourceZoneSetPolicyRequest

The body resource for this request

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
TaskPolicy

A Task containing the RPC response.

Example
// Create client
NodeGroupsClient nodeGroupsClient = await NodeGroupsClient.CreateAsync();
// Initialize request argument(s)
string project = "";
string zone = "";
string resource = "";
ZoneSetPolicyRequest zoneSetPolicyRequestResource = new ZoneSetPolicyRequest();
// Make the request
Policy response = await nodeGroupsClient.SetIamPolicyAsync(project, zone, resource, zoneSetPolicyRequestResource);

SetNodeTemplate(SetNodeTemplateNodeGroupRequest, CallSettings)

public virtual Operation<Operation, Operation> SetNodeTemplate(SetNodeTemplateNodeGroupRequest request, CallSettings callSettings = null)

Updates the node template of the node group.

Parameters
NameDescription
requestSetNodeTemplateNodeGroupRequest

The request object containing all of the parameters for the API call.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
OperationOperationOperation

The RPC response.

Example
// Create client
NodeGroupsClient nodeGroupsClient = NodeGroupsClient.Create();
// Initialize request argument(s)
SetNodeTemplateNodeGroupRequest request = new SetNodeTemplateNodeGroupRequest
{
    Zone = "",
    RequestId = "",
    NodeGroupsSetNodeTemplateRequestResource = new NodeGroupsSetNodeTemplateRequest(),
    Project = "",
    NodeGroup = "",
};
// Make the request
lro::Operation<Operation, Operation> response = nodeGroupsClient.SetNodeTemplate(request);

// Poll until the returned long-running operation is complete
lro::Operation<Operation, Operation> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
Operation result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
lro::Operation<Operation, Operation> retrievedResponse = nodeGroupsClient.PollOnceSetNodeTemplate(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Operation retrievedResult = retrievedResponse.Result;
}

SetNodeTemplate(string, string, string, NodeGroupsSetNodeTemplateRequest, CallSettings)

public virtual Operation<Operation, Operation> SetNodeTemplate(string project, string zone, string nodeGroup, NodeGroupsSetNodeTemplateRequest nodeGroupsSetNodeTemplateRequestResource, CallSettings callSettings = null)

Updates the node template of the node group.

Parameters
NameDescription
projectstring

Project ID for this request.

zonestring

The name of the zone for this request.

nodeGroupstring

Name of the NodeGroup resource to update.

nodeGroupsSetNodeTemplateRequestResourceNodeGroupsSetNodeTemplateRequest

The body resource for this request

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
OperationOperationOperation

The RPC response.

Example
// Create client
NodeGroupsClient nodeGroupsClient = NodeGroupsClient.Create();
// Initialize request argument(s)
string project = "";
string zone = "";
string nodeGroup = "";
NodeGroupsSetNodeTemplateRequest nodeGroupsSetNodeTemplateRequestResource = new NodeGroupsSetNodeTemplateRequest();
// Make the request
lro::Operation<Operation, Operation> response = nodeGroupsClient.SetNodeTemplate(project, zone, nodeGroup, nodeGroupsSetNodeTemplateRequestResource);

// Poll until the returned long-running operation is complete
lro::Operation<Operation, Operation> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
Operation result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
lro::Operation<Operation, Operation> retrievedResponse = nodeGroupsClient.PollOnceSetNodeTemplate(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Operation retrievedResult = retrievedResponse.Result;
}

SetNodeTemplateAsync(SetNodeTemplateNodeGroupRequest, CallSettings)

public virtual Task<Operation<Operation, Operation>> SetNodeTemplateAsync(SetNodeTemplateNodeGroupRequest request, CallSettings callSettings = null)

Updates the node template of the node group.

Parameters
NameDescription
requestSetNodeTemplateNodeGroupRequest

The request object containing all of the parameters for the API call.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
TaskOperationOperationOperation

A Task containing the RPC response.

Example
// Create client
NodeGroupsClient nodeGroupsClient = await NodeGroupsClient.CreateAsync();
// Initialize request argument(s)
SetNodeTemplateNodeGroupRequest request = new SetNodeTemplateNodeGroupRequest
{
    Zone = "",
    RequestId = "",
    NodeGroupsSetNodeTemplateRequestResource = new NodeGroupsSetNodeTemplateRequest(),
    Project = "",
    NodeGroup = "",
};
// Make the request
lro::Operation<Operation, Operation> response = await nodeGroupsClient.SetNodeTemplateAsync(request);

// Poll until the returned long-running operation is complete
lro::Operation<Operation, Operation> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Operation result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
lro::Operation<Operation, Operation> retrievedResponse = await nodeGroupsClient.PollOnceSetNodeTemplateAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Operation retrievedResult = retrievedResponse.Result;
}

SetNodeTemplateAsync(SetNodeTemplateNodeGroupRequest, CancellationToken)

public virtual Task<Operation<Operation, Operation>> SetNodeTemplateAsync(SetNodeTemplateNodeGroupRequest request, CancellationToken cancellationToken)

Updates the node template of the node group.

Parameters
NameDescription
requestSetNodeTemplateNodeGroupRequest

The request object containing all of the parameters for the API call.

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
TaskOperationOperationOperation

A Task containing the RPC response.

Example
// Create client
NodeGroupsClient nodeGroupsClient = await NodeGroupsClient.CreateAsync();
// Initialize request argument(s)
SetNodeTemplateNodeGroupRequest request = new SetNodeTemplateNodeGroupRequest
{
    Zone = "",
    RequestId = "",
    NodeGroupsSetNodeTemplateRequestResource = new NodeGroupsSetNodeTemplateRequest(),
    Project = "",
    NodeGroup = "",
};
// Make the request
lro::Operation<Operation, Operation> response = await nodeGroupsClient.SetNodeTemplateAsync(request);

// Poll until the returned long-running operation is complete
lro::Operation<Operation, Operation> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Operation result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
lro::Operation<Operation, Operation> retrievedResponse = await nodeGroupsClient.PollOnceSetNodeTemplateAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Operation retrievedResult = retrievedResponse.Result;
}

SetNodeTemplateAsync(string, string, string, NodeGroupsSetNodeTemplateRequest, CallSettings)

public virtual Task<Operation<Operation, Operation>> SetNodeTemplateAsync(string project, string zone, string nodeGroup, NodeGroupsSetNodeTemplateRequest nodeGroupsSetNodeTemplateRequestResource, CallSettings callSettings = null)

Updates the node template of the node group.

Parameters
NameDescription
projectstring

Project ID for this request.

zonestring

The name of the zone for this request.

nodeGroupstring

Name of the NodeGroup resource to update.

nodeGroupsSetNodeTemplateRequestResourceNodeGroupsSetNodeTemplateRequest

The body resource for this request

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
TaskOperationOperationOperation

A Task containing the RPC response.

Example
// Create client
NodeGroupsClient nodeGroupsClient = await NodeGroupsClient.CreateAsync();
// Initialize request argument(s)
string project = "";
string zone = "";
string nodeGroup = "";
NodeGroupsSetNodeTemplateRequest nodeGroupsSetNodeTemplateRequestResource = new NodeGroupsSetNodeTemplateRequest();
// Make the request
lro::Operation<Operation, Operation> response = await nodeGroupsClient.SetNodeTemplateAsync(project, zone, nodeGroup, nodeGroupsSetNodeTemplateRequestResource);

// Poll until the returned long-running operation is complete
lro::Operation<Operation, Operation> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Operation result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
lro::Operation<Operation, Operation> retrievedResponse = await nodeGroupsClient.PollOnceSetNodeTemplateAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Operation retrievedResult = retrievedResponse.Result;
}

SetNodeTemplateAsync(string, string, string, NodeGroupsSetNodeTemplateRequest, CancellationToken)

public virtual Task<Operation<Operation, Operation>> SetNodeTemplateAsync(string project, string zone, string nodeGroup, NodeGroupsSetNodeTemplateRequest nodeGroupsSetNodeTemplateRequestResource, CancellationToken cancellationToken)

Updates the node template of the node group.

Parameters
NameDescription
projectstring

Project ID for this request.

zonestring

The name of the zone for this request.

nodeGroupstring

Name of the NodeGroup resource to update.

nodeGroupsSetNodeTemplateRequestResourceNodeGroupsSetNodeTemplateRequest

The body resource for this request

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
TaskOperationOperationOperation

A Task containing the RPC response.

Example
// Create client
NodeGroupsClient nodeGroupsClient = await NodeGroupsClient.CreateAsync();
// Initialize request argument(s)
string project = "";
string zone = "";
string nodeGroup = "";
NodeGroupsSetNodeTemplateRequest nodeGroupsSetNodeTemplateRequestResource = new NodeGroupsSetNodeTemplateRequest();
// Make the request
lro::Operation<Operation, Operation> response = await nodeGroupsClient.SetNodeTemplateAsync(project, zone, nodeGroup, nodeGroupsSetNodeTemplateRequestResource);

// Poll until the returned long-running operation is complete
lro::Operation<Operation, Operation> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Operation result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
lro::Operation<Operation, Operation> retrievedResponse = await nodeGroupsClient.PollOnceSetNodeTemplateAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Operation retrievedResult = retrievedResponse.Result;
}

ShutdownDefaultChannelsAsync()

public static Task ShutdownDefaultChannelsAsync()

Shuts down any channels automatically created by Create() and CreateAsync(CancellationToken). Channels which weren't automatically created are not affected.

Returns
TypeDescription
Task

A task representing the asynchronous shutdown operation.

Remarks

After calling this method, further calls to Create() and CreateAsync(CancellationToken) will create new channels, which could in turn be shut down by another call to this method.

SimulateMaintenanceEvent(SimulateMaintenanceEventNodeGroupRequest, CallSettings)

public virtual Operation<Operation, Operation> SimulateMaintenanceEvent(SimulateMaintenanceEventNodeGroupRequest request, CallSettings callSettings = null)

Simulates maintenance event on specified nodes from the node group.

Parameters
NameDescription
requestSimulateMaintenanceEventNodeGroupRequest

The request object containing all of the parameters for the API call.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
OperationOperationOperation

The RPC response.

Example
// Create client
NodeGroupsClient nodeGroupsClient = NodeGroupsClient.Create();
// Initialize request argument(s)
SimulateMaintenanceEventNodeGroupRequest request = new SimulateMaintenanceEventNodeGroupRequest
{
    Zone = "",
    RequestId = "",
    Project = "",
    NodeGroupsSimulateMaintenanceEventRequestResource = new NodeGroupsSimulateMaintenanceEventRequest(),
    NodeGroup = "",
};
// Make the request
lro::Operation<Operation, Operation> response = nodeGroupsClient.SimulateMaintenanceEvent(request);

// Poll until the returned long-running operation is complete
lro::Operation<Operation, Operation> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
Operation result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
lro::Operation<Operation, Operation> retrievedResponse = nodeGroupsClient.PollOnceSimulateMaintenanceEvent(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Operation retrievedResult = retrievedResponse.Result;
}

SimulateMaintenanceEvent(string, string, string, NodeGroupsSimulateMaintenanceEventRequest, CallSettings)

public virtual Operation<Operation, Operation> SimulateMaintenanceEvent(string project, string zone, string nodeGroup, NodeGroupsSimulateMaintenanceEventRequest nodeGroupsSimulateMaintenanceEventRequestResource, CallSettings callSettings = null)

Simulates maintenance event on specified nodes from the node group.

Parameters
NameDescription
projectstring

Project ID for this request.

zonestring

The name of the zone for this request.

nodeGroupstring

Name of the NodeGroup resource whose nodes will go under maintenance simulation.

nodeGroupsSimulateMaintenanceEventRequestResourceNodeGroupsSimulateMaintenanceEventRequest

The body resource for this request

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
OperationOperationOperation

The RPC response.

Example
// Create client
NodeGroupsClient nodeGroupsClient = NodeGroupsClient.Create();
// Initialize request argument(s)
string project = "";
string zone = "";
string nodeGroup = "";
NodeGroupsSimulateMaintenanceEventRequest nodeGroupsSimulateMaintenanceEventRequestResource = new NodeGroupsSimulateMaintenanceEventRequest();
// Make the request
lro::Operation<Operation, Operation> response = nodeGroupsClient.SimulateMaintenanceEvent(project, zone, nodeGroup, nodeGroupsSimulateMaintenanceEventRequestResource);

// Poll until the returned long-running operation is complete
lro::Operation<Operation, Operation> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
Operation result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
lro::Operation<Operation, Operation> retrievedResponse = nodeGroupsClient.PollOnceSimulateMaintenanceEvent(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Operation retrievedResult = retrievedResponse.Result;
}

SimulateMaintenanceEventAsync(SimulateMaintenanceEventNodeGroupRequest, CallSettings)

public virtual Task<Operation<Operation, Operation>> SimulateMaintenanceEventAsync(SimulateMaintenanceEventNodeGroupRequest request, CallSettings callSettings = null)

Simulates maintenance event on specified nodes from the node group.

Parameters
NameDescription
requestSimulateMaintenanceEventNodeGroupRequest

The request object containing all of the parameters for the API call.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
TaskOperationOperationOperation

A Task containing the RPC response.

Example
// Create client
NodeGroupsClient nodeGroupsClient = await NodeGroupsClient.CreateAsync();
// Initialize request argument(s)
SimulateMaintenanceEventNodeGroupRequest request = new SimulateMaintenanceEventNodeGroupRequest
{
    Zone = "",
    RequestId = "",
    Project = "",
    NodeGroupsSimulateMaintenanceEventRequestResource = new NodeGroupsSimulateMaintenanceEventRequest(),
    NodeGroup = "",
};
// Make the request
lro::Operation<Operation, Operation> response = await nodeGroupsClient.SimulateMaintenanceEventAsync(request);

// Poll until the returned long-running operation is complete
lro::Operation<Operation, Operation> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Operation result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
lro::Operation<Operation, Operation> retrievedResponse = await nodeGroupsClient.PollOnceSimulateMaintenanceEventAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Operation retrievedResult = retrievedResponse.Result;
}

SimulateMaintenanceEventAsync(SimulateMaintenanceEventNodeGroupRequest, CancellationToken)

public virtual Task<Operation<Operation, Operation>> SimulateMaintenanceEventAsync(SimulateMaintenanceEventNodeGroupRequest request, CancellationToken cancellationToken)

Simulates maintenance event on specified nodes from the node group.

Parameters
NameDescription
requestSimulateMaintenanceEventNodeGroupRequest

The request object containing all of the parameters for the API call.

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
TaskOperationOperationOperation

A Task containing the RPC response.

Example
// Create client
NodeGroupsClient nodeGroupsClient = await NodeGroupsClient.CreateAsync();
// Initialize request argument(s)
SimulateMaintenanceEventNodeGroupRequest request = new SimulateMaintenanceEventNodeGroupRequest
{
    Zone = "",
    RequestId = "",
    Project = "",
    NodeGroupsSimulateMaintenanceEventRequestResource = new NodeGroupsSimulateMaintenanceEventRequest(),
    NodeGroup = "",
};
// Make the request
lro::Operation<Operation, Operation> response = await nodeGroupsClient.SimulateMaintenanceEventAsync(request);

// Poll until the returned long-running operation is complete
lro::Operation<Operation, Operation> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Operation result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
lro::Operation<Operation, Operation> retrievedResponse = await nodeGroupsClient.PollOnceSimulateMaintenanceEventAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Operation retrievedResult = retrievedResponse.Result;
}

SimulateMaintenanceEventAsync(string, string, string, NodeGroupsSimulateMaintenanceEventRequest, CallSettings)

public virtual Task<Operation<Operation, Operation>> SimulateMaintenanceEventAsync(string project, string zone, string nodeGroup, NodeGroupsSimulateMaintenanceEventRequest nodeGroupsSimulateMaintenanceEventRequestResource, CallSettings callSettings = null)

Simulates maintenance event on specified nodes from the node group.

Parameters
NameDescription
projectstring

Project ID for this request.

zonestring

The name of the zone for this request.

nodeGroupstring

Name of the NodeGroup resource whose nodes will go under maintenance simulation.

nodeGroupsSimulateMaintenanceEventRequestResourceNodeGroupsSimulateMaintenanceEventRequest

The body resource for this request

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
TaskOperationOperationOperation

A Task containing the RPC response.

Example
// Create client
NodeGroupsClient nodeGroupsClient = await NodeGroupsClient.CreateAsync();
// Initialize request argument(s)
string project = "";
string zone = "";
string nodeGroup = "";
NodeGroupsSimulateMaintenanceEventRequest nodeGroupsSimulateMaintenanceEventRequestResource = new NodeGroupsSimulateMaintenanceEventRequest();
// Make the request
lro::Operation<Operation, Operation> response = await nodeGroupsClient.SimulateMaintenanceEventAsync(project, zone, nodeGroup, nodeGroupsSimulateMaintenanceEventRequestResource);

// Poll until the returned long-running operation is complete
lro::Operation<Operation, Operation> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Operation result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
lro::Operation<Operation, Operation> retrievedResponse = await nodeGroupsClient.PollOnceSimulateMaintenanceEventAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Operation retrievedResult = retrievedResponse.Result;
}

SimulateMaintenanceEventAsync(string, string, string, NodeGroupsSimulateMaintenanceEventRequest, CancellationToken)

public virtual Task<Operation<Operation, Operation>> SimulateMaintenanceEventAsync(string project, string zone, string nodeGroup, NodeGroupsSimulateMaintenanceEventRequest nodeGroupsSimulateMaintenanceEventRequestResource, CancellationToken cancellationToken)

Simulates maintenance event on specified nodes from the node group.

Parameters
NameDescription
projectstring

Project ID for this request.

zonestring

The name of the zone for this request.

nodeGroupstring

Name of the NodeGroup resource whose nodes will go under maintenance simulation.

nodeGroupsSimulateMaintenanceEventRequestResourceNodeGroupsSimulateMaintenanceEventRequest

The body resource for this request

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
TaskOperationOperationOperation

A Task containing the RPC response.

Example
// Create client
NodeGroupsClient nodeGroupsClient = await NodeGroupsClient.CreateAsync();
// Initialize request argument(s)
string project = "";
string zone = "";
string nodeGroup = "";
NodeGroupsSimulateMaintenanceEventRequest nodeGroupsSimulateMaintenanceEventRequestResource = new NodeGroupsSimulateMaintenanceEventRequest();
// Make the request
lro::Operation<Operation, Operation> response = await nodeGroupsClient.SimulateMaintenanceEventAsync(project, zone, nodeGroup, nodeGroupsSimulateMaintenanceEventRequestResource);

// Poll until the returned long-running operation is complete
lro::Operation<Operation, Operation> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Operation result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
lro::Operation<Operation, Operation> retrievedResponse = await nodeGroupsClient.PollOnceSimulateMaintenanceEventAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Operation retrievedResult = retrievedResponse.Result;
}

TestIamPermissions(TestIamPermissionsNodeGroupRequest, CallSettings)

public virtual TestPermissionsResponse TestIamPermissions(TestIamPermissionsNodeGroupRequest request, CallSettings callSettings = null)

Returns permissions that a caller has on the specified resource.

Parameters
NameDescription
requestTestIamPermissionsNodeGroupRequest

The request object containing all of the parameters for the API call.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
TestPermissionsResponse

The RPC response.

Example
// Create client
NodeGroupsClient nodeGroupsClient = NodeGroupsClient.Create();
// Initialize request argument(s)
TestIamPermissionsNodeGroupRequest request = new TestIamPermissionsNodeGroupRequest
{
    Zone = "",
    Resource = "",
    Project = "",
    TestPermissionsRequestResource = new TestPermissionsRequest(),
};
// Make the request
TestPermissionsResponse response = nodeGroupsClient.TestIamPermissions(request);

TestIamPermissions(string, string, string, TestPermissionsRequest, CallSettings)

public virtual TestPermissionsResponse TestIamPermissions(string project, string zone, string resource, TestPermissionsRequest testPermissionsRequestResource, CallSettings callSettings = null)

Returns permissions that a caller has on the specified resource.

Parameters
NameDescription
projectstring

Project ID for this request.

zonestring

The name of the zone for this request.

resourcestring

Name or id of the resource for this request.

testPermissionsRequestResourceTestPermissionsRequest

The body resource for this request

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
TestPermissionsResponse

The RPC response.

Example
// Create client
NodeGroupsClient nodeGroupsClient = NodeGroupsClient.Create();
// Initialize request argument(s)
string project = "";
string zone = "";
string resource = "";
TestPermissionsRequest testPermissionsRequestResource = new TestPermissionsRequest();
// Make the request
TestPermissionsResponse response = nodeGroupsClient.TestIamPermissions(project, zone, resource, testPermissionsRequestResource);

TestIamPermissionsAsync(TestIamPermissionsNodeGroupRequest, CallSettings)

public virtual Task<TestPermissionsResponse> TestIamPermissionsAsync(TestIamPermissionsNodeGroupRequest request, CallSettings callSettings = null)

Returns permissions that a caller has on the specified resource.

Parameters
NameDescription
requestTestIamPermissionsNodeGroupRequest

The request object containing all of the parameters for the API call.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
TaskTestPermissionsResponse

A Task containing the RPC response.

Example
// Create client
NodeGroupsClient nodeGroupsClient = await NodeGroupsClient.CreateAsync();
// Initialize request argument(s)
TestIamPermissionsNodeGroupRequest request = new TestIamPermissionsNodeGroupRequest
{
    Zone = "",
    Resource = "",
    Project = "",
    TestPermissionsRequestResource = new TestPermissionsRequest(),
};
// Make the request
TestPermissionsResponse response = await nodeGroupsClient.TestIamPermissionsAsync(request);

TestIamPermissionsAsync(TestIamPermissionsNodeGroupRequest, CancellationToken)

public virtual Task<TestPermissionsResponse> TestIamPermissionsAsync(TestIamPermissionsNodeGroupRequest request, CancellationToken cancellationToken)

Returns permissions that a caller has on the specified resource.

Parameters
NameDescription
requestTestIamPermissionsNodeGroupRequest

The request object containing all of the parameters for the API call.

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
TaskTestPermissionsResponse

A Task containing the RPC response.

Example
// Create client
NodeGroupsClient nodeGroupsClient = await NodeGroupsClient.CreateAsync();
// Initialize request argument(s)
TestIamPermissionsNodeGroupRequest request = new TestIamPermissionsNodeGroupRequest
{
    Zone = "",
    Resource = "",
    Project = "",
    TestPermissionsRequestResource = new TestPermissionsRequest(),
};
// Make the request
TestPermissionsResponse response = await nodeGroupsClient.TestIamPermissionsAsync(request);

TestIamPermissionsAsync(string, string, string, TestPermissionsRequest, CallSettings)

public virtual Task<TestPermissionsResponse> TestIamPermissionsAsync(string project, string zone, string resource, TestPermissionsRequest testPermissionsRequestResource, CallSettings callSettings = null)

Returns permissions that a caller has on the specified resource.

Parameters
NameDescription
projectstring

Project ID for this request.

zonestring

The name of the zone for this request.

resourcestring

Name or id of the resource for this request.

testPermissionsRequestResourceTestPermissionsRequest

The body resource for this request

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
TaskTestPermissionsResponse

A Task containing the RPC response.

Example
// Create client
NodeGroupsClient nodeGroupsClient = await NodeGroupsClient.CreateAsync();
// Initialize request argument(s)
string project = "";
string zone = "";
string resource = "";
TestPermissionsRequest testPermissionsRequestResource = new TestPermissionsRequest();
// Make the request
TestPermissionsResponse response = await nodeGroupsClient.TestIamPermissionsAsync(project, zone, resource, testPermissionsRequestResource);

TestIamPermissionsAsync(string, string, string, TestPermissionsRequest, CancellationToken)

public virtual Task<TestPermissionsResponse> TestIamPermissionsAsync(string project, string zone, string resource, TestPermissionsRequest testPermissionsRequestResource, CancellationToken cancellationToken)

Returns permissions that a caller has on the specified resource.

Parameters
NameDescription
projectstring

Project ID for this request.

zonestring

The name of the zone for this request.

resourcestring

Name or id of the resource for this request.

testPermissionsRequestResourceTestPermissionsRequest

The body resource for this request

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
TaskTestPermissionsResponse

A Task containing the RPC response.

Example
// Create client
NodeGroupsClient nodeGroupsClient = await NodeGroupsClient.CreateAsync();
// Initialize request argument(s)
string project = "";
string zone = "";
string resource = "";
TestPermissionsRequest testPermissionsRequestResource = new TestPermissionsRequest();
// Make the request
TestPermissionsResponse response = await nodeGroupsClient.TestIamPermissionsAsync(project, zone, resource, testPermissionsRequestResource);