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::Api.

An API resource in the API Hub.

## Inherits

- Object

## Extended By

- Google::Protobuf::MessageExts::ClassMethods

## Includes

- Google::Protobuf::MessageExts

## Methods

### #api_functional_requirements

    def api_functional_requirements() -> ::Google::Cloud::ApiHub::V1::AttributeValues

**Returns**

- ([::Google::Cloud::ApiHub::V1::AttributeValues](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-api_hub-v1/latest/Google-Cloud-ApiHub-V1-AttributeValues)) --- Optional. The api functional requirements associated with the API resource. Carinality is 1 for this attribute. This maps to the following system defined attribute: `projects/{project}/locations/{location}/attributes/system-api-functional-requirements` attribute. The value of the attribute should be a proper URI, and in case of Cloud Storage URI, it should point to a Cloud Storage object, not a directory.

### #api_functional_requirements=

    def api_functional_requirements=(value) -> ::Google::Cloud::ApiHub::V1::AttributeValues

**Parameter**

- **value** ([::Google::Cloud::ApiHub::V1::AttributeValues](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-api_hub-v1/latest/Google-Cloud-ApiHub-V1-AttributeValues)) --- Optional. The api functional requirements associated with the API resource. Carinality is 1 for this attribute. This maps to the following system defined attribute: `projects/{project}/locations/{location}/attributes/system-api-functional-requirements` attribute. The value of the attribute should be a proper URI, and in case of Cloud Storage URI, it should point to a Cloud Storage object, not a directory.
**Returns**

- ([::Google::Cloud::ApiHub::V1::AttributeValues](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-api_hub-v1/latest/Google-Cloud-ApiHub-V1-AttributeValues)) --- Optional. The api functional requirements associated with the API resource. Carinality is 1 for this attribute. This maps to the following system defined attribute: `projects/{project}/locations/{location}/attributes/system-api-functional-requirements` attribute. The value of the attribute should be a proper URI, and in case of Cloud Storage URI, it should point to a Cloud Storage object, not a directory.

### #api_requirements

    def api_requirements() -> ::Google::Cloud::ApiHub::V1::AttributeValues

**Returns**

- ([::Google::Cloud::ApiHub::V1::AttributeValues](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-api_hub-v1/latest/Google-Cloud-ApiHub-V1-AttributeValues)) --- Optional. The api requirement doc associated with the API resource. Carinality is 1 for this attribute. This maps to the following system defined attribute: `projects/{project}/locations/{location}/attributes/system-api-requirements` attribute. The value of the attribute should be a proper URI, and in case of Cloud Storage URI, it should point to a Cloud Storage object, not a directory.

### #api_requirements=

    def api_requirements=(value) -> ::Google::Cloud::ApiHub::V1::AttributeValues

**Parameter**

- **value** ([::Google::Cloud::ApiHub::V1::AttributeValues](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-api_hub-v1/latest/Google-Cloud-ApiHub-V1-AttributeValues)) --- Optional. The api requirement doc associated with the API resource. Carinality is 1 for this attribute. This maps to the following system defined attribute: `projects/{project}/locations/{location}/attributes/system-api-requirements` attribute. The value of the attribute should be a proper URI, and in case of Cloud Storage URI, it should point to a Cloud Storage object, not a directory.
**Returns**

- ([::Google::Cloud::ApiHub::V1::AttributeValues](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-api_hub-v1/latest/Google-Cloud-ApiHub-V1-AttributeValues)) --- Optional. The api requirement doc associated with the API resource. Carinality is 1 for this attribute. This maps to the following system defined attribute: `projects/{project}/locations/{location}/attributes/system-api-requirements` attribute. The value of the attribute should be a proper URI, and in case of Cloud Storage URI, it should point to a Cloud Storage object, not a directory.

### #api_style

    def api_style() -> ::Google::Cloud::ApiHub::V1::AttributeValues

**Returns**

- ([::Google::Cloud::ApiHub::V1::AttributeValues](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-api_hub-v1/latest/Google-Cloud-ApiHub-V1-AttributeValues)) --- Optional. The style of the API. This maps to the following system defined attribute: `projects/{project}/locations/{location}/attributes/system-api-style` attribute. The number of values for this attribute will be based on the cardinality of the attribute. The same can be retrieved via GetAttribute API. All values should be from the list of allowed values defined for the attribute.

### #api_style=

    def api_style=(value) -> ::Google::Cloud::ApiHub::V1::AttributeValues

**Parameter**

