Skip to content

Commit

Permalink
feat: [VideoStitcher] add asset_id and stream_id fields to VodSession…
Browse files Browse the repository at this point in the history
… and LiveSession responses (#5331)

* feat: add asset_id and stream_id fields to VodSession and LiveSession responses
fix!: remove COMPLETE_POD stitching option

PiperOrigin-RevId: 454023909

Source-Link: googleapis/googleapis@f296ef5

Source-Link: googleapis/googleapis-gen@bb5e9fc
Copy-Tag: eyJwIjoiVmlkZW9TdGl0Y2hlci8uT3dsQm90LnlhbWwiLCJoIjoiYmI1ZTlmY2IyMTQwNGViMGY2ZTY0OTQ0M2M0MWM1YWNmZGMzMDFlMSJ9

* 🦉 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 Jun 13, 2022
1 parent 17a783d commit 3c125a6
Show file tree
Hide file tree
Showing 8 changed files with 78 additions and 48 deletions.
Binary file modified VideoStitcher/metadata/V1/Sessions.php
Binary file not shown.
6 changes: 2 additions & 4 deletions VideoStitcher/metadata/V1/VideoStitcherService.php

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

28 changes: 0 additions & 28 deletions VideoStitcher/src/V1/CreateLiveSessionRequest.php

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -644,15 +644,6 @@ public function createCdnKey(
*
* @param string $parent Required. The project and location in which the live session should be created,
* in the form of `projects/{project_number}/locations/{location}`.
*
* Valid locations:
*
* * `-` (Video Stitcher API will pick a location that is closest to the
* caller.)
* * `us-east1`
* * `us-west1`
* * `us-central1`
* * `europe-west1`
* @param LiveSession $liveSession Required. Parameters for creating a live session.
* @param array $optionalArgs {
* Optional.
Expand Down
34 changes: 34 additions & 0 deletions VideoStitcher/src/V1/LiveSession.php

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 0 additions & 7 deletions VideoStitcher/src/V1/LiveSession/StitchingPolicy.php

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

34 changes: 34 additions & 0 deletions VideoStitcher/src/V1/VodSession.php

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -171,13 +171,15 @@ public function createLiveSessionTest()
$defaultAdTagId = 'defaultAdTagId1910479614';
$clientAdTracking = false;
$defaultSlateId = 'defaultSlateId-1589112385';
$streamId = 'streamId-315624902';
$expectedResponse = new LiveSession();
$expectedResponse->setName($name);
$expectedResponse->setPlayUri($playUri);
$expectedResponse->setSourceUri($sourceUri);
$expectedResponse->setDefaultAdTagId($defaultAdTagId);
$expectedResponse->setClientAdTracking($clientAdTracking);
$expectedResponse->setDefaultSlateId($defaultSlateId);
$expectedResponse->setStreamId($streamId);
$transport->addResponse($expectedResponse);
// Mock request
$formattedParent = $client->liveSessionName('[PROJECT]', '[LOCATION]', '[LIVE_SESSION]');
Expand Down Expand Up @@ -322,12 +324,14 @@ public function createVodSessionTest()
$sourceUri = 'sourceUri-1111107768';
$adTagUri = 'adTagUri-1429194965';
$clientAdTracking = false;
$assetId = 'assetId-373202742';
$expectedResponse = new VodSession();
$expectedResponse->setName($name);
$expectedResponse->setPlayUri($playUri);
$expectedResponse->setSourceUri($sourceUri);
$expectedResponse->setAdTagUri($adTagUri);
$expectedResponse->setClientAdTracking($clientAdTracking);
$expectedResponse->setAssetId($assetId);
$transport->addResponse($expectedResponse);
// Mock request
$formattedParent = $client->locationName('[PROJECT]', '[LOCATION]');
Expand Down Expand Up @@ -659,13 +663,15 @@ public function getLiveSessionTest()
$defaultAdTagId = 'defaultAdTagId1910479614';
$clientAdTracking = false;
$defaultSlateId = 'defaultSlateId-1589112385';
$streamId = 'streamId-315624902';
$expectedResponse = new LiveSession();
$expectedResponse->setName($name2);
$expectedResponse->setPlayUri($playUri);
$expectedResponse->setSourceUri($sourceUri);
$expectedResponse->setDefaultAdTagId($defaultAdTagId);
$expectedResponse->setClientAdTracking($clientAdTracking);
$expectedResponse->setDefaultSlateId($defaultSlateId);
$expectedResponse->setStreamId($streamId);
$transport->addResponse($expectedResponse);
// Mock request
$formattedName = $client->liveSessionName('[PROJECT]', '[LOCATION]', '[LIVE_SESSION]');
Expand Down Expand Up @@ -862,12 +868,14 @@ public function getVodSessionTest()
$sourceUri = 'sourceUri-1111107768';
$adTagUri = 'adTagUri-1429194965';
$clientAdTracking = false;
$assetId = 'assetId-373202742';
$expectedResponse = new VodSession();
$expectedResponse->setName($name2);
$expectedResponse->setPlayUri($playUri);
$expectedResponse->setSourceUri($sourceUri);
$expectedResponse->setAdTagUri($adTagUri);
$expectedResponse->setClientAdTracking($clientAdTracking);
$expectedResponse->setAssetId($assetId);
$transport->addResponse($expectedResponse);
// Mock request
$formattedName = $client->vodSessionName('[PROJECT]', '[LOCATION]', '[VOD_SESSION]');
Expand Down

0 comments on commit 3c125a6

Please sign in to comment.