1.2.0 (latest) 1.1.0 1.0.3 0.10.0 0.9.0 0.8.0 0.7.0 0.6.0 0.5.0 0.4.1 0.3.0 0.2.0 0.1.1 Reference documentation and code samples for the API hub V1 API class Google::Cloud::ApiHub::V1::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](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-api_hub-v1/latest/Google-Cloud-ApiHub-V1-ApiOperation "Google::Cloud::ApiHub::V1::ApiOperation (class)") or between
an [Operation](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-api_hub-v1/latest/Google-Cloud-ApiHub-V1-ApiOperation "Google::Cloud::ApiHub::V1::ApiOperation (class)") and \[External
API\]\[google.cloud.apihub.v1.ExternalApi\].

## Inherits

- Object

## Extended By

- Google::Protobuf::MessageExts::ClassMethods

## Includes

- Google::Protobuf::MessageExts

## Methods

### #attributes

    def attributes() -> ::Google::Protobuf::Map{::String => ::Google::Cloud::ApiHub::V1::AttributeValues}

**Returns**

- (::Google::Protobuf::Map{::String =\> ::Google::Cloud::ApiHub::V1::AttributeValues}) --- 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.

### #attributes=

    def attributes=(value) -> ::Google::Protobuf::Map{::String => ::Google::Cloud::ApiHub::V1::AttributeValues}

**Parameter**

- **value** (::Google::Protobuf::Map{::String =\> ::Google::Cloud::ApiHub::V1::AttributeValues}) --- 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.
**Returns**

- (::Google::Protobuf::Map{::String =\> ::Google::Cloud::ApiHub::V1::AttributeValues}) --- 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.

### #consumer

    def consumer() -> ::Google::Cloud::ApiHub::V1::DependencyEntityReference

**Returns**

- ([::Google::Cloud::ApiHub::V1::DependencyEntityReference](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-api_hub-v1/latest/Google-Cloud-ApiHub-V1-DependencyEntityReference)) --- Required. Immutable. The entity acting as the consumer in the dependency.

### #consumer=

    def consumer=(value) -> ::Google::Cloud::ApiHub::V1::DependencyEntityReference

**Parameter**

- **value** ([::Google::Cloud::ApiHub::V1::DependencyEntityReference](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-api_hub-v1/latest/Google-Cloud-ApiHub-V1-DependencyEntityReference)) --- Required. Immutable. The entity acting as the consumer in the dependency.
**Returns**

- ([::Google::Cloud::ApiHub::V1::DependencyEntityReference](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-api_hub-v1/latest/Google-Cloud-ApiHub-V1-DependencyEntityReference)) --- Required. Immutable. The entity acting as the consumer in the dependency.

### #create_time

    def create_time() -> ::Google::Protobuf::Timestamp

**Returns**

- ([::Google::Protobuf::Timestamp](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-api_hub-v1/latest/Google-Protobuf-Timestamp)) --- Output only. The time at which the dependency was created.

### #description

    def description() -> ::String

**Returns**

- (::String) --- Optional. Human readable description corresponding of the dependency.

### #description=

    def description=(value) -> ::String

**Parameter**

- **value** (::String) --- Optional. Human readable description corresponding of the dependency.
**Returns**

- (::String) --- Optional. Human readable description corresponding of the dependency.

### #discovery_mode

    def discovery_mode() -> ::Google::Cloud::ApiHub::V1::Dependency::DiscoveryMode

**Returns**

- ([::Google::Cloud::ApiHub::V1::Dependency::DiscoveryMode](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-api_hub-v1/latest/Google-Cloud-ApiHub-V1-Dependency-DiscoveryMode)) --- Output only. Discovery mode of the dependency.

### #error_detail

    def error_detail() -> ::Google::Cloud::ApiHub::V1::DependencyErrorDetail

**Returns**

- ([::Google::Cloud::ApiHub::V1::DependencyErrorDetail](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-api_hub-v1/latest/Google-Cloud-ApiHub-V1-DependencyErrorDetail)) --- Output only. Error details of a dependency if the system has detected it internally.

### #name

    def name() -> ::String

**Returns**

- (::String) --- Identifier. The name of the dependency in the API Hub.

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

### #name=

    def name=(value) -> ::String

**Parameter**

- **value** (::String) --- Identifier. The name of the dependency in the API Hub.


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

- (::String) --- Identifier. The name of the dependency in the API Hub.

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

### #state

    def state() -> ::Google::Cloud::ApiHub::V1::Dependency::State

**Returns**

- ([::Google::Cloud::ApiHub::V1::Dependency::State](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-api_hub-v1/latest/Google-Cloud-ApiHub-V1-Dependency-State)) --- Output only. State of the dependency.

### #supplier

    def supplier() -> ::Google::Cloud::ApiHub::V1::DependencyEntityReference

**Returns**

- ([::Google::Cloud::ApiHub::V1::DependencyEntityReference](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-api_hub-v1/latest/Google-Cloud-ApiHub-V1-DependencyEntityReference)) --- Required. Immutable. The entity acting as the supplier in the dependency.

### #supplier=

    def supplier=(value) -> ::Google::Cloud::ApiHub::V1::DependencyEntityReference

**Parameter**

- **value** ([::Google::Cloud::ApiHub::V1::DependencyEntityReference](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-api_hub-v1/latest/Google-Cloud-ApiHub-V1-DependencyEntityReference)) --- Required. Immutable. The entity acting as the supplier in the dependency.
**Returns**

- ([::Google::Cloud::ApiHub::V1::DependencyEntityReference](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-api_hub-v1/latest/Google-Cloud-ApiHub-V1-DependencyEntityReference)) --- Required. Immutable. The entity acting as the supplier in the dependency.

### #update_time

    def update_time() -> ::Google::Protobuf::Timestamp

**Returns**

- ([::Google::Protobuf::Timestamp](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-api_hub-v1/latest/Google-Protobuf-Timestamp)) --- Output only. The time at which the dependency was last updated.