| | 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 life |
| | 18 | | /// cycle event (DeviceCreated, DeviceDeleted). |
| | 19 | | /// </summary> |
| | 20 | | public partial class DeviceLifeCycleEventProperties |
| | 21 | | { |
| | 22 | | /// <summary> |
| | 23 | | /// Initializes a new instance of the DeviceLifeCycleEventProperties |
| | 24 | | /// class. |
| | 25 | | /// </summary> |
| 2 | 26 | | public DeviceLifeCycleEventProperties() |
| | 27 | | { |
| | 28 | | CustomInit(); |
| 2 | 29 | | } |
| | 30 | |
|
| | 31 | | /// <summary> |
| | 32 | | /// Initializes a new instance of the DeviceLifeCycleEventProperties |
| | 33 | | /// 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="hubName">Name of the IoT Hub where the device was |
| | 41 | | /// created or deleted.</param> |
| | 42 | | /// <param name="twin">Information about the device twin, which is the |
| | 43 | | /// cloud representation of application device metadata.</param> |
| 0 | 44 | | public DeviceLifeCycleEventProperties(string deviceId = default(string), string hubName = default(string), Devic |
| | 45 | | { |
| 0 | 46 | | DeviceId = deviceId; |
| 0 | 47 | | HubName = hubName; |
| 0 | 48 | | Twin = twin; |
| | 49 | | CustomInit(); |
| 0 | 50 | | } |
| | 51 | |
|
| | 52 | | /// <summary> |
| | 53 | | /// An initialization method that performs custom operations like setting defaults |
| | 54 | | /// </summary> |
| | 55 | | partial void CustomInit(); |
| | 56 | |
|
| | 57 | | /// <summary> |
| | 58 | | /// Gets or sets the unique identifier of the device. This |
| | 59 | | /// case-sensitive string can be up to 128 characters long, and |
| | 60 | | /// supports ASCII 7-bit alphanumeric characters plus the following |
| | 61 | | /// special characters: - : . + % _ &amp;#35; * ? ! ( ) , = @ ; $ |
| | 62 | | /// '. |
| | 63 | | /// </summary> |
| | 64 | | [JsonProperty(PropertyName = "deviceId")] |
| 0 | 65 | | public string DeviceId { get; set; } |
| | 66 | |
|
| | 67 | | /// <summary> |
| | 68 | | /// Gets or sets name of the IoT Hub where the device was created or |
| | 69 | | /// deleted. |
| | 70 | | /// </summary> |
| | 71 | | [JsonProperty(PropertyName = "hubName")] |
| 0 | 72 | | public string HubName { get; set; } |
| | 73 | |
|
| | 74 | | /// <summary> |
| | 75 | | /// Gets or sets information about the device twin, which is the cloud |
| | 76 | | /// representation of application device metadata. |
| | 77 | | /// </summary> |
| | 78 | | [JsonProperty(PropertyName = "twin")] |
| 6 | 79 | | public DeviceTwinInfo Twin { get; set; } |
| | 80 | |
|
| | 81 | | } |
| | 82 | | } |