| | 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 | | /// Schema of the Data property of an EventGridEvent for a device |
| | 18 | | /// connection state event (DeviceConnected, DeviceDisconnected). |
| | 19 | | /// </summary> |
| | 20 | | public partial class DeviceConnectionStateEventProperties |
| | 21 | | { |
| | 22 | | /// <summary> |
| | 23 | | /// Initializes a new instance of the |
| | 24 | | /// DeviceConnectionStateEventProperties class. |
| | 25 | | /// </summary> |
| 2 | 26 | | public DeviceConnectionStateEventProperties() |
| | 27 | | { |
| | 28 | | CustomInit(); |
| 2 | 29 | | } |
| | 30 | |
|
| | 31 | | /// <summary> |
| | 32 | | /// Initializes a new instance of the |
| | 33 | | /// DeviceConnectionStateEventProperties class. |
| | 34 | | /// </summary> |
| | 35 | | /// <param name="deviceId">The unique identifier of the device. This |
| | 36 | | /// case-sensitive string can be up to 128 characters long, and |
| | 37 | | /// supports ASCII 7-bit alphanumeric characters plus the following |
| | 38 | | /// special characters: - : . + % _ &#35; * ? ! ( ) , = @ ; $ |
| | 39 | | /// '.</param> |
| | 40 | | /// <param name="moduleId">The unique identifier of the module. This |
| | 41 | | /// case-sensitive string can be up to 128 characters long, and |
| | 42 | | /// supports ASCII 7-bit alphanumeric characters plus the following |
| | 43 | | /// special characters: - : . + % _ &#35; * ? ! ( ) , = @ ; $ |
| | 44 | | /// '.</param> |
| | 45 | | /// <param name="hubName">Name of the IoT Hub where the device was |
| | 46 | | /// created or deleted.</param> |
| | 47 | | /// <param name="deviceConnectionStateEventInfo">Information about the |
| | 48 | | /// device connection state event.</param> |
| 0 | 49 | | public DeviceConnectionStateEventProperties(string deviceId = default(string), string moduleId = default(string) |
| | 50 | | { |
| 0 | 51 | | DeviceId = deviceId; |
| 0 | 52 | | ModuleId = moduleId; |
| 0 | 53 | | HubName = hubName; |
| 0 | 54 | | DeviceConnectionStateEventInfo = deviceConnectionStateEventInfo; |
| | 55 | | CustomInit(); |
| 0 | 56 | | } |
| | 57 | |
|
| | 58 | | /// <summary> |
| | 59 | | /// An initialization method that performs custom operations like setting defaults |
| | 60 | | /// </summary> |
| | 61 | | partial void CustomInit(); |
| | 62 | |
|
| | 63 | | /// <summary> |
| | 64 | | /// Gets or sets the unique identifier of the device. This |
| | 65 | | /// case-sensitive string can be up to 128 characters long, and |
| | 66 | | /// supports ASCII 7-bit alphanumeric characters plus the following |
| | 67 | | /// special characters: - : . + % _ &amp;#35; * ? ! ( ) , = @ ; $ |
| | 68 | | /// '. |
| | 69 | | /// </summary> |
| | 70 | | [JsonProperty(PropertyName = "deviceId")] |
| 0 | 71 | | public string DeviceId { get; set; } |
| | 72 | |
|
| | 73 | | /// <summary> |
| | 74 | | /// Gets or sets the unique identifier of the module. This |
| | 75 | | /// case-sensitive string can be up to 128 characters long, and |
| | 76 | | /// supports ASCII 7-bit alphanumeric characters plus the following |
| | 77 | | /// special characters: - : . + % _ &amp;#35; * ? ! ( ) , = @ ; $ |
| | 78 | | /// '. |
| | 79 | | /// </summary> |
| | 80 | | [JsonProperty(PropertyName = "moduleId")] |
| 0 | 81 | | public string ModuleId { get; set; } |
| | 82 | |
|
| | 83 | | /// <summary> |
| | 84 | | /// Gets or sets name of the IoT Hub where the device was created or |
| | 85 | | /// deleted. |
| | 86 | | /// </summary> |
| | 87 | | [JsonProperty(PropertyName = "hubName")] |
| 3 | 88 | | public string HubName { get; set; } |
| | 89 | |
|
| | 90 | | /// <summary> |
| | 91 | | /// Gets or sets information about the device connection state event. |
| | 92 | | /// </summary> |
| | 93 | | [JsonProperty(PropertyName = "deviceConnectionStateEventInfo")] |
| 5 | 94 | | public DeviceConnectionStateEventInfo DeviceConnectionStateEventInfo { get; set; } |
| | 95 | |
|
| | 96 | | } |
| | 97 | | } |