Struct google_api_proto::google::cloud::iot::v1::DeviceRegistry
source · 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>,
}
Expand description
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§
Trait Implementations§
source§impl Clone for DeviceRegistry
impl Clone for DeviceRegistry
source§fn clone(&self) -> DeviceRegistry
fn clone(&self) -> DeviceRegistry
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for DeviceRegistry
impl Debug for DeviceRegistry
source§impl Default for DeviceRegistry
impl Default for DeviceRegistry
source§impl Message for DeviceRegistry
impl Message for DeviceRegistry
source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
source§fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
source§fn encode_to_vec(&self) -> Vec<u8>where
Self: Sized,
fn encode_to_vec(&self) -> Vec<u8>where
Self: Sized,
source§fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
source§fn encode_length_delimited_to_vec(&self) -> Vec<u8>where
Self: Sized,
fn encode_length_delimited_to_vec(&self) -> Vec<u8>where
Self: Sized,
source§fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
source§fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
source§fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self
. Read moresource§fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self
.source§impl PartialEq for DeviceRegistry
impl PartialEq for DeviceRegistry
source§fn eq(&self, other: &DeviceRegistry) -> bool
fn eq(&self, other: &DeviceRegistry) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for DeviceRegistry
Auto Trait Implementations§
impl Freeze for DeviceRegistry
impl RefUnwindSafe for DeviceRegistry
impl Send for DeviceRegistry
impl Sync for DeviceRegistry
impl Unpin for DeviceRegistry
impl UnwindSafe for DeviceRegistry
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T
in a tonic::Request