Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[FR] Update to 2.1-preview.2 with generation and recordings #16462

Merged
merged 5 commits into from
Oct 30, 2020
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ public enum FormContentType
Png = 2,
Jpeg = 3,
Tiff = 4,
Bmp = 5,
}
public partial class FormRecognizerClient
{
Expand Down Expand Up @@ -333,6 +334,24 @@ public enum SelectionMarkState
Selected = 0,
Unselected = 1,
}
[System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)]
public readonly partial struct TextStyle : System.IEquatable<Azure.AI.FormRecognizer.Models.TextStyle>
{
private readonly object _dummy;
private readonly int _dummyPrimitive;
public TextStyle(string value) { throw null; }
public static Azure.AI.FormRecognizer.Models.TextStyle Handwriting { get { throw null; } }
public static Azure.AI.FormRecognizer.Models.TextStyle Other { get { throw null; } }
public bool Equals(Azure.AI.FormRecognizer.Models.TextStyle other) { throw null; }
[System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)]
public override bool Equals(object obj) { throw null; }
[System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)]
public override int GetHashCode() { throw null; }
public static bool operator ==(Azure.AI.FormRecognizer.Models.TextStyle left, Azure.AI.FormRecognizer.Models.TextStyle right) { throw null; }
public static implicit operator Azure.AI.FormRecognizer.Models.TextStyle (string value) { throw null; }
public static bool operator !=(Azure.AI.FormRecognizer.Models.TextStyle left, Azure.AI.FormRecognizer.Models.TextStyle right) { throw null; }
public override string ToString() { throw null; }
}
}
namespace Azure.AI.FormRecognizer.Training
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,5 +40,11 @@ public enum FormContentType
/// </summary>
[CodeGenMember("ImageTiff")]
Tiff,

/// <summary>
/// Used for BMP files.
/// </summary>
[CodeGenMember("ImageBmp")]
Bmp,
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ public virtual RecognizeContentOperation StartRecognizeContent(Stream form, Reco
{
FormContentType contentType = recognizeContentOptions.ContentType ?? DetectContentType(form, nameof(form));

Response response = ServiceClient.AnalyzeLayoutAsync(contentType, form, cancellationToken);
Response response = ServiceClient.AnalyzeLayoutAsync(contentType, form, null, cancellationToken);
string location = ClientCommon.GetResponseHeader(response.Headers, Constants.OperationLocationHeader);

return new RecognizeContentOperation(ServiceClient, Diagnostics, location);
Expand Down Expand Up @@ -170,7 +170,7 @@ public virtual async Task<RecognizeContentOperation> StartRecognizeContentAsync(
{
FormContentType contentType = recognizeContentOptions.ContentType ?? DetectContentType(form, nameof(form));

Response response = await ServiceClient.AnalyzeLayoutAsyncAsync(contentType, form, cancellationToken).ConfigureAwait(false);
Response response = await ServiceClient.AnalyzeLayoutAsyncAsync(contentType, form, null, cancellationToken).ConfigureAwait(false);
string location = ClientCommon.GetResponseHeader(response.Headers, Constants.OperationLocationHeader);

return new RecognizeContentOperation(ServiceClient, Diagnostics, location);
Expand Down Expand Up @@ -202,7 +202,7 @@ public virtual RecognizeContentOperation StartRecognizeContentFromUri(Uri formUr
try
{
SourcePath sourcePath = new SourcePath() { Source = formUri.AbsoluteUri };
Response response = ServiceClient.AnalyzeLayoutAsync(sourcePath, cancellationToken);
Response response = ServiceClient.AnalyzeLayoutAsync(null, sourcePath, cancellationToken);
string location = ClientCommon.GetResponseHeader(response.Headers, Constants.OperationLocationHeader);

return new RecognizeContentOperation(ServiceClient, Diagnostics, location);
Expand Down Expand Up @@ -234,7 +234,7 @@ public virtual async Task<RecognizeContentOperation> StartRecognizeContentFromUr
try
{
SourcePath sourcePath = new SourcePath() { Source = formUri.AbsoluteUri };
Response response = await ServiceClient.AnalyzeLayoutAsyncAsync(sourcePath, cancellationToken).ConfigureAwait(false);
Response response = await ServiceClient.AnalyzeLayoutAsyncAsync(null, sourcePath, cancellationToken).ConfigureAwait(false);
string location = ClientCommon.GetResponseHeader(response.Headers, Constants.OperationLocationHeader);

return new RecognizeContentOperation(ServiceClient, Diagnostics, location);
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading