< Summary

Class:Azure.Iot.Hub.Service.Models.JobRequestType
Assembly:Azure.Iot.Hub.Service
File(s):C:\Git\azure-sdk-for-net\sdk\iot\Azure.Iot.Hub.Service\src\Generated\Models\JobRequestType.cs
Covered lines:0
Uncovered lines:23
Coverable lines:23
Total lines:87
Line coverage:0% (0 of 23)
Covered branches:0
Total branches:6
Branch coverage:0% (0 of 6)

Metrics

MethodCyclomatic complexity Line coverage Branch coverage
.ctor(...)-0%0%
get_Unknown()-0%100%
get_Export()-0%100%
get_Import()-0%100%
get_Backup()-0%100%
get_ReadDeviceProperties()-0%100%
get_WriteDeviceProperties()-0%100%
get_UpdateDeviceConfiguration()-0%100%
get_RebootDevice()-0%100%
get_FactoryResetDevice()-0%100%
get_FirmwareUpdate()-0%100%
get_ScheduleDeviceMethod()-0%100%
get_ScheduleUpdateTwin()-0%100%
get_RestoreFromBackup()-0%100%
get_FailoverDataCopy()-0%100%
op_Equality(...)-0%100%
op_Inequality(...)-0%100%
op_Implicit(...)-0%100%
Equals(...)-0%0%
Equals(...)-0%100%
GetHashCode()-0%0%
ToString()-0%100%

File(s)

C:\Git\azure-sdk-for-net\sdk\iot\Azure.Iot.Hub.Service\src\Generated\Models\JobRequestType.cs

#LineLine coverage
 1// Copyright (c) Microsoft Corporation. All rights reserved.
 2// Licensed under the MIT License.
 3
 4// <auto-generated/>
 5
 6#nullable disable
 7
 8using System;
 9using System.ComponentModel;
 10
 11namespace Azure.Iot.Hub.Service.Models
 12{
 13    /// <summary> The job type. </summary>
 14    public readonly partial struct JobRequestType : IEquatable<JobRequestType>
 15    {
 16        private readonly string _value;
 17
 18        /// <summary> Determines if two <see cref="JobRequestType"/> values are the same. </summary>
 19        /// <exception cref="ArgumentNullException"> <paramref name="value"/> is null. </exception>
 20        public JobRequestType(string value)
 21        {
 022            _value = value ?? throw new ArgumentNullException(nameof(value));
 023        }
 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>
 041        public static JobRequestType Unknown { get; } = new JobRequestType(UnknownValue);
 42        /// <summary> export. </summary>
 043        public static JobRequestType Export { get; } = new JobRequestType(ExportValue);
 44        /// <summary> import. </summary>
 045        public static JobRequestType Import { get; } = new JobRequestType(ImportValue);
 46        /// <summary> backup. </summary>
 047        public static JobRequestType Backup { get; } = new JobRequestType(BackupValue);
 48        /// <summary> readDeviceProperties. </summary>
 049        public static JobRequestType ReadDeviceProperties { get; } = new JobRequestType(ReadDevicePropertiesValue);
 50        /// <summary> writeDeviceProperties. </summary>
 051        public static JobRequestType WriteDeviceProperties { get; } = new JobRequestType(WriteDevicePropertiesValue);
 52        /// <summary> updateDeviceConfiguration. </summary>
 053        public static JobRequestType UpdateDeviceConfiguration { get; } = new JobRequestType(UpdateDeviceConfigurationVa
 54        /// <summary> rebootDevice. </summary>
 055        public static JobRequestType RebootDevice { get; } = new JobRequestType(RebootDeviceValue);
 56        /// <summary> factoryResetDevice. </summary>
 057        public static JobRequestType FactoryResetDevice { get; } = new JobRequestType(FactoryResetDeviceValue);
 58        /// <summary> firmwareUpdate. </summary>
 059        public static JobRequestType FirmwareUpdate { get; } = new JobRequestType(FirmwareUpdateValue);
 60        /// <summary> scheduleDeviceMethod. </summary>
 061        public static JobRequestType ScheduleDeviceMethod { get; } = new JobRequestType(ScheduleDeviceMethodValue);
 62        /// <summary> scheduleUpdateTwin. </summary>
 063        public static JobRequestType ScheduleUpdateTwin { get; } = new JobRequestType(ScheduleUpdateTwinValue);
 64        /// <summary> restoreFromBackup. </summary>
 065        public static JobRequestType RestoreFromBackup { get; } = new JobRequestType(RestoreFromBackupValue);
 66        /// <summary> failoverDataCopy. </summary>
 067        public static JobRequestType FailoverDataCopy { get; } = new JobRequestType(FailoverDataCopyValue);
 68        /// <summary> Determines if two <see cref="JobRequestType"/> values are the same. </summary>
 069        public static bool operator ==(JobRequestType left, JobRequestType right) => left.Equals(right);
 70        /// <summary> Determines if two <see cref="JobRequestType"/> values are not the same. </summary>
 071        public static bool operator !=(JobRequestType left, JobRequestType right) => !left.Equals(right);
 72        /// <summary> Converts a string to a <see cref="JobRequestType"/>. </summary>
 073        public static implicit operator JobRequestType(string value) => new JobRequestType(value);
 74
 75        /// <inheritdoc />
 76        [EditorBrowsable(EditorBrowsableState.Never)]
 077        public override bool Equals(object obj) => obj is JobRequestType other && Equals(other);
 78        /// <inheritdoc />
 079        public bool Equals(JobRequestType other) => string.Equals(_value, other._value, StringComparison.InvariantCultur
 80
 81        /// <inheritdoc />
 82        [EditorBrowsable(EditorBrowsableState.Never)]
 083        public override int GetHashCode() => _value?.GetHashCode() ?? 0;
 84        /// <inheritdoc />
 085        public override string ToString() => _value;
 86    }
 87}