Skip to content

Commit

Permalink
chore: use gapic-generator-python 0.63.4 (#278)
Browse files Browse the repository at this point in the history
* 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: googleapis/googleapis-gen@ca893ff
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>
  • Loading branch information
4 people authored Feb 26, 2022
1 parent 9cb35ac commit dde5573
Show file tree
Hide file tree
Showing 37 changed files with 140 additions and 154 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -233,7 +233,7 @@ async def process_document(
) -> document_processor_service.ProcessResponse:
r"""Processes a single document.
.. code-block::
.. code-block:: python
from google.cloud import documentai_v1
Expand Down Expand Up @@ -339,7 +339,7 @@ async def batch_process_documents(
written to Cloud Storage as JSON in the [Document] format.
.. code-block::
.. code-block:: python
from google.cloud import documentai_v1
Expand Down Expand Up @@ -456,7 +456,7 @@ async def review_document(
should be processed by the specified processor.
.. code-block::
.. code-block:: python
from google.cloud import documentai_v1
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -435,8 +435,7 @@ def process_document(
) -> document_processor_service.ProcessResponse:
r"""Processes a single document.
.. code-block::
.. code-block:: python
from google.cloud import documentai_v1
Expand Down Expand Up @@ -532,8 +531,7 @@ def batch_process_documents(
written to Cloud Storage as JSON in the [Document] format.
.. code-block::
.. code-block:: python
from google.cloud import documentai_v1
Expand Down Expand Up @@ -640,8 +638,7 @@ def review_document(
should be processed by the specified processor.
.. code-block::
.. code-block:: python
from google.cloud import documentai_v1
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -228,7 +228,7 @@ async def batch_process_documents(
written to Cloud Storage as JSON in the [Document] format.
.. code-block::
.. code-block:: python
from google.cloud import documentai_v1beta2
Expand Down Expand Up @@ -346,7 +346,7 @@ async def process_document(
) -> document.Document:
r"""Processes a single document.
.. code-block::
.. code-block:: python
from google.cloud import documentai_v1beta2
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -410,8 +410,7 @@ def batch_process_documents(
written to Cloud Storage as JSON in the [Document] format.
.. code-block::
.. code-block:: python
from google.cloud import documentai_v1beta2
Expand Down Expand Up @@ -519,8 +518,7 @@ def process_document(
) -> document.Document:
r"""Processes a single document.
.. code-block::
.. code-block:: python
from google.cloud import documentai_v1beta2
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -245,7 +245,7 @@ async def process_document(
) -> document_processor_service.ProcessResponse:
r"""Processes a single document.
.. code-block::
.. code-block:: python
from google.cloud import documentai_v1beta3
Expand Down Expand Up @@ -351,7 +351,7 @@ async def batch_process_documents(
written to Cloud Storage as JSON in the [Document] format.
.. code-block::
.. code-block:: python
from google.cloud import documentai_v1beta3
Expand Down Expand Up @@ -468,7 +468,7 @@ async def fetch_processor_types(
) -> document_processor_service.FetchProcessorTypesResponse:
r"""Fetches processor types.
.. code-block::
.. code-block:: python
from google.cloud import documentai_v1beta3
Expand Down Expand Up @@ -559,7 +559,7 @@ async def list_processors(
) -> pagers.ListProcessorsAsyncPager:
r"""Lists all processors which belong to this project.
.. code-block::
.. code-block:: python
from google.cloud import documentai_v1beta3
Expand Down Expand Up @@ -664,7 +664,7 @@ async def create_processor(
default after its creation.
.. code-block::
.. code-block:: python
from google.cloud import documentai_v1beta3
Expand Down Expand Up @@ -773,7 +773,7 @@ async def delete_processor(
artifacts associated with this processor.
.. code-block::
.. code-block:: python
from google.cloud import documentai_v1beta3
Expand Down Expand Up @@ -887,7 +887,7 @@ async def enable_processor(
) -> operation_async.AsyncOperation:
r"""Enables a processor
.. code-block::
.. code-block:: python
from google.cloud import documentai_v1beta3
Expand Down Expand Up @@ -970,7 +970,7 @@ async def disable_processor(
) -> operation_async.AsyncOperation:
r"""Disables a processor
.. code-block::
.. code-block:: python
from google.cloud import documentai_v1beta3
Expand Down Expand Up @@ -1056,7 +1056,7 @@ async def review_document(
should be processed by the specified processor.
.. code-block::
.. code-block:: python
from google.cloud import documentai_v1beta3
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -457,8 +457,7 @@ def process_document(
) -> document_processor_service.ProcessResponse:
r"""Processes a single document.
.. code-block::
.. code-block:: python
from google.cloud import documentai_v1beta3
Expand Down Expand Up @@ -554,8 +553,7 @@ def batch_process_documents(
written to Cloud Storage as JSON in the [Document] format.
.. code-block::
.. code-block:: python
from google.cloud import documentai_v1beta3
Expand Down Expand Up @@ -662,8 +660,7 @@ def fetch_processor_types(
) -> document_processor_service.FetchProcessorTypesResponse:
r"""Fetches processor types.
.. code-block::
.. code-block:: python
from google.cloud import documentai_v1beta3
Expand Down Expand Up @@ -756,8 +753,7 @@ def list_processors(
) -> pagers.ListProcessorsPager:
r"""Lists all processors which belong to this project.
.. code-block::
.. code-block:: python
from google.cloud import documentai_v1beta3
Expand Down Expand Up @@ -862,8 +858,7 @@ def create_processor(
default after its creation.
.. code-block::
.. code-block:: python
from google.cloud import documentai_v1beta3
Expand Down Expand Up @@ -972,8 +967,7 @@ def delete_processor(
artifacts associated with this processor.
.. code-block::
.. code-block:: python
from google.cloud import documentai_v1beta3
Expand Down Expand Up @@ -1087,8 +1081,7 @@ def enable_processor(
) -> operation.Operation:
r"""Enables a processor
.. code-block::
.. code-block:: python
from google.cloud import documentai_v1beta3
Expand Down Expand Up @@ -1172,8 +1165,7 @@ def disable_processor(
) -> operation.Operation:
r"""Disables a processor
.. code-block::
.. code-block:: python
from google.cloud import documentai_v1beta3
Expand Down Expand Up @@ -1260,8 +1252,7 @@ def review_document(
should be processed by the specified processor.
.. code-block::
.. code-block:: python
from google.cloud import documentai_v1beta3
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
# python3 -m pip install google-cloud-documentai


# [START documentai_generated_documentai_v1_DocumentProcessorService_BatchProcessDocuments_async]
# [START documentai_v1_generated_DocumentProcessorService_BatchProcessDocuments_async]
from google.cloud import documentai_v1


Expand All @@ -46,4 +46,4 @@ async def sample_batch_process_documents():
# Handle the response
print(response)

# [END documentai_generated_documentai_v1_DocumentProcessorService_BatchProcessDocuments_async]
# [END documentai_v1_generated_DocumentProcessorService_BatchProcessDocuments_async]
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
# python3 -m pip install google-cloud-documentai


# [START documentai_generated_documentai_v1_DocumentProcessorService_BatchProcessDocuments_sync]
# [START documentai_v1_generated_DocumentProcessorService_BatchProcessDocuments_sync]
from google.cloud import documentai_v1


Expand All @@ -46,4 +46,4 @@ def sample_batch_process_documents():
# Handle the response
print(response)

# [END documentai_generated_documentai_v1_DocumentProcessorService_BatchProcessDocuments_sync]
# [END documentai_v1_generated_DocumentProcessorService_BatchProcessDocuments_sync]
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
# python3 -m pip install google-cloud-documentai


# [START documentai_generated_documentai_v1_DocumentProcessorService_ProcessDocument_async]
# [START documentai_v1_generated_DocumentProcessorService_ProcessDocument_async]
from google.cloud import documentai_v1


Expand All @@ -46,4 +46,4 @@ async def sample_process_document():
# Handle the response
print(response)

# [END documentai_generated_documentai_v1_DocumentProcessorService_ProcessDocument_async]
# [END documentai_v1_generated_DocumentProcessorService_ProcessDocument_async]
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
# python3 -m pip install google-cloud-documentai


# [START documentai_generated_documentai_v1_DocumentProcessorService_ProcessDocument_sync]
# [START documentai_v1_generated_DocumentProcessorService_ProcessDocument_sync]
from google.cloud import documentai_v1


Expand All @@ -46,4 +46,4 @@ def sample_process_document():
# Handle the response
print(response)

# [END documentai_generated_documentai_v1_DocumentProcessorService_ProcessDocument_sync]
# [END documentai_v1_generated_DocumentProcessorService_ProcessDocument_sync]
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
# python3 -m pip install google-cloud-documentai


# [START documentai_generated_documentai_v1_DocumentProcessorService_ReviewDocument_async]
# [START documentai_v1_generated_DocumentProcessorService_ReviewDocument_async]
from google.cloud import documentai_v1


Expand All @@ -50,4 +50,4 @@ async def sample_review_document():
# Handle the response
print(response)

# [END documentai_generated_documentai_v1_DocumentProcessorService_ReviewDocument_async]
# [END documentai_v1_generated_DocumentProcessorService_ReviewDocument_async]
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
# python3 -m pip install google-cloud-documentai


# [START documentai_generated_documentai_v1_DocumentProcessorService_ReviewDocument_sync]
# [START documentai_v1_generated_DocumentProcessorService_ReviewDocument_sync]
from google.cloud import documentai_v1


Expand All @@ -50,4 +50,4 @@ def sample_review_document():
# Handle the response
print(response)

# [END documentai_generated_documentai_v1_DocumentProcessorService_ReviewDocument_sync]
# [END documentai_v1_generated_DocumentProcessorService_ReviewDocument_sync]
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
# python3 -m pip install google-cloud-documentai


# [START documentai_generated_documentai_v1beta2_DocumentUnderstandingService_BatchProcessDocuments_async]
# [START documentai_v1beta2_generated_DocumentUnderstandingService_BatchProcessDocuments_async]
from google.cloud import documentai_v1beta2


Expand All @@ -50,4 +50,4 @@ async def sample_batch_process_documents():
# Handle the response
print(response)

# [END documentai_generated_documentai_v1beta2_DocumentUnderstandingService_BatchProcessDocuments_async]
# [END documentai_v1beta2_generated_DocumentUnderstandingService_BatchProcessDocuments_async]
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
# python3 -m pip install google-cloud-documentai


# [START documentai_generated_documentai_v1beta2_DocumentUnderstandingService_BatchProcessDocuments_sync]
# [START documentai_v1beta2_generated_DocumentUnderstandingService_BatchProcessDocuments_sync]
from google.cloud import documentai_v1beta2


Expand All @@ -50,4 +50,4 @@ def sample_batch_process_documents():
# Handle the response
print(response)

# [END documentai_generated_documentai_v1beta2_DocumentUnderstandingService_BatchProcessDocuments_sync]
# [END documentai_v1beta2_generated_DocumentUnderstandingService_BatchProcessDocuments_sync]
Loading

0 comments on commit dde5573

Please sign in to comment.