From 82adb91365bcbe6c85c1981f3e046839158fb4e3 Mon Sep 17 00:00:00 2001 From: Holt Skinner Date: Thu, 5 Jan 2023 14:09:39 -0600 Subject: [PATCH] Fixed Typo in Comments - `other than 'us', e.g.:` -> `other than 'us'.` --- .../batch_process_documents_processor_version_sample.py | 2 +- documentai/snippets/batch_process_documents_sample.py | 2 +- documentai/snippets/cancel_operation_sample.py | 2 +- documentai/snippets/create_processor_sample.py | 2 +- documentai/snippets/delete_processor_sample.py | 2 +- documentai/snippets/delete_processor_version_sample.py | 2 +- documentai/snippets/deploy_processor_version_sample.py | 2 +- documentai/snippets/disable_processor_sample.py | 2 +- documentai/snippets/enable_processor_sample.py | 2 +- documentai/snippets/fetch_processor_types_sample.py | 2 +- documentai/snippets/get_operation_sample.py | 2 +- documentai/snippets/get_processor_sample.py | 2 +- documentai/snippets/get_processor_version_sample.py | 2 +- documentai/snippets/list_operations_sample.py | 2 +- documentai/snippets/list_processor_versions_sample.py | 2 +- documentai/snippets/list_processors_sample.py | 2 +- documentai/snippets/poll_operation_sample.py | 2 +- documentai/snippets/process_document_form_sample.py | 2 +- documentai/snippets/process_document_ocr_sample.py | 2 +- .../snippets/process_document_processor_version_sample.py | 2 +- documentai/snippets/process_document_quality_sample.py | 2 +- documentai/snippets/process_document_sample.py | 2 +- documentai/snippets/process_document_specialized_sample.py | 2 +- documentai/snippets/process_document_splitter_sample.py | 2 +- documentai/snippets/quickstart_sample.py | 2 +- documentai/snippets/review_document_sample.py | 4 ++-- documentai/snippets/set_default_processor_version_sample.py | 2 +- documentai/snippets/undeploy_processor_version_sample.py | 2 +- 28 files changed, 29 insertions(+), 29 deletions(-) diff --git a/documentai/snippets/batch_process_documents_processor_version_sample.py b/documentai/snippets/batch_process_documents_processor_version_sample.py index ce169eaba466..71834c70d4f5 100644 --- a/documentai/snippets/batch_process_documents_processor_version_sample.py +++ b/documentai/snippets/batch_process_documents_processor_version_sample.py @@ -47,7 +47,7 @@ def batch_process_documents_processor_version( timeout: int = 400, ): - # You must set the api_endpoint if you use a location other than 'us', e.g.: + # You must set the api_endpoint if you use a location other than 'us'. opts = ClientOptions(api_endpoint=f"{location}-documentai.googleapis.com") client = documentai.DocumentProcessorServiceClient(client_options=opts) diff --git a/documentai/snippets/batch_process_documents_sample.py b/documentai/snippets/batch_process_documents_sample.py index 50467adbc262..ee38a273517b 100644 --- a/documentai/snippets/batch_process_documents_sample.py +++ b/documentai/snippets/batch_process_documents_sample.py @@ -45,7 +45,7 @@ def batch_process_documents( timeout: int = 400, ): - # You must set the api_endpoint if you use a location other than 'us', e.g.: + # You must set the api_endpoint if you use a location other than 'us'. opts = ClientOptions(api_endpoint=f"{location}-documentai.googleapis.com") client = documentai.DocumentProcessorServiceClient(client_options=opts) diff --git a/documentai/snippets/cancel_operation_sample.py b/documentai/snippets/cancel_operation_sample.py index 69335397cd37..31f3b85f8e68 100644 --- a/documentai/snippets/cancel_operation_sample.py +++ b/documentai/snippets/cancel_operation_sample.py @@ -27,7 +27,7 @@ def cancel_operation_sample(location: str, operation_name: str): - # You must set the api_endpoint if you use a location other than 'us', e.g.: + # You must set the api_endpoint if you use a location other than 'us'. opts = ClientOptions(api_endpoint=f"{location}-documentai.googleapis.com") client = documentai.DocumentProcessorServiceClient(client_options=opts) diff --git a/documentai/snippets/create_processor_sample.py b/documentai/snippets/create_processor_sample.py index 916dbe4ac028..b4f23c3a2c7b 100644 --- a/documentai/snippets/create_processor_sample.py +++ b/documentai/snippets/create_processor_sample.py @@ -28,7 +28,7 @@ def create_processor_sample( project_id: str, location: str, processor_display_name: str, processor_type: str ): - # You must set the api_endpoint if you use a location other than 'us', e.g.: + # You must set the api_endpoint if you use a location other than 'us'. opts = ClientOptions(api_endpoint=f"{location}-documentai.googleapis.com") client = documentai.DocumentProcessorServiceClient(client_options=opts) diff --git a/documentai/snippets/delete_processor_sample.py b/documentai/snippets/delete_processor_sample.py index fe86b57aad42..e3f9bed4c0f5 100644 --- a/documentai/snippets/delete_processor_sample.py +++ b/documentai/snippets/delete_processor_sample.py @@ -26,7 +26,7 @@ def delete_processor_sample(project_id: str, location: str, processor_id: str): - # You must set the api_endpoint if you use a location other than 'us', e.g.: + # You must set the api_endpoint if you use a location other than 'us'. opts = ClientOptions(api_endpoint=f"{location}-documentai.googleapis.com") client = documentai.DocumentProcessorServiceClient(client_options=opts) diff --git a/documentai/snippets/delete_processor_version_sample.py b/documentai/snippets/delete_processor_version_sample.py index 50a368e5b13a..244747cc28af 100644 --- a/documentai/snippets/delete_processor_version_sample.py +++ b/documentai/snippets/delete_processor_version_sample.py @@ -30,7 +30,7 @@ def delete_processor_version_sample( project_id: str, location: str, processor_id: str, processor_version_id: str ): - # You must set the api_endpoint if you use a location other than 'us', e.g.: + # You must set the api_endpoint if you use a location other than 'us'. opts = ClientOptions(api_endpoint=f"{location}-documentai.googleapis.com") client = documentai.DocumentProcessorServiceClient(client_options=opts) diff --git a/documentai/snippets/deploy_processor_version_sample.py b/documentai/snippets/deploy_processor_version_sample.py index 217a23b3f4e6..45c81a552daf 100644 --- a/documentai/snippets/deploy_processor_version_sample.py +++ b/documentai/snippets/deploy_processor_version_sample.py @@ -29,7 +29,7 @@ def deploy_processor_version_sample( project_id: str, location: str, processor_id: str, processor_version_id: str ): - # You must set the api_endpoint if you use a location other than 'us', e.g.: + # You must set the api_endpoint if you use a location other than 'us'. opts = ClientOptions(api_endpoint=f"{location}-documentai.googleapis.com") client = documentai.DocumentProcessorServiceClient(client_options=opts) diff --git a/documentai/snippets/disable_processor_sample.py b/documentai/snippets/disable_processor_sample.py index 2b99e7d8aa19..40155a4d20cd 100644 --- a/documentai/snippets/disable_processor_sample.py +++ b/documentai/snippets/disable_processor_sample.py @@ -26,7 +26,7 @@ def disable_processor_sample(project_id: str, location: str, processor_id: str): - # You must set the api_endpoint if you use a location other than 'us', e.g.: + # You must set the api_endpoint if you use a location other than 'us'. opts = ClientOptions(api_endpoint=f"{location}-documentai.googleapis.com") client = documentai.DocumentProcessorServiceClient(client_options=opts) diff --git a/documentai/snippets/enable_processor_sample.py b/documentai/snippets/enable_processor_sample.py index 42fddf77a79c..d4e43461ed2f 100644 --- a/documentai/snippets/enable_processor_sample.py +++ b/documentai/snippets/enable_processor_sample.py @@ -26,7 +26,7 @@ def enable_processor_sample(project_id: str, location: str, processor_id: str): - # You must set the api_endpoint if you use a location other than 'us', e.g.: + # You must set the api_endpoint if you use a location other than 'us'. opts = ClientOptions(api_endpoint=f"{location}-documentai.googleapis.com") client = documentai.DocumentProcessorServiceClient(client_options=opts) diff --git a/documentai/snippets/fetch_processor_types_sample.py b/documentai/snippets/fetch_processor_types_sample.py index cd6ead86efba..19670e09484f 100644 --- a/documentai/snippets/fetch_processor_types_sample.py +++ b/documentai/snippets/fetch_processor_types_sample.py @@ -24,7 +24,7 @@ def fetch_processor_types_sample(project_id: str, location: str): - # You must set the api_endpoint if you use a location other than 'us', e.g.: + # You must set the api_endpoint if you use a location other than 'us'. opts = ClientOptions(api_endpoint=f"{location}-documentai.googleapis.com") client = documentai.DocumentProcessorServiceClient(client_options=opts) diff --git a/documentai/snippets/get_operation_sample.py b/documentai/snippets/get_operation_sample.py index de8e01ae5135..386ee1201e11 100644 --- a/documentai/snippets/get_operation_sample.py +++ b/documentai/snippets/get_operation_sample.py @@ -26,7 +26,7 @@ def get_operation_sample(location: str, operation_name: str): - # You must set the api_endpoint if you use a location other than 'us', e.g.: + # You must set the api_endpoint if you use a location other than 'us'. opts = ClientOptions(api_endpoint=f"{location}-documentai.googleapis.com") client = documentai.DocumentProcessorServiceClient(client_options=opts) diff --git a/documentai/snippets/get_processor_sample.py b/documentai/snippets/get_processor_sample.py index d4d91ee4b182..ebe63d9a15de 100644 --- a/documentai/snippets/get_processor_sample.py +++ b/documentai/snippets/get_processor_sample.py @@ -25,7 +25,7 @@ def get_processor_sample(project_id: str, location: str, processor_id: str): - # You must set the api_endpoint if you use a location other than 'us', e.g.: + # You must set the api_endpoint if you use a location other than 'us'. opts = ClientOptions(api_endpoint=f"{location}-documentai.googleapis.com") client = documentai.DocumentProcessorServiceClient(client_options=opts) diff --git a/documentai/snippets/get_processor_version_sample.py b/documentai/snippets/get_processor_version_sample.py index 5dc0babd7931..6c460bc29a69 100644 --- a/documentai/snippets/get_processor_version_sample.py +++ b/documentai/snippets/get_processor_version_sample.py @@ -28,7 +28,7 @@ def get_processor_version_sample( project_id: str, location: str, processor_id: str, processor_version_id: str ): - # You must set the api_endpoint if you use a location other than 'us', e.g.: + # You must set the api_endpoint if you use a location other than 'us'. opts = ClientOptions(api_endpoint=f"{location}-documentai.googleapis.com") client = documentai.DocumentProcessorServiceClient(client_options=opts) diff --git a/documentai/snippets/list_operations_sample.py b/documentai/snippets/list_operations_sample.py index 5235e757a68d..2a3573be77ac 100644 --- a/documentai/snippets/list_operations_sample.py +++ b/documentai/snippets/list_operations_sample.py @@ -33,7 +33,7 @@ def list_operations_sample(project_id: str, location: str, operations_filter: str): - # You must set the api_endpoint if you use a location other than 'us', e.g.: + # You must set the api_endpoint if you use a location other than 'us'. opts = ClientOptions(api_endpoint=f"{location}-documentai.googleapis.com") client = documentai.DocumentProcessorServiceClient(client_options=opts) diff --git a/documentai/snippets/list_processor_versions_sample.py b/documentai/snippets/list_processor_versions_sample.py index f615c1bbaa18..9affed925868 100644 --- a/documentai/snippets/list_processor_versions_sample.py +++ b/documentai/snippets/list_processor_versions_sample.py @@ -25,7 +25,7 @@ def list_processor_versions_sample(project_id: str, location: str, processor_id: str): - # You must set the api_endpoint if you use a location other than 'us', e.g.: + # You must set the api_endpoint if you use a location other than 'us'. opts = ClientOptions(api_endpoint=f"{location}-documentai.googleapis.com") client = documentai.DocumentProcessorServiceClient(client_options=opts) diff --git a/documentai/snippets/list_processors_sample.py b/documentai/snippets/list_processors_sample.py index 06515171688b..d4a654eb9690 100644 --- a/documentai/snippets/list_processors_sample.py +++ b/documentai/snippets/list_processors_sample.py @@ -24,7 +24,7 @@ def list_processors_sample(project_id: str, location: str): - # You must set the api_endpoint if you use a location other than 'us', e.g.: + # You must set the api_endpoint if you use a location other than 'us'. opts = ClientOptions(api_endpoint=f"{location}-documentai.googleapis.com") client = documentai.DocumentProcessorServiceClient(client_options=opts) diff --git a/documentai/snippets/poll_operation_sample.py b/documentai/snippets/poll_operation_sample.py index e5ec54418456..17a055a82677 100644 --- a/documentai/snippets/poll_operation_sample.py +++ b/documentai/snippets/poll_operation_sample.py @@ -28,7 +28,7 @@ def poll_operation_sample(location: str, operation_name: str): - # You must set the api_endpoint if you use a location other than 'us', e.g.: + # You must set the api_endpoint if you use a location other than 'us'. opts = ClientOptions(api_endpoint=f"{location}-documentai.googleapis.com") client = documentai.DocumentProcessorServiceClient(client_options=opts) diff --git a/documentai/snippets/process_document_form_sample.py b/documentai/snippets/process_document_form_sample.py index c113d6a8a57c..f3b323bdd292 100644 --- a/documentai/snippets/process_document_form_sample.py +++ b/documentai/snippets/process_document_form_sample.py @@ -74,7 +74,7 @@ def process_document_form_sample( def process_document( project_id: str, location: str, processor_id: str, file_path: str, mime_type: str ) -> documentai.Document: - # You must set the api_endpoint if you use a location other than 'us', e.g.: + # You must set the api_endpoint if you use a location other than 'us'. opts = ClientOptions(api_endpoint=f"{location}-documentai.googleapis.com") client = documentai.DocumentProcessorServiceClient(client_options=opts) diff --git a/documentai/snippets/process_document_ocr_sample.py b/documentai/snippets/process_document_ocr_sample.py index 569c33b0fa14..a8fb6605e09a 100644 --- a/documentai/snippets/process_document_ocr_sample.py +++ b/documentai/snippets/process_document_ocr_sample.py @@ -71,7 +71,7 @@ def process_document( file_path: str, mime_type: str, ) -> documentai.Document: - # You must set the api_endpoint if you use a location other than 'us', e.g.: + # You must set the api_endpoint if you use a location other than 'us'. opts = ClientOptions(api_endpoint=f"{location}-documentai.googleapis.com") client = documentai.DocumentProcessorServiceClient(client_options=opts) diff --git a/documentai/snippets/process_document_processor_version_sample.py b/documentai/snippets/process_document_processor_version_sample.py index 39db461e0bd5..ecc1b2ed4eb0 100644 --- a/documentai/snippets/process_document_processor_version_sample.py +++ b/documentai/snippets/process_document_processor_version_sample.py @@ -37,7 +37,7 @@ def process_document_processor_version_sample( mime_type: str, field_mask: str = None, ): - # You must set the api_endpoint if you use a location other than 'us', e.g.: + # You must set the api_endpoint if you use a location other than 'us'. opts = ClientOptions(api_endpoint=f"{location}-documentai.googleapis.com") client = documentai.DocumentProcessorServiceClient(client_options=opts) diff --git a/documentai/snippets/process_document_quality_sample.py b/documentai/snippets/process_document_quality_sample.py index 79e889772f24..74b86400cff7 100644 --- a/documentai/snippets/process_document_quality_sample.py +++ b/documentai/snippets/process_document_quality_sample.py @@ -53,7 +53,7 @@ def process_document_quality_sample( def process_document( project_id: str, location: str, processor_id: str, file_path: str, mime_type: str ) -> documentai.Document: - # You must set the api_endpoint if you use a location other than 'us', e.g.: + # You must set the api_endpoint if you use a location other than 'us'. opts = ClientOptions(api_endpoint=f"{location}-documentai.googleapis.com") client = documentai.DocumentProcessorServiceClient(client_options=opts) diff --git a/documentai/snippets/process_document_sample.py b/documentai/snippets/process_document_sample.py index 2cd935382411..c0d5ee9f9760 100644 --- a/documentai/snippets/process_document_sample.py +++ b/documentai/snippets/process_document_sample.py @@ -35,7 +35,7 @@ def process_document_sample( mime_type: str, field_mask: str = None, ): - # You must set the api_endpoint if you use a location other than 'us', e.g.: + # You must set the api_endpoint if you use a location other than 'us'. opts = ClientOptions(api_endpoint=f"{location}-documentai.googleapis.com") client = documentai.DocumentProcessorServiceClient(client_options=opts) diff --git a/documentai/snippets/process_document_specialized_sample.py b/documentai/snippets/process_document_specialized_sample.py index 272d8cdc8155..2b45f8803ae5 100644 --- a/documentai/snippets/process_document_specialized_sample.py +++ b/documentai/snippets/process_document_specialized_sample.py @@ -71,7 +71,7 @@ def print_entity(entity: documentai.Document.Entity) -> None: def process_document( project_id: str, location: str, processor_id: str, file_path: str, mime_type: str ) -> documentai.Document: - # You must set the api_endpoint if you use a location other than 'us', e.g.: + # You must set the api_endpoint if you use a location other than 'us'. opts = ClientOptions(api_endpoint=f"{location}-documentai.googleapis.com") client = documentai.DocumentProcessorServiceClient(client_options=opts) diff --git a/documentai/snippets/process_document_splitter_sample.py b/documentai/snippets/process_document_splitter_sample.py index e49e8ff1895a..99a7e54e3ca4 100644 --- a/documentai/snippets/process_document_splitter_sample.py +++ b/documentai/snippets/process_document_splitter_sample.py @@ -60,7 +60,7 @@ def process_document_splitter_sample( def process_document( project_id: str, location: str, processor_id: str, file_path: str, mime_type: str ) -> documentai.Document: - # You must set the api_endpoint if you use a location other than 'us', e.g.: + # You must set the api_endpoint if you use a location other than 'us'. opts = ClientOptions(api_endpoint=f"{location}-documentai.googleapis.com") client = documentai.DocumentProcessorServiceClient(client_options=opts) diff --git a/documentai/snippets/quickstart_sample.py b/documentai/snippets/quickstart_sample.py index e830acdf9e0a..cb15ccf35ef3 100644 --- a/documentai/snippets/quickstart_sample.py +++ b/documentai/snippets/quickstart_sample.py @@ -31,7 +31,7 @@ def quickstart( project_id: str, location: str, processor_id: str, file_path: str, mime_type: str ): - # You must set the api_endpoint if you use a location other than 'us', e.g.: + # You must set the api_endpoint if you use a location other than 'us'. opts = ClientOptions(api_endpoint=f"{location}-documentai.googleapis.com") client = documentai.DocumentProcessorServiceClient(client_options=opts) diff --git a/documentai/snippets/review_document_sample.py b/documentai/snippets/review_document_sample.py index 969cf59a1c6b..a71946518805 100644 --- a/documentai/snippets/review_document_sample.py +++ b/documentai/snippets/review_document_sample.py @@ -29,7 +29,7 @@ def review_document_sample( project_id: str, location: str, processor_id: str, file_path: str, mime_type: str ): - # You must set the api_endpoint if you use a location other than 'us', e.g.: + # You must set the api_endpoint if you use a location other than 'us'. opts = ClientOptions(api_endpoint=f"{location}-documentai.googleapis.com") # Create a client @@ -67,7 +67,7 @@ def review_document_sample( def process_document( project_id: str, location: str, processor_id: str, file_path: str, mime_type: str ) -> documentai.Document: - # You must set the api_endpoint if you use a location other than 'us', e.g.: + # You must set the api_endpoint if you use a location other than 'us'. opts = ClientOptions(api_endpoint=f"{location}-documentai.googleapis.com") client = documentai.DocumentProcessorServiceClient(client_options=opts) diff --git a/documentai/snippets/set_default_processor_version_sample.py b/documentai/snippets/set_default_processor_version_sample.py index 2c7c379703cf..2f96674cb7ec 100644 --- a/documentai/snippets/set_default_processor_version_sample.py +++ b/documentai/snippets/set_default_processor_version_sample.py @@ -29,7 +29,7 @@ def set_default_processor_version_sample( project_id: str, location: str, processor_id: str, processor_version_id: str ): - # You must set the api_endpoint if you use a location other than 'us', e.g.: + # You must set the api_endpoint if you use a location other than 'us'. opts = ClientOptions(api_endpoint=f"{location}-documentai.googleapis.com") client = documentai.DocumentProcessorServiceClient(client_options=opts) diff --git a/documentai/snippets/undeploy_processor_version_sample.py b/documentai/snippets/undeploy_processor_version_sample.py index 2174ef2cbb7f..a3ac91ce1dd7 100644 --- a/documentai/snippets/undeploy_processor_version_sample.py +++ b/documentai/snippets/undeploy_processor_version_sample.py @@ -30,7 +30,7 @@ def undeploy_processor_version_sample( project_id: str, location: str, processor_id: str, processor_version_id: str ): - # You must set the api_endpoint if you use a location other than 'us', e.g.: + # You must set the api_endpoint if you use a location other than 'us'. opts = ClientOptions(api_endpoint=f"{location}-documentai.googleapis.com") client = documentai.DocumentProcessorServiceClient(client_options=opts)