4.1.0 (2023-08-10)
Features Added
- In struct
DocumentAnalysisFeature
, added propertiesBarcodes
,KeyValuePairs
, andLanguages
as add-on capabilities. - Added class
DocumentContentSource
as a base class toAzureBlobContentSource
(renamed toBlobContentSource
in this SDK version) andAzureBlobFileListSource
(renamed toBlobFileListContentSource
in this SDK version). - In
DocumentModelAdministrationClient
, added a new overload toBuildDocumentModel
that takes aDocumentContentSource
object. It can be used to build a document model from alternative content sources. - Added property
ServiceVersion
to classesAnalyzeResult
,DocumentModelDetails
,DocumentModelSummary
,OperationDetails
, andOperationSummary
.
Breaking Changes
DocumentAnalysisClient
andDocumentModelAdministrationClient
now target service API version2023-07-31
by default. Version2023-02-28-preview
is not supported anymore.- In struct
DocumentAnalysisFeature
, propertiesOcrFormula
andOcrFont
were renamed toFormulas
andFontStyling
, respectively. - Removed query fields support. The properties
AnalyzeDocumentOptions.QueryFields
andDocumentAnalysisFeature.QueryFieldsPremium
were removed. - Removed image extraction support. The class
DocumentImage
and the propertyDocumentPage.Images
were removed. - Removed annotation extraction support. The types
DocumentAnnotation
,DocumentAnnotationKind
, and the propertyDocumentPage.Annotations
were removed. - Removed struct
DocumentPageKind
and propertyDocumentPage.Kind
. - Removed property
DocumentKeyValuePair.CommonName
. - In
DocumentBarcodeKind
, renamed membersQRCode
,PDF417
,EAN8
,EAN13
,ITF
, andMicroQRCode
toQrCode
,Pdf417
,Ean8
,Ean13
,Itf
, andMicroQrCode
, respectively. - Renamed class
AzureBlobContentSource
toBlobContentSource
. - Renamed class
AzureBlobFileListSource
toBlobFileListContentSource
. - In class
ClassifierDocumentTypeDetails
, propertiesAzureBlobFileListSource
andAzureBlobSource
have been replaced by a single polymorphic propertyTrainingDataSource
. - In class
ClassifierDocumentTypeDetails
, all constructors have been replaced by a single constructor that takes a polymorphic parametertrainingDataSource
. - In class
ResourceDetails
, renamed propertyCustomNeuralDocumentModelBuilds
toNeuralDocumentModelQuota
. - In class
DocumentClassifierDetails
, renamed propertyApiVersion
toServiceVersion
. - Renamed struct
FontStyle
toDocumentFontStyle
. - Renamed struct
FontWeight
toDocumentFontWeight
. - Renamed class
QuotaDetails
toResourceQuotaDetails
.
Bugs Fixed
- Fixed a bug where calling the
GetResourceDetails
API while targeting service version2022-08-31
would throw anArgumentNullException
.