Skip to content

Commit ce1d633

Browse files
authored
[FormRecognizer] Updated docs for 4.1.0 + final architect feedback (#38092)
1 parent fa1648a commit ce1d633

Some content is hidden

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

44 files changed

+687
-256
lines changed

sdk/formrecognizer/Azure.AI.FormRecognizer/CHANGELOG.md

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
# Release History
22

3-
## 4.1.0-beta.2 (Unreleased)
3+
## 4.1.0 (2023-08-10)
44

55
### Features Added
66
- In struct `DocumentAnalysisFeature`, added properties `Barcodes`, `KeyValuePairs`, and `Languages` as add-on capabilities.
7-
- Added class `ContentSource` as a base class to `AzureBlobContentSource` (currently named `BlobContentSource`) and `AzureBlobFileListSource` (currently named `BlobFileListContentSource`).
8-
- In `DocumentModelAdministrationClient`, added a new overload to `BuildDocumentModel` that takes a `ContentSource` object. It can be used to build a document model from alternative content sources.
7+
- Added class `DocumentContentSource` as a base class to `AzureBlobContentSource` (renamed to `BlobContentSource` in this SDK version) and `AzureBlobFileListSource` (renamed to `BlobFileListContentSource` in this SDK version).
8+
- In `DocumentModelAdministrationClient`, added a new overload to `BuildDocumentModel` that takes a `DocumentContentSource` object. It can be used to build a document model from alternative content sources.
99
- Added property `ServiceVersion` to classes `AnalyzeResult`, `DocumentModelDetails`, `DocumentModelSummary`, `OperationDetails`, and `OperationSummary`.
1010

1111
### Breaking Changes
@@ -19,8 +19,8 @@
1919
- In `DocumentBarcodeKind`, renamed members `QRCode`, `PDF417`, `EAN8`, `EAN13`, `ITF`, and `MicroQRCode` to `QrCode`, `Pdf417`, `Ean8`, `Ean13`, `Itf`, and `MicroQrCode`, respectively.
2020
- Renamed class `AzureBlobContentSource` to `BlobContentSource`.
2121
- Renamed class `AzureBlobFileListSource` to `BlobFileListContentSource`.
22-
- In class `ClassifierDocumentTypeDetails`, properties `AzureBlobFileListSource` and `AzureBlobSource` have been replaced by a single polymorphic property `TrainingDataContentSource`.
23-
- In class `ClassifierDocumentTypeDetails`, all constructors have been replaced by a single constructor that takes a polymorphic parameter `trainingDataContentSource`.
22+
- In class `ClassifierDocumentTypeDetails`, properties `AzureBlobFileListSource` and `AzureBlobSource` have been replaced by a single polymorphic property `TrainingDataSource`.
23+
- In class `ClassifierDocumentTypeDetails`, all constructors have been replaced by a single constructor that takes a polymorphic parameter `trainingDataSource`.
2424
- In class `ResourceDetails`, renamed property `CustomNeuralDocumentModelBuilds` to `NeuralDocumentModelQuota`.
2525
- In class `DocumentClassifierDetails`, renamed property `ApiVersion` to `ServiceVersion`.
2626
- Renamed struct `FontStyle` to `DocumentFontStyle`.
@@ -30,8 +30,6 @@
3030
### Bugs Fixed
3131
- Fixed a bug where calling the `GetResourceDetails` API while targeting service version `2022-08-31` would throw an `ArgumentNullException`.
3232

33-
### Other Changes
34-
3533
## 4.1.0-beta.1 (2023-04-13)
3634

3735
### Features Added

sdk/formrecognizer/Azure.AI.FormRecognizer/MigrationGuide.md

Lines changed: 29 additions & 29 deletions
Large diffs are not rendered by default.

sdk/formrecognizer/Azure.AI.FormRecognizer/README.md

Lines changed: 105 additions & 35 deletions
Large diffs are not rendered by default.

sdk/formrecognizer/Azure.AI.FormRecognizer/api/Azure.AI.FormRecognizer.netstandard2.0.cs

Lines changed: 29 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -308,13 +308,13 @@ internal AnalyzeResult() { }
308308
public System.Collections.Generic.IReadOnlyList<Azure.AI.FormRecognizer.DocumentAnalysis.DocumentStyle> Styles { get { throw null; } }
309309
public System.Collections.Generic.IReadOnlyList<Azure.AI.FormRecognizer.DocumentAnalysis.DocumentTable> Tables { get { throw null; } }
310310
}
311-
public partial class BlobContentSource : Azure.AI.FormRecognizer.DocumentAnalysis.ContentSource
311+
public partial class BlobContentSource : Azure.AI.FormRecognizer.DocumentAnalysis.DocumentContentSource
312312
{
313313
public BlobContentSource(System.Uri containerUri) { }
314314
public System.Uri ContainerUri { get { throw null; } }
315315
public string Prefix { get { throw null; } set { } }
316316
}
317-
public partial class BlobFileListContentSource : Azure.AI.FormRecognizer.DocumentAnalysis.ContentSource
317+
public partial class BlobFileListContentSource : Azure.AI.FormRecognizer.DocumentAnalysis.DocumentContentSource
318318
{
319319
public BlobFileListContentSource(System.Uri containerUri, string fileList) { }
320320
public System.Uri ContainerUri { get { throw null; } }
@@ -372,8 +372,8 @@ public BuildDocumentModelOptions() { }
372372
}
373373
public partial class ClassifierDocumentTypeDetails
374374
{
375-
public ClassifierDocumentTypeDetails(Azure.AI.FormRecognizer.DocumentAnalysis.ContentSource trainingDataContentSource) { }
376-
public Azure.AI.FormRecognizer.DocumentAnalysis.ContentSource TrainingDataContentSource { get { throw null; } }
375+
public ClassifierDocumentTypeDetails(Azure.AI.FormRecognizer.DocumentAnalysis.DocumentContentSource trainingDataSource) { }
376+
public Azure.AI.FormRecognizer.DocumentAnalysis.DocumentContentSource TrainingDataSource { get { throw null; } }
377377
}
378378
public partial class ClassifyDocumentOperation : Azure.Operation<Azure.AI.FormRecognizer.DocumentAnalysis.AnalyzeResult>
379379
{
@@ -404,29 +404,6 @@ public ComposeDocumentModelOperation(string operationId, Azure.AI.FormRecognizer
404404
public override System.Threading.Tasks.ValueTask<Azure.Response<Azure.AI.FormRecognizer.DocumentAnalysis.DocumentModelDetails>> WaitForCompletionAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
405405
public override System.Threading.Tasks.ValueTask<Azure.Response<Azure.AI.FormRecognizer.DocumentAnalysis.DocumentModelDetails>> WaitForCompletionAsync(System.TimeSpan pollingInterval, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
406406
}
407-
public abstract partial class ContentSource
408-
{
409-
internal ContentSource() { }
410-
public Azure.AI.FormRecognizer.DocumentAnalysis.ContentSourceKind Kind { get { throw null; } }
411-
}
412-
[System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)]
413-
public readonly partial struct ContentSourceKind : System.IEquatable<Azure.AI.FormRecognizer.DocumentAnalysis.ContentSourceKind>
414-
{
415-
private readonly object _dummy;
416-
private readonly int _dummyPrimitive;
417-
public ContentSourceKind(string value) { throw null; }
418-
public static Azure.AI.FormRecognizer.DocumentAnalysis.ContentSourceKind Blob { get { throw null; } }
419-
public static Azure.AI.FormRecognizer.DocumentAnalysis.ContentSourceKind BlobFileList { get { throw null; } }
420-
public bool Equals(Azure.AI.FormRecognizer.DocumentAnalysis.ContentSourceKind other) { throw null; }
421-
[System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)]
422-
public override bool Equals(object obj) { throw null; }
423-
[System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)]
424-
public override int GetHashCode() { throw null; }
425-
public static bool operator ==(Azure.AI.FormRecognizer.DocumentAnalysis.ContentSourceKind left, Azure.AI.FormRecognizer.DocumentAnalysis.ContentSourceKind right) { throw null; }
426-
public static implicit operator Azure.AI.FormRecognizer.DocumentAnalysis.ContentSourceKind (string value) { throw null; }
427-
public static bool operator !=(Azure.AI.FormRecognizer.DocumentAnalysis.ContentSourceKind left, Azure.AI.FormRecognizer.DocumentAnalysis.ContentSourceKind right) { throw null; }
428-
public override string ToString() { throw null; }
429-
}
430407
public partial class CopyDocumentModelToOperation : Azure.Operation<Azure.AI.FormRecognizer.DocumentAnalysis.DocumentModelDetails>
431408
{
432409
protected CopyDocumentModelToOperation() { }
@@ -671,6 +648,29 @@ internal DocumentClassifierDetails() { }
671648
public System.DateTimeOffset? ExpiresOn { get { throw null; } }
672649
public string ServiceVersion { get { throw null; } }
673650
}
651+
public abstract partial class DocumentContentSource
652+
{
653+
internal DocumentContentSource() { }
654+
public Azure.AI.FormRecognizer.DocumentAnalysis.DocumentContentSourceKind Kind { get { throw null; } }
655+
}
656+
[System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)]
657+
public readonly partial struct DocumentContentSourceKind : System.IEquatable<Azure.AI.FormRecognizer.DocumentAnalysis.DocumentContentSourceKind>
658+
{
659+
private readonly object _dummy;
660+
private readonly int _dummyPrimitive;
661+
public DocumentContentSourceKind(string value) { throw null; }
662+
public static Azure.AI.FormRecognizer.DocumentAnalysis.DocumentContentSourceKind Blob { get { throw null; } }
663+
public static Azure.AI.FormRecognizer.DocumentAnalysis.DocumentContentSourceKind BlobFileList { get { throw null; } }
664+
public bool Equals(Azure.AI.FormRecognizer.DocumentAnalysis.DocumentContentSourceKind other) { throw null; }
665+
[System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)]
666+
public override bool Equals(object obj) { throw null; }
667+
[System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)]
668+
public override int GetHashCode() { throw null; }
669+
public static bool operator ==(Azure.AI.FormRecognizer.DocumentAnalysis.DocumentContentSourceKind left, Azure.AI.FormRecognizer.DocumentAnalysis.DocumentContentSourceKind right) { throw null; }
670+
public static implicit operator Azure.AI.FormRecognizer.DocumentAnalysis.DocumentContentSourceKind (string value) { throw null; }
671+
public static bool operator !=(Azure.AI.FormRecognizer.DocumentAnalysis.DocumentContentSourceKind left, Azure.AI.FormRecognizer.DocumentAnalysis.DocumentContentSourceKind right) { throw null; }
672+
public override string ToString() { throw null; }
673+
}
674674
public partial class DocumentField
675675
{
676676
internal DocumentField() { }
@@ -829,9 +829,9 @@ public DocumentModelAdministrationClient(System.Uri endpoint, Azure.Core.TokenCr
829829
public DocumentModelAdministrationClient(System.Uri endpoint, Azure.Core.TokenCredential credential, Azure.AI.FormRecognizer.DocumentAnalysis.DocumentAnalysisClientOptions options) { }
830830
public virtual Azure.AI.FormRecognizer.DocumentAnalysis.BuildDocumentClassifierOperation BuildDocumentClassifier(Azure.WaitUntil waitUntil, System.Collections.Generic.IDictionary<string, Azure.AI.FormRecognizer.DocumentAnalysis.ClassifierDocumentTypeDetails> documentTypes, string classifierId = null, string description = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
831831
public virtual System.Threading.Tasks.Task<Azure.AI.FormRecognizer.DocumentAnalysis.BuildDocumentClassifierOperation> BuildDocumentClassifierAsync(Azure.WaitUntil waitUntil, System.Collections.Generic.IDictionary<string, Azure.AI.FormRecognizer.DocumentAnalysis.ClassifierDocumentTypeDetails> documentTypes, string classifierId = null, string description = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
832-
public virtual Azure.AI.FormRecognizer.DocumentAnalysis.BuildDocumentModelOperation BuildDocumentModel(Azure.WaitUntil waitUntil, Azure.AI.FormRecognizer.DocumentAnalysis.ContentSource trainingDataContentSource, Azure.AI.FormRecognizer.DocumentAnalysis.DocumentBuildMode buildMode, string modelId = null, Azure.AI.FormRecognizer.DocumentAnalysis.BuildDocumentModelOptions options = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
832+
public virtual Azure.AI.FormRecognizer.DocumentAnalysis.BuildDocumentModelOperation BuildDocumentModel(Azure.WaitUntil waitUntil, Azure.AI.FormRecognizer.DocumentAnalysis.DocumentContentSource trainingDataSource, Azure.AI.FormRecognizer.DocumentAnalysis.DocumentBuildMode buildMode, string modelId = null, Azure.AI.FormRecognizer.DocumentAnalysis.BuildDocumentModelOptions options = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
833833
public virtual Azure.AI.FormRecognizer.DocumentAnalysis.BuildDocumentModelOperation BuildDocumentModel(Azure.WaitUntil waitUntil, System.Uri blobContainerUri, Azure.AI.FormRecognizer.DocumentAnalysis.DocumentBuildMode buildMode, string modelId = null, string prefix = null, Azure.AI.FormRecognizer.DocumentAnalysis.BuildDocumentModelOptions options = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
834-
public virtual System.Threading.Tasks.Task<Azure.AI.FormRecognizer.DocumentAnalysis.BuildDocumentModelOperation> BuildDocumentModelAsync(Azure.WaitUntil waitUntil, Azure.AI.FormRecognizer.DocumentAnalysis.ContentSource trainingDataContentSource, Azure.AI.FormRecognizer.DocumentAnalysis.DocumentBuildMode buildMode, string modelId = null, Azure.AI.FormRecognizer.DocumentAnalysis.BuildDocumentModelOptions options = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
834+
public virtual System.Threading.Tasks.Task<Azure.AI.FormRecognizer.DocumentAnalysis.BuildDocumentModelOperation> BuildDocumentModelAsync(Azure.WaitUntil waitUntil, Azure.AI.FormRecognizer.DocumentAnalysis.DocumentContentSource trainingDataSource, Azure.AI.FormRecognizer.DocumentAnalysis.DocumentBuildMode buildMode, string modelId = null, Azure.AI.FormRecognizer.DocumentAnalysis.BuildDocumentModelOptions options = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
835835
public virtual System.Threading.Tasks.Task<Azure.AI.FormRecognizer.DocumentAnalysis.BuildDocumentModelOperation> BuildDocumentModelAsync(Azure.WaitUntil waitUntil, System.Uri blobContainerUri, Azure.AI.FormRecognizer.DocumentAnalysis.DocumentBuildMode buildMode, string modelId = null, string prefix = null, Azure.AI.FormRecognizer.DocumentAnalysis.BuildDocumentModelOptions options = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
836836
public virtual Azure.AI.FormRecognizer.DocumentAnalysis.ComposeDocumentModelOperation ComposeDocumentModel(Azure.WaitUntil waitUntil, System.Collections.Generic.IEnumerable<string> componentModelIds, string modelId = null, string description = null, System.Collections.Generic.IDictionary<string, string> tags = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
837837
public virtual System.Threading.Tasks.Task<Azure.AI.FormRecognizer.DocumentAnalysis.ComposeDocumentModelOperation> ComposeDocumentModelAsync(Azure.WaitUntil waitUntil, System.Collections.Generic.IEnumerable<string> componentModelIds, string modelId = null, string description = null, System.Collections.Generic.IDictionary<string, string> tags = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }

0 commit comments

Comments
 (0)