[][src]Struct gcp_client::google::cloud::iot::v1::DeviceRegistry

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

A container for a group of devices.

Fields

id: String

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

name: String

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

event_notification_configs: Vec<EventNotificationConfig>

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. If multiple configurations match a message, only the first matching 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. Up to 10 configurations may be provided.

state_notification_config: Option<StateNotificationConfig>

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.

mqtt_config: Option<MqttConfig>

The MQTT configuration for this device registry.

http_config: Option<HttpConfig>

The DeviceService (HTTP) configuration for this device registry.

log_level: i32

Beta Feature

The default logging verbosity for activity from devices in this registry. The verbosity level can be overridden by Device.log_level.

credentials: Vec<RegistryCredential>

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.

Implementations

impl DeviceRegistry[src]

pub fn log_level(&self) -> LogLevel[src]

Returns the enum value of log_level, or the default if the field is set to an invalid enum value.

pub fn set_log_level(&mut self, value: LogLevel)[src]

Sets log_level to the provided enum value.

Trait Implementations

impl Clone for DeviceRegistry[src]

impl Debug for DeviceRegistry[src]

impl Default for DeviceRegistry[src]

impl Message for DeviceRegistry[src]

impl PartialEq<DeviceRegistry> for DeviceRegistry[src]

impl StructuralPartialEq for DeviceRegistry[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T> Instrument for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> IntoRequest<T> for T[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>, 

impl<T> WithSubscriber for T[src]