# Class GatewayConfig (2.9.2)

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

- [2.9.2 (latest)](https://docs.cloud.google.com/python/docs/reference/cloudiot/latest/google.cloud.iot_v1.types.GatewayConfig)
- [2.9.1](https://docs.cloud.google.com/python/docs/reference/cloudiot/2.9.1/google.cloud.iot_v1.types.GatewayConfig)
- [2.8.1](https://docs.cloud.google.com/python/docs/reference/cloudiot/2.8.1/google.cloud.iot_v1.types.GatewayConfig)
- [2.7.0](https://docs.cloud.google.com/python/docs/reference/cloudiot/2.7.0/google.cloud.iot_v1.types.GatewayConfig)
- [2.6.4](https://docs.cloud.google.com/python/docs/reference/cloudiot/2.6.4/google.cloud.iot_v1.types.GatewayConfig)
- [2.5.1](https://docs.cloud.google.com/python/docs/reference/cloudiot/2.5.1/google.cloud.iot_v1.types.GatewayConfig)
- [2.4.1](https://docs.cloud.google.com/python/docs/reference/cloudiot/2.4.1/google.cloud.iot_v1.types.GatewayConfig)
- [2.3.0](https://docs.cloud.google.com/python/docs/reference/cloudiot/2.3.0/google.cloud.iot_v1.types.GatewayConfig)
- [2.2.1](https://docs.cloud.google.com/python/docs/reference/cloudiot/2.2.1/google.cloud.iot_v1.types.GatewayConfig)
- [2.1.0](https://docs.cloud.google.com/python/docs/reference/cloudiot/2.1.0/google.cloud.iot_v1.types.GatewayConfig)
- [2.0.2](https://docs.cloud.google.com/python/docs/reference/cloudiot/2.0.2/google.cloud.iot_v1.types.GatewayConfig)
- [1.0.2](https://docs.cloud.google.com/python/docs/reference/cloudiot/1.0.2/google.cloud.iot_v1.types.GatewayConfig)
- [0.3.3](https://docs.cloud.google.com/python/docs/reference/cloudiot/0.3.3/google.cloud.iot_v1.types.GatewayConfig)

    GatewayConfig(mapping=None, *, ignore_unknown_fields=False, **kwargs)

Gateway-related configuration and state.

| ## Attributes ||
|---|---|
| **Name** | **Description** |
| `gateway_type` | `https://docs.cloud.google.com/python/docs/reference/cloudiot/latest/google.cloud.iot_v1.types.GatewayType` Indicates whether the device is a gateway. |
| `gateway_auth_method` | `https://docs.cloud.google.com/python/docs/reference/cloudiot/latest/google.cloud.iot_v1.types.GatewayAuthMethod` Indicates how to authorize and/or authenticate devices to access the gateway. |
| `last_accessed_gateway_id` | `str` \[Output only\] The ID of the gateway the device accessed most recently. |
| `last_accessed_gateway_time` | `google.protobuf.timestamp_pb2.Timestamp` \[Output only\] The most recent time at which the device accessed the gateway specified in `last_accessed_gateway`. |