Struct google_cloudiot1::DeviceRegistry [] [src]

pub struct DeviceRegistry {
    pub http_config: Option<HttpConfig>,
    pub event_notification_configs: Option<Vec<EventNotificationConfig>>,
    pub name: Option<String>,
    pub state_notification_config: Option<StateNotificationConfig>,
    pub credentials: Option<Vec<RegistryCredential>>,
    pub id: Option<String>,
    pub mqtt_config: Option<MqttConfig>,
}

A container for a group of devices.

Activities

This type is used in activities, which are methods you may call on this type or where this type is involved in. The list links the activity name, along with information about where it is used (one of request and response).

Fields

The DeviceService (HTTP) configuration for this device registry.

The configuration for notification of telemetry events received from the device. All telemetry events that were successfully published by the device and acknowledged by Cloud IoT Core are guaranteed to be delivered to Cloud Pub/Sub. Only the first configuration is used. If you try to publish a device telemetry event using MQTT without specifying a Cloud Pub/Sub topic for the device's registry, the connection closes automatically. If you try to do so using an HTTP connection, an error is returned.

The resource path name. For example, projects/example-project/locations/us-central1/registries/my-registry.

The configuration for notification of new states received from the device. State updates are guaranteed to be stored in the state history, but notifications to Cloud Pub/Sub are not guaranteed. For example, if permissions are misconfigured or the specified topic doesn't exist, no notification will be published but the state will still be stored in Cloud IoT Core.

The credentials used to verify the device credentials. No more than 10 credentials can be bound to a single registry at a time. The verification process occurs at the time of device creation or update. If this field is empty, no verification is performed. Otherwise, the credentials of a newly created device or added credentials of an updated device should be signed with one of these registry credentials.

Note, however, that existing devices will never be affected by modifications to this list of credentials: after a device has been successfully created in a registry, it should be able to connect even if its registry credentials are revoked, deleted, or modified.

The identifier of this device registry. For example, myRegistry.

The MQTT configuration for this device registry.

Trait Implementations

impl Default for DeviceRegistry
[src]

[src]

Returns the "default value" for a type. Read more

impl Clone for DeviceRegistry
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl Debug for DeviceRegistry
[src]

[src]

Formats the value using the given formatter.

impl RequestValue for DeviceRegistry
[src]

impl ResponseResult for DeviceRegistry
[src]