-
Notifications
You must be signed in to change notification settings - Fork 4.5k
/
TranslationGlossary.cs
41 lines (36 loc) · 1.59 KB
/
TranslationGlossary.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
using System;
using Azure.Core;
namespace Azure.AI.Translation.Document
{
[CodeGenModel("Glossary")]
public partial class TranslationGlossary
{
/// <summary>
/// Location of the glossary file. This should be a SAS URL to
/// the glossary file in the storage blob container. If the translation language pair is
/// not present in the glossary, it will not be applied.
/// </summary>
[CodeGenMember("GlossaryUrl")]
public Uri GlossaryUri { get; }
/// <summary>
/// Storage Source. Default value: "AzureBlob".
/// Currently only "AzureBlob" is supported.
/// </summary>
[CodeGenMember("StorageSource")]
internal string StorageSource { get; set; }
/// <summary>
/// Optional file format version. If not specified, the service will
/// use the <see cref="DocumentTranslationFileFormat.DefaultFormatVersion"/> for the file format returned from the
/// <see cref="DocumentTranslationClient.GetSupportedGlossaryFormatsAsync(System.Threading.CancellationToken)"/> client method.
/// </summary>
[CodeGenMember("Version")]
public string FormatVersion { get; set; }
/// <summary>
/// Format of the glossary file. To see supported formats,
/// use the <see cref="DocumentTranslationClient.GetSupportedGlossaryFormatsAsync(System.Threading.CancellationToken)"/> client method.
/// </summary>
public string Format { get; }
}
}