From d056aef1a35c3a283734a52cfada099baf1a47df Mon Sep 17 00:00:00 2001 From: Mohit Chakraborty Date: Fri, 13 Aug 2021 11:26:19 -0700 Subject: [PATCH] Renamed PIIDetectionSkillMaskingMode.cs to PiiDetectionSkillMaskingMode.cs --- .../Models/PIIDetectionSkillMaskingMode.cs | 51 ------------------- 1 file changed, 51 deletions(-) delete mode 100644 sdk/search/Azure.Search.Documents/src/Generated/Models/PIIDetectionSkillMaskingMode.cs diff --git a/sdk/search/Azure.Search.Documents/src/Generated/Models/PIIDetectionSkillMaskingMode.cs b/sdk/search/Azure.Search.Documents/src/Generated/Models/PIIDetectionSkillMaskingMode.cs deleted file mode 100644 index 0c6970d3e4d22..0000000000000 --- a/sdk/search/Azure.Search.Documents/src/Generated/Models/PIIDetectionSkillMaskingMode.cs +++ /dev/null @@ -1,51 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -using System; -using System.ComponentModel; - -namespace Azure.Search.Documents.Indexes.Models -{ - /// A string indicating what maskingMode to use to mask the personal information detected in the input text. - public readonly partial struct PiiDetectionSkillMaskingMode : IEquatable - { - private readonly string _value; - - /// Determines if two values are the same. - /// is null. - public PiiDetectionSkillMaskingMode(string value) - { - _value = value ?? throw new ArgumentNullException(nameof(value)); - } - - private const string NoneValue = "none"; - private const string ReplaceValue = "replace"; - - /// No masking occurs and the maskedText output will not be returned. - public static PiiDetectionSkillMaskingMode None { get; } = new PiiDetectionSkillMaskingMode(NoneValue); - /// Replaces the detected entities with the character given in the maskingCharacter parameter. The character will be repeated to the length of the detected entity so that the offsets will correctly correspond to both the input text as well as the output maskedText. - public static PiiDetectionSkillMaskingMode Replace { get; } = new PiiDetectionSkillMaskingMode(ReplaceValue); - /// Determines if two values are the same. - public static bool operator ==(PiiDetectionSkillMaskingMode left, PiiDetectionSkillMaskingMode right) => left.Equals(right); - /// Determines if two values are not the same. - public static bool operator !=(PiiDetectionSkillMaskingMode left, PiiDetectionSkillMaskingMode right) => !left.Equals(right); - /// Converts a string to a . - public static implicit operator PiiDetectionSkillMaskingMode(string value) => new PiiDetectionSkillMaskingMode(value); - - /// - [EditorBrowsable(EditorBrowsableState.Never)] - public override bool Equals(object obj) => obj is PiiDetectionSkillMaskingMode other && Equals(other); - /// - public bool Equals(PiiDetectionSkillMaskingMode other) => string.Equals(_value, other._value, StringComparison.InvariantCultureIgnoreCase); - - /// - [EditorBrowsable(EditorBrowsableState.Never)] - public override int GetHashCode() => _value?.GetHashCode() ?? 0; - /// - public override string ToString() => _value; - } -}