1.1.0 (latest) 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::APIMetadata.

The API metadata.

## Inherits

- Object

## Extended By

- Google::Protobuf::MessageExts::ClassMethods

## Includes

- Google::Protobuf::MessageExts

## Methods

### #api

    def api() -> ::Google::Cloud::ApiHub::V1::Api

**Returns**

- ([::Google::Cloud::ApiHub::V1::Api](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-api_hub-v1/latest/Google-Cloud-ApiHub-V1-Api)) --- Required. The API resource to be pushed to Hub's collect layer. The ID of the API resource will be generated by Hub to ensure uniqueness across all APIs across systems.

### #api=

    def api=(value) -> ::Google::Cloud::ApiHub::V1::Api

**Parameter**

- **value** ([::Google::Cloud::ApiHub::V1::Api](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-api_hub-v1/latest/Google-Cloud-ApiHub-V1-Api)) --- Required. The API resource to be pushed to Hub's collect layer. The ID of the API resource will be generated by Hub to ensure uniqueness across all APIs across systems.
**Returns**

- ([::Google::Cloud::ApiHub::V1::Api](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-api_hub-v1/latest/Google-Cloud-ApiHub-V1-Api)) --- Required. The API resource to be pushed to Hub's collect layer. The ID of the API resource will be generated by Hub to ensure uniqueness across all APIs across systems.

### #original_create_time

    def original_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)) --- Optional. Timestamp indicating when the API was created at the source.

### #original_create_time=

    def original_create_time=(value) -> ::Google::Protobuf::Timestamp

**Parameter**

- **value** ([::Google::Protobuf::Timestamp](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-api_hub-v1/latest/Google-Protobuf-Timestamp)) --- Optional. Timestamp indicating when the API was created at the source.
**Returns**

- ([::Google::Protobuf::Timestamp](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-api_hub-v1/latest/Google-Protobuf-Timestamp)) --- Optional. Timestamp indicating when the API was created at the source.

### #original_id

    def original_id() -> ::String

**Returns**

- (::String) --- Optional. The unique identifier of the API in the system where it was originally created.

### #original_id=

    def original_id=(value) -> ::String

**Parameter**

- **value** (::String) --- Optional. The unique identifier of the API in the system where it was originally created.
**Returns**

- (::String) --- Optional. The unique identifier of the API in the system where it was originally created.

### #original_update_time

    def original_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)) --- Required. Timestamp indicating when the API was last updated at the source.

### #original_update_time=

    def original_update_time=(value) -> ::Google::Protobuf::Timestamp

**Parameter**

- **value** ([::Google::Protobuf::Timestamp](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-api_hub-v1/latest/Google-Protobuf-Timestamp)) --- Required. Timestamp indicating when the API was last updated at the source.
**Returns**

- ([::Google::Protobuf::Timestamp](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-api_hub-v1/latest/Google-Protobuf-Timestamp)) --- Required. Timestamp indicating when the API was last updated at the source.

### #versions

    def versions() -> ::Array<::Google::Cloud::ApiHub::V1::VersionMetadata>

**Returns**

- (::Array\<[::Google::Cloud::ApiHub::V1::VersionMetadata](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-api_hub-v1/latest/Google-Cloud-ApiHub-V1-VersionMetadata)\>) --- Optional. The list of versions present in an API resource.

### #versions=

    def versions=(value) -> ::Array<::Google::Cloud::ApiHub::V1::VersionMetadata>

**Parameter**

- **value** (::Array\<[::Google::Cloud::ApiHub::V1::VersionMetadata](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-api_hub-v1/latest/Google-Cloud-ApiHub-V1-VersionMetadata)\>) --- Optional. The list of versions present in an API resource.
**Returns**

- (::Array\<[::Google::Cloud::ApiHub::V1::VersionMetadata](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-api_hub-v1/latest/Google-Cloud-ApiHub-V1-VersionMetadata)\>) --- Optional. The list of versions present in an API resource.