Google Kubernetes Engine v1 API - Class ClusterManagerClient (3.6.0)

Stay organized with collections Save and categorize content based on your preferences.
public abstract class ClusterManagerClient

Reference documentation and code samples for the Google Kubernetes Engine v1 API class ClusterManagerClient.

ClusterManager client wrapper, for convenient use.

Inheritance

Object > ClusterManagerClient

Derived Types

Namespace

Google.Cloud.Container.V1

Assembly

Google.Cloud.Container.V1.dll

Remarks

Google Kubernetes Engine Cluster Manager v1

Properties

DefaultEndpoint

public static string DefaultEndpoint { get; }

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

Property Value
TypeDescription
String

DefaultScopes

public static IReadOnlyList<string> DefaultScopes { get; }

The default ClusterManager scopes.

Property Value
TypeDescription
IReadOnlyList<String>
Remarks

The default ClusterManager scopes are:

GrpcClient

public virtual ClusterManager.ClusterManagerClient GrpcClient { get; }

The underlying gRPC ClusterManager client

Property Value
TypeDescription
ClusterManager.ClusterManagerClient

ServiceMetadata

public static ServiceMetadata ServiceMetadata { get; }

The service metadata associated with this client type.

Property Value
TypeDescription
ServiceMetadata

Methods

CancelOperation(CancelOperationRequest, CallSettings)

public virtual void CancelOperation(CancelOperationRequest request, CallSettings callSettings = null)

Cancels the specified operation.

Parameters
NameDescription
requestCancelOperationRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Example
// Create client
ClusterManagerClient clusterManagerClient = ClusterManagerClient.Create();
// Initialize request argument(s)
CancelOperationRequest request = new CancelOperationRequest { Name = "", };
// Make the request
clusterManagerClient.CancelOperation(request);

CancelOperation(String, CallSettings)

public virtual void CancelOperation(string name, CallSettings callSettings = null)

Cancels the specified operation.

Parameters
NameDescription
nameString

