|  |  | 1 |  | // Copyright (c) Microsoft Corporation. All rights reserved. | 
|  |  | 2 |  | // Licensed under the MIT License. | 
|  |  | 3 |  |  | 
|  |  | 4 |  | // <auto-generated/> | 
|  |  | 5 |  |  | 
|  |  | 6 |  | #nullable disable | 
|  |  | 7 |  |  | 
|  |  | 8 |  | using System; | 
|  |  | 9 |  |  | 
|  |  | 10 |  | namespace Azure.Iot.Hub.Service.Models | 
|  |  | 11 |  | { | 
|  |  | 12 |  |     /// <summary> The JobResponse. </summary> | 
|  |  | 13 |  |     public partial class JobResponse | 
|  |  | 14 |  |     { | 
|  |  | 15 |  |         /// <summary> Initializes a new instance of JobResponse. </summary> | 
|  | 0 | 16 |  |         internal JobResponse() | 
|  |  | 17 |  |         { | 
|  | 0 | 18 |  |         } | 
|  |  | 19 |  |  | 
|  |  | 20 |  |         /// <summary> Initializes a new instance of JobResponse. </summary> | 
|  |  | 21 |  |         /// <param name="jobId"> System generated.  Ignored at creation. The unique identifier of the job. </param> | 
|  |  | 22 |  |         /// <param name="queryCondition"> The device query condition. </param> | 
|  |  | 23 |  |         /// <param name="createdTime"> System generated.  Ignored at creation. The creation date and time of the job. </ | 
|  |  | 24 |  |         /// <param name="startTime"> The start date and time of the scheduled job in UTC. </param> | 
|  |  | 25 |  |         /// <param name="endTime"> System generated.  Ignored at creation. The end date and time of the job in UTC. </pa | 
|  |  | 26 |  |         /// <param name="maxExecutionTimeInSeconds"> The maximum execution time in secounds. </param> | 
|  |  | 27 |  |         /// <param name="type"> The job type. </param> | 
|  |  | 28 |  |         /// <param name="cloudToDeviceMethod"> The method type and parameters. This is required if job type is cloudToDe | 
|  |  | 29 |  |         /// <param name="updateTwin"> The state information for a device or module. This is implicitly created and delet | 
|  |  | 30 |  |         /// <param name="status"> System generated.  Ignored at creation. The status of the job. </param> | 
|  |  | 31 |  |         /// <param name="failureReason"> The reason for the failure, if a failure occurred. </param> | 
|  |  | 32 |  |         /// <param name="statusMessage"> The status message of the job. </param> | 
|  |  | 33 |  |         /// <param name="deviceJobStatistics"> The details regarding job execution status. </param> | 
|  | 0 | 34 |  |         internal JobResponse(string jobId, string queryCondition, DateTimeOffset? createdTime, DateTimeOffset? startTime | 
|  |  | 35 |  |         { | 
|  | 0 | 36 |  |             JobId = jobId; | 
|  | 0 | 37 |  |             QueryCondition = queryCondition; | 
|  | 0 | 38 |  |             CreatedTime = createdTime; | 
|  | 0 | 39 |  |             StartTime = startTime; | 
|  | 0 | 40 |  |             EndTime = endTime; | 
|  | 0 | 41 |  |             MaxExecutionTimeInSeconds = maxExecutionTimeInSeconds; | 
|  | 0 | 42 |  |             Type = type; | 
|  | 0 | 43 |  |             CloudToDeviceMethod = cloudToDeviceMethod; | 
|  | 0 | 44 |  |             UpdateTwin = updateTwin; | 
|  | 0 | 45 |  |             Status = status; | 
|  | 0 | 46 |  |             FailureReason = failureReason; | 
|  | 0 | 47 |  |             StatusMessage = statusMessage; | 
|  | 0 | 48 |  |             DeviceJobStatistics = deviceJobStatistics; | 
|  | 0 | 49 |  |         } | 
|  |  | 50 |  |  | 
|  |  | 51 |  |         /// <summary> System generated.  Ignored at creation. The unique identifier of the job. </summary> | 
|  | 0 | 52 |  |         public string JobId { get; } | 
|  |  | 53 |  |         /// <summary> The device query condition. </summary> | 
|  | 0 | 54 |  |         public string QueryCondition { get; } | 
|  |  | 55 |  |         /// <summary> System generated.  Ignored at creation. The creation date and time of the job. </summary> | 
|  | 0 | 56 |  |         public DateTimeOffset? CreatedTime { get; } | 
|  |  | 57 |  |         /// <summary> The start date and time of the scheduled job in UTC. </summary> | 
|  | 0 | 58 |  |         public DateTimeOffset? StartTime { get; } | 
|  |  | 59 |  |         /// <summary> System generated.  Ignored at creation. The end date and time of the job in UTC. </summary> | 
|  | 0 | 60 |  |         public DateTimeOffset? EndTime { get; } | 
|  |  | 61 |  |         /// <summary> The maximum execution time in secounds. </summary> | 
|  | 0 | 62 |  |         public long? MaxExecutionTimeInSeconds { get; } | 
|  |  | 63 |  |         /// <summary> The job type. </summary> | 
|  | 0 | 64 |  |         public JobResponseType? Type { get; } | 
|  |  | 65 |  |         /// <summary> The method type and parameters. This is required if job type is cloudToDeviceMethod. </summary> | 
|  | 0 | 66 |  |         public CloudToDeviceMethodRequest CloudToDeviceMethod { get; } | 
|  |  | 67 |  |         /// <summary> The state information for a device or module. This is implicitly created and deleted when the corr | 
|  | 0 | 68 |  |         public TwinData UpdateTwin { get; } | 
|  |  | 69 |  |         /// <summary> System generated.  Ignored at creation. The status of the job. </summary> | 
|  | 0 | 70 |  |         public JobResponseStatus? Status { get; } | 
|  |  | 71 |  |         /// <summary> The reason for the failure, if a failure occurred. </summary> | 
|  | 0 | 72 |  |         public string FailureReason { get; } | 
|  |  | 73 |  |         /// <summary> The status message of the job. </summary> | 
|  | 0 | 74 |  |         public string StatusMessage { get; } | 
|  |  | 75 |  |         /// <summary> The details regarding job execution status. </summary> | 
|  | 0 | 76 |  |         public DeviceJobStatistics DeviceJobStatistics { get; } | 
|  |  | 77 |  |     } | 
|  |  | 78 |  | } |