< Summary

Class:Azure.ResourceManager.Network.Models.IkeEncryption
Assembly:Azure.ResourceManager.Network
File(s):C:\Git\azure-sdk-for-net\sdk\network\Azure.ResourceManager.Network\src\Generated\Models\IkeEncryption.cs
Covered lines:6
Uncovered lines:10
Coverable lines:16
Total lines:65
Line coverage:37.5% (6 of 16)
Covered branches:1
Total branches:6
Branch coverage:16.6% (1 of 6)

Metrics

MethodCyclomatic complexity Line coverage Branch coverage
.ctor(...)-100%50%
get_DES()-0%100%
get_DES3()-0%100%
get_AES128()-0%100%
get_AES192()-100%100%
get_AES256()-100%100%
get_Gcmaes256()-0%100%
get_Gcmaes128()-0%100%
op_Equality(...)-0%100%
op_Inequality(...)-0%100%
op_Implicit(...)-0%100%
Equals(...)-0%0%
Equals(...)-100%100%
GetHashCode()-0%0%
ToString()-100%100%

File(s)

C:\Git\azure-sdk-for-net\sdk\network\Azure.ResourceManager.Network\src\Generated\Models\IkeEncryption.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.ResourceManager.Network.Models
 12{
 13    /// <summary> The IKE encryption algorithm (IKE phase 2). </summary>
 14    public readonly partial struct IkeEncryption : IEquatable<IkeEncryption>
 15    {
 16        private readonly string _value;
 17
 18        /// <summary> Determines if two <see cref="IkeEncryption"/> values are the same. </summary>
 19        public IkeEncryption(string value)
 20        {
 3021            _value = value ?? throw new ArgumentNullException(nameof(value));
 3022        }
 23
 24        private const string DESValue = "DES";
 25        private const string DES3Value = "DES3";
 26        private const string AES128Value = "AES128";
 27        private const string AES192Value = "AES192";
 28        private const string AES256Value = "AES256";
 29        private const string Gcmaes256Value = "GCMAES256";
 30        private const string Gcmaes128Value = "GCMAES128";
 31
 32        /// <summary> DES. </summary>
 033        public static IkeEncryption DES { get; } = new IkeEncryption(DESValue);
 34        /// <summary> DES3. </summary>
 035        public static IkeEncryption DES3 { get; } = new IkeEncryption(DES3Value);
 36        /// <summary> AES128. </summary>
 037        public static IkeEncryption AES128 { get; } = new IkeEncryption(AES128Value);
 38        /// <summary> AES192. </summary>
 639        public static IkeEncryption AES192 { get; } = new IkeEncryption(AES192Value);
 40        /// <summary> AES256. </summary>
 641        public static IkeEncryption AES256 { get; } = new IkeEncryption(AES256Value);
 42        /// <summary> GCMAES256. </summary>
 043        public static IkeEncryption Gcmaes256 { get; } = new IkeEncryption(Gcmaes256Value);
 44        /// <summary> GCMAES128. </summary>
 045        public static IkeEncryption Gcmaes128 { get; } = new IkeEncryption(Gcmaes128Value);
 46        /// <summary> Determines if two <see cref="IkeEncryption"/> values are the same. </summary>
 047        public static bool operator ==(IkeEncryption left, IkeEncryption right) => left.Equals(right);
 48        /// <summary> Determines if two <see cref="IkeEncryption"/> values are not the same. </summary>
 049        public static bool operator !=(IkeEncryption left, IkeEncryption right) => !left.Equals(right);
 50        /// <summary> Converts a string to a <see cref="IkeEncryption"/>. </summary>
 051        public static implicit operator IkeEncryption(string value) => new IkeEncryption(value);
 52
 53        /// <inheritdoc />
 54        [EditorBrowsable(EditorBrowsableState.Never)]
 055        public override bool Equals(object obj) => obj is IkeEncryption other && Equals(other);
 56        /// <inheritdoc />
 857        public bool Equals(IkeEncryption other) => string.Equals(_value, other._value, StringComparison.InvariantCulture
 58
 59        /// <inheritdoc />
 60        [EditorBrowsable(EditorBrowsableState.Never)]
 061        public override int GetHashCode() => _value?.GetHashCode() ?? 0;
 62        /// <inheritdoc />
 1663        public override string ToString() => _value;
 64    }
 65}