Skip to content
This repository was archived by the owner on Nov 29, 2023. It is now read-only.

Commit ec86dc6

Browse files
chore: use gapic-generator-python 0.51.2 (#222)
- [ ] 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 bfc0d59 commit ec86dc6

File tree

29 files changed

+69
-79
lines changed

29 files changed

+69
-79
lines changed

google/cloud/videointelligence_v1/services/video_intelligence_service/client.py

Lines changed: 3 additions & 3 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
@@ -339,7 +339,7 @@ def __init__(
339339

340340
def annotate_video(
341341
self,
342-
request: video_intelligence.AnnotateVideoRequest = None,
342+
request: Union[video_intelligence.AnnotateVideoRequest, dict] = None,
343343
*,
344344
input_uri: str = None,
345345
features: Sequence[video_intelligence.Feature] = None,
@@ -354,7 +354,7 @@ def annotate_video(
354354
contains ``AnnotateVideoResponse`` (results).
355355
356356
Args:
357-
request (google.cloud.videointelligence_v1.types.AnnotateVideoRequest):
357+
request (Union[google.cloud.videointelligence_v1.types.AnnotateVideoRequest, dict]):
358358
The request object. Video annotation request.
359359
input_uri (str):
360360
Input video location. Currently, only `Cloud

google/cloud/videointelligence_v1/services/video_intelligence_service/transports/base.py

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

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

google/cloud/videointelligence_v1/services/video_intelligence_service/transports/grpc.py

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

google/cloud/videointelligence_v1/services/video_intelligence_service/transports/grpc_asyncio.py

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

google/cloud/videointelligence_v1beta2/services/video_intelligence_service/client.py

Lines changed: 3 additions & 3 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
@@ -339,7 +339,7 @@ def __init__(
339339

340340
def annotate_video(
341341
self,
342-
request: video_intelligence.AnnotateVideoRequest = None,
342+
request: Union[video_intelligence.AnnotateVideoRequest, dict] = None,
343343
*,
344344
input_uri: str = None,
345345
features: Sequence[video_intelligence.Feature] = None,
@@ -354,7 +354,7 @@ def annotate_video(
354354
contains ``AnnotateVideoResponse`` (results).
355355
356356
Args:
357-
request (google.cloud.videointelligence_v1beta2.types.AnnotateVideoRequest):
357+
request (Union[google.cloud.videointelligence_v1beta2.types.AnnotateVideoRequest, dict]):
358358
The request object. Video annotation request.
359359
input_uri (str):
360360
Input video location. Currently, only `Google Cloud

google/cloud/videointelligence_v1beta2/services/video_intelligence_service/transports/base.py

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

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

google/cloud/videointelligence_v1beta2/services/video_intelligence_service/transports/grpc.py

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

google/cloud/videointelligence_v1beta2/services/video_intelligence_service/transports/grpc_asyncio.py

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

google/cloud/videointelligence_v1p1beta1/services/video_intelligence_service/client.py

Lines changed: 3 additions & 3 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
@@ -339,7 +339,7 @@ def __init__(
339339

340340
def annotate_video(
341341
self,
342-
request: video_intelligence.AnnotateVideoRequest = None,
342+
request: Union[video_intelligence.AnnotateVideoRequest, dict] = None,
343343
*,
344344
input_uri: str = None,
345345
features: Sequence[video_intelligence.Feature] = None,
@@ -354,7 +354,7 @@ def annotate_video(
354354
contains ``AnnotateVideoResponse`` (results).
355355
356356
Args:
357-
request (google.cloud.videointelligence_v1p1beta1.types.AnnotateVideoRequest):
357+
request (Union[google.cloud.videointelligence_v1p1beta1.types.AnnotateVideoRequest, dict]):
358358
The request object. Video annotation request.
359359
input_uri (str):
360360
Input video location. Currently, only `Google Cloud

google/cloud/videointelligence_v1p1beta1/services/video_intelligence_service/transports/base.py

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

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

0 commit comments

Comments
 (0)