Skip to content

Commit c324680

Browse files
authored
ext enum -> enum (Azure#22751)
1 parent 6bf5432 commit c324680

File tree

5 files changed

+44
-69
lines changed

5 files changed

+44
-69
lines changed

sdk/translation/Azure.AI.Translation.Document/api/Azure.AI.Translation.Document.netstandard2.0.cs

Lines changed: 3 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -155,23 +155,10 @@ internal FileFormat() { }
155155
public string Format { get { throw null; } }
156156
public System.Collections.Generic.IReadOnlyList<string> FormatVersions { get { throw null; } }
157157
}
158-
[System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)]
159-
public readonly partial struct StorageInputType : System.IEquatable<Azure.AI.Translation.Document.StorageInputType>
158+
public enum StorageInputType
160159
{
161-
private readonly object _dummy;
162-
private readonly int _dummyPrimitive;
163-
public StorageInputType(string value) { throw null; }
164-
public static Azure.AI.Translation.Document.StorageInputType File { get { throw null; } }
165-
public static Azure.AI.Translation.Document.StorageInputType Folder { get { throw null; } }
166-
public bool Equals(Azure.AI.Translation.Document.StorageInputType other) { throw null; }
167-
[System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)]
168-
public override bool Equals(object obj) { throw null; }
169-
[System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)]
170-
public override int GetHashCode() { throw null; }
171-
public static bool operator ==(Azure.AI.Translation.Document.StorageInputType left, Azure.AI.Translation.Document.StorageInputType right) { throw null; }
172-
public static implicit operator Azure.AI.Translation.Document.StorageInputType (string value) { throw null; }
173-
public static bool operator !=(Azure.AI.Translation.Document.StorageInputType left, Azure.AI.Translation.Document.StorageInputType right) { throw null; }
174-
public override string ToString() { throw null; }
160+
File = 0,
161+
Folder = 1,
175162
}
176163
public partial class TranslationGlossary
177164
{

sdk/translation/Azure.AI.Translation.Document/src/Generated/Models/DocumentTranslationInput.Serialization.cs

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

sdk/translation/Azure.AI.Translation.Document/src/Generated/Models/StorageInputType.Serialization.cs

Lines changed: 28 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

sdk/translation/Azure.AI.Translation.Document/src/Generated/Models/StorageInputType.cs

Lines changed: 0 additions & 51 deletions
This file was deleted.

sdk/translation/Azure.AI.Translation.Document/src/StorageInputType.cs

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,19 @@
55

66
namespace Azure.AI.Translation.Document
77
{
8+
/// <summary>
9+
/// Storage type of the input documents source.
10+
/// </summary>
811
[CodeGenModel("StorageInputType")]
9-
public readonly partial struct StorageInputType
12+
public enum StorageInputType
1013
{
14+
/// <summary>
15+
/// File
16+
/// </summary>
17+
File,
18+
/// <summary>
19+
/// Folder
20+
/// </summary>
21+
Folder
1122
}
1223
}

0 commit comments

Comments
 (0)