- **value** ([::Google::Cloud::ApiHub::V1::AttributeValues](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-api_hub-v1/latest/Google-Cloud-ApiHub-V1-AttributeValues)) --- Optional. The style of the API. This maps to the following system defined attribute: `projects/{project}/locations/{location}/attributes/system-api-style` attribute. The number of values for this attribute will be based on the cardinality of the attribute. The same can be retrieved via GetAttribute API. All values should be from the list of allowed values defined for the attribute.
**Returns**

- ([::Google::Cloud::ApiHub::V1::AttributeValues](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-api_hub-v1/latest/Google-Cloud-ApiHub-V1-AttributeValues)) --- Optional. The style of the API. This maps to the following system defined attribute: `projects/{project}/locations/{location}/attributes/system-api-style` attribute. The number of values for this attribute will be based on the cardinality of the attribute. The same can be retrieved via GetAttribute API. All values should be from the list of allowed values defined for the attribute.

### #api_technical_requirements

    def api_technical_requirements() -> ::Google::Cloud::ApiHub::V1::AttributeValues

**Returns**

- ([::Google::Cloud::ApiHub::V1::AttributeValues](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-api_hub-v1/latest/Google-Cloud-ApiHub-V1-AttributeValues)) --- Optional. The api technical requirements associated with the API resource. Carinality is 1 for this attribute. This maps to the following system defined attribute: `projects/{project}/locations/{location}/attributes/system-api-technical-requirements` attribute. The value of the attribute should be a proper URI, and in case of Cloud Storage URI, it should point to a Cloud Storage object, not a directory.

### #api_technical_requirements=

    def api_technical_requirements=(value) -> ::Google::Cloud::ApiHub::V1::AttributeValues

**Parameter**

- **value** ([::Google::Cloud::ApiHub::V1::AttributeValues](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-api_hub-v1/latest/Google-Cloud-ApiHub-V1-AttributeValues)) --- Optional. The api technical requirements associated with the API resource. Carinality is 1 for this attribute. This maps to the following system defined attribute: `projects/{project}/locations/{location}/attributes/system-api-technical-requirements` attribute. The value of the attribute should be a proper URI, and in case of Cloud Storage URI, it should point to a Cloud Storage object, not a directory.
**Returns**

- ([::Google::Cloud::ApiHub::V1::AttributeValues](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-api_hub-v1/latest/Google-Cloud-ApiHub-V1-AttributeValues)) --- Optional. The api technical requirements associated with the API resource. Carinality is 1 for this attribute. This maps to the following system defined attribute: `projects/{project}/locations/{location}/attributes/system-api-technical-requirements` attribute. The value of the attribute should be a proper URI, and in case of Cloud Storage URI, it should point to a Cloud Storage object, not a directory.

### #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 API 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 API 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 API 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.

### #business_unit

    def business_unit() -> ::Google::Cloud::ApiHub::V1::AttributeValues

**Returns**

- ([::Google::Cloud::ApiHub::V1::AttributeValues](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-api_hub-v1/latest/Google-Cloud-ApiHub-V1-AttributeValues)) --- Optional. The business unit owning the API. This maps to the following system defined attribute: `projects/{project}/locations/{location}/attributes/system-business-unit` attribute. The number of values for this attribute will be based on the cardinality of the attribute. The same can be retrieved via GetAttribute API. All values should be from the list of allowed values defined for the attribute.

### #business_unit=

    def business_unit=(value) -> ::Google::Cloud::ApiHub::V1::AttributeValues

**Parameter**

- **value** ([::Google::Cloud::ApiHub::V1::AttributeValues](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-api_hub-v1/latest/Google-Cloud-ApiHub-V1-AttributeValues)) --- Optional. The business unit owning the API. This maps to the following system defined attribute: `projects/{project}/locations/{location}/attributes/system-business-unit` attribute. The number of values for this attribute will be based on the cardinality of the attribute. The same can be retrieved via GetAttribute API. All values should be from the list of allowed values defined for the attribute.
**Returns**

- ([::Google::Cloud::ApiHub::V1::AttributeValues](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-api_hub-v1/latest/Google-Cloud-ApiHub-V1-AttributeValues)) --- Optional. The business unit owning the API. This maps to the following system defined attribute: `projects/{project}/locations/{location}/attributes/system-business-unit` attribute. The number of values for this attribute will be based on the cardinality of the attribute. The same can be retrieved via GetAttribute API. All values should be from the list of allowed values defined for the attribute.

### #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 API resource was created.

### #description

    def description() -> ::String

**Returns**

- (::String) --- Optional. The description of the API resource.

### #description=

    def description=(value) -> ::String

**Parameter**

- **value** (::String) --- Optional. The description of the API resource.
**Returns**

