4.0.0-beta.5 (2022-08-09)
Features Added
- Added
Length
property toBoundingPolygon
. - Added a public constructor to
CopyAuthorization
. - Added properties
AccessToken
andTargetResourceId
toCopyAuthorization
.
Breaking Changes
- Updated all long-running operation client methods to a new pattern. This affects
StartAnalyzeDocument
,StartAnalyzeDocumentFromUri
,StartBuildModel
,StartCopyModelTo
, andStartCreateComposedModel
methods. Changes are:- Removed the "Start" prefix. For example,
StartAnalyzeDocument
was renamed toAnalyzeDocument
. - Added a new required parameter:
waitUntil
. It specifies whether the operation should run to completion before returning or not, removing the need to callWaitForCompletion
in most scenarios.
- Removed the "Start" prefix. For example,
- Updated
DocumentModelInfo
andDocumentModel
:- Renamed them to
DocumentModelSummary
andDocumentModelDetails
, respectively. - Removed the inheritance between them.
- Renamed them to
- Updated
ModelOperationInfo
andModelOperation
:- Renamed them to
DocumentModelOperationSummary
andDocumentModelOperationDetails
, respectively. - Removed the inheritance between them.
- Updated
ResourceLocation
to be aUri
in both.
- Renamed them to
- Renamed
AccountProperties
toResourceDetails
. - Renamed method
GetAccountProperties
toGetResourceDetails
. - Renamed method
StartCreateComposedModel
toComposeModel
. - Renamed
BuildModelOptions.ModelDescription
toDescription
. - Renamed
modelDescription
parameters todescription
in methodsGetCopyAuthorization
andStartCreateComposedModel
(now calledComposeModel
). - Renamed
CopyAuthorization.ExpirationDateTime
toExpiresOn
. - Removed
DocumentCaption
andDocumentFootnote
features. - Updated the return type of
StartCreateComposedModel
(now calledComposeModel
) to aComposeModelOperation
. - Renamed class
CopyModelOperation
toCopyModelToOperation
. - Renamed parameter
analyzeDocumentOptions
tooptions
in theStartAnalyzeDocument
andStartAnalyzeDocumentFromUri
methods (now calledAnalyzeDocument
andAnalyzeDocumentFromUri
). - Renamed parameter
buildModelOptions
tooptions
in theStartBuildModel
method (now calledBuildModel
). FormRecognizerClientOptions.Audience
andDocumentAnalysisClientOptions.Audience
now default tonull
.- In the
DocumentAnalysis
namespace,CopyModelOperation.PercentCompleted
andBuildModelOperation.PercentCompleted
now throw anInvalidOperationException
if called before a call toUpdateStatus
. - Updated
CopyAuthorization.TargetModelLocation
to be aUri
instead ofstring
. - Removed method
DocumentAnalysisModelFactory.CopyAuthorization
.