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

The CollectApiData method's request.

## Inherits

- Object

## Extended By

- Google::Protobuf::MessageExts::ClassMethods

## Includes

- Google::Protobuf::MessageExts

## Methods

### #action_id

    def action_id() -> ::String

**Returns**

- (::String) --- Required. The action ID to be used for collecting the API data. This should map to one of the action IDs specified in action configs in the plugin.

### #action_id=

    def action_id=(value) -> ::String

**Parameter**

- **value** (::String) --- Required. The action ID to be used for collecting the API data. This should map to one of the action IDs specified in action configs in the plugin.
**Returns**

- (::String) --- Required. The action ID to be used for collecting the API data. This should map to one of the action IDs specified in action configs in the plugin.

### #api_data

    def api_data() -> ::Google::Cloud::ApiHub::V1::ApiData

**Returns**

- ([::Google::Cloud::ApiHub::V1::ApiData](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-api_hub-v1/latest/Google-Cloud-ApiHub-V1-ApiData)) --- Required. The API data to be collected.

### #api_data=

    def api_data=(value) -> ::Google::Cloud::ApiHub::V1::ApiData

**Parameter**

- **value** ([::Google::Cloud::ApiHub::V1::ApiData](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-api_hub-v1/latest/Google-Cloud-ApiHub-V1-ApiData)) --- Required. The API data to be collected.
**Returns**

- ([::Google::Cloud::ApiHub::V1::ApiData](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-api_hub-v1/latest/Google-Cloud-ApiHub-V1-ApiData)) --- Required. The API data to be collected.

### #collection_type

    def collection_type() -> ::Google::Cloud::ApiHub::V1::CollectionType

**Returns**

- ([::Google::Cloud::ApiHub::V1::CollectionType](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-api_hub-v1/latest/Google-Cloud-ApiHub-V1-CollectionType)) --- Required. The type of collection. Applies to all entries in [api_data](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-api_hub-v1/latest/Google-Cloud-ApiHub-V1-CollectApiDataRequest#Google__Cloud__ApiHub__V1__CollectApiDataRequest_api_data_instance_ "Google::Cloud::ApiHub::V1::CollectApiDataRequest#api_data (method)").

### #collection_type=

    def collection_type=(value) -> ::Google::Cloud::ApiHub::V1::CollectionType

**Parameter**

- **value** ([::Google::Cloud::ApiHub::V1::CollectionType](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-api_hub-v1/latest/Google-Cloud-ApiHub-V1-CollectionType)) --- Required. The type of collection. Applies to all entries in [api_data](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-api_hub-v1/latest/Google-Cloud-ApiHub-V1-CollectApiDataRequest#Google__Cloud__ApiHub__V1__CollectApiDataRequest_api_data_instance_ "Google::Cloud::ApiHub::V1::CollectApiDataRequest#api_data (method)").
**Returns**

- ([::Google::Cloud::ApiHub::V1::CollectionType](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-api_hub-v1/latest/Google-Cloud-ApiHub-V1-CollectionType)) --- Required. The type of collection. Applies to all entries in [api_data](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-api_hub-v1/latest/Google-Cloud-ApiHub-V1-CollectApiDataRequest#Google__Cloud__ApiHub__V1__CollectApiDataRequest_api_data_instance_ "Google::Cloud::ApiHub::V1::CollectApiDataRequest#api_data (method)").

### #location

    def location() -> ::String

**Returns**

- (::String) --- Required. The regional location of the API hub instance and its resources. Format: `projects/{project}/locations/{location}`

### #location=

    def location=(value) -> ::String

**Parameter**

- **value** (::String) --- Required. The regional location of the API hub instance and its resources. Format: `projects/{project}/locations/{location}`
**Returns**

- (::String) --- Required. The regional location of the API hub instance and its resources. Format: `projects/{project}/locations/{location}`

### #plugin_instance

    def plugin_instance() -> ::String

**Returns**

- (::String) --- Required. The plugin instance collecting the API data. Format: `projects/{project}/locations/{location}/plugins/{plugin}/instances/{instance}`.

### #plugin_instance=

    def plugin_instance=(value) -> ::String

**Parameter**

- **value** (::String) --- Required. The plugin instance collecting the API data. Format: `projects/{project}/locations/{location}/plugins/{plugin}/instances/{instance}`.
**Returns**

- (::String) --- Required. The plugin instance collecting the API data. Format: `projects/{project}/locations/{location}/plugins/{plugin}/instances/{instance}`.