- (::String) --- Optional. The description of the API resource.

### #display_name

    def display_name() -> ::String

**Returns**

- (::String) --- Required. The display name of the API resource.

### #display_name=

    def display_name=(value) -> ::String

**Parameter**

- **value** (::String) --- Required. The display name of the API resource.
**Returns**

- (::String) --- Required. The display name of the API resource.

### #documentation

    def documentation() -> ::Google::Cloud::ApiHub::V1::Documentation

**Returns**

- ([::Google::Cloud::ApiHub::V1::Documentation](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-api_hub-v1/latest/Google-Cloud-ApiHub-V1-Documentation)) --- Optional. The documentation for the API resource.

### #documentation=

    def documentation=(value) -> ::Google::Cloud::ApiHub::V1::Documentation

**Parameter**

- **value** ([::Google::Cloud::ApiHub::V1::Documentation](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-api_hub-v1/latest/Google-Cloud-ApiHub-V1-Documentation)) --- Optional. The documentation for the API resource.
**Returns**

- ([::Google::Cloud::ApiHub::V1::Documentation](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-api_hub-v1/latest/Google-Cloud-ApiHub-V1-Documentation)) --- Optional. The documentation for the API resource.

### #fingerprint

    def fingerprint() -> ::String

**Returns**

- (::String) --- Optional. Fingerprint of the API resource.

### #fingerprint=

    def fingerprint=(value) -> ::String

**Parameter**

- **value** (::String) --- Optional. Fingerprint of the API resource.
**Returns**

- (::String) --- Optional. Fingerprint of the API resource.

### #maturity_level

    def maturity_level() -> ::Google::Cloud::ApiHub::V1::AttributeValues

**Returns**

- ([::Google::Cloud::ApiHub::V1::AttributeValues](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-api_hub-v1/latest/Google-Cloud-ApiHub-V1-AttributeValues)) --- Optional. The maturity level of the API. This maps to the following system defined attribute: `projects/{project}/locations/{location}/attributes/system-maturity-level` attribute. The number of values for this attribute will be based on the cardinality of the attribute. The same can be retrieved via GetAttribute API. All values should be from the list of allowed values defined for the attribute.

### #maturity_level=

    def maturity_level=(value) -> ::Google::Cloud::ApiHub::V1::AttributeValues

**Parameter**

- **value** ([::Google::Cloud::ApiHub::V1::AttributeValues](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-api_hub-v1/latest/Google-Cloud-ApiHub-V1-AttributeValues)) --- Optional. The maturity level of the API. This maps to the following system defined attribute: `projects/{project}/locations/{location}/attributes/system-maturity-level` attribute. The number of values for this attribute will be based on the cardinality of the attribute. The same can be retrieved via GetAttribute API. All values should be from the list of allowed values defined for the attribute.
**Returns**

- ([::Google::Cloud::ApiHub::V1::AttributeValues](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-api_hub-v1/latest/Google-Cloud-ApiHub-V1-AttributeValues)) --- Optional. The maturity level of the API. This maps to the following system defined attribute: `projects/{project}/locations/{location}/attributes/system-maturity-level` attribute. The number of values for this attribute will be based on the cardinality of the attribute. The same can be retrieved via GetAttribute API. All values should be from the list of allowed values defined for the attribute.

### #name

    def name() -> ::String

**Returns**

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

  Format:
  `projects/{project}/locations/{location}/apis/{api}`

### #name=

    def name=(value) -> ::String

**Parameter**

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


  Format:
  `projects/{project}/locations/{location}/apis/{api}`
**Returns**

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

  Format:
  `projects/{project}/locations/{location}/apis/{api}`

### #owner

    def owner() -> ::Google::Cloud::ApiHub::V1::Owner

**Returns**

- ([::Google::Cloud::ApiHub::V1::Owner](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-api_hub-v1/latest/Google-Cloud-ApiHub-V1-Owner)) --- Optional. Owner details for the API resource.

### #owner=

    def owner=(value) -> ::Google::Cloud::ApiHub::V1::Owner

**Parameter**

- **value** ([::Google::Cloud::ApiHub::V1::Owner](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-api_hub-v1/latest/Google-Cloud-ApiHub-V1-Owner)) --- Optional. Owner details for the API resource.
**Returns**

- ([::Google::Cloud::ApiHub::V1::Owner](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-api_hub-v1/latest/Google-Cloud-ApiHub-V1-Owner)) --- Optional. Owner details for the API resource.

### #selected_version

    def selected_version() -> ::String

**Returns**

