# Cloud Workstations v1 API - Class WorkstationCluster (1.5.0)

1.5.0 (latest) 1.4.0 1.3.0 1.2.0 1.1.0 1.0.0

    public sealed class WorkstationCluster : IMessage<WorkstationCluster>, IEquatable<WorkstationCluster>, IDeepCloneable<WorkstationCluster>, IBufferMessage, IMessage

Reference documentation and code samples for the Cloud Workstations v1 API class WorkstationCluster.

A workstation cluster resource in the Cloud Workstations API.

Defines a group of workstations in a particular region and the
VPC network they're attached to.

## Inheritance

[object](https://learn.microsoft.com/dotnet/api/system.object) \> WorkstationCluster

## Implements

[IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage-1.html)[WorkstationCluster](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Workstations.V1/latest/Google.Cloud.Workstations.V1.WorkstationCluster), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[WorkstationCluster](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Workstations.V1/latest/Google.Cloud.Workstations.V1.WorkstationCluster), [IDeepCloneable](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IDeepCloneable-1.html)[WorkstationCluster](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Workstations.V1/latest/Google.Cloud.Workstations.V1.WorkstationCluster), [IBufferMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IBufferMessage.html), [IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage.html)

## Inherited Members

[object.GetHashCode()](https://learn.microsoft.com/dotnet/api/system.object.gethashcode) [object.GetType()](https://learn.microsoft.com/dotnet/api/system.object.gettype) [object.ToString()](https://learn.microsoft.com/dotnet/api/system.object.tostring)

## Namespace

[Google.Cloud.Workstations.V1](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Workstations.V1/latest/Google.Cloud.Workstations.V1)

## Assembly

Google.Cloud.Workstations.V1.dll

## Constructors

### WorkstationCluster()

    public WorkstationCluster()

### WorkstationCluster(WorkstationCluster)

    public WorkstationCluster(WorkstationCluster other)

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `other` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Workstations.V1/latest/Google.Cloud.Workstations.V1.WorkstationCluster` |

## Properties

### Annotations

    public MapField<string, string> Annotations { get; }

Optional. Client-specified annotations.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.Collections.MapField-2.htmlhttps://learn.microsoft.com/dotnet/api/system.stringhttps://learn.microsoft.com/dotnet/api/system.string` |   |

### Conditions

    public RepeatedField<Status> Conditions { get; }

Output only. Status conditions describing the workstation cluster's current
state.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.Collections.RepeatedField-1.htmlhttps://cloud.google.com/dotnet/docs/reference/Google.Api.CommonProtos/latest/Google.Rpc.Status.html` |   |

### ControlPlaneIp

    public string ControlPlaneIp { get; set; }

Output only. The private IP address of the control plane for this
workstation cluster. Workstation VMs need access to this IP address to work
with the service, so make sure that your firewall rules allow egress from
the workstation VMs to this address.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.string` |   |

### CreateTime

    public Timestamp CreateTime { get; set; }

Output only. Time when this workstation cluster was created.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.WellKnownTypes.Timestamp.html` |   |

### Degraded

    public bool Degraded { get; set; }

Output only. Whether this workstation cluster is in degraded mode, in which
case it may require user action to restore full functionality. The
\[conditions\]\[google.cloud.workstations.v1.WorkstationCluster.conditions\]
field contains detailed information about the status of the cluster.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.boolean` |   |

### DeleteTime

    public Timestamp DeleteTime { get; set; }

Output only. Time when this workstation cluster was soft-deleted.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.WellKnownTypes.Timestamp.html` |   |

### DisplayName

    public string DisplayName { get; set; }

Optional. Human-readable name for this workstation cluster.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.string` |   |

### DomainConfig

    public WorkstationCluster.Types.DomainConfig DomainConfig { get; set; }

Optional. Configuration options for a custom domain.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Workstations.V1/latest/Google.Cloud.Workstations.V1.WorkstationClusterhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Workstations.V1/latest/Google.Cloud.Workstations.V1.WorkstationCluster.Typeshttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Workstations.V1/latest/Google.Cloud.Workstations.V1.WorkstationCluster.Types.DomainConfig` |   |

### Etag

    public string Etag { get; set; }

Optional. Checksum computed by the server. May be sent on update and delete
requests to make sure that the client has an up-to-date value before
proceeding.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.string` |   |

### GatewayConfig

    public WorkstationCluster.Types.GatewayConfig GatewayConfig { get; set; }

Optional. Configuration options for Cluster HTTP Gateway.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Workstations.V1/latest/Google.Cloud.Workstations.V1.WorkstationClusterhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Workstations.V1/latest/Google.Cloud.Workstations.V1.WorkstationCluster.Typeshttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Workstations.V1/latest/Google.Cloud.Workstations.V1.WorkstationCluster.Types.GatewayConfig` |   |

### Labels

    public MapField<string, string> Labels { get; }

Optional.
[Labels](https://cloud.google.com/workstations/docs/label-resources) that
are applied to the workstation cluster and that are also propagated to the
underlying Compute Engine resources.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.Collections.MapField-2.htmlhttps://learn.microsoft.com/dotnet/api/system.stringhttps://learn.microsoft.com/dotnet/api/system.string` |   |

### Name

    public string Name { get; set; }

Identifier. Full name of this workstation cluster.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.string` |   |

### Network

    public string Network { get; set; }

Immutable. Name of the Compute Engine network in which instances associated
with this workstation cluster will be created.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.string` |   |

### PrivateClusterConfig

    public WorkstationCluster.Types.PrivateClusterConfig PrivateClusterConfig { get; set; }

Optional. Configuration for private workstation cluster.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Workstations.V1/latest/Google.Cloud.Workstations.V1.WorkstationClusterhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Workstations.V1/latest/Google.Cloud.Workstations.V1.WorkstationCluster.Typeshttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Workstations.V1/latest/Google.Cloud.Workstations.V1.WorkstationCluster.Types.PrivateClusterConfig` |   |

### Reconciling

    public bool Reconciling { get; set; }

Output only. Indicates whether this workstation cluster is currently being
updated to match its intended state.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.boolean` |   |

### Subnetwork

    public string Subnetwork { get; set; }

Immutable. Name of the Compute Engine subnetwork in which instances
associated with this workstation cluster will be created. Must be part of
the subnetwork specified for this workstation cluster.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.string` |   |

### Tags

    public MapField<string, string> Tags { get; }

Optional. Input only. Immutable. Tag keys/values directly bound to this
resource. For example:
"123/environment": "production",
"123/costCenter": "marketing"

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.Collections.MapField-2.htmlhttps://learn.microsoft.com/dotnet/api/system.stringhttps://learn.microsoft.com/dotnet/api/system.string` |   |

### Uid

    public string Uid { get; set; }

Output only. A system-assigned unique identifier for this workstation
cluster.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.string` |   |

### UpdateTime

    public Timestamp UpdateTime { get; set; }

Output only. Time when this workstation cluster was most recently updated.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.WellKnownTypes.Timestamp.html` |   |

### WorkstationAuthorizationUrl

    public string WorkstationAuthorizationUrl { get; set; }

Optional. Specifies the redirect URL for unauthorized requests received by
workstation VMs in this cluster.

Redirects to this endpoint will send a base64 encoded `state` query param
containing the target workstation name and original request hostname. The
endpoint is responsible for retrieving a token using `GenerateAccessToken`
and redirecting back to the original hostname with the token.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.string` |   |

### WorkstationClusterName

    public WorkstationClusterName WorkstationClusterName { get; set; }

[WorkstationClusterName](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Workstations.V1/latest/Google.Cloud.Workstations.V1.WorkstationClusterName)-typed view over the [Name](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Workstations.V1/latest/Google.Cloud.Workstations.V1.WorkstationCluster#Google_Cloud_Workstations_V1_WorkstationCluster_Name) resource name property.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Workstations.V1/latest/Google.Cloud.Workstations.V1.WorkstationClusterName` |   |

### WorkstationLaunchUrl

    public string WorkstationLaunchUrl { get; set; }

Optional. Specifies the launch URL for workstations in this cluster.
Requests sent to unstarted workstations will be redirected to this URL.

Requests redirected to the launch endpoint will be sent with a
`workstation` and `project` query parameter containing the full workstation
resource name and project ID, respectively. The launch endpoint is
responsible for starting the workstation, polling it until it reaches
`STATE_RUNNING`, and then issuing a redirect to the workstation's host URL.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.string` |   |