8000 Fixed Typo in Comments · apilaskowski/python-docs-samples@82adb91 · GitHub
[go: up one dir, main page]

Skip to content

Commit 82adb91

Browse files
holtskinnerdandhlee
authored andcommitted
Fixed Typo in Comments
- `other than 'us', e.g.:` -> `other than 'us'.`
1 parent ab01937 commit 82adb91

28 files changed

+29
-29
lines changed

documentai/snippets/batch_process_documents_processor_version_sample.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ def batch_process_documents_processor_version(
4747
timeout: int = 400,
4848
):
4949

50-
# You must set the api_endpoint if you use a location other than 'us', e.g.:
50+
# You must set the api_endpoint if you use a location other than 'us'.
5151
opts = ClientOptions(api_endpoint=f"{location}-documentai.googleapis.com")
5252

5353
client = documentai.DocumentProcessorServiceClient(client_options=opts)

documentai/snippets/batch_process_documents_sample.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ def batch_process_documents(
4545
timeout: int = 400,
4646
):
4747

48-
# You must set the api_endpoint if 57AE you use a location other than 'us', e.g.:
48+
# You must set the api_endpoint if you use a location other than 'us'.
4949
opts = ClientOptions(api_endpoint=f"{location}-documentai.googleapis.com")
5050

5151
client = documentai.DocumentProcessorServiceClient(client_options=opts)

documentai/snippets/cancel_operation_sample.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727

2828

2929
def cancel_operation_sample(location: str, operation_name: str):
30-
# You must set the api_endpoint if you use a location other than 'us', e.g.:
30+
# You must set the api_endpoint if you use a location other than 'us'.
3131
opts = ClientOptions(api_endpoint=f"{location}-documentai.googleapis.com")
3232

3333
client = documentai.DocumentProcessorServiceClient(client_options=opts)

documentai/snippets/create_processor_sample.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
def create_processor_sample(
2929
project_id: str, location: str, processor_display_name: str, processor_type: str
3030
):
31-
# You must set the api_endpoint if you use a location other than 'us', e.g.:
31+
# You must set the api_endpoint if you use a location other than 'us'.
3232
opts = ClientOptions(api_endpoint=f"{location}-documentai.googleapis.com")
3333

3434
client = documentai.DocumentProcessorServiceClient(client_options=opts)

documentai/snippets/delete_processor_sample.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626

2727

2828
def delete_processor_sample(project_id: str, location: str, processor_id: str):
29-
# You must set the api_endpoint if you use a location other than 'us', e.g.:
29+
# You must set the api_endpoint if you use a location other than 'us'.
3030
opts = ClientOptions(api_endpoint=f"{location}-documentai.googleapis.com")
3131

3232
client = documentai.DocumentProcessorServiceClient(client_options=opts)

documentai/snippets/delete_processor_version_sample.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
def delete_processor_version_sample(
3131
project_id: str, location: str, processor_id: str, processor_version_id: str
3232
):
33-
# You must set the api_endpoint if you use a location other than 'us', e.g.:
33+
# You must set the api_endpoint if you use a location other than 'us'.
3434
opts = ClientOptions(api_endpoint=f"{location}-documentai.googleapis.com")
3535

3636
client = documentai.DocumentProcessorServiceClient(client_options=opts)

documentai/snippets/deploy_processor_version_sample.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
def deploy_processor_version_sample(
3030
project_id: str, location: str, processor_id: str, processor_version_id: str
3131
):
32-
# You must set the api_endpoint if you use a location other than 'us', e.g.:
32+
# You must set the api_endpoint if you use a location other than 'us'.
3333
opts = ClientOptions(api_endpoint=f"{location}-documentai.googleapis.com")
3434

3535
client = documentai.DocumentProcessorServiceClient(client_options=opts)

documentai/snippets/disable_processor_sample.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626

2727

2828
def disable_processor_sample(project_id: str, location: str, processor_id: str):
29-
# You must set the api_endpoint if you use a location other than 'us', e.g.:
29+
# You must set the api_endpoint if you use a location other than 'us'.
3030
opts = ClientOptions(api_endpoint=f"{location}-documentai.googleapis.com")
3131

3232
client = documentai.DocumentProcessorServiceClient(client_options=opts)

documentai/snippets/enable_processor_sample.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626

2727

2828
def enable_processor_sample(project_id: str, location: str, processor_id: str):
29-
# You must set the api_endpoint if you use a location other than 'us', e.g.:
29+
# You must set the api_endpoint if you use a location other than 'us'.
3030
opts = ClientOptions(api_endpoint=f"{location}-documentai.googleapis.com")
3131

3232
client = documentai.DocumentProcessorServiceClient(client_options=opts)

documentai/snippets/fetch_processor_types_sample.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424

2525

