< Summary

Class:Azure.Analytics.Synapse.Artifacts.Models.AzureFunctionActivityMethod
Assembly:Azure.Analytics.Synapse.Artifacts
File(s):C:\Git\azure-sdk-for-net\sdk\synapse\Azure.Analytics.Synapse.Artifacts\src\Generated\Models\AzureFunctionActivityMethod.cs
Covered lines:0
Uncovered lines:16
Coverable lines:16
Total lines:66
Line coverage:0% (0 of 16)
Covered branches:0
Total branches:6
Branch coverage:0% (0 of 6)

Metrics

MethodCyclomatic complexity Line coverage Branch coverage
.ctor(...)-0%0%
get_GET()-0%100%
get_Post()-0%100%
get_PUT()-0%100%
get_Delete()-0%100%
get_Options()-0%100%
get_Head()-0%100%
get_Trace()-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\synapse\Azure.Analytics.Synapse.Artifacts\src\Generated\Models\AzureFunctionActivityMethod.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.Analytics.Synapse.Artifacts.Models
 12{
 13    /// <summary> The list of HTTP methods supported by a AzureFunctionActivity. </summary>
 14    public readonly partial struct AzureFunctionActivityMethod : IEquatable<AzureFunctionActivityMethod>
 15    {
 16        private readonly string _value;
 17
 18        /// <summary> Determines if two <see cref="AzureFunctionActivityMethod"/> values are the same. </summary>
 19        /// <exception cref="ArgumentNullException"> <paramref name="value"/> is null. </exception>
 20        public AzureFunctionActivityMethod(string value)
 21        {
 022            _value = value ?? throw new ArgumentNullException(nameof(value));
 023        }
 24
 25        private const string GETValue = "GET";
 26        private const string PostValue = "POST";
 27        private const string PUTValue = "PUT";
 28        private const string DeleteValue = "DELETE";
 29        private const string OptionsValue = "OPTIONS";
 30        private const string HeadValue = "HEAD";
 31        private const string TraceValue = "TRACE";
 32
 33        /// <summary> GET. </summary>
 034        public static AzureFunctionActivityMethod GET { get; } = new AzureFunctionActivityMethod(GETValue);
 35        /// <summary> POST. </summary>
 036        public static AzureFunctionActivityMethod Post { get; } = new AzureFunctionActivityMethod(PostValue);
 37        /// <summary> PUT. </summary>
 038        public static AzureFunctionActivityMethod PUT { get; } = new AzureFunctionActivityMethod(PUTValue);
 39        /// <summary> DELETE. </summary>
 040        public static AzureFunctionActivityMethod Delete { get; } = new AzureFunctionActivityMethod(DeleteValue);
 41        /// <summary> OPTIONS. </summary>
 042        public static AzureFunctionActivityMethod Options { get; } = new AzureFunctionActivityMethod(OptionsValue);
 43        /// <summary> HEAD. </summary>
 044        public static AzureFunctionActivityMethod Head { get; } = new AzureFunctionActivityMethod(HeadValue);
 45        /// <summary> TRACE. </summary>
 046        public static AzureFunctionActivityMethod Trace { get; } = new AzureFunctionActivityMethod(TraceValue);
 47        /// <summary> Determines if two <see cref="AzureFunctionActivityMethod"/> values are the same. </summary>
 048        public static bool operator ==(AzureFunctionActivityMethod left, AzureFunctionActivityMethod right) => left.Equa
 49        /// <summary> Determines if two <see cref="AzureFunctionActivityMethod"/> values are not the same. </summary>
 050        public static bool operator !=(AzureFunctionActivityMethod left, AzureFunctionActivityMethod right) => !left.Equ
 51        /// <summary> Converts a string to a <see cref="AzureFunctionActivityMethod"/>. </summary>
 052        public static implicit operator AzureFunctionActivityMethod(string value) => new AzureFunctionActivityMethod(val
 53
 54        /// <inheritdoc />
 55        [EditorBrowsable(EditorBrowsableState.Never)]
 056        public override bool Equals(object obj) => obj is AzureFunctionActivityMethod other && Equals(other);
 57        /// <inheritdoc />
 058        public bool Equals(AzureFunctionActivityMethod other) => string.Equals(_value, other._value, StringComparison.In
 59
 60        /// <inheritdoc />
 61        [EditorBrowsable(EditorBrowsableState.Never)]
 062        public override int GetHashCode() => _value?.GetHashCode() ?? 0;
 63        /// <inheritdoc />
 064        public override string ToString() => _value;
 65    }
 66}