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

Commit

Permalink
馃 Updates from OwlBot post-processor
Browse files Browse the repository at this point in the history
  • Loading branch information
gcf-owl-bot[bot] committed Mar 22, 2023
1 parent 56c4bc2 commit c415325
Show file tree
Hide file tree
Showing 252 changed files with 56 additions and 85,184 deletions.
Expand Up @@ -1364,7 +1364,8 @@ async def sample_list_processor_versions():
Args:
request (Optional[Union[google.cloud.documentai_v1.types.ListProcessorVersionsRequest, dict]]):
The request object. Request message for list all
processor versions belongs to a processor.
processor versions belongs to a
processor.
parent (:class:`str`):
Required. The parent (project, location and processor)
to list all versions. Format:
Expand Down Expand Up @@ -1850,9 +1851,10 @@ async def sample_create_processor():
Args:
request (Optional[Union[google.cloud.documentai_v1.types.CreateProcessorRequest, dict]]):
The request object. Request message for create a
processor. Notice this request is sent to a regionalized
backend service, and if the processor type is not
available on that region, the creation will fail.
processor. Notice this request is sent
to a regionalized backend service, and
if the processor type is not available
on that region, the creation will fail.
parent (:class:`str`):
Required. The parent (project and location) under which
to create the processor. Format:
Expand Down Expand Up @@ -2764,8 +2766,8 @@ async def sample_list_evaluations():
Args:
request (Optional[Union[google.cloud.documentai_v1.types.ListEvaluationsRequest, dict]]):
The request object. Retrieves a list of evaluations for
a given ProcessorVersion.
The request object. Retrieves a list of evaluations for a
given ProcessorVersion.
parent (:class:`str`):
Required. The resource name of the
[ProcessorVersion][google.cloud.documentai.v1.ProcessorVersion]
Expand Down
Expand Up @@ -1646,7 +1646,8 @@ def sample_list_processor_versions():
Args:
request (Union[google.cloud.documentai_v1.types.ListProcessorVersionsRequest, dict]):
The request object. Request message for list all
processor versions belongs to a processor.
processor versions belongs to a
processor.
parent (str):
Required. The parent (project, location and processor)
to list all versions. Format:
Expand Down Expand Up @@ -2144,9 +2145,10 @@ def sample_create_processor():
Args:
request (Union[google.cloud.documentai_v1.types.CreateProcessorRequest, dict]):
The request object. Request message for create a
processor. Notice this request is sent to a regionalized
backend service, and if the processor type is not
available on that region, the creation will fail.
processor. Notice this request is sent
to a regionalized backend service, and
if the processor type is not available
on that region, the creation will fail.
parent (str):
Required. The parent (project and location) under which
to create the processor. Format:
Expand Down Expand Up @@ -3063,8 +3065,8 @@ def sample_list_evaluations():
Args:
request (Union[google.cloud.documentai_v1.types.ListEvaluationsRequest, dict]):
The request object. Retrieves a list of evaluations for
a given ProcessorVersion.
The request object. Retrieves a list of evaluations for a
given ProcessorVersion.
parent (str):
Required. The resource name of the
[ProcessorVersion][google.cloud.documentai.v1.ProcessorVersion]
Expand Down
Expand Up @@ -1116,7 +1116,6 @@ def __call__(
request (~.document_processor_service.BatchProcessRequest):
The request object. Request message for batch process
document method.
retry (google.api_core.retry.Retry): Designation of what errors, if any,
should be retried.
timeout (float): The timeout for this request.
Expand Down Expand Up @@ -1224,7 +1223,6 @@ def __call__(
to a regionalized backend service, and
if the processor type is not available
on that region, the creation will fail.
retry (google.api_core.retry.Retry): Designation of what errors, if any,
should be retried.
timeout (float): The timeout for this request.
Expand Down Expand Up @@ -1327,7 +1325,6 @@ def __call__(
request (~.document_processor_service.DeleteProcessorRequest):
The request object. Request message for the delete
processor method.
retry (google.api_core.retry.Retry): Designation of what errors, if any,
should be retried.
timeout (float): The timeout for this request.
Expand Down Expand Up @@ -1418,7 +1415,6 @@ def __call__(
request (~.document_processor_service.DeleteProcessorVersionRequest):
The request object. Request message for the delete
processor version method.
retry (google.api_core.retry.Retry): Designation of what errors, if any,
should be retried.
timeout (float): The timeout for this request.
Expand Down Expand Up @@ -1511,7 +1507,6 @@ def __call__(
request (~.document_processor_service.DeployProcessorVersionRequest):
The request object. Request message for the deploy
processor version method.
retry (google.api_core.retry.Retry): Designation of what errors, if any,
should be retried.
timeout (float): The timeout for this request.
Expand Down Expand Up @@ -1613,7 +1608,6 @@ def __call__(
request (~.document_processor_service.DisableProcessorRequest):
The request object. Request message for the disable
processor method.
retry (google.api_core.retry.Retry): Designation of what errors, if any,
should be retried.
timeout (float): The timeout for this request.
Expand Down Expand Up @@ -1713,7 +1707,6 @@ def __call__(
request (~.document_processor_service.EnableProcessorRequest):
The request object. Request message for the enable
processor method.
retry (google.api_core.retry.Retry): Designation of what errors, if any,
should be retried.
timeout (float): The timeout for this request.
Expand Down Expand Up @@ -1814,7 +1807,6 @@ def __call__(
request (~.document_processor_service.EvaluateProcessorVersionRequest):
The request object. Evaluates the given ProcessorVersion
against the supplied documents.
retry (google.api_core.retry.Retry): Designation of what errors, if any,
should be retried.
timeout (float): The timeout for this request.
Expand Down Expand Up @@ -1916,7 +1908,6 @@ def __call__(
request (~.document_processor_service.FetchProcessorTypesRequest):
The request object. Request message for fetch processor
types.
retry (google.api_core.retry.Retry): Designation of what errors, if any,
should be retried.
timeout (float): The timeout for this request.
Expand Down Expand Up @@ -2280,7 +2271,6 @@ def __call__(
request (~.document_processor_service.GetProcessorVersionRequest):
The request object. Request message for get processor
version.
retry (google.api_core.retry.Retry): Designation of what errors, if any,
should be retried.
timeout (float): The timeout for this request.
Expand Down Expand Up @@ -2381,7 +2371,6 @@ def __call__(
request (~.document_processor_service.ListEvaluationsRequest):
The request object. Retrieves a list of evaluations for a
given ProcessorVersion.
retry (google.api_core.retry.Retry): Designation of what errors, if any,
should be retried.
timeout (float): The timeout for this request.
Expand Down Expand Up @@ -2471,7 +2460,6 @@ def __call__(
request (~.document_processor_service.ListProcessorsRequest):
The request object. Request message for list all
processors belongs to a project.
retry (google.api_core.retry.Retry): Designation of what errors, if any,
should be retried.
timeout (float): The timeout for this request.
Expand Down Expand Up @@ -2559,7 +2547,6 @@ def __call__(
request (~.document_processor_service.ListProcessorTypesRequest):
The request object. Request message for list processor
types.
retry (google.api_core.retry.Retry): Designation of what errors, if any,
should be retried.
timeout (float): The timeout for this request.
Expand Down Expand Up @@ -2654,7 +2641,6 @@ def __call__(
The request object. Request message for list all
processor versions belongs to a
processor.
retry (google.api_core.retry.Retry): Designation of what errors, if any,
should be retried.
timeout (float): The timeout for this request.
Expand Down Expand Up @@ -2746,7 +2732,6 @@ def __call__(
request (~.document_processor_service.ProcessRequest):
The request object. Request message for the process
document method.
retry (google.api_core.retry.Retry): Designation of what errors, if any,
should be retried.
timeout (float): The timeout for this request.
Expand Down Expand Up @@ -2852,7 +2837,6 @@ def __call__(
request (~.document_processor_service.ReviewDocumentRequest):
The request object. Request message for review document
method.
retry (google.api_core.retry.Retry): Designation of what errors, if any,
should be retried.
timeout (float): The timeout for this request.
Expand Down Expand Up @@ -2951,7 +2935,6 @@ def __call__(
request (~.document_processor_service.SetDefaultProcessorVersionRequest):
The request object. Request message for the set default
processor version method.
retry (google.api_core.retry.Retry): Designation of what errors, if any,
should be retried.
timeout (float): The timeout for this request.
Expand Down Expand Up @@ -3053,7 +3036,6 @@ def __call__(
request (~.document_processor_service.TrainProcessorVersionRequest):
The request object. Request message for the create
processor version method.
retry (google.api_core.retry.Retry): Designation of what errors, if any,
should be retried.
timeout (float): The timeout for this request.
Expand Down Expand Up @@ -3156,7 +3138,6 @@ def __call__(
request (~.document_processor_service.UndeployProcessorVersionRequest):
The request object. Request message for the undeploy
processor version method.
retry (google.api_core.retry.Retry): Designation of what errors, if any,
should be retried.
timeout (float): The timeout for this request.
Expand Down
Expand Up @@ -277,9 +277,9 @@ async def sample_batch_process_documents():
Args:
request (Optional[Union[google.cloud.documentai_v1beta2.types.BatchProcessDocumentsRequest, dict]]):
The request object. Request to batch process documents
as an asynchronous operation. The output is written to
Cloud Storage as JSON in the [Document] format.
The request object. Request to batch process documents as an asynchronous
operation. The output is written to Cloud Storage as
JSON in the [Document] format.
requests (:class:`MutableSequence[google.cloud.documentai_v1beta2.types.ProcessDocumentRequest]`):
Required. Individual requests for
each document.
Expand Down
Expand Up @@ -481,9 +481,9 @@ def sample_batch_process_documents():
Args:
request (Union[google.cloud.documentai_v1beta2.types.BatchProcessDocumentsRequest, dict]):
The request object. Request to batch process documents
as an asynchronous operation. The output is written to
Cloud Storage as JSON in the [Document] format.
The request object. Request to batch process documents as an asynchronous
operation. The output is written to Cloud Storage as
JSON in the [Document] format.
requests (MutableSequence[google.cloud.documentai_v1beta2.types.ProcessDocumentRequest]):
Required. Individual requests for
each document.
Expand Down
Expand Up @@ -1366,7 +1366,8 @@ async def sample_list_processor_versions():
Args:
request (Optional[Union[google.cloud.documentai_v1beta3.types.ListProcessorVersionsRequest, dict]]):
The request object. Request message for list all
processor versions belongs to a processor.
processor versions belongs to a
processor.
parent (:class:`str`):
Required. The parent (project, location and processor)
to list all versions. Format:
Expand Down Expand Up @@ -1852,9 +1853,10 @@ async def sample_create_processor():
Args:
request (Optional[Union[google.cloud.documentai_v1beta3.types.CreateProcessorRequest, dict]]):
The request object. Request message for create a
processor. Notice this request is sent to a regionalized
backend service, and if the processor type is not
available on that region, the creation will fail.
processor. Notice this request is sent
to a regionalized backend service, and
if the processor type is not available
on that region, the creation will fail.
parent (:class:`str`):
Required. The parent (project and location) under which
to create the processor. Format:
Expand Down Expand Up @@ -2766,8 +2768,8 @@ async def sample_list_evaluations():
Args:
request (Optional[Union[google.cloud.documentai_v1beta3.types.ListEvaluationsRequest, dict]]):
The request object. Retrieves a list of evaluations for
a given ProcessorVersion.
The request object. Retrieves a list of evaluations for a
given ProcessorVersion.
parent (:class:`str`):
Required. The resource name of the
[ProcessorVersion][google.cloud.documentai.v1beta3.ProcessorVersion]
Expand Down Expand Up @@ -2889,14 +2891,16 @@ async def sample_import_processor_version():
Args:
request (Optional[Union[google.cloud.documentai_v1beta3.types.ImportProcessorVersionRequest, dict]]):
The request object. The request message for the
ImportProcessorVersion method. This method requires
Document AI Service Agent of the destination project in
the source project's IAM with [Document AI Editor
role](https://cloud.google.com/document-ai/docs/access-control/iam-roles).
The request object. The request message for the ImportProcessorVersion
method. This method requires Document AI Service Agent
of the destination project in the source project's IAM
with `Document AI Editor
role <https://cloud.google.com/document-ai/docs/access-control/iam-roles>`__.
The destination project is specified as part of the
`parent` field. The source project is specified as part
of `source` field.
``parent`` field. The source project is specified as
part of ``source`` field.
The Service Agent for Document AI can be found in
https://cloud.google.com/iam/docs/service-agents.
parent (:class:`str`):
Expand Down
Expand Up @@ -1648,7 +1648,8 @@ def sample_list_processor_versions():
Args:
request (Union[google.cloud.documentai_v1beta3.types.ListProcessorVersionsRequest, dict]):
The request object. Request message for list all
processor versions belongs to a processor.
processor versions belongs to a
processor.
parent (str):
Required. The parent (project, location and processor)
to list all versions. Format:
Expand Down Expand Up @@ -2146,9 +2147,10 @@ def sample_create_processor():
Args:
request (Union[google.cloud.documentai_v1beta3.types.CreateProcessorRequest, dict]):
The request object. Request message for create a
processor. Notice this request is sent to a regionalized
backend service, and if the processor type is not
available on that region, the creation will fail.
processor. Notice this request is sent
to a regionalized backend service, and
if the processor type is not available
on that region, the creation will fail.
parent (str):
Required. The parent (project and location) under which
to create the processor. Format:
Expand Down Expand Up @@ -3065,8 +3067,8 @@ def sample_list_evaluations():
Args:
request (Union[google.cloud.documentai_v1beta3.types.ListEvaluationsRequest, dict]):
The request object. Retrieves a list of evaluations for
a given ProcessorVersion.
The request object. Retrieves a list of evaluations for a
given ProcessorVersion.
parent (str):
Required. The resource name of the
[ProcessorVersion][google.cloud.documentai.v1beta3.ProcessorVersion]
Expand Down Expand Up @@ -3188,14 +3190,16 @@ def sample_import_processor_version():
Args:
request (Union[google.cloud.documentai_v1beta3.types.ImportProcessorVersionRequest, dict]):
The request object. The request message for the
ImportProcessorVersion method. This method requires
Document AI Service Agent of the destination project in
the source project's IAM with [Document AI Editor
role](https://cloud.google.com/document-ai/docs/access-control/iam-roles).
The request object. The request message for the ImportProcessorVersion
method. This method requires Document AI Service Agent
of the destination project in the source project's IAM
with `Document AI Editor
role <https://cloud.google.com/document-ai/docs/access-control/iam-roles>`__.
The destination project is specified as part of the
`parent` field. The source project is specified as part
of `source` field.
``parent`` field. The source project is specified as
part of ``source`` field.
The Service Agent for Document AI can be found in
https://cloud.google.com/iam/docs/service-agents.
parent (str):
Expand Down

0 comments on commit c415325

Please sign in to comment.