Skip to content
This repository has been archived by the owner on Sep 21, 2023. It is now read-only.

Commit

Permalink
fix!: use correct child_type annotation (#177)
Browse files Browse the repository at this point in the history
* fix!: use correct child_type annotation

PiperOrigin-RevId: 558967926

Source-Link: googleapis/googleapis@1c4f24e

Source-Link: googleapis/googleapis-gen@a25a444
Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiYTI1YTQ0NDZiNWQ3YWYyMDQ1NzQzMmMzODU2YmMyNTlkNDU4NWRmOSJ9

* 🦉 Updates from OwlBot post-processor

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] committed Aug 23, 2023
1 parent 36c114c commit bd0af89
Show file tree
Hide file tree
Showing 6 changed files with 32 additions and 20 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1308,7 +1308,10 @@ async def sample_get_vod_stitch_detail():
Returns:
google.cloud.video.stitcher_v1.types.VodStitchDetail:
Detailed information related to the
interstitial of a VOD session.
interstitial of a VOD session. This
resource is only available for VOD
sessions that do not implement Google Ad
Manager ad insertion.
"""
# Create or coerce a protobuf request object.
Expand Down Expand Up @@ -1533,7 +1536,10 @@ async def sample_get_vod_ad_tag_detail():
Returns:
google.cloud.video.stitcher_v1.types.VodAdTagDetail:
Information related to the details
for one ad tag.
for one ad tag. This resource is only
available for VOD sessions that do not
implement Google Ad Manager ad
insertion.
"""
# Create or coerce a protobuf request object.
Expand Down Expand Up @@ -2765,7 +2771,7 @@ async def sample_create_live_config():
# and friendly error handling.
rpc = gapic_v1.method_async.wrap_method(
self._client._transport.create_live_config,
default_timeout=None,
default_timeout=60.0,
client_info=DEFAULT_CLIENT_INFO,
)

Expand Down Expand Up @@ -2883,7 +2889,7 @@ async def sample_list_live_configs():
# and friendly error handling.
rpc = gapic_v1.method_async.wrap_method(
self._client._transport.list_live_configs,
default_timeout=None,
default_timeout=60.0,
client_info=DEFAULT_CLIENT_INFO,
)

Expand Down Expand Up @@ -2998,7 +3004,7 @@ async def sample_get_live_config():
# and friendly error handling.
rpc = gapic_v1.method_async.wrap_method(
self._client._transport.get_live_config,
default_timeout=None,
default_timeout=60.0,
client_info=DEFAULT_CLIENT_INFO,
)

Expand Down Expand Up @@ -3117,7 +3123,7 @@ async def sample_delete_live_config():
# and friendly error handling.
rpc = gapic_v1.method_async.wrap_method(
self._client._transport.delete_live_config,
default_timeout=None,
default_timeout=60.0,
client_info=DEFAULT_CLIENT_INFO,
)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1666,7 +1666,10 @@ def sample_get_vod_stitch_detail():
Returns:
google.cloud.video.stitcher_v1.types.VodStitchDetail:
Detailed information related to the
interstitial of a VOD session.
interstitial of a VOD session. This
resource is only available for VOD
sessions that do not implement Google Ad
Manager ad insertion.
"""
# Create or coerce a protobuf request object.
Expand Down Expand Up @@ -1891,7 +1894,10 @@ def sample_get_vod_ad_tag_detail():
Returns:
google.cloud.video.stitcher_v1.types.VodAdTagDetail:
Information related to the details
for one ad tag.
for one ad tag. This resource is only
available for VOD sessions that do not
implement Google Ad Manager ad
insertion.
"""
# Create or coerce a protobuf request object.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -233,22 +233,22 @@ def _prep_wrapped_messages(self, client_info):
),
self.create_live_config: gapic_v1.method.wrap_method(
self.create_live_config,
default_timeout=None,
default_timeout=60.0,
client_info=client_info,
),
self.list_live_configs: gapic_v1.method.wrap_method(
self.list_live_configs,
default_timeout=None,
default_timeout=60.0,
client_info=client_info,
),
self.get_live_config: gapic_v1.method.wrap_method(
self.get_live_config,
default_timeout=None,
default_timeout=60.0,
client_info=client_info,
),
self.delete_live_config: gapic_v1.method.wrap_method(
self.delete_live_config,
default_timeout=None,
default_timeout=60.0,
client_info=client_info,
),
}
Expand Down
4 changes: 3 additions & 1 deletion google/cloud/video/stitcher_v1/types/ad_tag_details.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,9 @@ class LiveAdTagDetail(proto.Message):


class VodAdTagDetail(proto.Message):
r"""Information related to the details for one ad tag.
r"""Information related to the details for one ad tag. This
resource is only available for VOD sessions that do not
implement Google Ad Manager ad insertion.
Attributes:
name (str):
Expand Down
9 changes: 3 additions & 6 deletions google/cloud/video/stitcher_v1/types/sessions.py
Original file line number Diff line number Diff line change
Expand Up @@ -76,10 +76,8 @@ class VodSession(proto.Message):
Output only. The generated ID of the
VodSession's source media.
ad_tracking (google.cloud.video.stitcher_v1.types.AdTracking):
Required. Determines how the ad should be tracked. If
[gam_vod_config][google.cloud.video.stitcher.v1.VodSession.gam_vod_config]
is set, the value must be ``CLIENT`` because the IMA SDK
handles ad tracking.
Required. Determines how the ad should be
tracked.
gam_settings (google.cloud.video.stitcher_v1.types.VodSession.GamSettings):
This field should be set with appropriate
values if GAM is being used for ads.
Expand Down Expand Up @@ -307,8 +305,7 @@ class LiveSession(proto.Message):

class GamSettings(proto.Message):
r"""Defines fields related to Google Ad Manager (GAM). This
should be set if GAM
is being used for ads.
should be set if GAM is being used for ads.
Attributes:
stream_id (str):
Expand Down
3 changes: 2 additions & 1 deletion google/cloud/video/stitcher_v1/types/stitch_details.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,8 @@

class VodStitchDetail(proto.Message):
r"""Detailed information related to the interstitial of a VOD
session.
session. This resource is only available for VOD sessions that
do not implement Google Ad Manager ad insertion.
Attributes:
name (str):
Expand Down

0 comments on commit bd0af89

Please sign in to comment.