Skip to content

Commit bdd91f4

Browse files
[FR] add misc new models/properties (Azure#29636)
* add quota details for resource * add documentClassifierBuild kind to OperationSummary * add expires_on to DocumentSummary and DocumentModelDetails; rename to use _on suffix for datetime properties * add versionadded * rename DocumentClassifierDetails datetime properties to use _on suffix * add common_name property to DocumentKeyValuePair * add code to CurrencyValue * add new address value properties * add DocumentField boolean value * add versionadded where missing * fix lint and tests * some fixes to models * fix typos and test due to testing region change
1 parent eae1239 commit bdd91f4

28 files changed

+354
-72
lines changed

sdk/formrecognizer/azure-ai-formrecognizer/CHANGELOG.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,14 @@
1212
- Added support for custom document classification on `DocumentModelAdministrationClient`: `begin_build_document_classifier`,
1313
`list_document_classifiers`, `get_document_classifier`, and `delete_document_classifier`.
1414
- Added support for classifying documents on `DocumentAnalysisClient`: `begin_classify_document` and `begin_classify_document_from_url`.
15+
- Added model `QuotaDetails` and property `custom_neural_document_model_builds` on `ResourceDetails`.
16+
- Added kind `documentClassifierBuild` to `OperationSummary`.
17+
- Added property `expires_on` to `DocumentModelDetails` and `DocumentModelSummary`.
18+
- Added kind `formulaBlock` to `DocumentParagraph`.
19+
- Added property `common_name` to `DocumentKeyValuePair`.
20+
- Added property `code` to `CurrencyValue`.
21+
- Added properties `unit`, `city_district`, `state_district`, `suburb`, `house`, and `level` to `AddressValue`.
22+
- Added "boolean" `value_type` and `bool` `value` to `DocumentField`.
1523

1624
### Breaking Changes
1725

sdk/formrecognizer/azure-ai-formrecognizer/azure/ai/formrecognizer/__init__.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,7 @@
6767
DocumentAnalysisError,
6868
DocumentAnalysisInnerError,
6969
TargetAuthorization,
70+
QuotaDetails,
7071
)
7172
from ._generated.models import ( # patched models
7273
ClassifierDocumentTypeDetails,
@@ -144,6 +145,7 @@
144145
"ClassifierDocumentTypeDetails",
145146
"AzureBlobFileListSource",
146147
"AzureBlobContentSource",
148+
"QuotaDetails",
147149
]
148150

149151
__VERSION__ = VERSION

sdk/formrecognizer/azure-ai-formrecognizer/azure/ai/formrecognizer/_document_model_administration_client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -480,7 +480,7 @@ def get_resource_details(self, **kwargs: Any) -> ResourceDetails:
480480
else:
481481
_client_op_path = self._client.miscellaneous.get_resource_info
482482
response = _client_op_path(**kwargs)
483-
return ResourceDetails._from_generated(response.custom_document_models)
483+
return ResourceDetails._from_generated(response)
484484

485485
@distributed_trace
486486
def get_document_model(self, model_id: str, **kwargs: Any) -> DocumentModelDetails:

0 commit comments

Comments
 (0)