public abstract class NodeGroupsClient
NodeGroups client wrapper, for convenient use.
Derived Types
Namespace
Google.Cloud.Compute.V1Assembly
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 | |
---|---|
Type | Description |
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 | |
---|---|
Type | Description |
String |
DefaultScopes
public static IReadOnlyList<string> DefaultScopes { get; }
The default NodeGroups scopes.
Property Value | |
---|---|
Type | Description |
IReadOnlyList<String> |
The default NodeGroups scopes are:
DeleteNodesOperationsClient
public virtual OperationsClient DeleteNodesOperationsClient { get; }
The long-running operations client for DeleteNodes
.
Property Value | |
---|---|
Type | Description |
OperationsClient |
DeleteOperationsClient
public virtual OperationsClient DeleteOperationsClient { get; }
The long-running operations client for Delete
.
Property Value | |
---|---|
Type | Description |
OperationsClient |
GrpcClient
public virtual NodeGroups.NodeGroupsClient GrpcClient { get; }
The underlying gRPC NodeGroups client
Property Value | |
---|---|
Type | Description |
NodeGroups.NodeGroupsClient |
InsertOperationsClient
public virtual OperationsClient InsertOperationsClient { get; }
The long-running operations client for Insert
.
Property Value | |
---|---|
Type | Description |
OperationsClient |
PatchOperationsClient
public virtual OperationsClient PatchOperationsClient { get; }
The long-running operations client for Patch
.
Property Value | |
---|---|
Type | Description |
OperationsClient |
ServiceMetadata
public static ServiceMetadata ServiceMetadata { get; }
The service metadata associated with this client type.
Property Value | |
---|---|
Type | Description |
ServiceMetadata |
SetNodeTemplateOperationsClient
public virtual OperationsClient SetNodeTemplateOperationsClient { get; }
The long-running operations client for SetNodeTemplate
.
Property Value | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
request | AddNodesNodeGroupRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Operation<Operation, Operation> | The RPC response. |
// 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 | |
---|---|
Name | Description |
project | String Project ID for this request. |
zone | String The name of the zone for this request. |
nodeGroup | String Name of the NodeGroup resource. |
nodeGroupsAddNodesRequestResource | NodeGroupsAddNodesRequest The body resource for this request |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Operation<Operation, Operation> | The RPC response. |
// 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 | |
---|---|
Name | Description |
request | AddNodesNodeGroupRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Task<Operation<Operation, Operation>> | A Task containing the RPC response. |
// 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 | |
---|---|
Name | Description |
request | AddNodesNodeGroupRequest The request object containing all of the parameters for the API call. |
cancellationToken | CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
Task<Operation<Operation, Operation>> | A Task containing the RPC response. |
// 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 | |
---|---|
Name | Description |
project | String Project ID for this request. |
zone | String The name of the zone for this request. |
nodeGroup | String Name of the NodeGroup resource. |
nodeGroupsAddNodesRequestResource | NodeGroupsAddNodesRequest The body resource for this request |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Task<Operation<Operation, Operation>> | A Task containing the RPC response. |
// 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 | |
---|---|
Name | Description |
project | String Project ID for this request. |
zone | String The name of the zone for this request. |
nodeGroup | String Name of the NodeGroup resource. |
nodeGroupsAddNodesRequestResource | NodeGroupsAddNodesRequest The body resource for this request |
cancellationToken | CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
Task<Operation<Operation, Operation>> | A Task containing the RPC response. |
// 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 | |
---|---|
Name | Description |
request | AggregatedListNodeGroupsRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
PagedEnumerable<NodeGroupAggregatedList, KeyValuePair<String, NodeGroupsScopedList>> | A pageable sequence of KeyValuePair<TKey,TValue> resources. |
// 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 = null, CallSettings callSettings = null)
Retrieves an aggregated list of node groups. Note: use nodeGroups.listNodes for more details about each group.
Parameters | |
---|---|
Name | Description |
project | String Project ID for this request. |
pageToken | String The token returned from the previous request. A value of |
pageSize | Nullable<Int32> The size of page to request. The response will not be larger than this, but may be smaller. A value of
|
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
PagedEnumerable<NodeGroupAggregatedList, KeyValuePair<String, NodeGroupsScopedList>> | A pageable sequence of KeyValuePair<TKey,TValue> resources. |
// 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 | |
---|---|
Name | Description |
request | AggregatedListNodeGroupsRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
PagedAsyncEnumerable<NodeGroupAggregatedList, KeyValuePair<String, NodeGroupsScopedList>> | A pageable asynchronous sequence of KeyValuePair<TKey,TValue> resources. |
// 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 = null, CallSettings callSettings = null)
Retrieves an aggregated list of node groups. Note: use nodeGroups.listNodes for more details about each group.
Parameters | |
---|---|
Name | Description |
project | String Project ID for this request. |
pageToken | String The token returned from the previous request. A value of |
pageSize | Nullable<Int32> The size of page to request. The response will not be larger than this, but may be smaller. A value of
|
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
PagedAsyncEnumerable<NodeGroupAggregatedList, KeyValuePair<String, NodeGroupsScopedList>> | A pageable asynchronous sequence of KeyValuePair<TKey,TValue> resources. |
// 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 | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
cancellationToken | CancellationToken The CancellationToken to use while creating the client. |
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
request | DeleteNodeGroupRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Operation<Operation, Operation> | The RPC response. |
// 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 | |
---|---|
Name | Description |
project | String Project ID for this request. |
zone | String The name of the zone for this request. |
nodeGroup | String Name of the NodeGroup resource to delete. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Operation<Operation, Operation> | The RPC response. |
// 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 | |
---|---|
Name | Description |
request | DeleteNodeGroupRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Task<Operation<Operation, Operation>> | A Task containing the RPC response. |
// 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 | |
---|---|
Name | Description |
request | DeleteNodeGroupRequest The request object containing all of the parameters for the API call. |
cancellationToken | CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
Task<Operation<Operation, Operation>> | A Task containing the RPC response. |
// 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 | |
---|---|
Name | Description |
project | String Project ID for this request. |
zone | String The name of the zone for this request. |
nodeGroup | String Name of the NodeGroup resource to delete. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Task<Operation<Operation, Operation>> | A Task containing the RPC response. |
// 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 | |
---|---|
Name | Description |
project | String Project ID for this request. |
zone | String The name of the zone for this request. |
nodeGroup | String Name of the NodeGroup resource to delete. |
cancellationToken | CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
Task<Operation<Operation, Operation>> | A Task containing the RPC response. |
// 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 | |
---|---|
Name | Description |
request | DeleteNodesNodeGroupRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Operation<Operation, Operation> | The RPC response. |
// 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 | |
---|---|
Name | Description |
project | String Project ID for this request. |
zone | String The name of the zone for this request. |
nodeGroup | String Name of the NodeGroup resource whose nodes will be deleted. |
nodeGroupsDeleteNodesRequestResource | NodeGroupsDeleteNodesRequest The body resource for this request |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Operation<Operation, Operation> | The RPC response. |
// 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 | |
---|---|
Name | Description |
request | DeleteNodesNodeGroupRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Task<Operation<Operation, Operation>> | A Task containing the RPC response. |
// 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 | |
---|---|
Name | Description |
request | DeleteNodesNodeGroupRequest The request object containing all of the parameters for the API call. |
cancellationToken | CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
Task<Operation<Operation, Operation>> | A Task containing the RPC response. |
// 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 | |
---|---|
Name | Description |
project | String Project ID for this request. |
zone | String The name of the zone for this request. |
nodeGroup | String Name of the NodeGroup resource whose nodes will be deleted. |
nodeGroupsDeleteNodesRequestResource | NodeGroupsDeleteNodesRequest The body resource for this request |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Task<Operation<Operation, Operation>> | A Task containing the RPC response. |
// 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 | |
---|---|
Name | Description |
project | String Project ID for this request. |
zone | String The name of the zone for this request. |
nodeGroup | String Name of the NodeGroup resource whose nodes will be deleted. |
nodeGroupsDeleteNodesRequestResource | NodeGroupsDeleteNodesRequest The body resource for this request |
cancellationToken | CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
Task<Operation<Operation, Operation>> | A Task containing the RPC response. |
// 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 | |
---|---|
Name | Description |
request | GetNodeGroupRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
NodeGroup | The RPC response. |
// 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 | |
---|---|
Name | Description |
project | String Project ID for this request. |
zone | String The name of the zone for this request. |
nodeGroup | String Name of the node group to return. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
NodeGroup | The RPC response. |
// 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 | |
---|---|
Name | Description |
request | GetNodeGroupRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Task<NodeGroup> | A Task containing the RPC response. |
// 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 | |
---|---|
Name | Description |
request | GetNodeGroupRequest The request object containing all of the parameters for the API call. |
cancellationToken | CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
Task<NodeGroup> | A Task containing the RPC response. |
// 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 | |
---|---|
Name | Description |
project | String Project ID for this request. |
zone | String The name of the zone for this request. |
nodeGroup | String Name of the node group to return. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Task<NodeGroup> | A Task containing the RPC response. |
// 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 | |
---|---|
Name | Description |
project | String Project ID for this request. |
zone | String The name of the zone for this request. |
nodeGroup | String Name of the node group to return. |
cancellationToken | CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
Task<NodeGroup> | A Task containing the RPC response. |
// 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 | |
---|---|
Name | Description |
request | GetIamPolicyNodeGroupRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Policy | The RPC response. |
// 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 | |
---|---|
Name | Description |
project | String Project ID for this request. |
zone | String The name of the zone for this request. |
resource | String Name or id of the resource for this request. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Policy | The RPC response. |
// 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 | |
---|---|
Name | Description |
request | GetIamPolicyNodeGroupRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Task<Policy> | A Task containing the RPC response. |
// 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 | |
---|---|
Name | Description |
request | GetIamPolicyNodeGroupRequest The request object containing all of the parameters for the API call. |
cancellationToken | CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
Task<Policy> | A Task containing the RPC response. |
// 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 | |
---|---|
Name | Description |
project | String Project ID for this request. |
zone | String The name of the zone for this request. |
resource | String Name or id of the resource for this request. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Task<Policy> | A Task containing the RPC response. |
// 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 | |
---|---|
Name | Description |
project | String Project ID for this request. |
zone | String The name of the zone for this request. |
resource | String Name or id of the resource for this request. |
cancellationToken | CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
Task<Policy> | A Task containing the RPC response. |
// 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 | |
---|---|
Name | Description |
request | InsertNodeGroupRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Operation<Operation, Operation> | The RPC response. |
// 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 | |
---|---|
Name | Description |
project | String Project ID for this request. |
zone | String The name of the zone for this request. |
initialNodeCount | Int32 Initial count of nodes in the node group. |
nodeGroupResource | NodeGroup The body resource for this request |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Operation<Operation, Operation> | The RPC response. |
// 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 | |
---|---|
Name | Description |
request | InsertNodeGroupRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Task<Operation<Operation, Operation>> | A Task containing the RPC response. |
// 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 | |
---|---|
Name | Description |
request | InsertNodeGroupRequest The request object containing all of the parameters for the API call. |
cancellationToken | CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
Task<Operation<Operation, Operation>> | A Task containing the RPC response. |
// 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 | |
---|---|
Name | Description |
project | String Project ID for this request. |
zone | String The name of the zone for this request. |
initialNodeCount | Int32 Initial count of nodes in the node group. |
nodeGroupResource | NodeGroup The body resource for this request |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Task<Operation<Operation, Operation>> | A Task containing the RPC response. |
// 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 | |
---|---|
Name | Description |
project | String Project ID for this request. |
zone | String The name of the zone for this request. |
initialNodeCount | Int32 Initial count of nodes in the node group. |
nodeGroupResource | NodeGroup The body resource for this request |
cancellationToken | CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
Task<Operation<Operation, Operation>> | A Task containing the RPC response. |
// 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 | |
---|---|
Name | Description |
request | ListNodeGroupsRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
PagedEnumerable<NodeGroupList, NodeGroup> | A pageable sequence of NodeGroup resources. |
// 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 = null, CallSettings callSettings = null)
Retrieves a list of node groups available to the specified project. Note: use nodeGroups.listNodes for more details about each group.
Parameters | |
---|---|
Name | Description |
project | String Project ID for this request. |
zone | String The name of the zone for this request. |
pageToken | String The token returned from the previous request. A value of |
pageSize | Nullable<Int32> The size of page to request. The response will not be larger than this, but may be smaller. A value of
|
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
PagedEnumerable<NodeGroupList, NodeGroup> | A pageable sequence of NodeGroup resources. |
// 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 | |
---|---|
Name | Description |
request | ListNodeGroupsRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
PagedAsyncEnumerable<NodeGroupList, NodeGroup> | A pageable asynchronous sequence of NodeGroup resources. |
// 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 = null, CallSettings callSettings = null)
Retrieves a list of node groups available to the specified project. Note: use nodeGroups.listNodes for more details about each group.
Parameters | |
---|---|
Name | Description |
project | String Project ID for this request. |
zone | String The name of the zone for this request. |
pageToken | String The token returned from the previous request. A value of |
pageSize | Nullable<Int32> The size of page to request. The response will not be larger than this, but may be smaller. A value of
|
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
PagedAsyncEnumerable<NodeGroupList, NodeGroup> | A pageable asynchronous sequence of NodeGroup resources. |
// 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 | |
---|---|
Name | Description |
request | ListNodesNodeGroupsRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
PagedEnumerable<NodeGroupsListNodes, NodeGroupNode> | A pageable sequence of NodeGroupNode resources. |
// 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 = null, CallSettings callSettings = null)
Lists nodes in the node group.
Parameters | |
---|---|
Name | Description |
project | String Project ID for this request. |
zone | String The name of the zone for this request. |
nodeGroup | String Name of the NodeGroup resource whose nodes you want to list. |
pageToken | String The token returned from the previous request. A value of |
pageSize | Nullable<Int32> The size of page to request. The response will not be larger than this, but may be smaller. A value of
|
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
PagedEnumerable<NodeGroupsListNodes, NodeGroupNode> | A pageable sequence of NodeGroupNode resources. |
// 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 | |
---|---|
Name | Description |
request | ListNodesNodeGroupsRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
PagedAsyncEnumerable<NodeGroupsListNodes, NodeGroupNode> | A pageable asynchronous sequence of NodeGroupNode resources. |
// 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 = null, CallSettings callSettings = null)
Lists nodes in the node group.
Parameters | |
---|---|
Name | Description |
project | String Project ID for this request. |
zone | String The name of the zone for this request. |
nodeGroup | String Name of the NodeGroup resource whose nodes you want to list. |
pageToken | String The token returned from the previous request. A value of |
pageSize | Nullable<Int32> The size of page to request. The response will not be larger than this, but may be smaller. A value of
|
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
PagedAsyncEnumerable<NodeGroupsListNodes, NodeGroupNode> | A pageable asynchronous sequence of NodeGroupNode resources. |
// 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 | |
---|---|
Name | Description |
request | PatchNodeGroupRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Operation<Operation, Operation> | The RPC response. |
// 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 | |
---|---|
Name | Description |
project | String Project ID for this request. |
zone | String The name of the zone for this request. |
nodeGroup | String Name of the NodeGroup resource to update. |
nodeGroupResource | NodeGroup The body resource for this request |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Operation<Operation, Operation> | The RPC response. |
// 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 | |
---|---|
Name | Description |
request | PatchNodeGroupRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Task<Operation<Operation, Operation>> | A Task containing the RPC response. |
// 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 | |
---|---|
Name | Description |
request | PatchNodeGroupRequest The request object containing all of the parameters for the API call. |
cancellationToken | CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
Task<Operation<Operation, Operation>> | A Task containing the RPC response. |
// 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 | |
---|---|
Name | Description |
project | String Project ID for this request. |
zone | String The name of the zone for this request. |
nodeGroup | String Name of the NodeGroup resource to update. |
nodeGroupResource | NodeGroup The body resource for this request |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Task<Operation<Operation, Operation>> | A Task containing the RPC response. |
// 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 | |
---|---|
Name | Description |
project | String Project ID for this request. |
zone | String The name of the zone for this request. |
nodeGroup | String Name of the NodeGroup resource to update. |
nodeGroupResource | NodeGroup The body resource for this request |
cancellationToken | CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
Task<Operation<Operation, Operation>> | A Task containing the RPC response. |
// 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 | |
---|---|
Name | Description |
operationName | String The name of a previously invoked operation. Must not be |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
operationName | String The name of a previously invoked operation. Must not be |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
operationName | String The name of a previously invoked operation. Must not be |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
operationName | String The name of a previously invoked operation. Must not be |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
operationName | String The name of a previously invoked operation. Must not be |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
operationName | String The name of a previously invoked operation. Must not be |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
operationName | String The name of a previously invoked operation. Must not be |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
operationName | String The name of a previously invoked operation. Must not be |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
operationName | String The name of a previously invoked operation. Must not be |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
operationName | String The name of a previously invoked operation. Must not be |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
operationName | String The name of a previously invoked operation. Must not be |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
operationName | String The name of a previously invoked operation. Must not be |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
request | SetIamPolicyNodeGroupRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Policy | The RPC response. |
// 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 | |
---|---|
Name | Description |
project | String Project ID for this request. |
zone | String The name of the zone for this request. |
resource | String Name or id of the resource for this request. |
zoneSetPolicyRequestResource | ZoneSetPolicyRequest The body resource for this request |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Policy | The RPC response. |
// 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 | |
---|---|
Name | Description |
request | SetIamPolicyNodeGroupRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Task<Policy> | A Task containing the RPC response. |
// 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 | |
---|---|
Name | Description |
request | SetIamPolicyNodeGroupRequest The request object containing all of the parameters for the API call. |
cancellationToken | CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
Task<Policy> | A Task containing the RPC response. |
// 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 | |
---|---|
Name | Description |
project | String Project ID for this request. |
zone | String The name of the zone for this request. |
resource | String Name or id of the resource for this request. |
zoneSetPolicyRequestResource | ZoneSetPolicyRequest The body resource for this request |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Task<Policy> | A Task containing the RPC response. |
// 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 | |
---|---|
Name | Description |
project | String Project ID for this request. |
zone | String The name of the zone for this request. |
resource | String Name or id of the resource for this request. |
zoneSetPolicyRequestResource | ZoneSetPolicyRequest The body resource for this request |
cancellationToken | CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
Task<Policy> | A Task containing the RPC response. |
// 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 | |
---|---|
Name | Description |
request | SetNodeTemplateNodeGroupRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Operation<Operation, Operation> | The RPC response. |
// 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 | |
---|---|
Name | Description |
project | String Project ID for this request. |
zone | String The name of the zone for this request. |
nodeGroup | String Name of the NodeGroup resource to update. |
nodeGroupsSetNodeTemplateRequestResource | NodeGroupsSetNodeTemplateRequest The body resource for this request |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Operation<Operation, Operation> | The RPC response. |
// 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 | |
---|---|
Name | Description |
request | SetNodeTemplateNodeGroupRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Task<Operation<Operation, Operation>> | A Task containing the RPC response. |
// 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 | |
---|---|
Name | Description |
request | SetNodeTemplateNodeGroupRequest The request object containing all of the parameters for the API call. |
cancellationToken | CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
Task<Operation<Operation, Operation>> | A Task containing the RPC response. |
// 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 | |
---|---|
Name | Description |
project | String Project ID for this request. |
zone | String The name of the zone for this request. |
nodeGroup | String Name of the NodeGroup resource to update. |
nodeGroupsSetNodeTemplateRequestResource | NodeGroupsSetNodeTemplateRequest The body resource for this request |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Task<Operation<Operation, Operation>> | A Task containing the RPC response. |
// 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 | |
---|---|
Name | Description |
project | String Project ID for this request. |
zone | String The name of the zone for this request. |
nodeGroup | String Name of the NodeGroup resource to update. |
nodeGroupsSetNodeTemplateRequestResource | NodeGroupsSetNodeTemplateRequest The body resource for this request |
cancellationToken | CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
Task<Operation<Operation, Operation>> | A Task containing the RPC response. |
// 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 | |
---|---|
Type | Description |
Task | A task representing the asynchronous shutdown operation. |
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 | |
---|---|
Name | Description |
request | TestIamPermissionsNodeGroupRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TestPermissionsResponse | The RPC response. |
// 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 | |
---|---|
Name | Description |
project | String Project ID for this request. |
zone | String The name of the zone for this request. |
resource | String Name or id of the resource for this request. |
testPermissionsRequestResource | TestPermissionsRequest The body resource for this request |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TestPermissionsResponse | The RPC response. |
// 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 | |
---|---|
Name | Description |
request | TestIamPermissionsNodeGroupRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Task<TestPermissionsResponse> | A Task containing the RPC response. |
// 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 | |
---|---|
Name | Description |
request | TestIamPermissionsNodeGroupRequest The request object containing all of the parameters for the API call. |
cancellationToken | CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
Task<TestPermissionsResponse> | A Task containing the RPC response. |
// 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 | |
---|---|
Name | Description |
project | String Project ID for this request. |
zone | String The name of the zone for this request. |
resource | String Name or id of the resource for this request. |
testPermissionsRequestResource | TestPermissionsRequest The body resource for this request |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Task<TestPermissionsResponse> | A Task containing the RPC response. |
// 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 | |
---|---|
Name | Description |
project | String Project ID for this request. |
zone | String The name of the zone for this request. |
resource | String Name or id of the resource for this request. |
testPermissionsRequestResource | TestPermissionsRequest The body resource for this request |
cancellationToken | CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
Task<TestPermissionsResponse> | A Task containing the RPC response. |
// 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);