1.13.0 (latest) 1.12.0 1.11.0 1.10.0 1.9.0 1.8.0 1.7.0 1.6.0 1.5.0 1.4.0 1.3.0 1.2.0 1.1.0 1.0.0

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

Reference documentation and code samples for the Infrastructure Manager v1 API class DeploymentUnit.

A DeploymentUnit is a container for a deployment and its dependencies.
An existing deployment can be provided directly in the unit, or the unit
can act as a placeholder to define the DAG, with the deployment specs
supplied in a `provisionDeploymentRequest`.

## Inheritance

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

## Implements

[IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage-1.html)[DeploymentUnit](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Config.V1/latest/Google.Cloud.Config.V1.DeploymentUnit), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[DeploymentUnit](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Config.V1/latest/Google.Cloud.Config.V1.DeploymentUnit), [IDeepCloneable](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IDeepCloneable-1.html)[DeploymentUnit](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Config.V1/latest/Google.Cloud.Config.V1.DeploymentUnit), [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.Config.V1](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Config.V1/latest/Google.Cloud.Config.V1)

## Assembly

Google.Cloud.Config.V1.dll

## Constructors

### DeploymentUnit()

    public DeploymentUnit()

### DeploymentUnit(DeploymentUnit)

    public DeploymentUnit(DeploymentUnit other)

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

## Properties

### Dependencies

    public RepeatedField<string> Dependencies { get; }

Required. The IDs of the deployment units within the deployment group that
this unit depends on.

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

### Deployment

    public string Deployment { get; set; }

Optional. The name of the deployment to be provisioned.
Format:
'projects/{project_id}/locations/{location}/deployments/{deployment}'.

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

### DeploymentAsDeploymentName

    public DeploymentName DeploymentAsDeploymentName { get; set; }

[DeploymentName](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Config.V1/latest/Google.Cloud.Config.V1.DeploymentName)-typed view over the [Deployment](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Config.V1/latest/Google.Cloud.Config.V1.DeploymentUnit#Google_Cloud_Config_V1_DeploymentUnit_Deployment) resource name property.

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

### HasDeployment

    public bool HasDeployment { get; }

Gets whether the "deployment" field is set

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

### Id

    public string Id { get; set; }

The id of the deployment unit. Must be unique within the deployment group.

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