The name (project, location, operation id) of the operation to cancel. Specified in the format projects/*/locations/*/operations/*.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Example
// Create client
ClusterManagerClient clusterManagerClient = ClusterManagerClient.Create();
// Initialize request argument(s)
string name = "";
// Make the request
clusterManagerClient.CancelOperation(name);

CancelOperation(String, String, String, CallSettings)

[Obsolete]
public virtual void CancelOperation(string projectId, string zone, string operationId, CallSettings callSettings = null)

Cancels the specified operation.

Parameters
NameDescription
projectIdString

Deprecated. The Google Developers Console project ID or project number. This field has been deprecated and replaced by the name field.

zoneString

Deprecated. The name of the Google Compute Engine zone in which the operation resides. This field has been deprecated and replaced by the name field.

operationIdString

Deprecated. The server-assigned name of the operation. This field has been deprecated and replaced by the name field.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Example
            // Create client
            ClusterManagerClient clusterManagerClient = ClusterManagerClient.Create();
            // Initialize request argument(s)
            string projectId = "";
            string zone = "";
            string operationId = "";
            // Make the request
#pragma warning disable CS0612
            clusterManagerClient.CancelOperation(projectId, zone, operationId);
#pragma warning restore CS0612

CancelOperationAsync(CancelOperationRequest, CallSettings)

public virtual Task CancelOperationAsync(CancelOperationRequest request, CallSettings callSettings = null)

Cancels the specified operation.

Parameters
NameDescription
requestCancelOperationRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Task

A Task containing the RPC response.

Example
// Create client
ClusterManagerClient clusterManagerClient = await ClusterManagerClient.CreateAsync();
// Initialize request argument(s)
CancelOperationRequest request = new CancelOperationRequest { Name = "", };
// Make the request
await clusterManagerClient.CancelOperationAsync(request);

CancelOperationAsync(CancelOperationRequest, CancellationToken)

public virtual Task CancelOperationAsync(CancelOperationRequest request, CancellationToken cancellationToken)

Cancels the specified operation.

Parameters
NameDescription
requestCancelOperationRequest

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

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
Task

A Task containing the RPC response.

Example
// Create client
ClusterManagerClient clusterManagerClient = await ClusterManagerClient.CreateAsync();
// Initialize request argument(s)
CancelOperationRequest request = new CancelOperationRequest { Name = "", };
// Make the request
await clusterManagerClient.CancelOperationAsync(request);

CancelOperationAsync(String, CallSettings)

public virtual Task CancelOperationAsync(string name, CallSettings callSettings = null)

Cancels the specified operation.

Parameters
NameDescription
nameString

The name (project, location, operation id) of the operation to cancel. Specified in the format projects/*/locations/*/operations/*.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Task

A Task containing the RPC response.

Example
// Create client
ClusterManagerClient clusterManagerClient = await ClusterManagerClient.CreateAsync();
// Initialize request argument(s)
string name = "";
// Make the request
await clusterManagerClient.CancelOperationAsync(name);

CancelOperationAsync(String, String, String, CallSettings)

[Obsolete]
public virtual Task CancelOperationAsync(string projectId, string zone, string operationId, CallSettings callSettings = null)

Cancels the specified operation.

Parameters
NameDescription
projectIdString

Deprecated. The Google Developers Console project ID or project number. This field has been deprecated and replaced by the name field.

zoneString

Deprecated. The name of the Google Compute Engine zone in which the operation resides. This field has been deprecated and replaced by the name field.

operationIdString

Deprecated. The server-assigned name of the operation. This field has been deprecated and replaced by the name field.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Task

A Task containing the RPC response.

Example
            // Create client
            ClusterManagerClient clusterManagerClient = await ClusterManagerClient.CreateAsync();
            // Initialize request argument(s)
            string projectId = "";
            string zone = "";
            string operationId = "";
            // Make the request
#pragma warning disable CS0612
            await clusterManagerClient.CancelOperationAsync(projectId, zone, operationId);
#pragma warning restore CS0612

CancelOperationAsync(String, String, String, CancellationToken)

[Obsolete]
public virtual Task CancelOperationAsync(string projectId, string zone, string operationId, CancellationToken cancellationToken)

Cancels the specified operation.

Parameters
NameDescription
projectIdString

Deprecated. The Google Developers Console project ID or project number. This field has been deprecated and replaced by the name field.

zoneString

Deprecated. The name of the Google Compute Engine zone in which the operation resides. This field has been deprecated and replaced by the name field.

operationIdString

Deprecated. The server-assigned name of the operation. This field has been deprecated and replaced by the name field.

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
Task

A Task containing the RPC response.

Example
            // Create client
            ClusterManagerClient clusterManagerClient = await ClusterManagerClient.CreateAsync();
            // Initialize request argument(s)
            string projectId = "";
            string zone = "";
            string operationId = "";
            // Make the request
#pragma warning disable CS0612
            await clusterManagerClient.CancelOperationAsync(projectId, zone, operationId);
#pragma warning restore CS0612

CancelOperationAsync(String, CancellationToken)

public virtual Task CancelOperationAsync(string name, CancellationToken cancellationToken)

Cancels the specified operation.

Parameters
NameDescription
nameString

The name (project, location, operation id) of the operation to cancel. Specified in the format projects/*/locations/*/operations/*.

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
Task

A Task containing the RPC response.

Example
// Create client
ClusterManagerClient clusterManagerClient = await ClusterManagerClient.CreateAsync();
// Initialize request argument(s)
string name = "";
// Make the request
await clusterManagerClient.CancelOperationAsync(name);

CompleteIPRotation(CompleteIPRotationRequest, CallSettings)

public virtual Operation CompleteIPRotation(CompleteIPRotationRequest request, CallSettings callSettings = null)

Completes master IP rotation.

Parameters
NameDescription
requestCompleteIPRotationRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Operation

The RPC response.

Example
// Create client
ClusterManagerClient clusterManagerClient = ClusterManagerClient.Create();
// Initialize request argument(s)
CompleteIPRotationRequest request = new CompleteIPRotationRequest { Name = "", };
// Make the request
Operation response = clusterManagerClient.CompleteIPRotation(request);

CompleteIPRotation(String, CallSettings)

public virtual Operation CompleteIPRotation(string name, CallSettings callSettings = null)

Completes master IP rotation.

Parameters
NameDescription
nameString

The name (project, location, cluster name) of the cluster to complete IP rotation. Specified in the format projects/*/locations/*/clusters/*.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Operation

The RPC response.

Example
// Create client
ClusterManagerClient clusterManagerClient = ClusterManagerClient.Create();
// Initialize request argument(s)
string name = "";
// Make the request
Operation response = clusterManagerClient.CompleteIPRotation(name);

CompleteIPRotation(String, String, String, CallSettings)

[Obsolete]
public virtual Operation CompleteIPRotation(string projectId, string zone, string clusterId, CallSettings callSettings = null)

Completes master IP rotation.

Parameters
NameDescription
projectIdString

Deprecated. The Google Developers Console project ID or project number. This field has been deprecated and replaced by the name field.

zoneString

Deprecated. The name of the Google Compute Engine zone in which the cluster resides. This field has been deprecated and replaced by the name field.

clusterIdString

Deprecated. The name of the cluster. This field has been deprecated and replaced by the name field.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Operation

The RPC response.

Example
            // Create client
            ClusterManagerClient clusterManagerClient = ClusterManagerClient.Create();
            // Initialize request argument(s)
            string projectId = "";
            string zone = "";
            string clusterId = "";
            // Make the request
#pragma warning disable CS0612
            Operation response = clusterManagerClient.CompleteIPRotation(projectId, zone, clusterId);
#pragma warning restore CS0612

CompleteIPRotationAsync(CompleteIPRotationRequest, CallSettings)

public virtual Task<Operation> CompleteIPRotationAsync(CompleteIPRotationRequest request, CallSettings callSettings = null)

Completes master IP rotation.

Parameters
NameDescription
requestCompleteIPRotationRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Task<Operation>

A Task containing the RPC response.

Example
// Create client
ClusterManagerClient clusterManagerClient = await ClusterManagerClient.CreateAsync();
// Initialize request argument(s)
CompleteIPRotationRequest request = new CompleteIPRotationRequest { Name = "", };
// Make the request
Operation response = await clusterManagerClient.CompleteIPRotationAsync(request);

CompleteIPRotationAsync(CompleteIPRotationRequest, CancellationToken)

public virtual Task<Operation> CompleteIPRotationAsync(CompleteIPRotationRequest request, CancellationToken cancellationToken)

Completes master IP rotation.

Parameters
NameDescription
requestCompleteIPRotationRequest

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

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
Task<Operation>

A Task containing the RPC response.

Example
// Create client
ClusterManagerClient clusterManagerClient = await ClusterManagerClient.CreateAsync();
// Initialize request argument(s)
CompleteIPRotationRequest request = new CompleteIPRotationRequest { Name = "", };
// Make the request
Operation response = await clusterManagerClient.CompleteIPRotationAsync(request);

CompleteIPRotationAsync(String, CallSettings)

public virtual Task<Operation> CompleteIPRotationAsync(string name, CallSettings callSettings = null)

Completes master IP rotation.

Parameters
NameDescription
nameString

The name (project, location, cluster name) of the cluster to complete IP rotation. Specified in the format projects/*/locations/*/clusters/*.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Task<Operation>

A Task containing the RPC response.

Example
// Create client
ClusterManagerClient clusterManagerClient = await ClusterManagerClient.CreateAsync();
// Initialize request argument(s)
string name = "";
// Make the request
Operation response = await clusterManagerClient.CompleteIPRotationAsync(name);

CompleteIPRotationAsync(String, String, String, CallSettings)

[Obsolete]
public virtual Task<Operation> CompleteIPRotationAsync(string projectId, string zone, string clusterId, CallSettings callSettings = null)

Completes master IP rotation.

Parameters
NameDescription
projectIdString

Deprecated. The Google Developers Console project ID or project number. This field has been deprecated and replaced by the name field.

zoneString

Deprecated. The name of the Google Compute Engine zone in which the cluster resides. This field has been deprecated and replaced by the name field.

clusterIdString

Deprecated. The name of the cluster. This field has been deprecated and replaced by the name field.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Task<Operation>

A Task containing the RPC response.

Example
            // Create client
            ClusterManagerClient clusterManagerClient = await ClusterManagerClient.CreateAsync();
            // Initialize request argument(s)
            string projectId = "";
            string zone = "";
            string clusterId = "";
            // Make the request
#pragma warning disable CS0612
            Operation response = await clusterManagerClient.CompleteIPRotationAsync(projectId, zone, clusterId);
#pragma warning restore CS0612

CompleteIPRotationAsync(String, String, String, CancellationToken)

[Obsolete]
public virtual Task<Operation> CompleteIPRotationAsync(string projectId, string zone, string clusterId, CancellationToken cancellationToken)

Completes master IP rotation.

Parameters
NameDescription
projectIdString

Deprecated. The Google Developers Console project ID or project number. This field has been deprecated and replaced by the name field.

zoneString

Deprecated. The name of the Google Compute Engine zone in which the cluster resides. This field has been deprecated and replaced by the name field.

clusterIdString

Deprecated. The name of the cluster. This field has been deprecated and replaced by the name field.

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
Task<Operation>

A Task containing the RPC response.

Example
            // Create client
            ClusterManagerClient clusterManagerClient = await ClusterManagerClient.CreateAsync();
            // Initialize request argument(s)
            string projectId = "";
            string zone = "";
            string clusterId = "";
            // Make the request
#pragma warning disable CS0612
            Operation response = await clusterManagerClient.CompleteIPRotationAsync(projectId, zone, clusterId);
#pragma warning restore CS0612

CompleteIPRotationAsync(String, CancellationToken)

public virtual Task<Operation> CompleteIPRotationAsync(string name, CancellationToken cancellationToken)

Completes master IP rotation.

Parameters
NameDescription
nameString

The name (project, location, cluster name) of the cluster to complete IP rotation. Specified in the format projects/*/locations/*/clusters/*.

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
Task<Operation>

A Task containing the RPC response.

Example
// Create client
ClusterManagerClient clusterManagerClient = await ClusterManagerClient.CreateAsync();
// Initialize request argument(s)
string name = "";
// Make the request
Operation response = await clusterManagerClient.CompleteIPRotationAsync(name);

CompleteNodePoolUpgrade(CompleteNodePoolUpgradeRequest, CallSettings)

public virtual void CompleteNodePoolUpgrade(CompleteNodePoolUpgradeRequest request, CallSettings callSettings = null)

CompleteNodePoolUpgrade will signal an on-going node pool upgrade to complete.

Parameters
NameDescription
requestCompleteNodePoolUpgradeRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Example
// Create client
ClusterManagerClient clusterManagerClient = ClusterManagerClient.Create();
// Initialize request argument(s)
CompleteNodePoolUpgradeRequest request = new CompleteNodePoolUpgradeRequest { Name = "", };
// Make the request
clusterManagerClient.CompleteNodePoolUpgrade(request);

CompleteNodePoolUpgradeAsync(CompleteNodePoolUpgradeRequest, CallSettings)

public virtual Task CompleteNodePoolUpgradeAsync(CompleteNodePoolUpgradeRequest request, CallSettings callSettings = null)

CompleteNodePoolUpgrade will signal an on-going node pool upgrade to complete.

Parameters
NameDescription
requestCompleteNodePoolUpgradeRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Task

A Task containing the RPC response.

Example
// Create client
ClusterManagerClient clusterManagerClient = await ClusterManagerClient.CreateAsync();
// Initialize request argument(s)
CompleteNodePoolUpgradeRequest request = new CompleteNodePoolUpgradeRequest { Name = "", };
// Make the request
await clusterManagerClient.CompleteNodePoolUpgradeAsync(request);

CompleteNodePoolUpgradeAsync(CompleteNodePoolUpgradeRequest, CancellationToken)

public virtual Task CompleteNodePoolUpgradeAsync(CompleteNodePoolUpgradeRequest request, CancellationToken cancellationToken)

CompleteNodePoolUpgrade will signal an on-going node pool upgrade to complete.

Parameters
NameDescription
requestCompleteNodePoolUpgradeRequest

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

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
Task

A Task containing the RPC response.

Example
// Create client
ClusterManagerClient clusterManagerClient = await ClusterManagerClient.CreateAsync();
// Initialize request argument(s)
CompleteNodePoolUpgradeRequest request = new CompleteNodePoolUpgradeRequest { Name = "", };
// Make the request
await clusterManagerClient.CompleteNodePoolUpgradeAsync(request);

Create()

public static ClusterManagerClient Create()

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

Returns
TypeDescription
ClusterManagerClient

The created ClusterManagerClient.

CreateAsync(CancellationToken)

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

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

Parameter
NameDescription
cancellationTokenCancellationToken

The CancellationToken to use while creating the client.

Returns
TypeDescription
Task<ClusterManagerClient>

The task representing the created ClusterManagerClient.

CreateCluster(CreateClusterRequest, CallSettings)

public virtual Operation CreateCluster(CreateClusterRequest request, CallSettings callSettings = null)

Creates a cluster, consisting of the specified number and type of Google Compute Engine instances.

By default, the cluster is created in the project's default network.

One firewall is added for the cluster. After cluster creation, the Kubelet creates routes for each node to allow the containers on that node to communicate with all other instances in the cluster.

Finally, an entry is added to the project's global metadata indicating which CIDR range the cluster is using.

Parameters
NameDescription
requestCreateClusterRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Operation

The RPC response.

Example
// Create client
ClusterManagerClient clusterManagerClient = ClusterManagerClient.Create();
// Initialize request argument(s)
CreateClusterRequest request = new CreateClusterRequest
{
    Cluster = new Cluster(),
    Parent = "",
};
// Make the request
Operation response = clusterManagerClient.CreateCluster(request);

CreateCluster(String, Cluster, CallSettings)

public virtual Operation CreateCluster(string parent, Cluster cluster, CallSettings callSettings = null)

Creates a cluster, consisting of the specified number and type of Google Compute Engine instances.

By default, the cluster is created in the project's default network.

One firewall is added for the cluster. After cluster creation, the Kubelet creates routes for each node to allow the containers on that node to communicate with all other instances in the cluster.

Finally, an entry is added to the project's global metadata indicating which CIDR range the cluster is using.

Parameters
NameDescription
parentString

The parent (project and location) where the cluster will be created. Specified in the format projects/*/locations/*.

clusterCluster

Required. A cluster resource

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Operation

The RPC response.

Example
// Create client
ClusterManagerClient clusterManagerClient = ClusterManagerClient.Create();
// Initialize request argument(s)
string parent = "";
Cluster cluster = new Cluster();
// Make the request
Operation response = clusterManagerClient.CreateCluster(parent, cluster);

CreateCluster(String, String, Cluster, CallSettings)

[Obsolete]
public virtual Operation CreateCluster(string projectId, string zone, Cluster cluster, CallSettings callSettings = null)

Creates a cluster, consisting of the specified number and type of Google Compute Engine instances.

By default, the cluster is created in the project's default network.

One firewall is added for the cluster. After cluster creation, the Kubelet creates routes for each node to allow the containers on that node to communicate with all other instances in the cluster.

Finally, an entry is added to the project's global metadata indicating which CIDR range the cluster is using.

Parameters
NameDescription
projectIdString

Deprecated. The Google Developers Console project ID or project number. This field has been deprecated and replaced by the parent field.

zoneString

Deprecated. The name of the Google Compute Engine zone in which the cluster resides. This field has been deprecated and replaced by the parent field.

clusterCluster

Required. A cluster resource

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Operation

The RPC response.

Example
            // Create client
            ClusterManagerClient clusterManagerClient = ClusterManagerClient.Create();
            // Initialize request argument(s)
            string projectId = "";
            string zone = "";
            Cluster cluster = new Cluster();
            // Make the request
#pragma warning disable CS0612
            Operation response = clusterManagerClient.CreateCluster(projectId, zone, cluster);
#pragma warning restore CS0612

CreateClusterAsync(CreateClusterRequest, CallSettings)

public virtual Task<Operation> CreateClusterAsync(CreateClusterRequest request, CallSettings callSettings = null)

Creates a cluster, consisting of the specified number and type of Google Compute Engine instances.

By default, the cluster is created in the project's default network.

One firewall is added for the cluster. After cluster creation, the Kubelet creates routes for each node to allow the containers on that node to communicate with all other instances in the cluster.

Finally, an entry is added to the project's global metadata indicating which CIDR range the cluster is using.

Parameters
NameDescription
requestCreateClusterRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Task<Operation>

A Task containing the RPC response.

Example
// Create client
ClusterManagerClient clusterManagerClient = await ClusterManagerClient.CreateAsync();
// Initialize request argument(s)
CreateClusterRequest request = new CreateClusterRequest
{
    Cluster = new Cluster(),
    Parent = "",
};
// Make the request
Operation response = await clusterManagerClient.CreateClusterAsync(request);

CreateClusterAsync(CreateClusterRequest, CancellationToken)

public virtual Task<Operation> CreateClusterAsync(CreateClusterRequest request, CancellationToken cancellationToken)

Creates a cluster, consisting of the specified number and type of Google Compute Engine instances.

By default, the cluster is created in the project's default network.

One firewall is added for the cluster. After cluster creation, the Kubelet creates routes for each node to allow the containers on that node to communicate with all other instances in the cluster.

Finally, an entry is added to the project's global metadata indicating which CIDR range the cluster is using.

Parameters
NameDescription
requestCreateClusterRequest

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

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
Task<Operation>

A Task containing the RPC response.

Example
// Create client
ClusterManagerClient clusterManagerClient = await ClusterManagerClient.CreateAsync();
// Initialize request argument(s)
CreateClusterRequest request = new CreateClusterRequest
{
    Cluster = new Cluster(),
    Parent = "",
};
// Make the request
Operation response = await clusterManagerClient.CreateClusterAsync(request);

CreateClusterAsync(String, Cluster, CallSettings)

public virtual Task<Operation> CreateClusterAsync(string parent, Cluster cluster, CallSettings callSettings = null)

Creates a cluster, consisting of the specified number and type of Google Compute Engine instances.

By default, the cluster is created in the project's default network.

One firewall is added for the cluster. After cluster creation, the Kubelet creates routes for each node to allow the containers on that node to communicate with all other instances in the cluster.

Finally, an entry is added to the project's global metadata indicating which CIDR range the cluster is using.

Parameters
NameDescription
parentString

The parent (project and location) where the cluster will be created. Specified in the format projects/*/locations/*.

clusterCluster

Required. A cluster resource

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Task<Operation>

A Task containing the RPC response.

Example
// Create client
ClusterManagerClient clusterManagerClient = await ClusterManagerClient.CreateAsync();
// Initialize request argument(s)
string parent = "";
Cluster cluster = new Cluster();
// Make the request
Operation response = await clusterManagerClient.CreateClusterAsync(parent, cluster);

CreateClusterAsync(String, Cluster, CancellationToken)

public virtual Task<Operation> CreateClusterAsync(string parent, Cluster cluster, CancellationToken cancellationToken)

Creates a cluster, consisting of the specified number and type of Google Compute Engine instances.

By default, the cluster is created in the project's default network.

One firewall is added for the cluster. After cluster creation, the Kubelet creates routes for each node to allow the containers on that node to communicate with all other instances in the cluster.

Finally, an entry is added to the project's global metadata indicating which CIDR range the cluster is using.

Parameters
NameDescription
parentString

The parent (project and location) where the cluster will be created. Specified in the format projects/*/locations/*.

clusterCluster

Required. A cluster resource

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
Task<Operation>

A Task containing the RPC response.

Example
// Create client
ClusterManagerClient clusterManagerClient = await ClusterManagerClient.CreateAsync();
// Initialize request argument(s)
string parent = "";
Cluster cluster = new Cluster();
// Make the request
Operation response = await clusterManagerClient.CreateClusterAsync(parent, cluster);

CreateClusterAsync(String, String, Cluster, CallSettings)

[Obsolete]
public virtual Task<Operation> CreateClusterAsync(string projectId, string zone, Cluster cluster, CallSettings callSettings = null)

Creates a cluster, consisting of the specified number and type of Google Compute Engine instances.

By default, the cluster is created in the project's default network.

One firewall is added for the cluster. After cluster creation, the Kubelet creates routes for each node to allow the containers on that node to communicate with all other instances in the cluster.

Finally, an entry is added to the project's global metadata indicating which CIDR range the cluster is using.

Parameters
NameDescription
projectIdString

Deprecated. The Google Developers Console project ID or project number. This field has been deprecated and replaced by the parent field.

zoneString

Deprecated. The name of the Google Compute Engine zone in which the cluster resides. This field has been deprecated and replaced by the parent field.

clusterCluster

Required. A cluster resource

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Task<Operation>

A Task containing the RPC response.

Example
            // Create client
            ClusterManagerClient clusterManagerClient = await ClusterManagerClient.CreateAsync();
            // Initialize request argument(s)
            string projectId = "";
            string zone = "";
            Cluster cluster = new Cluster();
            // Make the request
#pragma warning disable CS0612
            Operation response = await clusterManagerClient.CreateClusterAsync(projectId, zone, cluster);
#pragma warning restore CS0612

CreateClusterAsync(String, String, Cluster, CancellationToken)

[Obsolete]
public virtual Task<Operation> CreateClusterAsync(string projectId, string zone, Cluster cluster, CancellationToken cancellationToken)

Creates a cluster, consisting of the specified number and type of Google Compute Engine instances.

By default, the cluster is created in the project's default network.

One firewall is added for the cluster. After cluster creation, the Kubelet creates routes for each node to allow the containers on that node to communicate with all other instances in the cluster.

Finally, an entry is added to the project's global metadata indicating which CIDR range the cluster is using.

Parameters
NameDescription
projectIdString

Deprecated. The Google Developers Console project ID or project number. This field has been deprecated and replaced by the parent field.

zoneString

Deprecated. The name of the Google Compute Engine zone in which the cluster resides. This field has been deprecated and replaced by the parent field.

clusterCluster

Required. A cluster resource

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
Task<Operation>

A Task containing the RPC response.

Example
            // Create client
            ClusterManagerClient clusterManagerClient = await ClusterManagerClient.CreateAsync();
            // Initialize request argument(s)
            string projectId = "";
            string zone = "";
            Cluster cluster = new Cluster();
            // Make the request
#pragma warning disable CS0612
            Operation response = await clusterManagerClient.CreateClusterAsync(projectId, zone, cluster);
#pragma warning restore CS0612

CreateNodePool(CreateNodePoolRequest, CallSettings)

public virtual Operation CreateNodePool(CreateNodePoolRequest request, CallSettings callSettings = null)

Creates a node pool for a cluster.

Parameters
NameDescription
requestCreateNodePoolRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Operation

The RPC response.

Example
// Create client
ClusterManagerClient clusterManagerClient = ClusterManagerClient.Create();
// Initialize request argument(s)
CreateNodePoolRequest request = new CreateNodePoolRequest
{
    NodePool = new NodePool(),
    Parent = "",
};
// Make the request
Operation response = clusterManagerClient.CreateNodePool(request);

CreateNodePool(String, NodePool, CallSettings)

public virtual Operation CreateNodePool(string parent, NodePool nodePool, CallSettings callSettings = null)

Creates a node pool for a cluster.

Parameters
NameDescription
parentString

The parent (project, location, cluster name) where the node pool will be created. Specified in the format projects/*/locations/*/clusters/*.

nodePoolNodePool

Required. The node pool to create.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Operation

The RPC response.

Example
// Create client
ClusterManagerClient clusterManagerClient = ClusterManagerClient.Create();
// Initialize request argument(s)
string parent = "";
NodePool nodePool = new NodePool();
// Make the request
Operation response = clusterManagerClient.CreateNodePool(parent, nodePool);

CreateNodePool(String, String, String, NodePool, CallSettings)

[Obsolete]
public virtual Operation CreateNodePool(string projectId, string zone, string clusterId, NodePool nodePool, CallSettings callSettings = null)

Creates a node pool for a cluster.

Parameters
NameDescription
projectIdString

Deprecated. The Google Developers Console project ID or project number. This field has been deprecated and replaced by the parent field.

zoneString

Deprecated. The name of the Google Compute Engine zone in which the cluster resides. This field has been deprecated and replaced by the parent field.

clusterIdString

Deprecated. The name of the cluster. This field has been deprecated and replaced by the parent field.

nodePoolNodePool

Required. The node pool to create.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Operation

The RPC response.

Example
            // Create client
            ClusterManagerClient clusterManagerClient = ClusterManagerClient.Create();
            // Initialize request argument(s)
            string projectId = "";
            string zone = "";
            string clusterId = "";
            NodePool nodePool = new NodePool();
            // Make the request
#pragma warning disable CS0612
            Operation response = clusterManagerClient.CreateNodePool(projectId, zone, clusterId, nodePool);
#pragma warning restore CS0612

CreateNodePoolAsync(CreateNodePoolRequest, CallSettings)

public virtual Task<Operation> CreateNodePoolAsync(CreateNodePoolRequest request, CallSettings callSettings = null)

Creates a node pool for a cluster.

Parameters
NameDescription
requestCreateNodePoolRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Task<Operation>

A Task containing the RPC response.

Example
// Create client
ClusterManagerClient clusterManagerClient = await ClusterManagerClient.CreateAsync();
// Initialize request argument(s)
CreateNodePoolRequest request = new CreateNodePoolRequest
{
    NodePool = new NodePool(),
    Parent = "",
};
// Make the request
Operation response = await clusterManagerClient.CreateNodePoolAsync(request);

CreateNodePoolAsync(CreateNodePoolRequest, CancellationToken)

public virtual Task<Operation> CreateNodePoolAsync(CreateNodePoolRequest request, CancellationToken cancellationToken)

Creates a node pool for a cluster.

Parameters
NameDescription
requestCreateNodePoolRequest

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

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
Task<Operation>

A Task containing the RPC response.

Example
// Create client
ClusterManagerClient clusterManagerClient = await ClusterManagerClient.CreateAsync();
// Initialize request argument(s)
CreateNodePoolRequest request = new CreateNodePoolRequest
{
    NodePool = new NodePool(),
    Parent = "",
};
// Make the request
Operation response = await clusterManagerClient.CreateNodePoolAsync(request);

CreateNodePoolAsync(String, NodePool, CallSettings)

public virtual Task<Operation> CreateNodePoolAsync(string parent, NodePool nodePool, CallSettings callSettings = null)

Creates a node pool for a cluster.

Parameters
NameDescription
parentString

The parent (project, location, cluster name) where the node pool will be created. Specified in the format projects/*/locations/*/clusters/*.

nodePoolNodePool

Required. The node pool to create.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Task<Operation>

A Task containing the RPC response.

Example
// Create client
ClusterManagerClient clusterManagerClient = await ClusterManagerClient.CreateAsync();
// Initialize request argument(s)
string parent = "";
NodePool nodePool = new NodePool();
// Make the request
Operation response = await clusterManagerClient.CreateNodePoolAsync(parent, nodePool);

CreateNodePoolAsync(String, NodePool, CancellationToken)

public virtual Task<Operation> CreateNodePoolAsync(string parent, NodePool nodePool, CancellationToken cancellationToken)

Creates a node pool for a cluster.

Parameters
NameDescription
parentString

The parent (project, location, cluster name) where the node pool will be created. Specified in the format projects/*/locations/*/clusters/*.

nodePoolNodePool

Required. The node pool to create.

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
Task<Operation>

A Task containing the RPC response.

Example
// Create client
ClusterManagerClient clusterManagerClient = await ClusterManagerClient.CreateAsync();
// Initialize request argument(s)
string parent = "";
NodePool nodePool = new NodePool();
// Make the request
Operation response = await clusterManagerClient.CreateNodePoolAsync(parent, nodePool);

CreateNodePoolAsync(String, String, String, NodePool, CallSettings)

[Obsolete]
public virtual Task<Operation> CreateNodePoolAsync(string projectId, string zone, string clusterId, NodePool nodePool, CallSettings callSettings = null)

Creates a node pool for a cluster.

Parameters
NameDescription
projectIdString

Deprecated. The Google Developers Console project ID or project number. This field has been deprecated and replaced by the parent field.

zoneString

Deprecated. The name of the Google Compute Engine zone in which the cluster resides. This field has been deprecated and replaced by the parent field.

clusterIdString

Deprecated. The name of the cluster. This field has been deprecated and replaced by the parent field.

nodePoolNodePool

Required. The node pool to create.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Task<Operation>

A Task containing the RPC response.

Example
            // Create client
            ClusterManagerClient clusterManagerClient = await ClusterManagerClient.CreateAsync();
            // Initialize request argument(s)
            string projectId = "";
            string zone = "";
            string clusterId = "";
            NodePool nodePool = new NodePool();
            // Make the request
#pragma warning disable CS0612
            Operation response = await clusterManagerClient.CreateNodePoolAsync(projectId, zone, clusterId, nodePool);
#pragma warning restore CS0612

CreateNodePoolAsync(String, String, String, NodePool, CancellationToken)

[Obsolete]
public virtual Task<Operation> CreateNodePoolAsync(string projectId, string zone, string clusterId, NodePool nodePool, CancellationToken cancellationToken)

Creates a node pool for a cluster.

Parameters
NameDescription
projectIdString

Deprecated. The Google Developers Console project ID or project number. This field has been deprecated and replaced by the parent field.

zoneString

Deprecated. The name of the Google Compute Engine zone in which the cluster resides. This field has been deprecated and replaced by the parent field.

clusterIdString

Deprecated. The name of the cluster. This field has been deprecated and replaced by the parent field.

nodePoolNodePool

Required. The node pool to create.

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
Task<Operation>

A Task containing the RPC response.

Example
            // Create client
            ClusterManagerClient clusterManagerClient = await ClusterManagerClient.CreateAsync();
            // Initialize request argument(s)
            string projectId = "";
            string zone = "";
            string clusterId = "";
            NodePool nodePool = new NodePool();
            // Make the request
#pragma warning disable CS0612
            Operation response = await clusterManagerClient.CreateNodePoolAsync(projectId, zone, clusterId, nodePool);
#pragma warning restore CS0612

DeleteCluster(DeleteClusterRequest, CallSettings)

public virtual Operation DeleteCluster(DeleteClusterRequest request, CallSettings callSettings = null)

Deletes the cluster, including the Kubernetes endpoint and all worker nodes.

Firewalls and routes that were configured during cluster creation are also deleted.

Other Google Compute Engine resources that might be in use by the cluster, such as load balancer resources, are not deleted if they weren't present when the cluster was initially created.

Parameters
NameDescription
requestDeleteClusterRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Operation

The RPC response.

Example
// Create client
ClusterManagerClient clusterManagerClient = ClusterManagerClient.Create();
// Initialize request argument(s)
DeleteClusterRequest request = new DeleteClusterRequest { Name = "", };
// Make the request
Operation response = clusterManagerClient.DeleteCluster(request);

DeleteCluster(String, CallSettings)

public virtual Operation DeleteCluster(string name, CallSettings callSettings = null)

Deletes the cluster, including the Kubernetes endpoint and all worker nodes.

Firewalls and routes that were configured during cluster creation are also deleted.

Other Google Compute Engine resources that might be in use by the cluster, such as load balancer resources, are not deleted if they weren't present when the cluster was initially created.

Parameters
NameDescription
nameString

The name (project, location, cluster) of the cluster to delete. Specified in the format projects/*/locations/*/clusters/*.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Operation

The RPC response.

Example
// Create client
ClusterManagerClient clusterManagerClient = ClusterManagerClient.Create();
// Initialize request argument(s)
string name = "";
// Make the request
Operation response = clusterManagerClient.DeleteCluster(name);

DeleteCluster(String, String, String, CallSettings)

[Obsolete]
public virtual Operation DeleteCluster(string projectId, string zone, string clusterId, CallSettings callSettings = null)

Deletes the cluster, including the Kubernetes endpoint and all worker nodes.

Firewalls and routes that were configured during cluster creation are also deleted.

Other Google Compute Engine resources that might be in use by the cluster, such as load balancer resources, are not deleted if they weren't present when the cluster was initially created.

Parameters
NameDescription
projectIdString

Deprecated. The Google Developers Console project ID or project number. This field has been deprecated and replaced by the name field.

zoneString

Deprecated. The name of the Google Compute Engine zone in which the cluster resides. This field has been deprecated and replaced by the name field.

clusterIdString

Deprecated. The name of the cluster to delete. This field has been deprecated and replaced by the name field.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Operation

The RPC response.

Example
            // Create client
            ClusterManagerClient clusterManagerClient = ClusterManagerClient.Create();
            // Initialize request argument(s)
            string projectId = "";
            string zone = "";
            string clusterId = "";
            // Make the request
#pragma warning disable CS0612
            Operation response = clusterManagerClient.DeleteCluster(projectId, zone, clusterId);
#pragma warning restore CS0612

DeleteClusterAsync(DeleteClusterRequest, CallSettings)

public virtual Task<Operation> DeleteClusterAsync(DeleteClusterRequest request, CallSettings callSettings = null)

Deletes the cluster, including the Kubernetes endpoint and all worker nodes.

Firewalls and routes that were configured during cluster creation are also deleted.

Other Google Compute Engine resources that might be in use by the cluster, such as load balancer resources, are not deleted if they weren't present when the cluster was initially created.

Parameters
NameDescription
requestDeleteClusterRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Task<Operation>

A Task containing the RPC response.

Example
// Create client
ClusterManagerClient clusterManagerClient = await ClusterManagerClient.CreateAsync();
// Initialize request argument(s)
DeleteClusterRequest request = new DeleteClusterRequest { Name = "", };
// Make the request
Operation response = await clusterManagerClient.DeleteClusterAsync(request);

DeleteClusterAsync(DeleteClusterRequest, CancellationToken)

public virtual Task<Operation> DeleteClusterAsync(DeleteClusterRequest request, CancellationToken cancellationToken)

Deletes the cluster, including the Kubernetes endpoint and all worker nodes.

Firewalls and routes that were configured during cluster creation are also deleted.

Other Google Compute Engine resources that might be in use by the cluster, such as load balancer resources, are not deleted if they weren't present when the cluster was initially created.

Parameters
NameDescription
requestDeleteClusterRequest

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

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
Task<Operation>

A Task containing the RPC response.

Example
// Create client
ClusterManagerClient clusterManagerClient = await ClusterManagerClient.CreateAsync();
// Initialize request argument(s)
DeleteClusterRequest request = new DeleteClusterRequest { Name = "", };
// Make the request
Operation response = await clusterManagerClient.DeleteClusterAsync(request);

DeleteClusterAsync(String, CallSettings)

public virtual Task<Operation> DeleteClusterAsync(string name, CallSettings callSettings = null)

Deletes the cluster, including the Kubernetes endpoint and all worker nodes.

Firewalls and routes that were configured during cluster creation are also deleted.

Other Google Compute Engine resources that might be in use by the cluster, such as load balancer resources, are not deleted if they weren't present when the cluster was initially created.

Parameters
NameDescription
nameString

The name (project, location, cluster) of the cluster to delete. Specified in the format projects/*/locations/*/clusters/*.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Task<Operation>

A Task containing the RPC response.

Example
// Create client
ClusterManagerClient clusterManagerClient = await ClusterManagerClient.CreateAsync();
// Initialize request argument(s)
string name = "";
// Make the request
Operation response = await clusterManagerClient.DeleteClusterAsync(name);

DeleteClusterAsync(String, String, String, CallSettings)

[Obsolete]
public virtual Task<Operation> DeleteClusterAsync(string projectId, string zone, string clusterId, CallSettings callSettings = null)

Deletes the cluster, including the Kubernetes endpoint and all worker nodes.

Firewalls and routes that were configured during cluster creation are also deleted.

Other Google Compute Engine resources that might be in use by the cluster, such as load balancer resources, are not deleted if they weren't present when the cluster was initially created.

Parameters
NameDescription
projectIdString

Deprecated. The Google Developers Console project ID or project number. This field has been deprecated and replaced by the name field.

zoneString

Deprecated. The name of the Google Compute Engine zone in which the cluster resides. This field has been deprecated and replaced by the name field.

clusterIdString

Deprecated. The name of the cluster to delete. This field has been deprecated and replaced by the name field.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Task<Operation>

A Task containing the RPC response.

Example
            // Create client
            ClusterManagerClient clusterManagerClient = await ClusterManagerClient.CreateAsync();
            // Initialize request argument(s)
            string projectId = "";
            string zone = "";
            string clusterId = "";
            // Make the request
#pragma warning disable CS0612
            Operation response = await clusterManagerClient.DeleteClusterAsync(projectId, zone, clusterId);
#pragma warning restore CS0612

DeleteClusterAsync(String, String, String, CancellationToken)

[Obsolete]
public virtual Task<Operation> DeleteClusterAsync(string projectId, string zone, string clusterId, CancellationToken cancellationToken)

Deletes the cluster, including the Kubernetes endpoint and all worker nodes.

Firewalls and routes that were configured during cluster creation are also deleted.

Other Google Compute Engine resources that might be in use by the cluster, such as load balancer resources, are not deleted if they weren't present when the cluster was initially created.

Parameters
NameDescription
projectIdString

Deprecated. The Google Developers Console project ID or project number. This field has been deprecated and replaced by the name field.

zoneString

Deprecated. The name of the Google Compute Engine zone in which the cluster resides. This fie