Share via


EventGridModelFactory.DeviceTwinInfo Method

Definition

Initializes a new instance of DeviceTwinInfo.

public static Azure.Messaging.EventGrid.SystemEvents.DeviceTwinInfo DeviceTwinInfo (string authenticationType = default, float? cloudToDeviceMessageCount = default, string connectionState = default, string deviceId = default, string etag = default, string lastActivityTime = default, Azure.Messaging.EventGrid.SystemEvents.DeviceTwinInfoProperties properties = default, string status = default, string statusUpdateTime = default, float? version = default, Azure.Messaging.EventGrid.SystemEvents.DeviceTwinInfoX509Thumbprint x509Thumbprint = default);
static member DeviceTwinInfo : string * Nullable<single> * string * string * string * string * Azure.Messaging.EventGrid.SystemEvents.DeviceTwinInfoProperties * string * string * Nullable<single> * Azure.Messaging.EventGrid.SystemEvents.DeviceTwinInfoX509Thumbprint -> Azure.Messaging.EventGrid.SystemEvents.DeviceTwinInfo
Public Shared Function DeviceTwinInfo (Optional authenticationType As String = Nothing, Optional cloudToDeviceMessageCount As Nullable(Of Single) = Nothing, Optional connectionState As String = Nothing, Optional deviceId As String = Nothing, Optional etag As String = Nothing, Optional lastActivityTime As String = Nothing, Optional properties As DeviceTwinInfoProperties = Nothing, Optional status As String = Nothing, Optional statusUpdateTime As String = Nothing, Optional version As Nullable(Of Single) = Nothing, Optional x509Thumbprint As DeviceTwinInfoX509Thumbprint = Nothing) As DeviceTwinInfo

Parameters

authenticationType
String

Authentication type used for this device: either SAS, SelfSigned, or CertificateAuthority.

cloudToDeviceMessageCount
Nullable<Single>

Count of cloud to device messages sent to this device.

connectionState
String

Whether the device is connected or disconnected.

deviceId
String

The unique identifier of the device twin.

etag
String

A piece of information that describes the content of the device twin. Each etag is guaranteed to be unique per device twin.

lastActivityTime
String

The ISO8601 timestamp of the last activity.

properties
DeviceTwinInfoProperties

Properties JSON element.

status
String

Whether the device twin is enabled or disabled.

statusUpdateTime
String

The ISO8601 timestamp of the last device twin status update.

version
Nullable<Single>

An integer that is incremented by one each time the device twin is updated.

x509Thumbprint
DeviceTwinInfoX509Thumbprint

The thumbprint is a unique value for the x509 certificate, commonly used to find a particular certificate in a certificate store. The thumbprint is dynamically generated using the SHA1 algorithm, and does not physically exist in the certificate.

Returns

A new DeviceTwinInfo instance for mocking.

Applies to