< Summary

Class:Azure.Iot.Hub.Service.Models.JobResponseType
Assembly:Azure.Iot.Hub.Service
File(s):C:\Git\azure-sdk-for-net\sdk\iot\Azure.Iot.Hub.Service\src\Generated\Models\JobResponseType.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\JobResponseType.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 JobResponseType : IEquatable<JobResponseType>
 15    {
 16        private readonly string _value;
 17
 18        /// <summary> Determines if two <see cref="JobResponseType"/> values are the same. </summary>
 19        /// <exception cref="ArgumentNullException"> <paramref name="value"/> is null. </exception>
 20        public JobResponseType(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 JobResponseType Unknown { get; } = new JobResponseType(UnknownValue);
 42        /// <summary> export. </summary>
 043        public static JobResponseType Export { get; } = new JobResponseType(ExportValue);
 44        /// <summary> import. </summary>
 045        public static JobResponseType Import { get; } = new JobResponseType(ImportValue);
 46        /// <summary> backup. </summary>
 047        public static JobResponseType Backup { get; } = new JobResponseType(BackupValue);
 48        /// <summary> readDeviceProperties. </summary>
 049        public static JobResponseType ReadDeviceProperties { get; } = new JobResponseType(ReadDevicePropertiesValue);
 50        /// <summary> writeDeviceProperties. </summary>
 051        public static JobResponseType WriteDeviceProperties { get; } = new JobResponseType(WriteDevicePropertiesValue);
 52        /// <summary> updateDeviceConfiguration. </summary>
 053        public static JobResponseType UpdateDeviceConfiguration { get; } = new JobResponseType(UpdateDeviceConfiguration
 54        /// <summary> rebootDevice. </summary>
 055        public static JobResponseType RebootDevice { get; } = new JobResponseType(RebootDeviceValue);
 56        /// <summary> factoryResetDevice. </summary>
 057        public static JobResponseType FactoryResetDevice { get; } = new JobResponseType(FactoryResetDeviceValue);
 58        /// <summary> firmwareUpdate. </summary>
 059        public static JobResponseType FirmwareUpdate { get; } = new JobResponseType(FirmwareUpdateValue);
 60        /// <summary> scheduleDeviceMethod. </summary>
 061        public static JobResponseType ScheduleDeviceMethod { get; } = new JobResponseType(ScheduleDeviceMethodValue);
 62        /// <summary> scheduleUpdateTwin. </summary>
 063        public static JobResponseType ScheduleUpdateTwin { get; } = new JobResponseType(ScheduleUpdateTwinValue);
 64        /// <summary> restoreFromBackup. </summary>
 065        public static JobResponseType RestoreFromBackup { get; } = new JobResponseType(RestoreFromBackupValue);
 66        /// <summary> failoverDataCopy. </summary>
 067        public static JobResponseType FailoverDataCopy { get; } = new JobResponseType(FailoverDataCopyValue);
 68        /// <summary> Determines if two <see cref="JobResponseType"/> values are the same. </summary>
 069        public static bool operator ==(JobResponseType left, JobResponseType right) => left.Equals(right);
 70        /// <summary> Determines if two <see cref="JobResponseType"/> values are not the same. </summary>
 071        public static bool operator !=(JobResponseType left, JobResponseType right) => !left.Equals(right);
 72        /// <summary> Converts a string to a <see cref="JobResponseType"/>. </summary>
 073        public static implicit operator JobResponseType(string value) => new JobResponseType(value);
 74
 75        /// <inheritdoc />
 76        [EditorBrowsable(EditorBrowsableState.Never)]
 077        public override bool Equals(object obj) => obj is JobResponseType other && Equals(other);
 78        /// <inheritdoc />
 079        public bool Equals(JobResponseType other) => string.Equals(_value, other._value, StringComparison.InvariantCultu
 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}