Skip to content
This repository was archived by the owner on Feb 13, 2024. It is now read-only.

Commit 87ad0ea

Browse files
chore: use gapic-generator-python 0.51.2 (#236)
- [ ] Regenerate this pull request now. fix: add 'dict' annotation type to 'request' Committer: @busunkim96 PiperOrigin-RevId: 398509016 Source-Link: googleapis/googleapis@b224dfa Source-Link: https://github.com/googleapis/googleapis-gen/commit/63a1db7a38d74b9639592f521ed1daaf7299ad9a Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiNjNhMWRiN2EzOGQ3NGI5NjM5NTkyZjUyMWVkMWRhYWY3Mjk5YWQ5YSJ9
1 parent 54a1e0e commit 87ad0ea

File tree

32 files changed

+220
-202
lines changed

32 files changed

+220
-202
lines changed

google/cloud/vision_v1/services/image_annotator/client.py

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
from distutils import util
1818
import os
1919
import re
20-
from typing import Callable, Dict, Optional, Sequence, Tuple, Type, Union
20+
from typing import Dict, Optional, Sequence, Tuple, Type, Union
2121
import pkg_resources
2222

2323
from google.api_core import client_options as client_options_lib # type: ignore
@@ -373,7 +373,7 @@ def __init__(
373373

374374
def batch_annotate_images(
375375
self,
376-
request: image_annotator.BatchAnnotateImagesRequest = None,
376+
request: Union[image_annotator.BatchAnnotateImagesRequest, dict] = None,
377377
*,
378378
requests: Sequence[image_annotator.AnnotateImageRequest] = None,
379379
retry: retries.Retry = gapic_v1.method.DEFAULT,
@@ -384,7 +384,7 @@ def batch_annotate_images(
384384
images.
385385
386386
Args:
387-
request (google.cloud.vision_v1.types.BatchAnnotateImagesRequest):
387+
request (Union[google.cloud.vision_v1.types.BatchAnnotateImagesRequest, dict]):
388388
The request object. Multiple image annotation requests
389389
are batched into a single service call.
390390
requests (Sequence[google.cloud.vision_v1.types.AnnotateImageRequest]):
@@ -442,7 +442,7 @@ def batch_annotate_images(
442442

443443
def batch_annotate_files(
444444
self,
445-
request: image_annotator.BatchAnnotateFilesRequest = None,
445+
request: Union[image_annotator.BatchAnnotateFilesRequest, dict] = None,
446446
*,
447447
requests: Sequence[image_annotator.AnnotateFileRequest] = None,
448448
retry: retries.Retry = gapic_v1.method.DEFAULT,
@@ -459,7 +459,7 @@ def batch_annotate_files(
459459
extracted.
460460
461461
Args:
462-
request (google.cloud.vision_v1.types.BatchAnnotateFilesRequest):
462+
request (Union[google.cloud.vision_v1.types.BatchAnnotateFilesRequest, dict]):
463463
The request object. A list of requests to annotate files
464464
using the BatchAnnotateFiles API.
465465
requests (Sequence[google.cloud.vision_v1.types.AnnotateFileRequest]):
@@ -517,7 +517,7 @@ def batch_annotate_files(
517517

518518
def async_batch_annotate_images(
519519
self,
520-
request: image_annotator.AsyncBatchAnnotateImagesRequest = None,
520+
request: Union[image_annotator.AsyncBatchAnnotateImagesRequest, dict] = None,
521521
*,
522522
requests: Sequence[image_annotator.AnnotateImageRequest] = None,
523523
output_config: image_annotator.OutputConfig = None,
@@ -539,7 +539,7 @@ def async_batch_annotate_images(
539539
BatchAnnotateImagesResponse proto.
540540
541541
Args:
542-
request (google.cloud.vision_v1.types.AsyncBatchAnnotateImagesRequest):
542+
request (Union[google.cloud.vision_v1.types.AsyncBatchAnnotateImagesRequest, dict]):
543543
The request object. Request for async image annotation
544544
for a list of images.
545545
requests (Sequence[google.cloud.vision_v1.types.AnnotateImageRequest]):
@@ -619,7 +619,7 @@ def async_batch_annotate_images(
619619

620620
def async_batch_annotate_files(
621621
self,
622-
request: image_annotator.AsyncBatchAnnotateFilesRequest = None,
622+
request: Union[image_annotator.AsyncBatchAnnotateFilesRequest, dict] = None,
623623
*,
624624
requests: Sequence[image_annotator.AsyncAnnotateFileRequest] = None,
625625
retry: retries.Retry = gapic_v1.method.DEFAULT,
@@ -635,7 +635,7 @@ def async_batch_annotate_files(
635635
``AsyncBatchAnnotateFilesResponse`` (results).
636636
637637
Args:
638-
request (google.cloud.vision_v1.types.AsyncBatchAnnotateFilesRequest):
638+
request (Union[google.cloud.vision_v1.types.AsyncBatchAnnotateFilesRequest, dict]):
639639
The request object. Multiple async file annotation
640640
requests are batched into a single service call.
641641
requests (Sequence[google.cloud.vision_v1.types.AsyncAnnotateFileRequest]):

google/cloud/vision_v1/services/image_annotator/transports/base.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ def __init__(
120120
**scopes_kwargs, quota_project_id=quota_project_id
121121
)
122122

123-
# If the credentials is service account credentials, then always try to use self signed JWT.
123+
# If the credentials are service account credentials, then always try to use self signed JWT.
124124
if (
125125
always_use_jwt_access
126126
and isinstance(credentials, service_account.Credentials)

google/cloud/vision_v1/services/image_annotator/transports/grpc.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -85,16 +85,16 @@ def __init__(
8585
api_mtls_endpoint (Optional[str]): Deprecated. The mutual TLS endpoint.
8686
If provided, it overrides the ``host`` argument and tries to create
8787
a mutual TLS channel with client SSL credentials from
88-
``client_cert_source`` or applicatin default SSL credentials.
88+
``client_cert_source`` or application default SSL credentials.
8989
client_cert_source (Optional[Callable[[], Tuple[bytes, bytes]]]):
9090
Deprecated. A callback to provide client SSL certificate bytes and
9191
private key bytes, both in PEM format. It is ignored if
9292
``api_mtls_endpoint`` is None.
9393
ssl_channel_credentials (grpc.ChannelCredentials): SSL credentials
94-
for grpc channel. It is ignored if ``channel`` is provided.
94+
for the grpc channel. It is ignored if ``channel`` is provided.
9595
client_cert_source_for_mtls (Optional[Callable[[], Tuple[bytes, bytes]]]):
9696
A callback to provide client certificate bytes and private key bytes,
97-
both in PEM format. It is used to configure mutual TLS channel. It is
97+
both in PEM format. It is used to configure a mutual TLS channel. It is
9898
ignored if ``channel`` or ``ssl_channel_credentials`` is provided.
9999
quota_project_id (Optional[str]): An optional project to use for billing
100100
and quota.

google/cloud/vision_v1/services/image_annotator/transports/grpc_asyncio.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -132,16 +132,16 @@ def __init__(
132132
api_mtls_endpoint (Optional[str]): Deprecated. The mutual TLS endpoint.
133133
If provided, it overrides the ``host`` argument and tries to create
134134
a mutual TLS channel with client SSL credentials from
135-
``client_cert_source`` or applicatin default SSL credentials.
135+
``client_cert_source`` or application default SSL credentials.
136136
client_cert_source (Optional[Callable[[], Tuple[bytes, bytes]]]):
137137
Deprecated. A callback to provide client SSL certificate bytes and
138138
private key bytes, both in PEM format. It is ignored if
139139
``api_mtls_endpoint`` is None.
140140
ssl_channel_credentials (grpc.ChannelCredentials): SSL credentials
141-
for grpc channel. It is ignored if ``channel`` is provided.
141+
for the grpc channel. It is ignored if ``channel`` is provided.
142142
client_cert_source_for_mtls (Optional[Callable[[], Tuple[bytes, bytes]]]):
143143
A callback to provide client certificate bytes and private key bytes,
144-
both in PEM format. It is used to configure mutual TLS channel. It is
144+
both in PEM format. It is used to configure a mutual TLS channel. It is
145145
ignored if ``channel`` or ``ssl_channel_credentials`` is provided.
146146
quota_project_id (Optional[str]): An optional project to use for billing
147147
and quota.

0 commit comments

Comments
 (0)