1.2.0 (latest) 1.1.0 1.0.0

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

Reference documentation and code samples for the API hub v1 API class Dependency.

A dependency resource defined in the API hub describes a dependency directed
from a consumer to a supplier entity. A dependency can be defined between two
\[Operations\]\[google.cloud.apihub.v1.ApiOperation\] or between
an \[Operation\]\[google.cloud.apihub.v1.ApiOperation\] and \[External
API\]\[google.cloud.apihub.v1.ExternalApi\].

## Inheritance

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

## Implements

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

## Assembly

Google.Cloud.ApiHub.V1.dll

## Constructors

### Dependency()

    public Dependency()

### Dependency(Dependency)

    public Dependency(Dependency other)

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `other` | `Dependency` |

## Properties

### Attributes

    public MapField<string, AttributeValues> Attributes { get; }

Optional. The list of user defined attributes associated with the
dependency resource. The key is the attribute name. It will be of the
format: `projects/{project}/locations/{location}/attributes/{attribute}`.
The value is the attribute values associated with the resource.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `MapFieldstringAttributeValues` |   |

### Consumer

    public DependencyEntityReference Consumer { get; set; }

Required. Immutable. The entity acting as the consumer in the dependency.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `DependencyEntityReference` |   |

### CreateTime

    public Timestamp CreateTime { get; set; }

Output only. The time at which the dependency was created.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `Timestamp` |   |

### DependencyName

    public DependencyName DependencyName { get; set; }

[DependencyName](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ApiHub.V1/latest/Google.Cloud.ApiHub.V1.DependencyName.md.txt)-typed view over the [Name](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ApiHub.V1/latest/Google.Cloud.ApiHub.V1.Dependency.md.txt#Google_Cloud_ApiHub_V1_Dependency_Name) resource name property.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `DependencyName` |   |

### Description

    public string Description { get; set; }

Optional. Human readable description corresponding of the dependency.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `string` |   |

### DiscoveryMode

    public Dependency.Types.DiscoveryMode DiscoveryMode { get; set; }

Output only. Discovery mode of the dependency.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `DependencyTypesDiscoveryMode` |   |

### ErrorDetail

    public DependencyErrorDetail ErrorDetail { get; set; }

Output only. Error details of a dependency if the system has detected it
internally.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `DependencyErrorDetail` |   |

### Name

    public string Name { get; set; }

Identifier. The name of the dependency in the API Hub.

Format: `projects/{project}/locations/{location}/dependencies/{dependency}`

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `string` |   |

### State

    public Dependency.Types.State State { get; set; }

Output only. State of the dependency.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `DependencyTypesState` |   |

### Supplier

    public DependencyEntityReference Supplier { get; set; }

Required. Immutable. The entity acting as the supplier in the dependency.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `DependencyEntityReference` |   |

### UpdateTime

    public Timestamp UpdateTime { get; set; }

Output only. The time at which the dependency was last updated.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `Timestamp` |   |