# Cloud IoT V1 API - Class Google::Cloud::Iot::V1::GatewayConfig (v0.9.2)

<button class="button button-with-icon cloud-select-dropdown__button " aria-haspopup="true">Version latest</button>

- [0.9.2 (latest)](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-iot-v1/latest/Google-Cloud-Iot-V1-GatewayConfig)
- [0.9.1](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-iot-v1/0.9.1/Google-Cloud-Iot-V1-GatewayConfig)
- [0.8.0](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-iot-v1/0.8.0/Google-Cloud-Iot-V1-GatewayConfig)
- [0.7.1](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-iot-v1/0.7.1/Google-Cloud-Iot-V1-GatewayConfig)
- [0.6.0](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-iot-v1/0.6.0/Google-Cloud-Iot-V1-GatewayConfig)
- [0.5.0](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-iot-v1/0.5.0/Google-Cloud-Iot-V1-GatewayConfig)
- [0.4.0](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-iot-v1/0.4.0/Google-Cloud-Iot-V1-GatewayConfig)
- [0.3.5](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-iot-v1/0.3.5/Google-Cloud-Iot-V1-GatewayConfig)
Reference documentation and code samples for the Cloud IoT V1 API class Google::Cloud::Iot::V1::GatewayConfig.

Gateway-related configuration and state.

## Inherits

- Object

## Extended By

- Google::Protobuf::MessageExts::ClassMethods

## Includes

- Google::Protobuf::MessageExts

## Methods

### #gateway_auth_method

    def gateway_auth_method() -> ::Google::Cloud::Iot::V1::GatewayAuthMethod

**Returns**

- ([::Google::Cloud::Iot::V1::GatewayAuthMethod](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-iot-v1/latest/Google-Cloud-Iot-V1-GatewayAuthMethod)) --- Indicates how to authorize and/or authenticate devices to access the gateway.

### #gateway_auth_method=

    def gateway_auth_method=(value) -> ::Google::Cloud::Iot::V1::GatewayAuthMethod

**Parameter**

- **value** ([::Google::Cloud::Iot::V1::GatewayAuthMethod](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-iot-v1/latest/Google-Cloud-Iot-V1-GatewayAuthMethod)) --- Indicates how to authorize and/or authenticate devices to access the gateway.
**Returns**

- ([::Google::Cloud::Iot::V1::GatewayAuthMethod](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-iot-v1/latest/Google-Cloud-Iot-V1-GatewayAuthMethod)) --- Indicates how to authorize and/or authenticate devices to access the gateway.

### #gateway_type

    def gateway_type() -> ::Google::Cloud::Iot::V1::GatewayType

**Returns**

- ([::Google::Cloud::Iot::V1::GatewayType](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-iot-v1/latest/Google-Cloud-Iot-V1-GatewayType)) --- Indicates whether the device is a gateway.

### #gateway_type=

    def gateway_type=(value) -> ::Google::Cloud::Iot::V1::GatewayType

**Parameter**

- **value** ([::Google::Cloud::Iot::V1::GatewayType](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-iot-v1/latest/Google-Cloud-Iot-V1-GatewayType)) --- Indicates whether the device is a gateway.
**Returns**

- ([::Google::Cloud::Iot::V1::GatewayType](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-iot-v1/latest/Google-Cloud-Iot-V1-GatewayType)) --- Indicates whether the device is a gateway.

### #last_accessed_gateway_id

    def last_accessed_gateway_id() -> ::String

**Returns**

- (::String) --- \[Output only\] The ID of the gateway the device accessed most recently.

### #last_accessed_gateway_id=

    def last_accessed_gateway_id=(value) -> ::String

**Parameter**

- **value** (::String) --- \[Output only\] The ID of the gateway the device accessed most recently.
**Returns**

- (::String) --- \[Output only\] The ID of the gateway the device accessed most recently.

### #last_accessed_gateway_time

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

**Returns**

- ([::Google::Protobuf::Timestamp](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-iot-v1/latest/Google-Protobuf-Timestamp)) --- \[Output only\] The most recent time at which the device accessed the gateway specified in `last_accessed_gateway`.

### #last_accessed_gateway_time=

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

**Parameter**

- **value** ([::Google::Protobuf::Timestamp](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-iot-v1/latest/Google-Protobuf-Timestamp)) --- \[Output only\] The most recent time at which the device accessed the gateway specified in `last_accessed_gateway`.
**Returns**

- ([::Google::Protobuf::Timestamp](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-iot-v1/latest/Google-Protobuf-Timestamp)) --- \[Output only\] The most recent time at which the device accessed the gateway specified in `last_accessed_gateway`.