Skip to content

Commit cd2f75e

Browse files
authored
[documenttranslation] Add generated code (Azure#19307)
1 parent 10d67c0 commit cd2f75e

File tree

68 files changed

+3651
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

68 files changed

+3651
-0
lines changed
Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
2+
Microsoft Visual Studio Solution File, Format Version 12.00
3+
# Visual Studio Version 16
4+
VisualStudioVersion = 16.0.30804.86
5+
MinimumVisualStudioVersion = 10.0.40219.1
6+
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Azure.AI.DocumentTranslation", "src\Azure.AI.DocumentTranslation.csproj", "{6BE1651C-C3F6-4363-8717-FFF1D95A3643}"
7+
EndProject
8+
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Azure.Core.TestFramework", "..\..\core\Azure.Core.TestFramework\src\Azure.Core.TestFramework.csproj", "{439F1494-8E96-4931-AB0A-5BBA7EBA15D2}"
9+
EndProject
10+
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Azure.AI.DocumentTranslation.Tests", "tests\Azure.AI.DocumentTranslation.Tests.csproj", "{764BFCBB-D8FD-401A-8075-B8F5F10B4991}"
11+
EndProject
12+
Global
13+
GlobalSection(SolutionConfigurationPlatforms) = preSolution
14+
Debug|Any CPU = Debug|Any CPU
15+
Release|Any CPU = Release|Any CPU
16+
EndGlobalSection
17+
GlobalSection(ProjectConfigurationPlatforms) = postSolution
18+
{6BE1651C-C3F6-4363-8717-FFF1D95A3643}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
19+
{6BE1651C-C3F6-4363-8717-FFF1D95A3643}.Debug|Any CPU.Build.0 = Debug|Any CPU
20+
{6BE1651C-C3F6-4363-8717-FFF1D95A3643}.Release|Any CPU.ActiveCfg = Release|Any CPU
21+
{6BE1651C-C3F6-4363-8717-FFF1D95A3643}.Release|Any CPU.Build.0 = Release|Any CPU
22+
{439F1494-8E96-4931-AB0A-5BBA7EBA15D2}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
23+
{439F1494-8E96-4931-AB0A-5BBA7EBA15D2}.Debug|Any CPU.Build.0 = Debug|Any CPU
24+
{439F1494-8E96-4931-AB0A-5BBA7EBA15D2}.Release|Any CPU.ActiveCfg = Release|Any CPU
25+
{439F1494-8E96-4931-AB0A-5BBA7EBA15D2}.Release|Any CPU.Build.0 = Release|Any CPU
26+
{764BFCBB-D8FD-401A-8075-B8F5F10B4991}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
27+
{764BFCBB-D8FD-401A-8075-B8F5F10B4991}.Debug|Any CPU.Build.0 = Debug|Any CPU
28+
{764BFCBB-D8FD-401A-8075-B8F5F10B4991}.Release|Any CPU.ActiveCfg = Release|Any CPU
29+
{764BFCBB-D8FD-401A-8075-B8F5F10B4991}.Release|Any CPU.Build.0 = Release|Any CPU
30+
EndGlobalSection
31+
GlobalSection(SolutionProperties) = preSolution
32+
HideSolutionNode = FALSE
33+
EndGlobalSection
34+
GlobalSection(ExtensibilityGlobals) = postSolution
35+
SolutionGuid = {8D666E36-4E75-45B1-A13C-7402F1D66074}
36+
EndGlobalSection
37+
EndGlobal
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# Release History
2+
3+
## 1.0.0-preview.1 (Unreleased)
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
<Project ToolsVersion="15.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
2+
<!--
3+
Add any shared properties you want for the projects under this package directory that need to be set before the auto imported Directory.Build.props
4+
-->
5+
<Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory).., Directory.Build.props))\Directory.Build.props" />
6+
</Project>
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
# Azure Cognitive Services Document Translation client library for .NET
2+
3+
## Getting started
4+
5+
### Install the package
6+
7+
### Prerequisites
8+
9+
### Authenticate the client
10+
11+
## Key concepts
12+
13+
## Examples
14+
15+
## Troubleshooting
16+
17+
## Next steps
18+
19+
## Contributing
Lines changed: 165 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,165 @@
1+
namespace Azure.AI.DocumentTranslation.Models
2+
{
3+
public partial class DocumentFilter
4+
{
5+
public DocumentFilter() { }
6+
public string Prefix { get { throw null; } set { } }
7+
public string Suffix { get { throw null; } set { } }
8+
}
9+
public partial class DocumentStatusDetail
10+
{
11+
internal DocumentStatusDetail() { }
12+
public long? CharacterCharged { get { throw null; } }
13+
public System.DateTimeOffset CreatedOn { get { throw null; } }
14+
public Azure.AI.DocumentTranslation.Models.DocumentTranslationError Error { get { throw null; } }
15+
public string Id { get { throw null; } }
16+
public System.DateTimeOffset LastModified { get { throw null; } }
17+
public Azure.AI.DocumentTranslation.Models.TranslationStatus Status { get { throw null; } }
18+
public string TranslateTo { get { throw null; } }
19+
public float TranslationProgress { get { throw null; } }
20+
public System.Uri Url { get { throw null; } }
21+
}
22+
public partial class DocumentTranslationError
23+
{
24+
internal DocumentTranslationError() { }
25+
public Azure.AI.DocumentTranslation.Models.DocumentTranslationErrorCode? Code { get { throw null; } }
26+
public Azure.AI.DocumentTranslation.Models.DocumentTranslationInnerError InnerError { get { throw null; } }
27+
public string Message { get { throw null; } }
28+
public string Target { get { throw null; } }
29+
}
30+
[System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)]
31+
public readonly partial struct DocumentTranslationErrorCode : System.IEquatable<Azure.AI.DocumentTranslation.Models.DocumentTranslationErrorCode>
32+
{
33+
private readonly object _dummy;
34+
private readonly int _dummyPrimitive;
35+
public DocumentTranslationErrorCode(string value) { throw null; }
36+
public static Azure.AI.DocumentTranslation.Models.DocumentTranslationErrorCode InternalServerError { get { throw null; } }
37+
public static Azure.AI.DocumentTranslation.Models.DocumentTranslationErrorCode InvalidArgument { get { throw null; } }
38+
public static Azure.AI.DocumentTranslation.Models.DocumentTranslationErrorCode InvalidRequest { get { throw null; } }
39+
public static Azure.AI.DocumentTranslation.Models.DocumentTranslationErrorCode RequestRateTooHigh { get { throw null; } }
40+
public static Azure.AI.DocumentTranslation.Models.DocumentTranslationErrorCode ResourceNotFound { get { throw null; } }
41+
public static Azure.AI.DocumentTranslation.Models.DocumentTranslationErrorCode ServiceUnavailable { get { throw null; } }
42+
public static Azure.AI.DocumentTranslation.Models.DocumentTranslationErrorCode Unauthorized { get { throw null; } }
43+
public bool Equals(Azure.AI.DocumentTranslation.Models.DocumentTranslationErrorCode other) { throw null; }
44+
[System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)]
45+
public override bool Equals(object obj) { throw null; }
46+
[System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)]
47+
public override int GetHashCode() { throw null; }
48+
public static bool operator ==(Azure.AI.DocumentTranslation.Models.DocumentTranslationErrorCode left, Azure.AI.DocumentTranslation.Models.DocumentTranslationErrorCode right) { throw null; }
49+
public static implicit operator Azure.AI.DocumentTranslation.Models.DocumentTranslationErrorCode (string value) { throw null; }
50+
public static bool operator !=(Azure.AI.DocumentTranslation.Models.DocumentTranslationErrorCode left, Azure.AI.DocumentTranslation.Models.DocumentTranslationErrorCode right) { throw null; }
51+
public override string ToString() { throw null; }
52+
}
53+
public partial class DocumentTranslationInnerError
54+
{
55+
internal DocumentTranslationInnerError() { }
56+
public string Code { get { throw null; } }
57+
public Azure.AI.DocumentTranslation.Models.DocumentTranslationInnerError InnerError { get { throw null; } }
58+
public string Message { get { throw null; } }
59+
public string Target { get { throw null; } }
60+
}
61+
[System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)]
62+
public readonly partial struct StorageSource : System.IEquatable<Azure.AI.DocumentTranslation.Models.StorageSource>
63+
{
64+
private readonly object _dummy;
65+
private readonly int _dummyPrimitive;
66+
public StorageSource(string value) { throw null; }
67+
public static Azure.AI.DocumentTranslation.Models.StorageSource AzureBlob { get { throw null; } }
68+
public bool Equals(Azure.AI.DocumentTranslation.Models.StorageSource other) { throw null; }
69+
[System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)]
70+
public override bool Equals(object obj) { throw null; }
71+
[System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)]
72+
public override int GetHashCode() { throw null; }
73+
public static bool operator ==(Azure.AI.DocumentTranslation.Models.StorageSource left, Azure.AI.DocumentTranslation.Models.StorageSource right) { throw null; }
74+
public static implicit operator Azure.AI.DocumentTranslation.Models.StorageSource (string value) { throw null; }
75+
public static bool operator !=(Azure.AI.DocumentTranslation.Models.StorageSource left, Azure.AI.DocumentTranslation.Models.StorageSource right) { throw null; }
76+
public override string ToString() { throw null; }
77+
}
78+
[System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)]
79+
public readonly partial struct StorageType : System.IEquatable<Azure.AI.DocumentTranslation.Models.StorageType>
80+
{
81+
private readonly object _dummy;
82+
private readonly int _dummyPrimitive;
83+
public StorageType(string value) { throw null; }
84+
public static Azure.AI.DocumentTranslation.Models.StorageType File { get { throw null; } }
85+
public static Azure.AI.DocumentTranslation.Models.StorageType Folder { get { throw null; } }
86+
public bool Equals(Azure.AI.DocumentTranslation.Models.StorageType other) { throw null; }
87+
[System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)]
88+
public override bool Equals(object obj) { throw null; }
89+
[System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)]
90+
public override int GetHashCode() { throw null; }
91+
public static bool operator ==(Azure.AI.DocumentTranslation.Models.StorageType left, Azure.AI.DocumentTranslation.Models.StorageType right) { throw null; }
92+
public static implicit operator Azure.AI.DocumentTranslation.Models.StorageType (string value) { throw null; }
93+
public static bool operator !=(Azure.AI.DocumentTranslation.Models.StorageType left, Azure.AI.DocumentTranslation.Models.StorageType right) { throw null; }
94+
public override string ToString() { throw null; }
95+
}
96+
public partial class TranslationConfiguration
97+
{
98+
public TranslationConfiguration(Azure.AI.DocumentTranslation.Models.TranslationSource source, System.Collections.Generic.IEnumerable<Azure.AI.DocumentTranslation.Models.TranslationTarget> targets) { }
99+
public Azure.AI.DocumentTranslation.Models.TranslationSource Source { get { throw null; } }
100+
public Azure.AI.DocumentTranslation.Models.StorageType? StorageType { get { throw null; } set { } }
101+
public System.Collections.Generic.IList<Azure.AI.DocumentTranslation.Models.TranslationTarget> Targets { get { throw null; } }
102+
}
103+
public partial class TranslationGlossary
104+
{
105+
public TranslationGlossary(System.Uri glossaryUrl) { }
106+
public string FormatVersion { get { throw null; } set { } }
107+
public System.Uri GlossaryUrl { get { throw null; } }
108+
public string Version { get { throw null; } set { } }
109+
}
110+
public partial class TranslationSource
111+
{
112+
public TranslationSource(System.Uri sourceUrl) { }
113+
public Azure.AI.DocumentTranslation.Models.DocumentFilter Filter { get { throw null; } set { } }
114+
public string Language { get { throw null; } set { } }
115+
public System.Uri SourceUrl { get { throw null; } }
116+
}
117+
[System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)]
118+
public readonly partial struct TranslationStatus : System.IEquatable<Azure.AI.DocumentTranslation.Models.TranslationStatus>
119+
{
120+
private readonly object _dummy;
121+
private readonly int _dummyPrimitive;
122+
public TranslationStatus(string value) { throw null; }
123+
public static Azure.AI.DocumentTranslation.Models.TranslationStatus Cancelled { get { throw null; } }
124+
public static Azure.AI.DocumentTranslation.Models.TranslationStatus Cancelling { get { throw null; } }
125+
public static Azure.AI.DocumentTranslation.Models.TranslationStatus Failed { get { throw null; } }
126+
public static Azure.AI.DocumentTranslation.Models.TranslationStatus NotStarted { get { throw null; } }
127+
public static Azure.AI.DocumentTranslation.Models.TranslationStatus Running { get { throw null; } }
128+
public static Azure.AI.DocumentTranslation.Models.TranslationStatus Succeeded { get { throw null; } }
129+
public static Azure.AI.DocumentTranslation.Models.TranslationStatus ValidationFailed { get { throw null; } }
130+
public bool Equals(Azure.AI.DocumentTranslation.Models.TranslationStatus other) { throw null; }
131+
[System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)]
132+
public override bool Equals(object obj) { throw null; }
133+
[System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)]
134+
public override int GetHashCode() { throw null; }
135+
public static bool operator ==(Azure.AI.DocumentTranslation.Models.TranslationStatus left, Azure.AI.DocumentTranslation.Models.TranslationStatus right) { throw null; }
136+
public static implicit operator Azure.AI.DocumentTranslation.Models.TranslationStatus (string value) { throw null; }
137+
public static bool operator !=(Azure.AI.DocumentTranslation.Models.TranslationStatus left, Azure.AI.DocumentTranslation.Models.TranslationStatus right) { throw null; }
138+
public override string ToString() { throw null; }
139+
}
140+
public partial class TranslationStatusDetail
141+
{
142+
internal TranslationStatusDetail() { }
143+
public System.DateTimeOffset CreatedOn { get { throw null; } }
144+
public int DocumentsCancelled { get { throw null; } }
145+
public int DocumentsFailed { get { throw null; } }
146+
public int DocumentsInProgress { get { throw null; } }
147+
public int DocumentsNotStarted { get { throw null; } }
148+
public int DocumentsSucceeded { get { throw null; } }
149+
public int DocumentsTotal { get { throw null; } }
150+
public Azure.AI.DocumentTranslation.Models.DocumentTranslationError Error { get { throw null; } }
151+
public string Id { get { throw null; } }
152+
public System.DateTimeOffset LastModified { get { throw null; } }
153+
public Azure.AI.DocumentTranslation.Models.TranslationStatus Status { get { throw null; } }
154+
public long TotalCharacterCharged { get { throw null; } }
155+
}
156+
public partial class TranslationTarget
157+
{
158+
public TranslationTarget(System.Uri targetUrl, string language) { }
159+
public TranslationTarget(System.Uri targetUrl, string language, System.Collections.Generic.IList<Azure.AI.DocumentTranslation.Models.TranslationGlossary> glossaries) { }
160+
public string Category { get { throw null; } set { } }
161+
public System.Collections.Generic.IList<Azure.AI.DocumentTranslation.Models.TranslationGlossary> Glossaries { get { throw null; } }
162+
public string Language { get { throw null; } }
163+
public System.Uri TargetUrl { get { throw null; } }
164+
}
165+
}
Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
<Project Sdk="Microsoft.NET.Sdk">
2+
3+
<PropertyGroup>
4+
<Description>Translator is a cloud-based machine translation service and is part of the Azure Cognitive Services family of cognitive APIs used to build intelligent apps. Translator is easy to integrate in your applications, websites, tools, and solutions. It allows you to add multi-language user experiences in 90 languages and dialects. And it can be used on any hardware platform with any operating system for text translation.</Description>
5+
<AssemblyTitle>Microsoft Azure.AI.DocumentTranslation client library</AssemblyTitle>
6+
<Version>1.0.0-preview.1</Version>
7+
<PackageTags>Microsoft Azure Document Translation</PackageTags>
8+
<TargetFrameworks>$(RequiredTargetFrameworks)</TargetFrameworks>
9+
</PropertyGroup>
10+
11+
<ItemGroup>
12+
<PackageReference Include="System.Text.Json" />
13+
</ItemGroup>
14+
15+
<!-- Import the Azure.Core project -->
16+
<Import Project="$(MSBuildThisFileDirectory)..\..\..\core\Azure.Core\src\Azure.Core.props" />
17+
<ItemGroup>
18+
<Compile Include="$(AzureCoreSharedSources)Argument.cs" LinkBase="Shared" />
19+
<Compile Include="$(AzureCoreSharedSources)ArrayBufferWriter.cs" LinkBase="Shared" />
20+
<Compile Include="$(AzureCoreSharedSources)ClientDiagnostics.cs" LinkBase="Shared" />
21+
<Compile Include="$(AzureCoreSharedSources)HttpMessageSanitizer.cs" LinkBase="Shared" />
22+
<Compile Include="$(AzureCoreSharedSources)ContentTypeUtilities.cs" LinkBase="Shared" />
23+
<Compile Include="$(AzureCoreSharedSources)DiagnosticScope.cs" LinkBase="Shared" />
24+
<Compile Include="$(AzureCoreSharedSources)HashCodeBuilder.cs" LinkBase="Shared" />
25+
<Compile Include="$(AzureCoreSharedSources)PageResponseEnumerator.cs" LinkBase="Shared" />
26+
<Compile Include="$(AzureCoreSharedSources)DiagnosticScopeFactory.cs" LinkBase="Shared" />
27+
<Compile Include="$(AzureCoreSharedSources)TaskExtensions.cs" LinkBase="Shared" />
28+
<Compile Include="$(AzureCoreSharedSources)AzureKeyCredentialPolicy.cs" LinkBase="Shared" />
29+
</ItemGroup>
30+
31+
</Project>

sdk/documenttranslation/Azure.AI.DocumentTranslation/src/Generated/DocumentTranslationGetDocumentStatusHeaders.cs

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

sdk/documenttranslation/Azure.AI.DocumentTranslation/src/Generated/DocumentTranslationGetOperationDocumentsStatusHeaders.cs

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

sdk/documenttranslation/Azure.AI.DocumentTranslation/src/Generated/DocumentTranslationGetOperationStatusHeaders.cs

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

sdk/documenttranslation/Azure.AI.DocumentTranslation/src/Generated/DocumentTranslationGetOperationsHeaders.cs

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

0 commit comments

Comments
 (0)