| | 1 | | // <auto-generated> |
| | 2 | | // Copyright (c) Microsoft Corporation. All rights reserved. |
| | 3 | | // Licensed under the MIT License. See License.txt in the project root for |
| | 4 | | // license information. |
| | 5 | | // |
| | 6 | | // Code generated by Microsoft (R) AutoRest Code Generator. |
| | 7 | | // Changes may cause incorrect behavior and will be lost if the code is |
| | 8 | | // regenerated. |
| | 9 | | // </auto-generated> |
| | 10 | |
|
| | 11 | | namespace Microsoft.Azure.EventGrid.Models |
| | 12 | | { |
| | 13 | | using Newtonsoft.Json; |
| | 14 | | using System.Linq; |
| | 15 | |
|
| | 16 | | /// <summary> |
| | 17 | | /// Information about the device twin, which is the cloud representation of |
| | 18 | | /// application device metadata. |
| | 19 | | /// </summary> |
| | 20 | | public partial class DeviceTwinInfo |
| | 21 | | { |
| | 22 | | /// <summary> |
| | 23 | | /// Initializes a new instance of the DeviceTwinInfo class. |
| | 24 | | /// </summary> |
| 2 | 25 | | public DeviceTwinInfo() |
| | 26 | | { |
| | 27 | | CustomInit(); |
| 2 | 28 | | } |
| | 29 | |
|
| | 30 | | /// <summary> |
| | 31 | | /// Initializes a new instance of the DeviceTwinInfo class. |
| | 32 | | /// </summary> |
| | 33 | | /// <param name="authenticationType">Authentication type used for this |
| | 34 | | /// device: either SAS, SelfSigned, or CertificateAuthority.</param> |
| | 35 | | /// <param name="cloudToDeviceMessageCount">Count of cloud to device |
| | 36 | | /// messages sent to this device.</param> |
| | 37 | | /// <param name="connectionState">Whether the device is connected or |
| | 38 | | /// disconnected.</param> |
| | 39 | | /// <param name="deviceId">The unique identifier of the device |
| | 40 | | /// twin.</param> |
| | 41 | | /// <param name="etag">A piece of information that describes the |
| | 42 | | /// content of the device twin. Each etag is guaranteed to be unique |
| | 43 | | /// per device twin.</param> |
| | 44 | | /// <param name="lastActivityTime">The ISO8601 timestamp of the last |
| | 45 | | /// activity.</param> |
| | 46 | | /// <param name="properties">Properties JSON element.</param> |
| | 47 | | /// <param name="status">Whether the device twin is enabled or |
| | 48 | | /// disabled.</param> |
| | 49 | | /// <param name="statusUpdateTime">The ISO8601 timestamp of the last |
| | 50 | | /// device twin status update.</param> |
| | 51 | | /// <param name="version">An integer that is incremented by one each |
| | 52 | | /// time the device twin is updated.</param> |
| | 53 | | /// <param name="x509Thumbprint">The thumbprint is a unique value for |
| | 54 | | /// the x509 certificate, commonly used to find a particular |
| | 55 | | /// certificate in a certificate store. The thumbprint is dynamically |
| | 56 | | /// generated using the SHA1 algorithm, and does not physically exist |
| | 57 | | /// in the certificate.</param> |
| 0 | 58 | | public DeviceTwinInfo(string authenticationType = default(string), double? cloudToDeviceMessageCount = default(d |
| | 59 | | { |
| 0 | 60 | | AuthenticationType = authenticationType; |
| 0 | 61 | | CloudToDeviceMessageCount = cloudToDeviceMessageCount; |
| 0 | 62 | | ConnectionState = connectionState; |
| 0 | 63 | | DeviceId = deviceId; |
| 0 | 64 | | Etag = etag; |
| 0 | 65 | | LastActivityTime = lastActivityTime; |
| 0 | 66 | | Properties = properties; |
| 0 | 67 | | Status = status; |
| 0 | 68 | | StatusUpdateTime = statusUpdateTime; |
| 0 | 69 | | Version = version; |
| 0 | 70 | | X509Thumbprint = x509Thumbprint; |
| | 71 | | CustomInit(); |
| 0 | 72 | | } |
| | 73 | |
|
| | 74 | | /// <summary> |
| | 75 | | /// An initialization method that performs custom operations like setting defaults |
| | 76 | | /// </summary> |
| | 77 | | partial void CustomInit(); |
| | 78 | |
|
| | 79 | | /// <summary> |
| | 80 | | /// Gets or sets authentication type used for this device: either SAS, |
| | 81 | | /// SelfSigned, or CertificateAuthority. |
| | 82 | | /// </summary> |
| | 83 | | [JsonProperty(PropertyName = "authenticationType")] |
| 0 | 84 | | public string AuthenticationType { get; set; } |
| | 85 | |
|
| | 86 | | /// <summary> |
| | 87 | | /// Gets or sets count of cloud to device messages sent to this device. |
| | 88 | | /// </summary> |
| | 89 | | [JsonProperty(PropertyName = "cloudToDeviceMessageCount")] |
| 0 | 90 | | public double? CloudToDeviceMessageCount { get; set; } |
| | 91 | |
|
| | 92 | | /// <summary> |
| | 93 | | /// Gets or sets whether the device is connected or disconnected. |
| | 94 | | /// </summary> |
| | 95 | | [JsonProperty(PropertyName = "connectionState")] |
| 0 | 96 | | public string ConnectionState { get; set; } |
| | 97 | |
|
| | 98 | | /// <summary> |
| | 99 | | /// Gets or sets the unique identifier of the device twin. |
| | 100 | | /// </summary> |
| | 101 | | [JsonProperty(PropertyName = "deviceId")] |
| 0 | 102 | | public string DeviceId { get; set; } |
| | 103 | |
|
| | 104 | | /// <summary> |
| | 105 | | /// Gets or sets a piece of information that describes the content of |
| | 106 | | /// the device twin. Each etag is guaranteed to be unique per device |
| | 107 | | /// twin. |
| | 108 | | /// </summary> |
| | 109 | | [JsonProperty(PropertyName = "etag")] |
| 3 | 110 | | public string Etag { get; set; } |
| | 111 | |
|
| | 112 | | /// <summary> |
| | 113 | | /// Gets or sets the ISO8601 timestamp of the last activity. |
| | 114 | | /// </summary> |
| | 115 | | [JsonProperty(PropertyName = "lastActivityTime")] |
| 0 | 116 | | public string LastActivityTime { get; set; } |
| | 117 | |
|
| | 118 | | /// <summary> |
| | 119 | | /// Gets or sets properties JSON element. |
| | 120 | | /// </summary> |
| | 121 | | [JsonProperty(PropertyName = "properties")] |
| 4 | 122 | | public DeviceTwinInfoProperties Properties { get; set; } |
| | 123 | |
|
| | 124 | | /// <summary> |
| | 125 | | /// Gets or sets whether the device twin is enabled or disabled. |
| | 126 | | /// </summary> |
| | 127 | | [JsonProperty(PropertyName = "status")] |
| 3 | 128 | | public string Status { get; set; } |
| | 129 | |
|
| | 130 | | /// <summary> |
| | 131 | | /// Gets or sets the ISO8601 timestamp of the last device twin status |
| | 132 | | /// update. |
| | 133 | | /// </summary> |
| | 134 | | [JsonProperty(PropertyName = "statusUpdateTime")] |
| 0 | 135 | | public string StatusUpdateTime { get; set; } |
| | 136 | |
|
| | 137 | | /// <summary> |
| | 138 | | /// Gets or sets an integer that is incremented by one each time the |
| | 139 | | /// device twin is updated. |
| | 140 | | /// </summary> |
| | 141 | | [JsonProperty(PropertyName = "version")] |
| 0 | 142 | | public double? Version { get; set; } |
| | 143 | |
|
| | 144 | | /// <summary> |
| | 145 | | /// Gets or sets the thumbprint is a unique value for the x509 |
| | 146 | | /// certificate, commonly used to find a particular certificate in a |
| | 147 | | /// certificate store. The thumbprint is dynamically generated using |
| | 148 | | /// the SHA1 algorithm, and does not physically exist in the |
| | 149 | | /// certificate. |
| | 150 | | /// </summary> |
| | 151 | | [JsonProperty(PropertyName = "x509Thumbprint")] |
| 4 | 152 | | public DeviceTwinInfoX509Thumbprint X509Thumbprint { get; set; } |
| | 153 | |
|
| | 154 | | } |
| | 155 | | } |