2626
def fetch_processor_types_sample(project_id: str, location: str):
27-
# You must set the api_endpoint if you use a location other than 'us', e.g.:
27+
# You must set the api_endpoint if you use a location other than 'us'.
2828
opts = ClientOptions(api_endpoint=f"{location}-documentai.googleapis.com")
2929

3030
client = documentai.DocumentProcessorServiceClient(client_options=opts)

documentai/snippets/get_operation_sample.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626

2727

2828
def get_operation_sample(location: str, operation_name: str):
29-
# You must set the api_endpoint if you use a location other than 'us', e.g.:
29+
# You must set the api_endpoint if you use a location other than 'us'.
3030
opts = ClientOptions(api_endpoint=f"{location}-documentai.googleapis.com")
3131

3232
client = documentai.DocumentProcessorServiceClient(client_options=opts)

documentai/snippets/get_processor_sample.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525

2626

2727
def get_processor_sample(project_id: str, location: str, processor_id: str):
28-
# You must set the api_endpoint if you use a location other than 'us', e.g.:
28+
# You must set the api_endpoint if you use a location other than 'us'.
2929
opts = ClientOptions(api_endpoint=f"{location}-documentai.googleapis.com")
3030

3131
client = documentai.DocumentProcessorServiceClient(client_options=opts)

documentai/snippets/get_processor_version_sample.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
def get_processor_version_sample(
2929
project_id: str, location: str, processor_id: str, processor_version_id: str
3030
):
31-
# You must set the api_endpoint if you use a location other than 'us', e.g.:
31+
# You must set the api_endpoint if you use a location other than 'us'.
3232
opts = ClientOptions(api_endpoint=f"{location}-documentai.googleapis.com")
3333

3434
client = documentai.DocumentProcessorServiceClient(client_options=opts)

documentai/snippets/list_operations_sample.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333

3434

3535
def list_operations_sample(project_id: str, location: str, operations_filter: str):
36-
# You must set the api_endpoint if you use a location other than 'us', e.g.:
36+
# You must set the api_endpoint if you use a location other than 'us'.
3737
opts = ClientOptions(api_endpoint=f"{location}-documentai.googleapis.com")
3838

3939
client = documentai.DocumentProcessorServiceClient(client_options=opts)

documentai/snippets/list_processor_versions_sample.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525

2626

2727
def list_processor_versions_sample(project_id: str, location: str, processor_id: str):
28-
# You must set the api_endpoint if you use a location other than 'us', e.g.:
28+
# You must set the api_endpoint if you use a location other than 'us'.
2929
opts = ClientOptions(api_endpoint=f"{location}-documentai.googleapis.com")
3030

3131
client = documentai.DocumentProcessorServiceClient(client_options=opts)

documentai/snippets/list_processors_sample.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424

2525

2626
def list_processors_sample(project_id: str, location: str):
27-
# You must set the api_endpoint if you use a location other than 'us', e.g.:
27+
# You must set the api_endpoint if you use a location other than 'us'.
2828
opts = ClientOptions(api_endpoint=f"{location}-documentai.googleapis.com")
2929

3030
client = documentai.DocumentProcessorServiceClient(client_options=opts)

documentai/snippets/poll_operation_sample.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828

2929

3030
def poll_operation_sample(location: str, operation_name: str):
31-
# You must set the api_endpoint if you use a location other than 'us', e.g.:
31+
# You must set the api_endpoint if you use a location other than 'us'.
3232
opts = ClientOptions(api_endpoint=f"{location}-documentai.googleapis.com")
3333

3434
client = documentai.DocumentProcessorServiceClient(client_options=opts)

