Skip to content

Commit e4cd39b

Browse files
[formrecognizer] Revert samples rename (Azure#30509)
* revert directory rename * revert rename in code
1 parent 3f12197 commit e4cd39b

File tree

52 files changed

+89
-89
lines changed

Some content is hidden

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

52 files changed

+89
-89
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -765,7 +765,7 @@ This project has adopted the [Microsoft Open Source Code of Conduct][code_of_con
765765
[sample_readme]: https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/formrecognizer/azure-ai-formrecognizer/samples
766766
[changelog]: https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/formrecognizer/azure-ai-formrecognizer/CHANGELOG.md
767767
[migration-guide]: https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/formrecognizer/azure-ai-formrecognizer/MIGRATION_GUIDE.md
768-
[classify_sample]: https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/formrecognizer/azure-ai-formrecognizer/samples/v3.2_and_later/sample_classify_document.py
768+
[classify_sample]: https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/formrecognizer/azure-ai-formrecognizer/samples/v3.2/sample_classify_document.py
769769

770770
[cla]: https://cla.microsoft.com
771771
[code_of_conduct]: https://opensource.microsoft.com/codeofconduct/

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

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -43,14 +43,14 @@ class DocumentAnalysisClient(FormRecognizerClientBase):
4343
4444
.. admonition:: Example:
4545
46-
.. literalinclude:: ../samples/v3.2_and_later/sample_authentication.py
46+
.. literalinclude:: ../samples/v3.2/sample_authentication.py
4747
:start-after: [START create_da_client_with_key]
4848
:end-before: [END create_da_client_with_key]
4949
:language: python
5050
:dedent: 4
5151
:caption: Creating the DocumentAnalysisClient with an endpoint and API key.
5252
53-
.. literalinclude:: ../samples/v3.2_and_later/sample_authentication.py
53+
.. literalinclude:: ../samples/v3.2/sample_authentication.py
5454
:start-after: [START create_da_client_with_aad]
5555
:end-before: [END create_da_client_with_aad]
5656
:language: python
@@ -100,14 +100,14 @@ def begin_analyze_document(
100100
101101
.. admonition:: Example:
102102
103-
.. literalinclude:: ../samples/v3.2_and_later/sample_analyze_invoices.py
103+
.. literalinclude:: ../samples/v3.2/sample_analyze_invoices.py
104104
:start-after: [START analyze_invoices]
105105
:end-before: [END analyze_invoices]
106106
:language: python
107107
:dedent: 4
108108
:caption: Analyze an invoice. For more samples see the `samples` folder.
109109
110-
.. literalinclude:: ../samples/v3.2_and_later/sample_analyze_custom_documents.py
110+
.. literalinclude:: ../samples/v3.2/sample_analyze_custom_documents.py
111111
:start-after: [START analyze_custom_documents]
112112
:end-before: [END analyze_custom_documents]
113113
:language: python
@@ -176,7 +176,7 @@ def begin_analyze_document_from_url(
176176
177177
.. admonition:: Example:
178178
179-
.. literalinclude:: ../samples/v3.2_and_later/sample_analyze_receipts_from_url.py
179+
.. literalinclude:: ../samples/v3.2/sample_analyze_receipts_from_url.py
180180
:start-after: [START analyze_receipts_from_url]
181181
:end-before: [END analyze_receipts_from_url]
182182
:language: python
@@ -239,7 +239,7 @@ def begin_classify_document(
239239
240240
.. admonition:: Example:
241241
242-
.. literalinclude:: ../samples/v3.2_and_later/sample_classify_document.py
242+
.. literalinclude:: ../samples/v3.2/sample_classify_document.py
243243
:start-after: [START classify_document]
244244
:end-before: [END classify_document]
245245
:language: python
@@ -289,7 +289,7 @@ def begin_classify_document_from_url(
289289
290290
.. admonition:: Example:
291291
292-
.. literalinclude:: ../samples/v3.2_and_later/sample_classify_document_from_url.py
292+
.. literalinclude:: ../samples/v3.2/sample_classify_document_from_url.py
293293
:start-after: [START classify_document_from_url]
294294
:end-before: [END classify_document_from_url]
295295
:language: python

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

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -69,14 +69,14 @@ class DocumentModelAdministrationClient(FormRecognizerClientBase):
6969
7070
.. admonition:: Example:
7171
72-
.. literalinclude:: ../samples/v3.2_and_later/sample_authentication.py
72+
.. literalinclude:: ../samples/v3.2/sample_authentication.py
7373
:start-after: [START create_dt_client_with_key]
7474
:end-before: [END create_dt_client_with_key]
7575
:language: python
7676
:dedent: 4
7777
:caption: Creating the DocumentModelAdministrationClient with an endpoint and API key.
7878
79-
.. literalinclude:: ../samples/v3.2_and_later/sample_authentication.py
79+
.. literalinclude:: ../samples/v3.2/sample_authentication.py
8080
:start-after: [START create_dt_client_with_aad]
8181
:end-before: [END create_dt_client_with_aad]
8282
:language: python
@@ -158,7 +158,7 @@ def begin_build_document_model(
158158
159159
.. admonition:: Example:
160160
161-
.. literalinclude:: ../samples/v3.2_and_later/sample_build_model.py
161+
.. literalinclude:: ../samples/v3.2/sample_build_model.py
162162
:start-after: [START build_model]
163163
:end-before: [END build_model]
164164
:language: python
@@ -250,7 +250,7 @@ def begin_compose_document_model(
250250
251251
.. admonition:: Example:
252252
253-
.. literalinclude:: ../samples/v3.2_and_later/sample_compose_model.py
253+
.. literalinclude:: ../samples/v3.2/sample_compose_model.py
254254
:start-after: [START composed_model]
255255
:end-before: [END composed_model]
256256
:language: python
@@ -355,7 +355,7 @@ def begin_copy_document_model_to(
355355
356356
.. admonition:: Example:
357357
358-
.. literalinclude:: ../samples/v3.2_and_later/sample_copy_model_to.py
358+
.. literalinclude:: ../samples/v3.2/sample_copy_model_to.py
359359
:start-after: [START begin_copy_document_model_to]
360360
:end-before: [END begin_copy_document_model_to]
361361
:language: python
@@ -409,7 +409,7 @@ def delete_document_model(self, model_id: str, **kwargs: Any) -> None:
409409
410410
.. admonition:: Example:
411411
412-
.. literalinclude:: ../samples/v3.2_and_later/sample_manage_models.py
412+
.. literalinclude:: ../samples/v3.2/sample_manage_models.py
413413
:start-after: [START delete_document_model]
414414
:end-before: [END delete_document_model]
415415
:language: python
@@ -437,7 +437,7 @@ def list_document_models(self, **kwargs: Any) -> ItemPaged[DocumentModelSummary]
437437
438438
.. admonition:: Example:
439439
440-
.. literalinclude:: ../samples/v3.2_and_later/sample_manage_models.py
440+
.. literalinclude:: ../samples/v3.2/sample_manage_models.py
441441
:start-after: [START list_document_models]
442442
:end-before: [END list_document_models]
443443
:language: python
@@ -467,7 +467,7 @@ def get_resource_details(self, **kwargs: Any) -> ResourceDetails:
467467
468468
.. admonition:: Example:
469469
470-
.. literalinclude:: ../samples/v3.2_and_later/sample_manage_models.py
470+
.. literalinclude:: ../samples/v3.2/sample_manage_models.py
471471
:start-after: [START get_resource_details]
472472
:end-before: [END get_resource_details]
473473
:language: python
@@ -493,7 +493,7 @@ def get_document_model(self, model_id: str, **kwargs: Any) -> DocumentModelDetai
493493
494494
.. admonition:: Example:
495495
496-
.. literalinclude:: ../samples/v3.2_and_later/sample_manage_models.py
496+
.. literalinclude:: ../samples/v3.2/sample_manage_models.py
497497
:start-after: [START get_document_model]
498498
:end-before: [END get_document_model]
499499
:language: python
@@ -525,7 +525,7 @@ def list_operations(self, **kwargs: Any) -> ItemPaged[OperationSummary]:
525525
526526
.. admonition:: Example:
527527
528-
.. literalinclude:: ../samples/v3.2_and_later/sample_get_operations.py
528+
.. literalinclude:: ../samples/v3.2/sample_get_operations.py
529529
:start-after: [START list_operations]
530530
:end-before: [END list_operations]
531531
:language: python
@@ -560,7 +560,7 @@ def get_operation(self, operation_id: str, **kwargs: Any) -> OperationDetails:
560560
561561
.. admonition:: Example:
562562
563-
.. literalinclude:: ../samples/v3.2_and_later/sample_get_operations.py
563+
.. literalinclude:: ../samples/v3.2/sample_get_operations.py
564564
:start-after: [START get_operation]
565565
:end-before: [END get_operation]
566566
:language: python
@@ -606,7 +606,7 @@ def begin_build_document_classifier(
606606
607607
.. admonition:: Example:
608608
609-
.. literalinclude:: ../samples/v3.2_and_later/sample_build_classifier.py
609+
.. literalinclude:: ../samples/v3.2/sample_build_classifier.py
610610
:start-after: [START build_classifier]
611611
:end-before: [END build_classifier]
612612
:language: python
@@ -656,7 +656,7 @@ def get_document_classifier(self, classifier_id: str, **kwargs: Any) -> Document
656656
657657
.. admonition:: Example:
658658
659-
.. literalinclude:: ../samples/v3.2_and_later/sample_manage_classifiers.py
659+
.. literalinclude:: ../samples/v3.2/sample_manage_classifiers.py
660660
:start-after: [START get_document_classifier]
661661
:end-before: [END get_document_classifier]
662662
:language: python
@@ -687,7 +687,7 @@ def list_document_classifiers(self, **kwargs: Any) -> ItemPaged[DocumentClassifi
687687
688688
.. admonition:: Example:
689689
690-
.. literalinclude:: ../samples/v3.2_and_later/sample_manage_classifiers.py
690+
.. literalinclude:: ../samples/v3.2/sample_manage_classifiers.py
691691
:start-after: [START list_document_classifiers]
692692
:end-before: [END list_document_classifiers]
693693
:language: python
@@ -719,7 +719,7 @@ def delete_document_classifier(self, classifier_id: str, **kwargs: Any) -> None:
719719
720720
.. admonition:: Example:
721721
722-
.. literalinclude:: ../samples/v3.2_and_later/sample_manage_classifiers.py
722+
.. literalinclude:: ../samples/v3.2/sample_manage_classifiers.py
723723
:start-after: [START delete_document_classifier]
724724
:end-before: [END delete_document_classifier]
725725
:language: python

sdk/formrecognizer/azure-ai-formrecognizer/azure/ai/formrecognizer/aio/_document_analysis_client_async.py

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -44,14 +44,14 @@ class DocumentAnalysisClient(FormRecognizerClientBaseAsync):
4444
4545
.. admonition:: Example:
4646
47-
.. literalinclude:: ../samples/v3.2_and_later/async_samples/sample_authentication_async.py
47+
.. literalinclude:: ../samples/v3.2/async_samples/sample_authentication_async.py
4848
:start-after: [START create_da_client_with_key_async]
4949
:end-before: [END create_da_client_with_key_async]
5050
:language: python
5151
:dedent: 4
5252
:caption: Creating the DocumentAnalysisClient with an endpoint and API key.
5353
54-
.. literalinclude:: ../samples/v3.2_and_later/async_samples/sample_authentication_async.py
54+
.. literalinclude:: ../samples/v3.2/async_samples/sample_authentication_async.py
5555
:start-after: [START create_da_client_with_aad_async]
5656
:end-before: [END create_da_client_with_aad_async]
5757
:language: python
@@ -103,14 +103,14 @@ async def begin_analyze_document(
103103
104104
.. admonition:: Example:
105105
106-
.. literalinclude:: ../samples/v3.2_and_later/async_samples/sample_analyze_invoices_async.py
106+
.. literalinclude:: ../samples/v3.2/async_samples/sample_analyze_invoices_async.py
107107
:start-after: [START analyze_invoices_async]
108108
:end-before: [END analyze_invoices_async]
109109
:language: python
110110
:dedent: 4
111111
:caption: Analyze an invoice. For more samples see the `samples` folder.
112112
113-
.. literalinclude:: ../samples/v3.2_and_later/async_samples/sample_analyze_custom_documents_async.py
113+
.. literalinclude:: ../samples/v3.2/async_samples/sample_analyze_custom_documents_async.py
114114
:start-after: [START analyze_custom_documents_async]
115115
:end-before: [END analyze_custom_documents_async]
116116
:language: python
@@ -179,7 +179,7 @@ async def begin_analyze_document_from_url(
179179
180180
.. admonition:: Example:
181181
182-
.. literalinclude:: ../samples/v3.2_and_later/async_samples/sample_analyze_receipts_from_url_async.py
182+
.. literalinclude:: ../samples/v3.2/async_samples/sample_analyze_receipts_from_url_async.py
183183
:start-after: [START analyze_receipts_from_url_async]
184184
:end-before: [END analyze_receipts_from_url_async]
185185
:language: python
@@ -242,7 +242,7 @@ async def begin_classify_document(
242242
243243
.. admonition:: Example:
244244
245-
.. literalinclude:: ../samples/v3.2_and_later/async_samples/sample_classify_document_async.py
245+
.. literalinclude:: ../samples/v3.2/async_samples/sample_classify_document_async.py
246246
:start-after: [START classify_document_async]
247247
:end-before: [END classify_document_async]
248248
:language: python
@@ -292,7 +292,7 @@ async def begin_classify_document_from_url(
292292
293293
.. admonition:: Example:
294294
295-
.. literalinclude:: ../samples/v3.2_and_later/async_samples/sample_classify_document_from_url_async.py
295+
.. literalinclude:: ../samples/v3.2/async_samples/sample_classify_document_from_url_async.py
296296
:start-after: [START classify_document_from_url_async]
297297
:end-before: [END classify_document_from_url_async]
298298
:language: python

0 commit comments

Comments
 (0)