- (::String) --- Optional. The selected version for an API resource. This can be used when special handling is needed on client side for particular version of the API. Format is `projects/{project}/locations/{location}/apis/{api}/versions/{version}`

### #selected_version=

    def selected_version=(value) -> ::String

**Parameter**

- **value** (::String) --- Optional. The selected version for an API resource. This can be used when special handling is needed on client side for particular version of the API. Format is `projects/{project}/locations/{location}/apis/{api}/versions/{version}`
**Returns**

- (::String) --- Optional. The selected version for an API resource. This can be used when special handling is needed on client side for particular version of the API. Format is `projects/{project}/locations/{location}/apis/{api}/versions/{version}`

### #source_metadata

    def source_metadata() -> ::Array<::Google::Cloud::ApiHub::V1::SourceMetadata>

**Returns**

- (::Array\<[::Google::Cloud::ApiHub::V1::SourceMetadata](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-api_hub-v1/latest/Google-Cloud-ApiHub-V1-SourceMetadata)\>) --- Output only. The list of sources and metadata from the sources of the API resource.

### #target_user

    def target_user() -> ::Google::Cloud::ApiHub::V1::AttributeValues

**Returns**

- ([::Google::Cloud::ApiHub::V1::AttributeValues](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-api_hub-v1/latest/Google-Cloud-ApiHub-V1-AttributeValues)) --- Optional. The target users for the API. This maps to the following system defined attribute: `projects/{project}/locations/{location}/attributes/system-target-user` attribute. The number of values for this attribute will be based on the cardinality of the attribute. The same can be retrieved via GetAttribute API. All values should be from the list of allowed values defined for the attribute.

### #target_user=

    def target_user=(value) -> ::Google::Cloud::ApiHub::V1::AttributeValues

**Parameter**

- **value** ([::Google::Cloud::ApiHub::V1::AttributeValues](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-api_hub-v1/latest/Google-Cloud-ApiHub-V1-AttributeValues)) --- Optional. The target users for the API. This maps to the following system defined attribute: `projects/{project}/locations/{location}/attributes/system-target-user` attribute. The number of values for this attribute will be based on the cardinality of the attribute. The same can be retrieved via GetAttribute API. All values should be from the list of allowed values defined for the attribute.
**Returns**

- ([::Google::Cloud::ApiHub::V1::AttributeValues](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-api_hub-v1/latest/Google-Cloud-ApiHub-V1-AttributeValues)) --- Optional. The target users for the API. This maps to the following system defined attribute: `projects/{project}/locations/{location}/attributes/system-target-user` attribute. The number of values for this attribute will be based on the cardinality of the attribute. The same can be retrieved via GetAttribute API. All values should be from the list of allowed values defined for the attribute.

### #team

    def team() -> ::Google::Cloud::ApiHub::V1::AttributeValues

**Returns**

- ([::Google::Cloud::ApiHub::V1::AttributeValues](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-api_hub-v1/latest/Google-Cloud-ApiHub-V1-AttributeValues)) --- Optional. The team owning the API. This maps to the following system defined attribute: `projects/{project}/locations/{location}/attributes/system-team` attribute. The number of values for this attribute will be based on the cardinality of the attribute. The same can be retrieved via GetAttribute API. All values should be from the list of allowed values defined for the attribute.

### #team=

    def team=(value) -> ::Google::Cloud::ApiHub::V1::AttributeValues

**Parameter**

- **value** ([::Google::Cloud::ApiHub::V1::AttributeValues](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-api_hub-v1/latest/Google-Cloud-ApiHub-V1-AttributeValues)) --- Optional. The team owning the API. This maps to the following system defined attribute: `projects/{project}/locations/{location}/attributes/system-team` attribute. The number of values for this attribute will be based on the cardinality of the attribute. The same can be retrieved via GetAttribute API. All values should be from the list of allowed values defined for the attribute.
**Returns**

- ([::Google::Cloud::ApiHub::V1::AttributeValues](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-api_hub-v1/latest/Google-Cloud-ApiHub-V1-AttributeValues)) --- Optional. The team owning the API. This maps to the following system defined attribute: `projects/{project}/locations/{location}/attributes/system-team` attribute. The number of values for this attribute will be based on the cardinality of the attribute. The same can be retrieved via GetAttribute API. All values should be from the list of allowed values defined for the attribute.

### #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 API resource was last updated.

### #versions

    def versions() -> ::Array<::String>

**Returns**

- (::Array\<::String\>) --- Output only. The list of versions present in an API resource. Note: An API resource can be associated with more than 1 version. Format is `projects/{project}/locations/{location}/apis/{api}/versions/{version}`