Skip to content

Commit

Permalink
chore: use gapic-generator-python 0.56.2 (#115)
Browse files Browse the repository at this point in the history
* chore: update Java and Python dependencies

PiperOrigin-RevId: 408420890

Source-Link: googleapis/googleapis@2921f9f

Source-Link: googleapis/googleapis-gen@6598ca8
Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiNjU5OGNhOGNiYmY1MjI2NzMzYTA5OWM0NTA2NTE4YTVhZjZmZjc0YyJ9

* 🦉 Updates from OwlBot

See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md

Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
  • Loading branch information
gcf-owl-bot[bot] and gcf-owl-bot[bot] authored Nov 9, 2021
1 parent 3a35180 commit 8adfc3c
Show file tree
Hide file tree
Showing 14 changed files with 230 additions and 86 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -19,14 +19,17 @@
from typing import Dict, Sequence, Tuple, Type, Union
import pkg_resources

from google.api_core.client_options import ClientOptions # type: ignore
from google.api_core import exceptions as core_exceptions # type: ignore
from google.api_core import gapic_v1 # type: ignore
from google.api_core import retry as retries # type: ignore
from google.api_core.client_options import ClientOptions
from google.api_core import exceptions as core_exceptions
from google.api_core import gapic_v1
from google.api_core import retry as retries
from google.auth import credentials as ga_credentials # type: ignore
from google.oauth2 import service_account # type: ignore

OptionalRetry = Union[retries.Retry, object]
try:
OptionalRetry = Union[retries.Retry, gapic_v1.method._MethodDefault]
except AttributeError: # pragma: NO COVER
OptionalRetry = Union[retries.Retry, object] # type: ignore

from google.cloud.video.transcoder_v1.services.transcoder_service import pagers
from google.cloud.video.transcoder_v1.types import resources
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,23 +14,25 @@
# limitations under the License.
#
from collections import OrderedDict
from distutils import util
import os
import re
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
from google.api_core import exceptions as core_exceptions # type: ignore
from google.api_core import gapic_v1 # type: ignore
from google.api_core import retry as retries # type: ignore
from google.api_core import client_options as client_options_lib
from google.api_core import exceptions as core_exceptions
from google.api_core import gapic_v1
from google.api_core import retry as retries
from google.auth import credentials as ga_credentials # type: ignore
from google.auth.transport import mtls # type: ignore
from google.auth.transport.grpc import SslCredentials # type: ignore
from google.auth.exceptions import MutualTLSChannelError # type: ignore
from google.oauth2 import service_account # type: ignore

OptionalRetry = Union[retries.Retry, object]
try:
OptionalRetry = Union[retries.Retry, gapic_v1.method._MethodDefault]
except AttributeError: # pragma: NO COVER
OptionalRetry = Union[retries.Retry, object] # type: ignore

from google.cloud.video.transcoder_v1.services.transcoder_service import pagers
from google.cloud.video.transcoder_v1.types import resources
Expand Down Expand Up @@ -311,8 +313,15 @@ def __init__(
client_options = client_options_lib.ClientOptions()

# Create SSL credentials for mutual TLS if needed.
use_client_cert = bool(
util.strtobool(os.getenv("GOOGLE_API_USE_CLIENT_CERTIFICATE", "false"))
if os.getenv("GOOGLE_API_USE_CLIENT_CERTIFICATE", "false") not in (
"true",
"false",
):
raise ValueError(
"Environment variable `GOOGLE_API_USE_CLIENT_CERTIFICATE` must be either `true` or `false`"
)
use_client_cert = (
os.getenv("GOOGLE_API_USE_CLIENT_CERTIFICATE", "false") == "true"
)

client_cert_source_func = None
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,10 @@
import pkg_resources

import google.auth # type: ignore
import google.api_core # type: ignore
from google.api_core import exceptions as core_exceptions # type: ignore
from google.api_core import gapic_v1 # type: ignore
from google.api_core import retry as retries # type: ignore
import google.api_core
from google.api_core import exceptions as core_exceptions
from google.api_core import gapic_v1
from google.api_core import retry as retries
from google.auth import credentials as ga_credentials # type: ignore
from google.oauth2 import service_account # type: ignore

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@
import warnings
from typing import Callable, Dict, Optional, Sequence, Tuple, Union

from google.api_core import grpc_helpers # type: ignore
from google.api_core import gapic_v1 # type: ignore
from google.api_core import grpc_helpers
from google.api_core import gapic_v1
import google.auth # type: ignore
from google.auth import credentials as ga_credentials # type: ignore
from google.auth.transport.grpc import SslCredentials # type: ignore
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@
import warnings
from typing import Awaitable, Callable, Dict, Optional, Sequence, Tuple, Union

from google.api_core import gapic_v1 # type: ignore
from google.api_core import grpc_helpers_async # type: ignore
from google.api_core import gapic_v1
from google.api_core import grpc_helpers_async
from google.auth import credentials as ga_credentials # type: ignore
from google.auth.transport.grpc import SslCredentials # type: ignore

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,7 @@ class Job(proto.Message):
This field is a member of `oneof`_ ``job_config``.
config (google.cloud.video.transcoder_v1.types.JobConfig):
The configuration for this job.
This field is a member of `oneof`_ ``job_config``.
state (google.cloud.video.transcoder_v1.types.Job.ProcessingState):
Output only. The current state of the job.
Expand Down Expand Up @@ -291,13 +292,16 @@ class ElementaryStream(proto.Message):
A unique key for this elementary stream.
video_stream (google.cloud.video.transcoder_v1.types.VideoStream):
Encoding of a video stream.
This field is a member of `oneof`_ ``elementary_stream``.
audio_stream (google.cloud.video.transcoder_v1.types.AudioStream):
Encoding of an audio stream.
This field is a member of `oneof`_ ``elementary_stream``.
text_stream (google.cloud.video.transcoder_v1.types.TextStream):
Encoding of a text stream. For example,
closed captions or subtitles.
This field is a member of `oneof`_ ``elementary_stream``.
"""

Expand Down Expand Up @@ -455,10 +459,12 @@ class SpriteSheet(proto.Message):
number of sprites distributed evenly across the
timeline of the output media. The default is
100.
This field is a member of `oneof`_ ``extraction_strategy``.
interval (google.protobuf.duration_pb2.Duration):
Starting from ``0s``, create sprites at regular intervals.
Specify the interval value in seconds.
This field is a member of `oneof`_ ``extraction_strategy``.
quality (int):
The quality of the generated sprite sheet.
Expand Down Expand Up @@ -631,12 +637,15 @@ class Animation(proto.Message):
Attributes:
animation_static (google.cloud.video.transcoder_v1.types.Overlay.AnimationStatic):
Display static overlay object.
This field is a member of `oneof`_ ``animation_type``.
animation_fade (google.cloud.video.transcoder_v1.types.Overlay.AnimationFade):
Display overlay object with fade animation.
This field is a member of `oneof`_ ``animation_type``.
animation_end (google.cloud.video.transcoder_v1.types.Overlay.AnimationEnd):
End previous animation.
This field is a member of `oneof`_ ``animation_type``.
"""

Expand Down Expand Up @@ -843,12 +852,15 @@ class VideoStream(proto.Message):
Attributes:
h264 (google.cloud.video.transcoder_v1.types.VideoStream.H264CodecSettings):
H264 codec settings.
This field is a member of `oneof`_ ``codec_settings``.
h265 (google.cloud.video.transcoder_v1.types.VideoStream.H265CodecSettings):
H265 codec settings.
This field is a member of `oneof`_ ``codec_settings``.
vp9 (google.cloud.video.transcoder_v1.types.VideoStream.Vp9CodecSettings):
VP9 codec settings.
This field is a member of `oneof`_ ``codec_settings``.
"""

Expand Down Expand Up @@ -919,13 +931,15 @@ class H264CodecSettings(proto.Message):
gop_frame_count (int):
Select the GOP size based on the specified
frame count. Must be greater than zero.
This field is a member of `oneof`_ ``gop_mode``.
gop_duration (google.protobuf.duration_pb2.Duration):
Select the GOP size based on the specified duration. The
default is ``3s``. Note that ``gopDuration`` must be less
than or equal to ```segmentDuration`` <#SegmentSettings>`__,
and ```segmentDuration`` <#SegmentSettings>`__ must be
divisible by ``gopDuration``.
This field is a member of `oneof`_ ``gop_mode``.
enable_two_pass (bool):
Use two-pass encoding strategy to achieve better video
Expand Down Expand Up @@ -1077,13 +1091,15 @@ class H265CodecSettings(proto.Message):
gop_frame_count (int):
Select the GOP size based on the specified
frame count. Must be greater than zero.
This field is a member of `oneof`_ ``gop_mode``.
gop_duration (google.protobuf.duration_pb2.Duration):
Select the GOP size based on the specified duration. The
default is ``3s``. Note that ``gopDuration`` must be less
than or equal to ```segmentDuration`` <#SegmentSettings>`__,
and ```segmentDuration`` <#SegmentSettings>`__ must be
divisible by ``gopDuration``.
This field is a member of `oneof`_ ``gop_mode``.
enable_two_pass (bool):
Use two-pass encoding strategy to achieve better video
Expand Down Expand Up @@ -1244,13 +1260,15 @@ class Vp9CodecSettings(proto.Message):
gop_frame_count (int):
Select the GOP size based on the specified
frame count. Must be greater than zero.
This field is a member of `oneof`_ ``gop_mode``.
gop_duration (google.protobuf.duration_pb2.Duration):
Select the GOP size based on the specified duration. The
default is ``3s``. Note that ``gopDuration`` must be less
than or equal to ```segmentDuration`` <#SegmentSettings>`__,
and ```segmentDuration`` <#SegmentSettings>`__ must be
divisible by ``gopDuration``.
This field is a member of `oneof`_ ``gop_mode``.
profile (str):
Enforces the specified codec profile. The following profiles
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,14 +19,17 @@
from typing import Dict, Sequence, Tuple, Type, Union
import pkg_resources

from google.api_core.client_options import ClientOptions # type: ignore
from google.api_core import exceptions as core_exceptions # type: ignore
from google.api_core import gapic_v1 # type: ignore
from google.api_core import retry as retries # type: ignore
from google.api_core.client_options import ClientOptions
from google.api_core import exceptions as core_exceptions
from google.api_core import gapic_v1
from google.api_core import retry as retries
from google.auth import credentials as ga_credentials # type: ignore
from google.oauth2 import service_account # type: ignore

OptionalRetry = Union[retries.Retry, object]
try:
OptionalRetry = Union[retries.Retry, gapic_v1.method._MethodDefault]
except AttributeError: # pragma: NO COVER
OptionalRetry = Union[retries.Retry, object] # type: ignore

from google.cloud.video.transcoder_v1beta1.services.transcoder_service import pagers
from google.cloud.video.transcoder_v1beta1.types import resources
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,23 +14,25 @@
# limitations under the License.
#
from collections import OrderedDict
from distutils import util
import os
import re
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
from google.api_core import exceptions as core_exceptions # type: ignore
from google.api_core import gapic_v1 # type: ignore
from google.api_core import retry as retries # type: ignore
from google.api_core import client_options as client_options_lib
from google.api_core import exceptions as core_exceptions
from google.api_core import gapic_v1
from google.api_core import retry as retries
from google.auth import credentials as ga_credentials # type: ignore
from google.auth.transport import mtls # type: ignore
from google.auth.transport.grpc import SslCredentials # type: ignore
from google.auth.exceptions import MutualTLSChannelError # type: ignore
from google.oauth2 import service_account # type: ignore

OptionalRetry = Union[retries.Retry, object]
try:
OptionalRetry = Union[retries.Retry, gapic_v1.method._MethodDefault]
except AttributeError: # pragma: NO COVER
OptionalRetry = Union[retries.Retry, object] # type: ignore

from google.cloud.video.transcoder_v1beta1.services.transcoder_service import pagers
from google.cloud.video.transcoder_v1beta1.types import resources
Expand Down Expand Up @@ -310,8 +312,15 @@ def __init__(
client_options = client_options_lib.ClientOptions()

# Create SSL credentials for mutual TLS if needed.
use_client_cert = bool(
util.strtobool(os.getenv("GOOGLE_API_USE_CLIENT_CERTIFICATE", "false"))
if os.getenv("GOOGLE_API_USE_CLIENT_CERTIFICATE", "false") not in (
"true",
"false",
):
raise ValueError(
"Environment variable `GOOGLE_API_USE_CLIENT_CERTIFICATE` must be either `true` or `false`"
)
use_client_cert = (
os.getenv("GOOGLE_API_USE_CLIENT_CERTIFICATE", "false") == "true"
)

client_cert_source_func = None
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,10 @@
import pkg_resources

import google.auth # type: ignore
import google.api_core # type: ignore
from google.api_core import exceptions as core_exceptions # type: ignore
from google.api_core import gapic_v1 # type: ignore
from google.api_core import retry as retries # type: ignore
import google.api_core
from google.api_core import exceptions as core_exceptions
from google.api_core import gapic_v1
from google.api_core import retry as retries
from google.auth import credentials as ga_credentials # type: ignore
from google.oauth2 import service_account # type: ignore

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@
import warnings
from typing import Callable, Dict, Optional, Sequence, Tuple, Union

from google.api_core import grpc_helpers # type: ignore
from google.api_core import gapic_v1 # type: ignore
from google.api_core import grpc_helpers
from google.api_core import gapic_v1
import google.auth # type: ignore
from google.auth import credentials as ga_credentials # type: ignore
from google.auth.transport.grpc import SslCredentials # type: ignore
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@
import warnings
from typing import Awaitable, Callable, Dict, Optional, Sequence, Tuple, Union

from google.api_core import gapic_v1 # type: ignore
from google.api_core import grpc_helpers_async # type: ignore
from google.api_core import gapic_v1
from google.api_core import grpc_helpers_async
from google.auth import credentials as ga_credentials # type: ignore
from google.auth.transport.grpc import SslCredentials # type: ignore

Expand Down
Loading

0 comments on commit 8adfc3c

Please sign in to comment.