documentai/snippets/process_document_form_sample.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ def process_document_form_sample(
7474
def process_document(
7575
project_id: str, location: str, processor_id: str, file_path: str, mime_type: str
7676
) -> documentai.Document:
77-
# You must set the api_endpoint if you use a location other than 'us', e.g.:
77+
# You must set the api_endpoint if you use a location other than 'us'.
7878
opts = ClientOptions(api_endpoint=f"{location}-documentai.googleapis.com")
7979

8080
client = documentai.DocumentProcessorServiceClient(client_options=opts)

documentai/snippets/process_document_ocr_sample.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ def process_document(
7171
file_path: str,
7272
mime_type: str,
7373
) -> documentai.Document:
74-
# You must set the api_endpoint if you use a location other than 'us', e.g.:
74+
# You must set the api_endpoint if you use a location other than 'us'.
7575
opts = ClientOptions(api_endpoint=f"{location}-documentai.googleapis.com")
7676

7777
client = documentai.DocumentProcessorServiceClient(client_options=opts)

documentai/snippets/process_document_processor_version_sample.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ def process_document_processor_version_sample(
3737
mime_type: str,
3838
field_mask: str = None,
3939
):
40-
# You must set the api_endpoint if you use a location other than 'us', e.g.:
40+
# You must set the api_endpoint if you use a location other than 'us'.
4141
opts = ClientOptions(api_endpoint=f"{location}-documentai.googleapis.com")
4242

4343
client = documentai.DocumentProcessorServiceClient(client_options=opts)

documentai/snippets/process_document_quality_sample.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ def process_document_quality_sample(
5353
def process_document(
5454
project_id: str, location: str, processor_id: str, file_path: str, mime_type: str
5555
) -> documentai.Document:
56-
# You must set the api_endpoint if you use a location other than 'us', e.g.:
56+
# You must set the api_endpoint if you use a location other than 'us'.
5757
opts = ClientOptions(api_endpoint=f"{location}-documentai.googleapis.com")
5858

5959
client = documentai.DocumentProcessorServiceClient(client_options=opts)

documentai/snippets/process_document_sample.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ def process_document_sample(
3535
mime_type: str,
3636
field_mask: str = None,
3737
):
38-
# You must set the api_endpoint if you use a location other than 'us', e.g.:
38+
# You must set the api_endpoint if you use a location other than 'us'.
3939
opts = ClientOptions(api_endpoint=f"{location}-documentai.googleapis.com")
4040

4141
client = documentai.DocumentProcessorServiceClient(client_options=opts)

documentai/snippets/process_document_specialized_sample.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ def print_entity(entity: documentai.Document.Entity) -> None:
7171
def process_document(
7272
project_id: str, location: str, processor_id: str, file_path: str, mime_type: str
7373
) -> documentai.Document:
74-
# You must set the api_endpoint if you use a location other than 'us', e.g.:
74+
# You must set the api_endpoint if you use a location other than 'us'.
7575
opts = ClientOptions(api_endpoint=f"{location}-documentai.googleapis.com")
7676

7777
client = documentai.DocumentProcessorServiceClient(client_options=opts)

documentai/snippets/process_document_splitter_sample.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ def process_document_splitter_sample(
6060
def process_document(
6161
project_id: str, location: str, processor_id: str, file_path: str, mime_type: str
6262
) -> documentai.Document:
63-
# You must set the api_endpoint if you use a location other than 'us', e.g.:
63+
# You must set the api_endpoint if you use a location other than 'us'.
6464
opts = ClientOptions(api_endpoint=f"{location}-documentai.googleapis.com")
6565

6666
client = documentai.DocumentProcessorServiceClient(client_options=opts)

documentai/snippets/quickstart_sample.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
def quickstart(
3232
project_id: str, location: str, processor_id: str, file_path: str, mime_type: str
3333
):
34-
# You must set the api_endpoint if you use a location other than 'us', e.g.:
34+
# You must set the api_endpoint if you use a location other than 'us'.
3535
opts = ClientOptions(api_endpoint=f"{location}-documentai.googleapis.com")
3636

3737
client = documentai.DocumentProcessorServiceClient(client_options=opts)

documentai/snippets/review_document_sample.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
def review_document_sample(
3030
project_id: str, location: str, processor_id: str, file_path: str, mime_type: str
3131
):
32-
# You must set the api_endpoint if you use a location other than 'us', e.g.:
32+
# You must set the api_endpoint if you use a location other than 'us'.
3333
opts = ClientOptions(api_endpoint=f"{location}-documentai.googleapis.com")
3434

3535
# Create a client
@@ -67,7 +67,7 @@ def review_document_sample(
6767
def process_document(
6868
project_id: str, location: str, processor_id: str, file_path: str, mime_type: str
6969
) -> documentai.Document:
70-
# You must set the api_endpoint if you use a location other than 'us', e.g.:
70+
# You must set the api_endpoint if you use a location other than 'us'.
7171
opts = ClientOptions(api_endpoint=f"{location}-documentai.googleapis.com")
7272

7373
client = documentai.DocumentProcessorServiceClient(client_options=opts)

documentai/snippets/set_default_processor_version_sample.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
def set_default_processor_version_sample(
3030
project_id: str, location: str, processor_id: str, processor_version_id: str
3131
):
32-
# You must set the api_endpoint if you use a location other tha 9E49 n 'us', e.g.:
32+
# You must set the api_endpoint if you use a location other than 'us'.
3333
opts = ClientOptions(api_endpoint=f"{location}-documentai.googleapis.com")
3434

3535
client = documentai.DocumentProcessorServiceClient(client_options=opts)

documentai/snippets/undeploy_processor_version_sample.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
def undeploy_processor_version_sample(
3131
project_id: str, location: str, processor_id: str, processor_version_id: str
3232
):
33-
# You must set the api_endpoint if you use a location other than 'us', e.g.:
33+
# You must set the api_endpoint if you use a location other than 'us'.
3434
opts = ClientOptions(api_endpoint=f"{location}-documentai.googleapis.com")
3535

3636
client = documentai.DocumentProcessorServiceClient(client_options=opts)

0 commit comments

Comments
 (0)
0