Class NodeGroupsClient (1.2.0)

public abstract 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
IReadOnlyList<String>
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
NodeGroups.NodeGroupsClient

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

SetNodeTemplateOperationsClient

public virtual OperationsClient SetNodeTemplateOperationsClient { get; }

The long-running operations client for SetNodeTemplate.

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
Operation<Operation, Operation>

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
Operation<Operation, Operation>

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
Task<Operation<Operation, Operation>>

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
Task<Operation<Operation, Operation>>

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
Task<Operation<Operation, Operation>>

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
Task<Operation<Operation, Operation>>

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.

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
PagedEnumerable<NodeGroupAggregatedList, KeyValuePair<String, NodeGroupsScopedList>>

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 = "",
    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, Nullable<Int32>, CallSettings)

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

Retrieves an aggregated list of node groups. Note: use nodeGroups.listNodes for more details about each group.

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.

pageSizeNullable<Int32>

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
PagedEnumerable<NodeGroupAggregatedList, KeyValuePair<String, NodeGroupsScopedList>>

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.

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
PagedAsyncEnumerable<NodeGroupAggregatedList, KeyValuePair<String, NodeGroupsScopedList>>

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 = "",
    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, Nullable<Int32>, CallSettings)

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

Retrieves an aggregated list of node groups. Note: use nodeGroups.listNodes for more details about each group.

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.

pageSizeNullable<Int32>

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
PagedAsyncEnumerable<NodeGroupAggregatedList, KeyValuePair<String, NodeGroupsScopedList>>

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(CancellationToken))

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
Task<NodeGroupsClient>

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
Operation<Operation, Operation>

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
Operation<Operation, Operation>

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
Task<Operation<Operation, Operation>>

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
Task<Operation<Operation, Operation>>

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
Task<Operation<Operation, Operation>>

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
Task<Operation<Operation, Operation>>

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
Operation<Operation, Operation>

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
Operation<Operation, Operation>

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
Task<Operation<Operation, Operation>>

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
Task<Operation<Operation, Operation>>

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
Task<Operation<Operation, Operation>>

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
Task<Operation<Operation, Operation>>

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
Task<NodeGroup>

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
Task<NodeGroup>

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
Task<NodeGroup>

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
Task<NodeGroup>

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
Task<Policy>

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
Task<Policy>

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
Task<Policy>

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
Task<Policy>

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
Operation<Operation, Operation>

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, Int32, 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.

initialNodeCountInt32

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
Operation<Operation, Operation>

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
Task<Operation<Operation, Operation>>

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
Task<Operation<Operation, Operation>>

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, Int32, 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.

initialNodeCountInt32

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
Task<Operation<Operation, Operation>>

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, Int32, 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.

initialNodeCountInt32

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
Task<Operation<Operation, Operation>>

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
PagedEnumerable<NodeGroupList, NodeGroup>

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, Nullable<Int32>, CallSettings)

public virtual PagedEnumerable<NodeGroupList, NodeGroup> List(string project, string zone, string pageToken = null, int? pageSize = default(int? ), 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.

pageSizeNullable<Int32>

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
PagedEnumerable<NodeGroupList, NodeGroup>

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
PagedAsyncEnumerable<NodeGroupList, NodeGroup>

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, Nullable<Int32>, CallSettings)

public virtual PagedAsyncEnumerable<NodeGroupList, NodeGroup> ListAsync(string project, string zone, string pageToken = null, int? pageSize = default(int? ), 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.

pageSizeNullable<Int32>

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
PagedAsyncEnumerable<NodeGroupList, NodeGroup>

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
PagedEnumerable<NodeGroupsListNodes, NodeGroupNode>

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, Nullable<Int32>, CallSettings)

public virtual PagedEnumerable<NodeGroupsListNodes, NodeGroupNode> ListNodes(string project, string zone, string nodeGroup, string pageToken = null, int? pageSize = default(int? ), 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.

pageSizeNullable<Int32>

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
PagedEnumerable<NodeGroupsListNodes, NodeGroupNode>

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
PagedAsyncEnumerable<NodeGroupsListNodes, NodeGroupNode>

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, Nullable<Int32>, CallSettings)

public virtual PagedAsyncEnumerable<NodeGroupsListNodes, NodeGroupNode> ListNodesAsync(string project, string zone, string nodeGroup, string pageToken = null, int? pageSize = default(int? ), 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.

pageSizeNullable<Int32>

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
PagedAsyncEnumerable<NodeGroupsListNodes, NodeGroupNode>

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
Operation<Operation, Operation>

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
Operation<Operation, Operation>

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
Task<Operation<Operation, Operation>>

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
Task<Operation<Operation, Operation>>

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
Task<Operation<Operation, Operation>>

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
Task<Operation<Operation, Operation>>

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
Operation<Operation, Operation>

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
Task<Operation<Operation, Operation>>

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
Operation<Operation, Operation>

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
Task<Operation<Operation, Operation>>

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
Operation<Operation, Operation>

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
Task<Operation<Operation, Operation>>

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
Operation<Operation, Operation>

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
Task<Operation<Operation, Operation>>

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
Operation<Operation, Operation>

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
Task<Operation<Operation, Operation>>

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
Operation<Operation, Operation>

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
Task<Operation<Operation, Operation>>

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
Task<Policy>

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
Task<Policy>

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
Task<Policy>

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
Task<Policy>

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
Operation<Operation, Operation>

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
Operation<Operation, Operation>

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
Task<Operation<Operation, Operation>>

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
Task<Operation<Operation, Operation>>

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
Task<Operation<Operation, Operation>>

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
Task<Operation<Operation, Operation>>

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.

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
Task<TestPermissionsResponse>

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
Task<TestPermissionsResponse>

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
Task<TestPermissionsResponse>

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
Task<TestPermissionsResponse>

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);