public abstract class NodeGroupControllerClient
Reference documentation and code samples for the Google Cloud Dataproc v1 API class NodeGroupControllerClient.
NodeGroupController client wrapper, for convenient use.
Derived Types
Namespace
Google.Cloud.Dataproc.V1Assembly
Google.Cloud.Dataproc.V1.dll
Remarks
The NodeGroupControllerService
provides methods to manage node groups
of Compute Engine managed instances.
Properties
CreateNodeGroupOperationsClient
public virtual OperationsClient CreateNodeGroupOperationsClient { get; }
The long-running operations client for CreateNodeGroup
.
Property Value | |
---|---|
Type | Description |
OperationsClient |
DefaultEndpoint
public static string DefaultEndpoint { get; }
The default endpoint for the NodeGroupController service, which is a host of "dataproc.googleapis.com" and a port of 443.
Property Value | |
---|---|
Type | Description |
String |
DefaultScopes
public static IReadOnlyList<string> DefaultScopes { get; }
The default NodeGroupController scopes.
Property Value | |
---|---|
Type | Description |
IReadOnlyList<String> |
The default NodeGroupController scopes are:
GrpcClient
public virtual NodeGroupController.NodeGroupControllerClient GrpcClient { get; }
The underlying gRPC NodeGroupController client
Property Value | |
---|---|
Type | Description |
NodeGroupController.NodeGroupControllerClient |
ResizeNodeGroupOperationsClient
public virtual OperationsClient ResizeNodeGroupOperationsClient { get; }
The long-running operations client for ResizeNodeGroup
.
Property Value | |
---|---|
Type | Description |
OperationsClient |
ServiceMetadata
public static ServiceMetadata ServiceMetadata { get; }
The service metadata associated with this client type.
Property Value | |
---|---|
Type | Description |
ServiceMetadata |
Methods
Create()
public static NodeGroupControllerClient Create()
Synchronously creates a NodeGroupControllerClient using the default credentials, endpoint and settings. To specify custom credentials or other settings, use NodeGroupControllerClientBuilder.
Returns | |
---|---|
Type | Description |
NodeGroupControllerClient | The created NodeGroupControllerClient. |
CreateAsync(CancellationToken)
public static Task<NodeGroupControllerClient> CreateAsync(CancellationToken cancellationToken = default(CancellationToken))
Asynchronously creates a NodeGroupControllerClient using the default credentials, endpoint and settings. To specify custom credentials or other settings, use NodeGroupControllerClientBuilder.
Parameter | |
---|---|
Name | Description |
cancellationToken | CancellationToken The CancellationToken to use while creating the client. |
Returns | |
---|---|
Type | Description |
Task<NodeGroupControllerClient> | The task representing the created NodeGroupControllerClient. |
CreateNodeGroup(ClusterRegionName, NodeGroup, String, CallSettings)
public virtual Operation<NodeGroup, NodeGroupOperationMetadata> CreateNodeGroup(ClusterRegionName parent, NodeGroup nodeGroup, string nodeGroupId, CallSettings callSettings = null)
Creates a node group in a cluster. The returned [Operation.metadata][google.longrunning.Operation.metadata] is NodeGroupOperationMetadata.
Parameters | |
---|---|
Name | Description |
parent | ClusterRegionName Required. The parent resource where this node group will be created.
Format: |
nodeGroup | NodeGroup Required. The node group to create. |
nodeGroupId | String Optional. An optional node group ID. Generated if not specified. The ID must contain only letters (a-z, A-Z), numbers (0-9), underscores (_), and hyphens (-). Cannot begin or end with underscore or hyphen. Must consist of from 3 to 33 characters. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Operation<NodeGroup, NodeGroupOperationMetadata> | The RPC response. |
// Create client
NodeGroupControllerClient nodeGroupControllerClient = NodeGroupControllerClient.Create();
// Initialize request argument(s)
ClusterRegionName parent = ClusterRegionName.FromProjectRegionCluster("[PROJECT]", "[REGION]", "[CLUSTER]");
NodeGroup nodeGroup = new NodeGroup();
string nodeGroupId = "";
// Make the request
Operation<NodeGroup, NodeGroupOperationMetadata> response = nodeGroupControllerClient.CreateNodeGroup(parent, nodeGroup, nodeGroupId);
// Poll until the returned long-running operation is complete
Operation<NodeGroup, NodeGroupOperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
NodeGroup 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
Operation<NodeGroup, NodeGroupOperationMetadata> retrievedResponse = nodeGroupControllerClient.PollOnceCreateNodeGroup(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
NodeGroup retrievedResult = retrievedResponse.Result;
}
CreateNodeGroup(CreateNodeGroupRequest, CallSettings)
public virtual Operation<NodeGroup, NodeGroupOperationMetadata> CreateNodeGroup(CreateNodeGroupRequest request, CallSettings callSettings = null)
Creates a node group in a cluster. The returned [Operation.metadata][google.longrunning.Operation.metadata] is NodeGroupOperationMetadata.
Parameters | |
---|---|
Name | Description |
request | CreateNodeGroupRequest 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<NodeGroup, NodeGroupOperationMetadata> | The RPC response. |
// Create client
NodeGroupControllerClient nodeGroupControllerClient = NodeGroupControllerClient.Create();
// Initialize request argument(s)
CreateNodeGroupRequest request = new CreateNodeGroupRequest
{
ParentAsClusterRegionName = ClusterRegionName.FromProjectRegionCluster("[PROJECT]", "[REGION]", "[CLUSTER]"),
NodeGroup = new NodeGroup(),
RequestId = "",
NodeGroupId = "",
};
// Make the request
Operation<NodeGroup, NodeGroupOperationMetadata> response = nodeGroupControllerClient.CreateNodeGroup(request);
// Poll until the returned long-running operation is complete
Operation<NodeGroup, NodeGroupOperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
NodeGroup 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
Operation<NodeGroup, NodeGroupOperationMetadata> retrievedResponse = nodeGroupControllerClient.PollOnceCreateNodeGroup(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
NodeGroup retrievedResult = retrievedResponse.Result;
}
CreateNodeGroup(String, NodeGroup, String, CallSettings)
public virtual Operation<NodeGroup, NodeGroupOperationMetadata> CreateNodeGroup(string parent, NodeGroup nodeGroup, string nodeGroupId, CallSettings callSettings = null)
Creates a node group in a cluster. The returned [Operation.metadata][google.longrunning.Operation.metadata] is NodeGroupOperationMetadata.
Parameters | |
---|---|
Name | Description |
parent | String Required. The parent resource where this node group will be created.
Format: |
nodeGroup | NodeGroup Required. The node group to create. |
nodeGroupId | String Optional. An optional node group ID. Generated if not specified. The ID must contain only letters (a-z, A-Z), numbers (0-9), underscores (_), and hyphens (-). Cannot begin or end with underscore or hyphen. Must consist of from 3 to 33 characters. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Operation<NodeGroup, NodeGroupOperationMetadata> | The RPC response. |
// Create client
NodeGroupControllerClient nodeGroupControllerClient = NodeGroupControllerClient.Create();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/regions/[REGION]/clusters/[CLUSTER]";
NodeGroup nodeGroup = new NodeGroup();
string nodeGroupId = "";
// Make the request
Operation<NodeGroup, NodeGroupOperationMetadata> response = nodeGroupControllerClient.CreateNodeGroup(parent, nodeGroup, nodeGroupId);
// Poll until the returned long-running operation is complete
Operation<NodeGroup, NodeGroupOperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
NodeGroup 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
Operation<NodeGroup, NodeGroupOperationMetadata> retrievedResponse = nodeGroupControllerClient.PollOnceCreateNodeGroup(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
NodeGroup retrievedResult = retrievedResponse.Result;
}
CreateNodeGroupAsync(ClusterRegionName, NodeGroup, String, CallSettings)
public virtual Task<Operation<NodeGroup, NodeGroupOperationMetadata>> CreateNodeGroupAsync(ClusterRegionName parent, NodeGroup nodeGroup, string nodeGroupId, CallSettings callSettings = null)
Creates a node group in a cluster. The returned [Operation.metadata][google.longrunning.Operation.metadata] is NodeGroupOperationMetadata.
Parameters | |
---|---|
Name | Description |
parent | ClusterRegionName Required. The parent resource where this node group will be created.
Format: |
nodeGroup | NodeGroup Required. The node group to create. |
nodeGroupId | String Optional. An optional node group ID. Generated if not specified. The ID must contain only letters (a-z, A-Z), numbers (0-9), underscores (_), and hyphens (-). Cannot begin or end with underscore or hyphen. Must consist of from 3 to 33 characters. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Task<Operation<NodeGroup, NodeGroupOperationMetadata>> | A Task containing the RPC response. |
// Create client
NodeGroupControllerClient nodeGroupControllerClient = await NodeGroupControllerClient.CreateAsync();
// Initialize request argument(s)
ClusterRegionName parent = ClusterRegionName.FromProjectRegionCluster("[PROJECT]", "[REGION]", "[CLUSTER]");
NodeGroup nodeGroup = new NodeGroup();
string nodeGroupId = "";
// Make the request
Operation<NodeGroup, NodeGroupOperationMetadata> response = await nodeGroupControllerClient.CreateNodeGroupAsync(parent, nodeGroup, nodeGroupId);
// Poll until the returned long-running operation is complete
Operation<NodeGroup, NodeGroupOperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
NodeGroup 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
Operation<NodeGroup, NodeGroupOperationMetadata> retrievedResponse = await nodeGroupControllerClient.PollOnceCreateNodeGroupAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
NodeGroup retrievedResult = retrievedResponse.Result;
}
CreateNodeGroupAsync(ClusterRegionName, NodeGroup, String, CancellationToken)
public virtual Task<Operation<NodeGroup, NodeGroupOperationMetadata>> CreateNodeGroupAsync(ClusterRegionName parent, NodeGroup nodeGroup, string nodeGroupId, CancellationToken cancellationToken)
Creates a node group in a cluster. The returned [Operation.metadata][google.longrunning.Operation.metadata] is NodeGroupOperationMetadata.
Parameters | |
---|---|
Name | Description |
parent | ClusterRegionName Required. The parent resource where this node group will be created.
Format: |
nodeGroup | NodeGroup Required. The node group to create. |
nodeGroupId | String Optional. An optional node group ID. Generated if not specified. The ID must contain only letters (a-z, A-Z), numbers (0-9), underscores (_), and hyphens (-). Cannot begin or end with underscore or hyphen. Must consist of from 3 to 33 characters. |
cancellationToken | CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
Task<Operation<NodeGroup, NodeGroupOperationMetadata>> | A Task containing the RPC response. |
// Create client
NodeGroupControllerClient nodeGroupControllerClient = await NodeGroupControllerClient.CreateAsync();
// Initialize request argument(s)
ClusterRegionName parent = ClusterRegionName.FromProjectRegionCluster("[PROJECT]", "[REGION]", "[CLUSTER]");
NodeGroup nodeGroup = new NodeGroup();
string nodeGroupId = "";
// Make the request
Operation<NodeGroup, NodeGroupOperationMetadata> response = await nodeGroupControllerClient.CreateNodeGroupAsync(parent, nodeGroup, nodeGroupId);
// Poll until the returned long-running operation is complete
Operation<NodeGroup, NodeGroupOperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
NodeGroup 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
Operation<NodeGroup, NodeGroupOperationMetadata> retrievedResponse = await nodeGroupControllerClient.PollOnceCreateNodeGroupAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
NodeGroup retrievedResult = retrievedResponse.Result;
}
CreateNodeGroupAsync(CreateNodeGroupRequest, CallSettings)
public virtual Task<Operation<NodeGroup, NodeGroupOperationMetadata>> CreateNodeGroupAsync(CreateNodeGroupRequest request, CallSettings callSettings = null)
Creates a node group in a cluster. The returned [Operation.metadata][google.longrunning.Operation.metadata] is NodeGroupOperationMetadata.
Parameters | |
---|---|
Name | Description |
request | CreateNodeGroupRequest 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<NodeGroup, NodeGroupOperationMetadata>> | A Task containing the RPC response. |
// Create client
NodeGroupControllerClient nodeGroupControllerClient = await NodeGroupControllerClient.CreateAsync();
// Initialize request argument(s)
CreateNodeGroupRequest request = new CreateNodeGroupRequest
{
ParentAsClusterRegionName = ClusterRegionName.FromProjectRegionCluster("[PROJECT]", "[REGION]", "[CLUSTER]"),
NodeGroup = new NodeGroup(),
RequestId = "",
NodeGroupId = "",
};
// Make the request
Operation<NodeGroup, NodeGroupOperationMetadata> response = await nodeGroupControllerClient.CreateNodeGroupAsync(request);
// Poll until the returned long-running operation is complete
Operation<NodeGroup, NodeGroupOperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
NodeGroup 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
Operation<NodeGroup, NodeGroupOperationMetadata> retrievedResponse = await nodeGroupControllerClient.PollOnceCreateNodeGroupAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
NodeGroup retrievedResult = retrievedResponse.Result;
}
CreateNodeGroupAsync(CreateNodeGroupRequest, CancellationToken)
public virtual Task<Operation<NodeGroup, NodeGroupOperationMetadata>> CreateNodeGroupAsync(CreateNodeGroupRequest request, CancellationToken cancellationToken)
Creates a node group in a cluster. The returned [Operation.metadata][google.longrunning.Operation.metadata] is NodeGroupOperationMetadata.
Parameters | |
---|---|
Name | Description |
request | CreateNodeGroupRequest 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<NodeGroup, NodeGroupOperationMetadata>> | A Task containing the RPC response. |
// Create client
NodeGroupControllerClient nodeGroupControllerClient = await NodeGroupControllerClient.CreateAsync();
// Initialize request argument(s)
CreateNodeGroupRequest request = new CreateNodeGroupRequest
{
ParentAsClusterRegionName = ClusterRegionName.FromProjectRegionCluster("[PROJECT]", "[REGION]", "[CLUSTER]"),
NodeGroup = new NodeGroup(),
RequestId = "",
NodeGroupId = "",
};
// Make the request
Operation<NodeGroup, NodeGroupOperationMetadata> response = await nodeGroupControllerClient.CreateNodeGroupAsync(request);
// Poll until the returned long-running operation is complete
Operation<NodeGroup, NodeGroupOperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
NodeGroup 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
Operation<NodeGroup, NodeGroupOperationMetadata> retrievedResponse = await nodeGroupControllerClient.PollOnceCreateNodeGroupAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
NodeGroup retrievedResult = retrievedResponse.Result;
}
CreateNodeGroupAsync(String, NodeGroup, String, CallSettings)
public virtual Task<Operation<NodeGroup, NodeGroupOperationMetadata>> CreateNodeGroupAsync(string parent, NodeGroup nodeGroup, string nodeGroupId, CallSettings callSettings = null)
Creates a node group in a cluster. The returned [Operation.metadata][google.longrunning.Operation.metadata] is NodeGroupOperationMetadata.
Parameters | |
---|---|
Name | Description |
parent | String Required. The parent resource where this node group will be created.
Format: |
nodeGroup | NodeGroup Required. The node group to create. |
nodeGroupId | String Optional. An optional node group ID. Generated if not specified. The ID must contain only letters (a-z, A-Z), numbers (0-9), underscores (_), and hyphens (-). Cannot begin or end with underscore or hyphen. Must consist of from 3 to 33 characters. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Task<Operation<NodeGroup, NodeGroupOperationMetadata>> | A Task containing the RPC response. |
// Create client
NodeGroupControllerClient nodeGroupControllerClient = await NodeGroupControllerClient.CreateAsync();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/regions/[REGION]/clusters/[CLUSTER]";
NodeGroup nodeGroup = new NodeGroup();
string nodeGroupId = "";
// Make the request
Operation<NodeGroup, NodeGroupOperationMetadata> response = await nodeGroupControllerClient.CreateNodeGroupAsync(parent, nodeGroup, nodeGroupId);
// Poll until the returned long-running operation is complete
Operation<NodeGroup, NodeGroupOperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
NodeGroup 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
Operation<NodeGroup, NodeGroupOperationMetadata> retrievedResponse = await nodeGroupControllerClient.PollOnceCreateNodeGroupAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
NodeGroup retrievedResult = retrievedResponse.Result;
}
CreateNodeGroupAsync(String, NodeGroup, String, CancellationToken)
public virtual Task<Operation<NodeGroup, NodeGroupOperationMetadata>> CreateNodeGroupAsync(string parent, NodeGroup nodeGroup, string nodeGroupId, CancellationToken cancellationToken)
Creates a node group in a cluster. The returned [Operation.metadata][google.longrunning.Operation.metadata] is NodeGroupOperationMetadata.
Parameters | |
---|---|
Name | Description |
parent | String Required. The parent resource where this node group will be created.
Format: |
nodeGroup | NodeGroup Required. The node group to create. |
nodeGroupId | String Optional. An optional node group ID. Generated if not specified. The ID must contain only letters (a-z, A-Z), numbers (0-9), underscores (_), and hyphens (-). Cannot begin or end with underscore or hyphen. Must consist of from 3 to 33 characters. |
cancellationToken | CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
Task<Operation<NodeGroup, NodeGroupOperationMetadata>> | A Task containing the RPC response. |
// Create client
NodeGroupControllerClient nodeGroupControllerClient = await NodeGroupControllerClient.CreateAsync();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/regions/[REGION]/clusters/[CLUSTER]";
NodeGroup nodeGroup = new NodeGroup();
string nodeGroupId = "";
// Make the request
Operation<NodeGroup, NodeGroupOperationMetadata> response = await nodeGroupControllerClient.CreateNodeGroupAsync(parent, nodeGroup, nodeGroupId);
// Poll until the returned long-running operation is complete
Operation<NodeGroup, NodeGroupOperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
NodeGroup 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
Operation<NodeGroup, NodeGroupOperationMetadata> retrievedResponse = await nodeGroupControllerClient.PollOnceCreateNodeGroupAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
NodeGroup retrievedResult = retrievedResponse.Result;
}
GetNodeGroup(GetNodeGroupRequest, CallSettings)
public virtual NodeGroup GetNodeGroup(GetNodeGroupRequest request, CallSettings callSettings = null)
Gets the resource representation for a node group in a cluster.
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
NodeGroupControllerClient nodeGroupControllerClient = NodeGroupControllerClient.Create();
// Initialize request argument(s)
GetNodeGroupRequest request = new GetNodeGroupRequest
{
NodeGroupName = NodeGroupName.FromProjectRegionClusterNodeGroup("[PROJECT]", "[REGION]", "[CLUSTER]", "[NODE_GROUP]"),
};
// Make the request
NodeGroup response = nodeGroupControllerClient.GetNodeGroup(request);
GetNodeGroup(NodeGroupName, CallSettings)
public virtual NodeGroup GetNodeGroup(NodeGroupName name, CallSettings callSettings = null)
Gets the resource representation for a node group in a cluster.
Parameters | |
---|---|
Name | Description |
name | NodeGroupName Required. The name of the node group to retrieve.
Format:
|
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
NodeGroup | The RPC response. |
// Create client
NodeGroupControllerClient nodeGroupControllerClient = NodeGroupControllerClient.Create();
// Initialize request argument(s)
NodeGroupName name = NodeGroupName.FromProjectRegionClusterNodeGroup("[PROJECT]", "[REGION]", "[CLUSTER]", "[NODE_GROUP]");
// Make the request
NodeGroup response = nodeGroupControllerClient.GetNodeGroup(name);
GetNodeGroup(String, CallSettings)
public virtual NodeGroup GetNodeGroup(string name, CallSettings callSettings = null)
Gets the resource representation for a node group in a cluster.
Parameters | |
---|---|
Name | Description |
name | String Required. The name of the node group to retrieve.
Format:
|
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
NodeGroup | The RPC response. |
// Create client
NodeGroupControllerClient nodeGroupControllerClient = NodeGroupControllerClient.Create();
// Initialize request argument(s)
string name = "projects/[PROJECT]/regions/[REGION]/clusters/[CLUSTER]/nodeGroups/[NODE_GROUP]";
// Make the request
NodeGroup response = nodeGroupControllerClient.GetNodeGroup(name);
GetNodeGroupAsync(GetNodeGroupRequest, CallSettings)
public virtual Task<NodeGroup> GetNodeGroupAsync(GetNodeGroupRequest request, CallSettings callSettings = null)
Gets the resource representation for a node group in a cluster.
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
NodeGroupControllerClient nodeGroupControllerClient = await NodeGroupControllerClient.CreateAsync();
// Initialize request argument(s)
GetNodeGroupRequest request = new GetNodeGroupRequest
{
NodeGroupName = NodeGroupName.FromProjectRegionClusterNodeGroup("[PROJECT]", "[REGION]", "[CLUSTER]", "[NODE_GROUP]"),
};
// Make the request
NodeGroup response = await nodeGroupControllerClient.GetNodeGroupAsync(request);
GetNodeGroupAsync(GetNodeGroupRequest, CancellationToken)
public virtual Task<NodeGroup> GetNodeGroupAsync(GetNodeGroupRequest request, CancellationToken cancellationToken)
Gets the resource representation for a node group in a cluster.
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
NodeGroupControllerClient nodeGroupControllerClient = await NodeGroupControllerClient.CreateAsync();
// Initialize request argument(s)
GetNodeGroupRequest request = new GetNodeGroupRequest
{
NodeGroupName = NodeGroupName.FromProjectRegionClusterNodeGroup("[PROJECT]", "[REGION]", "[CLUSTER]", "[NODE_GROUP]"),
};
// Make the request
NodeGroup response = await nodeGroupControllerClient.GetNodeGroupAsync(request);
GetNodeGroupAsync(NodeGroupName, CallSettings)
public virtual Task<NodeGroup> GetNodeGroupAsync(NodeGroupName name, CallSettings callSettings = null)
Gets the resource representation for a node group in a cluster.
Parameters | |
---|---|
Name | Description |
name | NodeGroupName Required. The name of the node group to retrieve.
Format:
|
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Task<NodeGroup> | A Task containing the RPC response. |
// Create client
NodeGroupControllerClient nodeGroupControllerClient = await NodeGroupControllerClient.CreateAsync();
// Initialize request argument(s)
NodeGroupName name = NodeGroupName.FromProjectRegionClusterNodeGroup("[PROJECT]", "[REGION]", "[CLUSTER]", "[NODE_GROUP]");
// Make the request
NodeGroup response = await nodeGroupControllerClient.GetNodeGroupAsync(name);
GetNodeGroupAsync(NodeGroupName, CancellationToken)
public virtual Task<NodeGroup> GetNodeGroupAsync(NodeGroupName name, CancellationToken cancellationToken)
Gets the resource representation for a node group in a cluster.
Parameters | |
---|---|
Name | Description |
name | NodeGroupName Required. The name of the node group to retrieve.
Format:
|
cancellationToken | CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
Task<NodeGroup> | A Task containing the RPC response. |
// Create client
NodeGroupControllerClient nodeGroupControllerClient = await NodeGroupControllerClient.CreateAsync();
// Initialize request argument(s)
NodeGroupName name = NodeGroupName.FromProjectRegionClusterNodeGroup("[PROJECT]", "[REGION]", "[CLUSTER]", "[NODE_GROUP]");
// Make the request
NodeGroup response = await nodeGroupControllerClient.GetNodeGroupAsync(name);
GetNodeGroupAsync(String, CallSettings)
public virtual Task<NodeGroup> GetNodeGroupAsync(string name, CallSettings callSettings = null)
Gets the resource representation for a node group in a cluster.
Parameters | |
---|---|
Name | Description |
name | String Required. The name of the node group to retrieve.
Format:
|
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Task<NodeGroup> | A Task containing the RPC response. |
// Create client
NodeGroupControllerClient nodeGroupControllerClient = await NodeGroupControllerClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/regions/[REGION]/clusters/[CLUSTER]/nodeGroups/[NODE_GROUP]";
// Make the request
NodeGroup response = await nodeGroupControllerClient.GetNodeGroupAsync(name);
GetNodeGroupAsync(String, CancellationToken)
public virtual Task<NodeGroup> GetNodeGroupAsync(string name, CancellationToken cancellationToken)
Gets the resource representation for a node group in a cluster.
Parameters | |
---|---|
Name | Description |
name | String Required. The name of the node group to retrieve.
Format:
|
cancellationToken | CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
Task<NodeGroup> | A Task containing the RPC response. |
// Create client
NodeGroupControllerClient nodeGroupControllerClient = await NodeGroupControllerClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/regions/[REGION]/clusters/[CLUSTER]/nodeGroups/[NODE_GROUP]";
// Make the request
NodeGroup response = await nodeGroupControllerClient.GetNodeGroupAsync(name);
PollOnceCreateNodeGroup(String, CallSettings)
public virtual Operation<NodeGroup, NodeGroupOperationMetadata> PollOnceCreateNodeGroup(string operationName, CallSettings callSettings = null)
Poll an operation once, using an operationName
from a previous invocation of CreateNodeGroup
.
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<NodeGroup, NodeGroupOperationMetadata> | The result of polling the operation. |
PollOnceCreateNodeGroupAsync(String, CallSettings)
public virtual Task<Operation<NodeGroup, NodeGroupOperationMetadata>> PollOnceCreateNodeGroupAsync(string operationName, CallSettings callSettings = null)
Asynchronously poll an operation once, using an operationName
from a previous invocation of
CreateNodeGroup
.
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<NodeGroup, NodeGroupOperationMetadata>> | A task representing the result of polling the operation. |
PollOnceResizeNodeGroup(String, CallSettings)
public virtual Operation<NodeGroup, NodeGroupOperationMetadata> PollOnceResizeNodeGroup(string operationName, CallSettings callSettings = null)
Poll an operation once, using an operationName
from a previous invocation of ResizeNodeGroup
.
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<NodeGroup, NodeGroupOperationMetadata> | The result of polling the operation. |
PollOnceResizeNodeGroupAsync(String, CallSettings)
public virtual Task<Operation<NodeGroup, NodeGroupOperationMetadata>> PollOnceResizeNodeGroupAsync(string operationName, CallSettings callSettings = null)
Asynchronously poll an operation once, using an operationName
from a previous invocation of
ResizeNodeGroup
.
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<NodeGroup, NodeGroupOperationMetadata>> | A task representing the result of polling the operation. |
ResizeNodeGroup(ResizeNodeGroupRequest, CallSettings)
public virtual Operation<NodeGroup, NodeGroupOperationMetadata> ResizeNodeGroup(ResizeNodeGroupRequest request, CallSettings callSettings = null)
Resizes a node group in a cluster. The returned [Operation.metadata][google.longrunning.Operation.metadata] is NodeGroupOperationMetadata.
Parameters | |
---|---|
Name | Description |
request | ResizeNodeGroupRequest 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<NodeGroup, NodeGroupOperationMetadata> | The RPC response. |
// Create client
NodeGroupControllerClient nodeGroupControllerClient = NodeGroupControllerClient.Create();
// Initialize request argument(s)
ResizeNodeGroupRequest request = new ResizeNodeGroupRequest
{
Name = "",
Size = 0,
RequestId = "",
GracefulDecommissionTimeout = new Duration(),
};
// Make the request
Operation<NodeGroup, NodeGroupOperationMetadata> response = nodeGroupControllerClient.ResizeNodeGroup(request);
// Poll until the returned long-running operation is complete
Operation<NodeGroup, NodeGroupOperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
NodeGroup 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
Operation<NodeGroup, NodeGroupOperationMetadata> retrievedResponse = nodeGroupControllerClient.PollOnceResizeNodeGroup(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
NodeGroup retrievedResult = retrievedResponse.Result;
}
ResizeNodeGroup(String, Int32, CallSettings)
public virtual Operation<NodeGroup, NodeGroupOperationMetadata> ResizeNodeGroup(string name, int size, CallSettings callSettings = null)
Resizes a node group in a cluster. The returned [Operation.metadata][google.longrunning.Operation.metadata] is NodeGroupOperationMetadata.
Parameters | |
---|---|
Name | Description |
name | String Required. The name of the node group to resize.
Format:
|
size | Int32 Required. The number of running instances for the node group to maintain. The group adds or removes instances to maintain the number of instances specified by this parameter. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Operation<NodeGroup, NodeGroupOperationMetadata> | The RPC response. |
// Create client
NodeGroupControllerClient nodeGroupControllerClient = NodeGroupControllerClient.Create();
// Initialize request argument(s)
string name = "";
int size = 0;
// Make the request
Operation<NodeGroup, NodeGroupOperationMetadata> response = nodeGroupControllerClient.ResizeNodeGroup(name, size);
// Poll until the returned long-running operation is complete
Operation<NodeGroup, NodeGroupOperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
NodeGroup 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
Operation<NodeGroup, NodeGroupOperationMetadata> retrievedResponse = nodeGroupControllerClient.PollOnceResizeNodeGroup(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
NodeGroup retrievedResult = retrievedResponse.Result;
}
ResizeNodeGroupAsync(ResizeNodeGroupRequest, CallSettings)
public virtual Task<Operation<NodeGroup, NodeGroupOperationMetadata>> ResizeNodeGroupAsync(ResizeNodeGroupRequest request, CallSettings callSettings = null)
Resizes a node group in a cluster. The returned [Operation.metadata][google.longrunning.Operation.metadata] is NodeGroupOperationMetadata.
Parameters | |
---|---|
Name | Description |
request | ResizeNodeGroupRequest 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<NodeGroup, NodeGroupOperationMetadata>> | A Task containing the RPC response. |
// Create client
NodeGroupControllerClient nodeGroupControllerClient = await NodeGroupControllerClient.CreateAsync();
// Initialize request argument(s)
ResizeNodeGroupRequest request = new ResizeNodeGroupRequest
{
Name = "",
Size = 0,
RequestId = "",
GracefulDecommissionTimeout = new Duration(),
};
// Make the request
Operation<NodeGroup, NodeGroupOperationMetadata> response = await nodeGroupControllerClient.ResizeNodeGroupAsync(request);
// Poll until the returned long-running operation is complete
Operation<NodeGroup, NodeGroupOperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
NodeGroup 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
Operation<NodeGroup, NodeGroupOperationMetadata> retrievedResponse = await nodeGroupControllerClient.PollOnceResizeNodeGroupAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
NodeGroup retrievedResult = retrievedResponse.Result;
}
ResizeNodeGroupAsync(ResizeNodeGroupRequest, CancellationToken)
public virtual Task<Operation<NodeGroup, NodeGroupOperationMetadata>> ResizeNodeGroupAsync(ResizeNodeGroupRequest request, CancellationToken cancellationToken)
Resizes a node group in a cluster. The returned [Operation.metadata][google.longrunning.Operation.metadata] is NodeGroupOperationMetadata.
Parameters | |
---|---|
Name | Description |
request | ResizeNodeGroupRequest 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<NodeGroup, NodeGroupOperationMetadata>> | A Task containing the RPC response. |
// Create client
NodeGroupControllerClient nodeGroupControllerClient = await NodeGroupControllerClient.CreateAsync();
// Initialize request argument(s)
ResizeNodeGroupRequest request = new ResizeNodeGroupRequest
{
Name = "",
Size = 0,
RequestId = "",
GracefulDecommissionTimeout = new Duration(),
};
// Make the request
Operation<NodeGroup, NodeGroupOperationMetadata> response = await nodeGroupControllerClient.ResizeNodeGroupAsync(request);
// Poll until the returned long-running operation is complete
Operation<NodeGroup, NodeGroupOperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
NodeGroup 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
Operation<NodeGroup, NodeGroupOperationMetadata> retrievedResponse = await nodeGroupControllerClient.PollOnceResizeNodeGroupAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
NodeGroup retrievedResult = retrievedResponse.Result;
}
ResizeNodeGroupAsync(String, Int32, CallSettings)
public virtual Task<Operation<NodeGroup, NodeGroupOperationMetadata>> ResizeNodeGroupAsync(string name, int size, CallSettings callSettings = null)
Resizes a node group in a cluster. The returned [Operation.metadata][google.longrunning.Operation.metadata] is NodeGroupOperationMetadata.
Parameters | |
---|---|
Name | Description |
name | String Required. The name of the node group to resize.
Format:
|
size | Int32 Required. The number of running instances for the node group to maintain. The group adds or removes instances to maintain the number of instances specified by this parameter. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Task<Operation<NodeGroup, NodeGroupOperationMetadata>> | A Task containing the RPC response. |
// Create client
NodeGroupControllerClient nodeGroupControllerClient = await NodeGroupControllerClient.CreateAsync();
// Initialize request argument(s)
string name = "";
int size = 0;
// Make the request
Operation<NodeGroup, NodeGroupOperationMetadata> response = await nodeGroupControllerClient.ResizeNodeGroupAsync(name, size);
// Poll until the returned long-running operation is complete
Operation<NodeGroup, NodeGroupOperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
NodeGroup 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
Operation<NodeGroup, NodeGroupOperationMetadata> retrievedResponse = await nodeGroupControllerClient.PollOnceResizeNodeGroupAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
NodeGroup retrievedResult = retrievedResponse.Result;
}
ResizeNodeGroupAsync(String, Int32, CancellationToken)
public virtual Task<Operation<NodeGroup, NodeGroupOperationMetadata>> ResizeNodeGroupAsync(string name, int size, CancellationToken cancellationToken)
Resizes a node group in a cluster. The returned [Operation.metadata][google.longrunning.Operation.metadata] is NodeGroupOperationMetadata.
Parameters | |
---|---|
Name | Description |
name | String Required. The name of the node group to resize.
Format:
|
size | Int32 Required. The number of running instances for the node group to maintain. The group adds or removes instances to maintain the number of instances specified by this parameter. |
cancellationToken | CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
Task<Operation<NodeGroup, NodeGroupOperationMetadata>> | A Task containing the RPC response. |
// Create client
NodeGroupControllerClient nodeGroupControllerClient = await NodeGroupControllerClient.CreateAsync();
// Initialize request argument(s)
string name = "";
int size = 0;
// Make the request
Operation<NodeGroup, NodeGroupOperationMetadata> response = await nodeGroupControllerClient.ResizeNodeGroupAsync(name, size);
// Poll until the returned long-running operation is complete
Operation<NodeGroup, NodeGroupOperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
NodeGroup 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
Operation<NodeGroup, NodeGroupOperationMetadata> retrievedResponse = await nodeGroupControllerClient.PollOnceResizeNodeGroupAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
NodeGroup 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.