Skip to content

Commit

Permalink
chore: use gapic-generator-python 0.51.2 (#236)
Browse files Browse the repository at this point in the history
- [ ] Regenerate this pull request now.

fix: add 'dict' annotation type to 'request'

Committer: @busunkim96
PiperOrigin-RevId: 398509016

Source-Link: googleapis/googleapis@b224dfa

Source-Link: googleapis/googleapis-gen@63a1db7
Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiNjNhMWRiN2EzOGQ3NGI5NjM5NTkyZjUyMWVkMWRhYWY3Mjk5YWQ5YSJ9
  • Loading branch information
gcf-owl-bot[bot] authored Sep 27, 2021
1 parent fce7ef2 commit add51af
Show file tree
Hide file tree
Showing 32 changed files with 220 additions and 202 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
from distutils import util
import os
import re
from typing import Callable, Dict, Optional, Sequence, Tuple, Type, Union
from typing import Dict, Optional, Sequence, Tuple, Type, Union
import pkg_resources

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

def batch_annotate_images(
self,
request: image_annotator.BatchAnnotateImagesRequest = None,
request: Union[image_annotator.BatchAnnotateImagesRequest, dict] = None,
*,
requests: Sequence[image_annotator.AnnotateImageRequest] = None,
retry: retries.Retry = gapic_v1.method.DEFAULT,
Expand All @@ -384,7 +384,7 @@ def batch_annotate_images(
images.
Args:
request (google.cloud.vision_v1.types.BatchAnnotateImagesRequest):
request (Union[google.cloud.vision_v1.types.BatchAnnotateImagesRequest, dict]):
The request object. Multiple image annotation requests
are batched into a single service call.
requests (Sequence[google.cloud.vision_v1.types.AnnotateImageRequest]):
Expand Down Expand Up @@ -442,7 +442,7 @@ def batch_annotate_images(

def batch_annotate_files(
self,
request: image_annotator.BatchAnnotateFilesRequest = None,
request: Union[image_annotator.BatchAnnotateFilesRequest, dict] = None,
*,
requests: Sequence[image_annotator.AnnotateFileRequest] = None,
retry: retries.Retry = gapic_v1.method.DEFAULT,
Expand All @@ -459,7 +459,7 @@ def batch_annotate_files(
extracted.
Args:
request (google.cloud.vision_v1.types.BatchAnnotateFilesRequest):
request (Union[google.cloud.vision_v1.types.BatchAnnotateFilesRequest, dict]):
The request object. A list of requests to annotate files
using the BatchAnnotateFiles API.
requests (Sequence[google.cloud.vision_v1.types.AnnotateFileRequest]):
Expand Down Expand Up @@ -517,7 +517,7 @@ def batch_annotate_files(

def async_batch_annotate_images(
self,
request: image_annotator.AsyncBatchAnnotateImagesRequest = None,
request: Union[image_annotator.AsyncBatchAnnotateImagesRequest, dict] = None,
*,
requests: Sequence[image_annotator.AnnotateImageRequest] = None,
output_config: image_annotator.OutputConfig = None,
Expand All @@ -539,7 +539,7 @@ def async_batch_annotate_images(
BatchAnnotateImagesResponse proto.
Args:
request (google.cloud.vision_v1.types.AsyncBatchAnnotateImagesRequest):
request (Union[google.cloud.vision_v1.types.AsyncBatchAnnotateImagesRequest, dict]):
The request object. Request for async image annotation
for a list of images.
requests (Sequence[google.cloud.vision_v1.types.AnnotateImageRequest]):
Expand Down Expand Up @@ -619,7 +619,7 @@ def async_batch_annotate_images(

def async_batch_annotate_files(
self,
request: image_annotator.AsyncBatchAnnotateFilesRequest = None,
request: Union[image_annotator.AsyncBatchAnnotateFilesRequest, dict] = None,
*,
requests: Sequence[image_annotator.AsyncAnnotateFileRequest] = None,
retry: retries.Retry = gapic_v1.method.DEFAULT,
Expand All @@ -635,7 +635,7 @@ def async_batch_annotate_files(
``AsyncBatchAnnotateFilesResponse`` (results).
Args:
request (google.cloud.vision_v1.types.AsyncBatchAnnotateFilesRequest):
request (Union[google.cloud.vision_v1.types.AsyncBatchAnnotateFilesRequest, dict]):
The request object. Multiple async file annotation
requests are batched into a single service call.
requests (Sequence[google.cloud.vision_v1.types.AsyncAnnotateFileRequest]):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ def __init__(
**scopes_kwargs, quota_project_id=quota_project_id
)

# If the credentials is service account credentials, then always try to use self signed JWT.
# If the credentials are service account credentials, then always try to use self signed JWT.
if (
always_use_jwt_access
and isinstance(credentials, service_account.Credentials)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -85,16 +85,16 @@ def __init__(
api_mtls_endpoint (Optional[str]): Deprecated. The mutual TLS endpoint.
If provided, it overrides the ``host`` argument and tries to create
a mutual TLS channel with client SSL credentials from
``client_cert_source`` or applicatin default SSL credentials.
``client_cert_source`` or application default SSL credentials.
client_cert_source (Optional[Callable[[], Tuple[bytes, bytes]]]):
Deprecated. A callback to provide client SSL certificate bytes and
private key bytes, both in PEM format. It is ignored if
``api_mtls_endpoint`` is None.
ssl_channel_credentials (grpc.ChannelCredentials): SSL credentials
for grpc channel. It is ignored if ``channel`` is provided.
for the grpc channel. It is ignored if ``channel`` is provided.
client_cert_source_for_mtls (Optional[Callable[[], Tuple[bytes, bytes]]]):
A callback to provide client certificate bytes and private key bytes,
both in PEM format. It is used to configure mutual TLS channel. It is
both in PEM format. It is used to configure a mutual TLS channel. It is
ignored if ``channel`` or ``ssl_channel_credentials`` is provided.
quota_project_id (Optional[str]): An optional project to use for billing
and quota.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -132,16 +132,16 @@ def __init__(
api_mtls_endpoint (Optional[str]): Deprecated. The mutual TLS endpoint.
If provided, it overrides the ``host`` argument and tries to create
a mutual TLS channel with client SSL credentials from
``client_cert_source`` or applicatin default SSL credentials.
``client_cert_source`` or application default SSL credentials.
client_cert_source (Optional[Callable[[], Tuple[bytes, bytes]]]):
Deprecated. A callback to provide client SSL certificate bytes and
private key bytes, both in PEM format. It is ignored if
``api_mtls_endpoint`` is None.
ssl_channel_credentials (grpc.ChannelCredentials): SSL credentials
for grpc channel. It is ignored if ``channel`` is provided.
for the grpc channel. It is ignored if ``channel`` is provided.
client_cert_source_for_mtls (Optional[Callable[[], Tuple[bytes, bytes]]]):
A callback to provide client certificate bytes and private key bytes,
both in PEM format. It is used to configure mutual TLS channel. It is
both in PEM format. It is used to configure a mutual TLS channel. It is
ignored if ``channel`` or ``ssl_channel_credentials`` is provided.
quota_project_id (Optional[str]): An optional project to use for billing
and quota.
Expand Down
Loading

0 comments on commit add51af

Please sign in to comment.