| | 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 | | using System.ComponentModel; |
| | 10 | |
|
| | 11 | | namespace Azure.Iot.Hub.Service.Models |
| | 12 | | { |
| | 13 | | /// <summary> The job type. </summary> |
| | 14 | | public readonly partial struct JobPropertiesType : IEquatable<JobPropertiesType> |
| | 15 | | { |
| | 16 | | private readonly string _value; |
| | 17 | |
|
| | 18 | | /// <summary> Determines if two <see cref="JobPropertiesType"/> values are the same. </summary> |
| | 19 | | /// <exception cref="ArgumentNullException"> <paramref name="value"/> is null. </exception> |
| | 20 | | public JobPropertiesType(string value) |
| | 21 | | { |
| 0 | 22 | | _value = value ?? throw new ArgumentNullException(nameof(value)); |
| 0 | 23 | | } |
| | 24 | |
|
| | 25 | | private const string UnknownValue = "unknown"; |
| | 26 | | private const string ExportValue = "export"; |
| | 27 | | private const string ImportValue = "import"; |
| | 28 | | private const string BackupValue = "backup"; |
| | 29 | | private const string ReadDevicePropertiesValue = "readDeviceProperties"; |
| | 30 | | private const string WriteDevicePropertiesValue = "writeDeviceProperties"; |
| | 31 | | private const string UpdateDeviceConfigurationValue = "updateDeviceConfiguration"; |
| | 32 | | private const string RebootDeviceValue = "rebootDevice"; |
| | 33 | | private const string FactoryResetDeviceValue = "factoryResetDevice"; |
| | 34 | | private const string FirmwareUpdateValue = "firmwareUpdate"; |
| | 35 | | private const string ScheduleDeviceMethodValue = "scheduleDeviceMethod"; |
| | 36 | | private const string ScheduleUpdateTwinValue = "scheduleUpdateTwin"; |
| | 37 | | private const string RestoreFromBackupValue = "restoreFromBackup"; |
| | 38 | | private const string FailoverDataCopyValue = "failoverDataCopy"; |
| | 39 | |
|
| | 40 | | /// <summary> unknown. </summary> |
| 0 | 41 | | public static JobPropertiesType Unknown { get; } = new JobPropertiesType(UnknownValue); |
| | 42 | | /// <summary> export. </summary> |
| 0 | 43 | | public static JobPropertiesType Export { get; } = new JobPropertiesType(ExportValue); |
| | 44 | | /// <summary> import. </summary> |
| 0 | 45 | | public static JobPropertiesType Import { get; } = new JobPropertiesType(ImportValue); |
| | 46 | | /// <summary> backup. </summary> |
| 0 | 47 | | public static JobPropertiesType Backup { get; } = new JobPropertiesType(BackupValue); |
| | 48 | | /// <summary> readDeviceProperties. </summary> |
| 0 | 49 | | public static JobPropertiesType ReadDeviceProperties { get; } = new JobPropertiesType(ReadDevicePropertiesValue) |
| | 50 | | /// <summary> writeDeviceProperties. </summary> |
| 0 | 51 | | public static JobPropertiesType WriteDeviceProperties { get; } = new JobPropertiesType(WriteDevicePropertiesValu |
| | 52 | | /// <summary> updateDeviceConfiguration. </summary> |
| 0 | 53 | | public static JobPropertiesType UpdateDeviceConfiguration { get; } = new JobPropertiesType(UpdateDeviceConfigura |
| | 54 | | /// <summary> rebootDevice. </summary> |
| 0 | 55 | | public static JobPropertiesType RebootDevice { get; } = new JobPropertiesType(RebootDeviceValue); |
| | 56 | | /// <summary> factoryResetDevice. </summary> |
| 0 | 57 | | public static JobPropertiesType FactoryResetDevice { get; } = new JobPropertiesType(FactoryResetDeviceValue); |
| | 58 | | /// <summary> firmwareUpdate. </summary> |
| 0 | 59 | | public static JobPropertiesType FirmwareUpdate { get; } = new JobPropertiesType(FirmwareUpdateValue); |
| | 60 | | /// <summary> scheduleDeviceMethod. </summary> |
| 0 | 61 | | public static JobPropertiesType ScheduleDeviceMethod { get; } = new JobPropertiesType(ScheduleDeviceMethodValue) |
| | 62 | | /// <summary> scheduleUpdateTwin. </summary> |
| 0 | 63 | | public static JobPropertiesType ScheduleUpdateTwin { get; } = new JobPropertiesType(ScheduleUpdateTwinValue); |
| | 64 | | /// <summary> restoreFromBackup. </summary> |
| 0 | 65 | | public static JobPropertiesType RestoreFromBackup { get; } = new JobPropertiesType(RestoreFromBackupValue); |
| | 66 | | /// <summary> failoverDataCopy. </summary> |
| 0 | 67 | | public static JobPropertiesType FailoverDataCopy { get; } = new JobPropertiesType(FailoverDataCopyValue); |
| | 68 | | /// <summary> Determines if two <see cref="JobPropertiesType"/> values are the same. </summary> |
| 0 | 69 | | public static bool operator ==(JobPropertiesType left, JobPropertiesType right) => left.Equals(right); |
| | 70 | | /// <summary> Determines if two <see cref="JobPropertiesType"/> values are not the same. </summary> |
| 0 | 71 | | public static bool operator !=(JobPropertiesType left, JobPropertiesType right) => !left.Equals(right); |
| | 72 | | /// <summary> Converts a string to a <see cref="JobPropertiesType"/>. </summary> |
| 0 | 73 | | public static implicit operator JobPropertiesType(string value) => new JobPropertiesType(value); |
| | 74 | |
|
| | 75 | | /// <inheritdoc /> |
| | 76 | | [EditorBrowsable(EditorBrowsableState.Never)] |
| 0 | 77 | | public override bool Equals(object obj) => obj is JobPropertiesType other && Equals(other); |
| | 78 | | /// <inheritdoc /> |
| 0 | 79 | | public bool Equals(JobPropertiesType other) => string.Equals(_value, other._value, StringComparison.InvariantCul |
| | 80 | |
|
| | 81 | | /// <inheritdoc /> |
| | 82 | | [EditorBrowsable(EditorBrowsableState.Never)] |
| 0 | 83 | | public override int GetHashCode() => _value?.GetHashCode() ?? 0; |
| | 84 | | /// <inheritdoc /> |
| 0 | 85 | | public override string ToString() => _value; |
| | 86 | | } |
| | 87 | | } |