Skip to content
This repository was archived by the owner on Sep 20, 2023. It is now read-only.

Commit 9b53b35

Browse files
gcf-owl-bot[bot]busunkim96parthea
authored
chore: use gapic-generator-python 0.63.4 (#278)
* chore: use gapic-generator-python 0.63.4 chore: fix snippet region tag format chore: fix docstring code block formatting PiperOrigin-RevId: 430730865 Source-Link: googleapis/googleapis@ea58002 Source-Link: https://github.com/googleapis/googleapis-gen/commit/ca893ff8af25fc7fe001de1405a517d80446ecca Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiY2E4OTNmZjhhZjI1ZmM3ZmUwMDFkZTE0MDVhNTE3ZDgwNDQ2ZWNjYSJ9 * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md * chore: delete duplicates Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com> Co-authored-by: Bu Sun Kim <8822365+busunkim96@users.noreply.github.com> Co-authored-by: Anthonios Partheniou <partheniou@google.com>
1 parent 53df2f9 commit 9b53b35

37 files changed

Lines changed: 140 additions & 154 deletions

File tree

google/cloud/documentai_v1/services/document_processor_service/async_client.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -233,7 +233,7 @@ async def process_document(
233233
) -> document_processor_service.ProcessResponse:
234234
r"""Processes a single document.
235235
236-
.. code-block::
236+
.. code-block:: python
237237
238238
from google.cloud import documentai_v1
239239
@@ -339,7 +339,7 @@ async def batch_process_documents(
339339
written to Cloud Storage as JSON in the [Document] format.
340340
341341
342-
.. code-block::
342+
.. code-block:: python
343343
344344
from google.cloud import documentai_v1
345345
@@ -456,7 +456,7 @@ async def review_document(
456456
should be processed by the specified processor.
457457
458458
459-
.. code-block::
459+
.. code-block:: python
460460
461461
from google.cloud import documentai_v1
462462

google/cloud/documentai_v1/services/document_processor_service/client.py

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -435,8 +435,7 @@ def process_document(
435435
) -> document_processor_service.ProcessResponse:
436436
r"""Processes a single document.
437437
438-
439-
.. code-block::
438+
.. code-block:: python
440439
441440
from google.cloud import documentai_v1
442441
@@ -532,8 +531,7 @@ def batch_process_documents(
532531
written to Cloud Storage as JSON in the [Document] format.
533532
534533
535-
536-
.. code-block::
534+
.. code-block:: python
537535
538536
from google.cloud import documentai_v1
539537
@@ -640,8 +638,7 @@ def review_document(
640638
should be processed by the specified processor.
641639
642640
643-
644-
.. code-block::
641+
.. code-block:: python
645642
646643
from google.cloud import documentai_v1
647644

google/cloud/documentai_v1beta2/services/document_understanding_service/async_client.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -228,7 +228,7 @@ async def batch_process_documents(
228228
written to Cloud Storage as JSON in the [Document] format.
229229
230230
231-
.. code-block::
231+
.. code-block:: python
232232
233233
from google.cloud import documentai_v1beta2
234234
@@ -346,7 +346,7 @@ async def process_document(
346346
) -> document.Document:
347347
r"""Processes a single document.
348348
349-
.. code-block::
349+
.. code-block:: python
350350
351351
from google.cloud import documentai_v1beta2
352352

google/cloud/documentai_v1beta2/services/document_understanding_service/client.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -410,8 +410,7 @@ def batch_process_documents(
410410
written to Cloud Storage as JSON in the [Document] format.
411411
412412
413-
414-
.. code-block::
413+
.. code-block:: python
415414
416415
from google.cloud import documentai_v1beta2
417416
@@ -519,8 +518,7 @@ def process_document(
519518
) -> document.Document:
520519
r"""Processes a single document.
521520
522-
523-
.. code-block::
521+
.. code-block:: python
524522
525523
from google.cloud import documentai_v1beta2
526524

google/cloud/documentai_v1beta3/services/document_processor_service/async_client.py

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -245,7 +245,7 @@ async def process_document(
245245
) -> document_processor_service.ProcessResponse:
246246
r"""Processes a single document.
247247
248-
.. code-block::
248+
.. code-block:: python
249249
250250
from google.cloud import documentai_v1beta3
251251
@@ -351,7 +351,7 @@ async def batch_process_documents(
351351
written to Cloud Storage as JSON in the [Document] format.
352352
353353
354-
.. code-block::
354+
.. code-block:: python
355355
356356
from google.cloud import documentai_v1beta3
357357
@@ -468,7 +468,7 @@ async def fetch_processor_types(
468468
) -> document_processor_service.FetchProcessorTypesResponse:
469469
r"""Fetches processor types.
470470
471-
.. code-block::
471+
.. code-block:: python
472472
473473
from google.cloud import documentai_v1beta3
474474
@@ -559,7 +559,7 @@ async def list_processors(
559559
) -> pagers.ListProcessorsAsyncPager:
560560
r"""Lists all processors which belong to this project.
561561
562-
.. code-block::
562+
.. code-block:: python
563563
564564
from google.cloud import documentai_v1beta3
565565
@@ -664,7 +664,7 @@ async def create_processor(
664664
default after its creation.
665665
666666
667-
.. code-block::
667+
.. code-block:: python
668668
669669
from google.cloud import documentai_v1beta3
670670
@@ -773,7 +773,7 @@ async def delete_processor(
773773
artifacts associated with this processor.
774774
775775
776-
.. code-block::
776+
.. code-block:: python
777777
778778
from google.cloud import documentai_v1beta3
779779
@@ -887,7 +887,7 @@ async def enable_processor(
887887
) -> operation_async.AsyncOperation:
888888
r"""Enables a processor
889889
890-
.. code-block::
890+
.. code-block:: python
891891
892892
from google.cloud import documentai_v1beta3
893893
@@ -970,7 +970,7 @@ async def disable_processor(
970970
) -> operation_async.AsyncOperation:
971971
r"""Disables a processor
972972
973-
.. code-block::
973+
.. code-block:: python
974974
975975
from google.cloud import documentai_v1beta3
976976
@@ -1056,7 +1056,7 @@ async def review_document(
10561056
should be processed by the specified processor.
10571057
10581058
1059-
.. code-block::
1059+
.. code-block:: python
10601060
10611061
from google.cloud import documentai_v1beta3
10621062

google/cloud/documentai_v1beta3/services/document_processor_service/client.py

Lines changed: 9 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -457,8 +457,7 @@ def process_document(
457457
) -> document_processor_service.ProcessResponse:
458458
r"""Processes a single document.
459459
460-
461-
.. code-block::
460+
.. code-block:: python
462461
463462
from google.cloud import documentai_v1beta3
464463
@@ -554,8 +553,7 @@ def batch_process_documents(
554553
written to Cloud Storage as JSON in the [Document] format.
555554
556555
557-
558-
.. code-block::
556+
.. code-block:: python
559557
560558
from google.cloud import documentai_v1beta3
561559
@@ -662,8 +660,7 @@ def fetch_processor_types(
662660
) -> document_processor_service.FetchProcessorTypesResponse:
663661
r"""Fetches processor types.
664662
665-
666-
.. code-block::
663+
.. code-block:: python
667664
668665
from google.cloud import documentai_v1beta3
669666
@@ -756,8 +753,7 @@ def list_processors(
756753
) -> pagers.ListProcessorsPager:
757754
r"""Lists all processors which belong to this project.
758755
759-
760-
.. code-block::
756+
.. code-block:: python
761757
762758
from google.cloud import documentai_v1beta3
763759
@@ -862,8 +858,7 @@ def create_processor(
862858
default after its creation.
863859
864860
865-
866-
.. code-block::
861+
.. code-block:: python
867862
868863
from google.cloud import documentai_v1beta3
869864
@@ -972,8 +967,7 @@ def delete_processor(
972967
artifacts associated with this processor.
973968
974969
975-
976-
.. code-block::
970+
.. code-block:: python
977971
978972
from google.cloud import documentai_v1beta3
979973
@@ -1087,8 +1081,7 @@ def enable_processor(
10871081
) -> operation.Operation:
10881082
r"""Enables a processor
10891083
1090-
1091-
.. code-block::
1084+
.. code-block:: python
10921085
10931086
from google.cloud import documentai_v1beta3
10941087
@@ -1172,8 +1165,7 @@ def disable_processor(
11721165
) -> operation.Operation:
11731166
r"""Disables a processor
11741167
1175-
1176-
.. code-block::
1168+
.. code-block:: python
11771169
11781170
from google.cloud import documentai_v1beta3
11791171
@@ -1260,8 +1252,7 @@ def review_document(
12601252
should be processed by the specified processor.
12611253
12621254
1263-
1264-
.. code-block::
1255+
.. code-block:: python
12651256
12661257
from google.cloud import documentai_v1beta3
12671258

samples/generated_samples/documentai_generated_documentai_v1_document_processor_service_batch_process_documents_async.py renamed to samples/generated_samples/documentai_v1_generated_document_processor_service_batch_process_documents_async.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
# python3 -m pip install google-cloud-documentai
2424

2525

26-
# [START documentai_generated_documentai_v1_DocumentProcessorService_BatchProcessDocuments_async]
26+
# [START documentai_v1_generated_DocumentProcessorService_BatchProcessDocuments_async]
2727
from google.cloud import documentai_v1
2828

2929

@@ -46,4 +46,4 @@ async def sample_batch_process_documents():
4646
# Handle the response
4747
print(response)
4848

49-
# [END documentai_generated_documentai_v1_DocumentProcessorService_BatchProcessDocuments_async]
49+
# [END documentai_v1_generated_DocumentProcessorService_BatchProcessDocuments_async]

samples/generated_samples/documentai_generated_documentai_v1_document_processor_service_batch_process_documents_sync.py renamed to samples/generated_samples/documentai_v1_generated_document_processor_service_batch_process_documents_sync.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
# python3 -m pip install google-cloud-documentai
2424

2525

26-
# [START documentai_generated_documentai_v1_DocumentProcessorService_BatchProcessDocuments_sync]
26+
# [START documentai_v1_generated_DocumentProcessorService_BatchProcessDocuments_sync]
2727
from google.cloud import documentai_v1
2828

2929

@@ -46,4 +46,4 @@ def sample_batch_process_documents():
4646
# Handle the response
4747
print(response)
4848

49-
# [END documentai_generated_documentai_v1_DocumentProcessorService_BatchProcessDocuments_sync]
49+
# [END documentai_v1_generated_DocumentProcessorService_BatchProcessDocuments_sync]

samples/generated_samples/documentai_generated_documentai_v1_document_processor_service_process_document_async.py renamed to samples/generated_samples/documentai_v1_generated_document_processor_service_process_document_async.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
# python3 -m pip install google-cloud-documentai
2424

2525

26-
# [START documentai_generated_documentai_v1_DocumentProcessorService_ProcessDocument_async]
26+
# [START documentai_v1_generated_DocumentProcessorService_ProcessDocument_async]
2727
from google.cloud import documentai_v1
2828

2929

@@ -46,4 +46,4 @@ async def sample_process_document():
4646
# Handle the response
4747
print(response)
4848

49-
# [END documentai_generated_documentai_v1_DocumentProcessorService_ProcessDocument_async]
49+
# [END documentai_v1_generated_DocumentProcessorService_ProcessDocument_async]

samples/generated_samples/documentai_generated_documentai_v1_document_processor_service_process_document_sync.py renamed to samples/generated_samples/documentai_v1_generated_document_processor_service_process_document_sync.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
# python3 -m pip install google-cloud-documentai
2424

2525

26-
# [START documentai_generated_documentai_v1_DocumentProcessorService_ProcessDocument_sync]
26+
# [START documentai_v1_generated_DocumentProcessorService_ProcessDocument_sync]
2727
from google.cloud import documentai_v1
2828

2929

@@ -46,4 +46,4 @@ def sample_process_document():
4646
# Handle the response
4747
print(response)
4848

49-
# [END documentai_generated_documentai_v1_DocumentProcessorService_ProcessDocument_sync]
49+
# [END documentai_v1_generated_DocumentProcessorService_ProcessDocument_sync]

0 commit comments

Comments
 (0)