< Summary

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