# Package types (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)
- [2.9.1](https://docs.cloud.google.com/python/docs/reference/cloudiot/2.9.1/google.cloud.iot_v1.types)
- [2.8.1](https://docs.cloud.google.com/python/docs/reference/cloudiot/2.8.1/google.cloud.iot_v1.types)
- [2.7.0](https://docs.cloud.google.com/python/docs/reference/cloudiot/2.7.0/google.cloud.iot_v1.types)
- [2.6.4](https://docs.cloud.google.com/python/docs/reference/cloudiot/2.6.4/google.cloud.iot_v1.types)
- [2.5.1](https://docs.cloud.google.com/python/docs/reference/cloudiot/2.5.1/google.cloud.iot_v1.types)
- [2.4.1](https://docs.cloud.google.com/python/docs/reference/cloudiot/2.4.1/google.cloud.iot_v1.types)
- [2.3.0](https://docs.cloud.google.com/python/docs/reference/cloudiot/2.3.0/google.cloud.iot_v1.types)
- [2.2.1](https://docs.cloud.google.com/python/docs/reference/cloudiot/2.2.1/google.cloud.iot_v1.types)
- [2.1.0](https://docs.cloud.google.com/python/docs/reference/cloudiot/2.1.0/google.cloud.iot_v1.types)
- [2.0.2](https://docs.cloud.google.com/python/docs/reference/cloudiot/2.0.2/google.cloud.iot_v1.types)
- [1.0.2](https://docs.cloud.google.com/python/docs/reference/cloudiot/1.0.2/google.cloud.iot_v1.types)
- [0.3.3](https://docs.cloud.google.com/python/docs/reference/cloudiot/0.3.3/google.cloud.iot_v1.types)
API documentation for `iot_v1.types` package.

## Classes

### [BindDeviceToGatewayRequest](https://docs.cloud.google.com/python/docs/reference/cloudiot/latest/google.cloud.iot_v1.types.BindDeviceToGatewayRequest)

Request for `BindDeviceToGateway`.

### [BindDeviceToGatewayResponse](https://docs.cloud.google.com/python/docs/reference/cloudiot/latest/google.cloud.iot_v1.types.BindDeviceToGatewayResponse)

Response for `BindDeviceToGateway`.

### [CreateDeviceRegistryRequest](https://docs.cloud.google.com/python/docs/reference/cloudiot/latest/google.cloud.iot_v1.types.CreateDeviceRegistryRequest)

Request for `CreateDeviceRegistry`.

### [CreateDeviceRequest](https://docs.cloud.google.com/python/docs/reference/cloudiot/latest/google.cloud.iot_v1.types.CreateDeviceRequest)

Request for `CreateDevice`.

### [DeleteDeviceRegistryRequest](https://docs.cloud.google.com/python/docs/reference/cloudiot/latest/google.cloud.iot_v1.types.DeleteDeviceRegistryRequest)

Request for `DeleteDeviceRegistry`.

### [DeleteDeviceRequest](https://docs.cloud.google.com/python/docs/reference/cloudiot/latest/google.cloud.iot_v1.types.DeleteDeviceRequest)

Request for `DeleteDevice`.

### [Device](https://docs.cloud.google.com/python/docs/reference/cloudiot/latest/google.cloud.iot_v1.types.Device)

The device resource.

### [DeviceConfig](https://docs.cloud.google.com/python/docs/reference/cloudiot/latest/google.cloud.iot_v1.types.DeviceConfig)

The device configuration. Eventually delivered to devices.

### [DeviceCredential](https://docs.cloud.google.com/python/docs/reference/cloudiot/latest/google.cloud.iot_v1.types.DeviceCredential)

A server-stored device credential used for authentication.

.. _oneof: <https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields>

### [DeviceRegistry](https://docs.cloud.google.com/python/docs/reference/cloudiot/latest/google.cloud.iot_v1.types.DeviceRegistry)

A container for a group of devices.

### [DeviceState](https://docs.cloud.google.com/python/docs/reference/cloudiot/latest/google.cloud.iot_v1.types.DeviceState)

The device state, as reported by the device.

### [EventNotificationConfig](https://docs.cloud.google.com/python/docs/reference/cloudiot/latest/google.cloud.iot_v1.types.EventNotificationConfig)

The configuration for forwarding telemetry events.

### [GatewayAuthMethod](https://docs.cloud.google.com/python/docs/reference/cloudiot/latest/google.cloud.iot_v1.types.GatewayAuthMethod)

The gateway authorization/authentication method. This setting
determines how Cloud IoT Core authorizes/authenticate devices to
access the gateway.

Values:
GATEWAY_AUTH_METHOD_UNSPECIFIED (0):
No authentication/authorization method
specified. No devices are allowed to access the
gateway.
ASSOCIATION_ONLY (1):
The device is authenticated through the
gateway association only. Device credentials are
ignored even if provided.
DEVICE_AUTH_TOKEN_ONLY (2):
The device is authenticated through its own
credentials. Gateway association is not checked.
ASSOCIATION_AND_DEVICE_AUTH_TOKEN (3):
The device is authenticated through both
device credentials and gateway association. The
device must be bound to the gateway and must
provide its own credentials.

### [GatewayConfig](https://docs.cloud.google.com/python/docs/reference/cloudiot/latest/google.cloud.iot_v1.types.GatewayConfig)

Gateway-related configuration and state.

### [GatewayListOptions](https://docs.cloud.google.com/python/docs/reference/cloudiot/latest/google.cloud.iot_v1.types.GatewayListOptions)

Options for limiting the list based on gateway type and
associations.

This message has `oneof`_ fields (mutually exclusive fields).
For each oneof, at most one member field can be set at the same time.
Setting any member of the oneof automatically clears all other
members.

.. _oneof: <https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields>

### [GatewayType](https://docs.cloud.google.com/python/docs/reference/cloudiot/latest/google.cloud.iot_v1.types.GatewayType)

Gateway type.

Values:
GATEWAY_TYPE_UNSPECIFIED (0):
If unspecified, the device is considered a
non-gateway device.
GATEWAY (1):
The device is a gateway.
NON_GATEWAY (2):
The device is not a gateway.

### [GetDeviceRegistryRequest](https://docs.cloud.google.com/python/docs/reference/cloudiot/latest/google.cloud.iot_v1.types.GetDeviceRegistryRequest)

Request for `GetDeviceRegistry`.

### [GetDeviceRequest](https://docs.cloud.google.com/python/docs/reference/cloudiot/latest/google.cloud.iot_v1.types.GetDeviceRequest)

Request for `GetDevice`.

### [HttpConfig](https://docs.cloud.google.com/python/docs/reference/cloudiot/latest/google.cloud.iot_v1.types.HttpConfig)

The configuration of the HTTP bridge for a device registry.

### [HttpState](https://docs.cloud.google.com/python/docs/reference/cloudiot/latest/google.cloud.iot_v1.types.HttpState)

Indicates whether DeviceService (HTTP) is enabled or disabled
for the registry. See the field description for details.

Values:
HTTP_STATE_UNSPECIFIED (0):
No HTTP state specified. If not specified,
DeviceService will be enabled by default.
HTTP_ENABLED (1):
Enables DeviceService (HTTP) service for the
registry.
HTTP_DISABLED (2):
Disables DeviceService (HTTP) service for the
registry.

### [ListDeviceConfigVersionsRequest](https://docs.cloud.google.com/python/docs/reference/cloudiot/latest/google.cloud.iot_v1.types.ListDeviceConfigVersionsRequest)

Request for `ListDeviceConfigVersions`.

### [ListDeviceConfigVersionsResponse](https://docs.cloud.google.com/python/docs/reference/cloudiot/latest/google.cloud.iot_v1.types.ListDeviceConfigVersionsResponse)

Response for `ListDeviceConfigVersions`.

### [ListDeviceRegistriesRequest](https://docs.cloud.google.com/python/docs/reference/cloudiot/latest/google.cloud.iot_v1.types.ListDeviceRegistriesRequest)

Request for `ListDeviceRegistries`.

### [ListDeviceRegistriesResponse](https://docs.cloud.google.com/python/docs/reference/cloudiot/latest/google.cloud.iot_v1.types.ListDeviceRegistriesResponse)

Response for `ListDeviceRegistries`.

### [ListDeviceStatesRequest](https://docs.cloud.google.com/python/docs/reference/cloudiot/latest/google.cloud.iot_v1.types.ListDeviceStatesRequest)

Request for `ListDeviceStates`.

### [ListDeviceStatesResponse](https://docs.cloud.google.com/python/docs/reference/cloudiot/latest/google.cloud.iot_v1.types.ListDeviceStatesResponse)

Response for `ListDeviceStates`.

### [ListDevicesRequest](https://docs.cloud.google.com/python/docs/reference/cloudiot/latest/google.cloud.iot_v1.types.ListDevicesRequest)

Request for `ListDevices`.

### [ListDevicesResponse](https://docs.cloud.google.com/python/docs/reference/cloudiot/latest/google.cloud.iot_v1.types.ListDevicesResponse)

Response for `ListDevices`.

### [LogLevel](https://docs.cloud.google.com/python/docs/reference/cloudiot/latest/google.cloud.iot_v1.types.LogLevel)

**Beta Feature**

The logging verbosity for device activity. Specifies which events
should be written to logs. For example, if the LogLevel is ERROR,
only events that terminate in errors will be logged. LogLevel is
inclusive; enabling INFO logging will also enable ERROR logging.

Values:
LOG_LEVEL_UNSPECIFIED (0):
No logging specified. If not specified,
logging will be disabled.
NONE (10):
Disables logging.
ERROR (20):
Error events will be logged.
INFO (30):
Informational events will be logged, such as
connections and disconnections.
DEBUG (40):
All events will be logged.

### [ModifyCloudToDeviceConfigRequest](https://docs.cloud.google.com/python/docs/reference/cloudiot/latest/google.cloud.iot_v1.types.ModifyCloudToDeviceConfigRequest)

Request for `ModifyCloudToDeviceConfig`.

### [MqttConfig](https://docs.cloud.google.com/python/docs/reference/cloudiot/latest/google.cloud.iot_v1.types.MqttConfig)

The configuration of MQTT for a device registry.

### [MqttState](https://docs.cloud.google.com/python/docs/reference/cloudiot/latest/google.cloud.iot_v1.types.MqttState)

Indicates whether an MQTT connection is enabled or disabled.
See the field description for details.

Values:
MQTT_STATE_UNSPECIFIED (0):
No MQTT state specified. If not specified,
MQTT will be enabled by default.
MQTT_ENABLED (1):
Enables a MQTT connection.
MQTT_DISABLED (2):
Disables a MQTT connection.

### [PublicKeyCertificate](https://docs.cloud.google.com/python/docs/reference/cloudiot/latest/google.cloud.iot_v1.types.PublicKeyCertificate)

A public key certificate format and data.

### [PublicKeyCertificateFormat](https://docs.cloud.google.com/python/docs/reference/cloudiot/latest/google.cloud.iot_v1.types.PublicKeyCertificateFormat)

The supported formats for the public key.

Values:
UNSPECIFIED_PUBLIC_KEY_CERTIFICATE_FORMAT (0):
The format has not been specified. This is an
invalid default value and must not be used.
X509_CERTIFICATE_PEM (1):
An X.509v3 certificate
(`RFC5280 <https://www.ietf.org/rfc/rfc5280.txt>`__),
encoded in base64, and wrapped by
`---BEGIN CERTIFICATE---` and
`---END CERTIFICATE---`.

### [PublicKeyCredential](https://docs.cloud.google.com/python/docs/reference/cloudiot/latest/google.cloud.iot_v1.types.PublicKeyCredential)

A public key format and data.

### [PublicKeyFormat](https://docs.cloud.google.com/python/docs/reference/cloudiot/latest/google.cloud.iot_v1.types.PublicKeyFormat)

The supported formats for the public key.

Values:
UNSPECIFIED_PUBLIC_KEY_FORMAT (0):
The format has not been specified. This is an
invalid default value and must not be used.
RSA_PEM (3):
An RSA public key encoded in base64, and wrapped by
`---BEGIN PUBLIC KEY---` and
`---END PUBLIC KEY---`. This can be used to verify
`RS256` signatures in JWT tokens
(`RFC7518 <https://www.ietf.org/rfc/rfc7518.txt>`**).
RSA_X509_PEM (1):
As RSA_PEM, but wrapped in an X.509v3 certificate
(`RFC5280 <https://www.ietf.org/rfc/rfc5280.txt>`** ),
encoded in base64, and wrapped by
`---BEGIN CERTIFICATE---` and
`---END CERTIFICATE---`.
ES256_PEM (2):
Public key for the ECDSA algorithm using P-256 and SHA-256,
encoded in base64, and wrapped by
`---BEGIN PUBLIC KEY---` and
`---END PUBLIC KEY---`. This can be used to verify JWT
tokens with the `ES256` algorithm
(`RFC7518 <https://www.ietf.org/rfc/rfc7518.txt>`**). This
curve is defined in `OpenSSL <https://www.openssl.org/>`**
as the `prime256v1` curve.
ES256_X509_PEM (4):
As ES256_PEM, but wrapped in an X.509v3 certificate
(`RFC5280 <https://www.ietf.org/rfc/rfc5280.txt>`__),
encoded in base64, and wrapped by
`---BEGIN CERTIFICATE---` and
`---END CERTIFICATE---`.

### [RegistryCredential](https://docs.cloud.google.com/python/docs/reference/cloudiot/latest/google.cloud.iot_v1.types.RegistryCredential)

A server-stored registry credential used to validate device
credentials.

.. _oneof: <https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields>

### [SendCommandToDeviceRequest](https://docs.cloud.google.com/python/docs/reference/cloudiot/latest/google.cloud.iot_v1.types.SendCommandToDeviceRequest)

Request for `SendCommandToDevice`.

### [SendCommandToDeviceResponse](https://docs.cloud.google.com/python/docs/reference/cloudiot/latest/google.cloud.iot_v1.types.SendCommandToDeviceResponse)

Response for `SendCommandToDevice`.

### [StateNotificationConfig](https://docs.cloud.google.com/python/docs/reference/cloudiot/latest/google.cloud.iot_v1.types.StateNotificationConfig)

The configuration for notification of new states received
from the device.

### [UnbindDeviceFromGatewayRequest](https://docs.cloud.google.com/python/docs/reference/cloudiot/latest/google.cloud.iot_v1.types.UnbindDeviceFromGatewayRequest)

Request for `UnbindDeviceFromGateway`.

### [UnbindDeviceFromGatewayResponse](https://docs.cloud.google.com/python/docs/reference/cloudiot/latest/google.cloud.iot_v1.types.UnbindDeviceFromGatewayResponse)

Response for `UnbindDeviceFromGateway`.

### [UpdateDeviceRegistryRequest](https://docs.cloud.google.com/python/docs/reference/cloudiot/latest/google.cloud.iot_v1.types.UpdateDeviceRegistryRequest)

Request for `UpdateDeviceRegistry`.

### [UpdateDeviceRequest](https://docs.cloud.google.com/python/docs/reference/cloudiot/latest/google.cloud.iot_v1.types.UpdateDeviceRequest)

Request for `UpdateDevice`.

### [X509CertificateDetails](https://docs.cloud.google.com/python/docs/reference/cloudiot/latest/google.cloud.iot_v1.types.X509CertificateDetails)

Details of an X.509 certificate. For informational purposes
only.