Skip to content

Commit b15f8a3

Browse files
Update generated code (#1580)
update generated code
1 parent c2aa97e commit b15f8a3

14 files changed

+613
-25
lines changed

manifest.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"variables": {
3-
"${LATEST}": "3.281.15"
3+
"${LATEST}": "3.282.2"
44
},
55
"endpoints": "https://raw.githubusercontent.com/aws/aws-sdk-php/${LATEST}/src/data/endpoints.json",
66
"services": {

src/Service/MediaConvert/CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111

1212
- AWS api-change: This release includes additional audio channel tags in Quicktime outputs, support for film grain synthesis for AV1 outputs, ability to create audio-only FLAC outputs, and ability to specify Amazon S3 destination storage class.
1313
- AWS api-change: This release supports the creation of of audio-only tracks in CMAF output groups.
14+
- AWS api-change: This release adds the ability to replace video frames without modifying the audio essence.
1415

1516
## 0.1.1
1617

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
<?php
2+
3+
namespace AsyncAws\MediaConvert\Enum;
4+
5+
/**
6+
* Optionally include or suppress markers at the end of your output that signal the end of the video stream. To include
7+
* end of stream markers: Leave blank or keep the default value, Include. To not include end of stream markers: Choose
8+
* Suppress. This is useful when your output will be inserted into another stream.
9+
*/
10+
final class H264EndOfStreamMarkers
11+
{
12+
public const INCLUDE = 'INCLUDE';
13+
public const SUPPRESS = 'SUPPRESS';
14+
15+
public static function exists(string $value): bool
16+
{
17+
return isset([
18+
self::INCLUDE => true,
19+
self::SUPPRESS => true,
20+
][$value]);
21+
}
22+
}
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
<?php
2+
3+
namespace AsyncAws\MediaConvert\Enum;
4+
5+
/**
6+
* Optionally include or suppress markers at the end of your output that signal the end of the video stream. To include
7+
* end of stream markers: Leave blank or keep the default value, Include. To not include end of stream markers: Choose
8+
* Suppress. This is useful when your output will be inserted into another stream.
9+
*/
10+
final class H265EndOfStreamMarkers
11+
{
12+
public const INCLUDE = 'INCLUDE';
13+
public const SUPPRESS = 'SUPPRESS';
14+
15+
public static function exists(string $value): bool
16+
{
17+
return isset([
18+
self::INCLUDE => true,
19+
self::SUPPRESS => true,
20+
][$value]);
21+
}
22+
}

src/Service/MediaConvert/src/Result/CreateJobResponse.php

Lines changed: 59 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -155,6 +155,9 @@
155155
use AsyncAws\MediaConvert\ValueObject\VideoCodecSettings;
156156
use AsyncAws\MediaConvert\ValueObject\VideoDescription;
157157
use AsyncAws\MediaConvert\ValueObject\VideoDetail;
158+
use AsyncAws\MediaConvert\ValueObject\VideoOverlay;
159+
use AsyncAws\MediaConvert\ValueObject\VideoOverlayInput;
160+
use AsyncAws\MediaConvert\ValueObject\VideoOverlayInputClipping;
158161
use AsyncAws\MediaConvert\ValueObject\VideoPreprocessor;
159162
use AsyncAws\MediaConvert\ValueObject\VideoSelector;
160163
use AsyncAws\MediaConvert\ValueObject\VorbisSettings;
@@ -989,6 +992,7 @@ private function populateResultH264Settings(array $json): H264Settings
989992
'CodecLevel' => isset($json['codecLevel']) ? (string) $json['codecLevel'] : null,
990993
'CodecProfile' => isset($json['codecProfile']) ? (string) $json['codecProfile'] : null,
991994
'DynamicSubGop' => isset($json['dynamicSubGop']) ? (string) $json['dynamicSubGop'] : null,
995+
'EndOfStreamMarkers' => isset($json['endOfStreamMarkers']) ? (string) $json['endOfStreamMarkers'] : null,
992996
'EntropyEncoding' => isset($json['entropyEncoding']) ? (string) $json['entropyEncoding'] : null,
993997
'FieldEncoding' => isset($json['fieldEncoding']) ? (string) $json['fieldEncoding'] : null,
994998
'FlickerAdaptiveQuantization' => isset($json['flickerAdaptiveQuantization']) ? (string) $json['flickerAdaptiveQuantization'] : null,
@@ -1047,6 +1051,7 @@ private function populateResultH265Settings(array $json): H265Settings
10471051
'CodecLevel' => isset($json['codecLevel']) ? (string) $json['codecLevel'] : null,
10481052
'CodecProfile' => isset($json['codecProfile']) ? (string) $json['codecProfile'] : null,
10491053
'DynamicSubGop' => isset($json['dynamicSubGop']) ? (string) $json['dynamicSubGop'] : null,
1054+
'EndOfStreamMarkers' => isset($json['endOfStreamMarkers']) ? (string) $json['endOfStreamMarkers'] : null,
10501055
'FlickerAdaptiveQuantization' => isset($json['flickerAdaptiveQuantization']) ? (string) $json['flickerAdaptiveQuantization'] : null,
10511056
'FramerateControl' => isset($json['framerateControl']) ? (string) $json['framerateControl'] : null,
10521057
'FramerateConversionAlgorithm' => isset($json['framerateConversionAlgorithm']) ? (string) $json['framerateConversionAlgorithm'] : null,
@@ -1273,6 +1278,7 @@ private function populateResultInput(array $json): Input
12731278
'TimecodeSource' => isset($json['timecodeSource']) ? (string) $json['timecodeSource'] : null,
12741279
'TimecodeStart' => isset($json['timecodeStart']) ? (string) $json['timecodeStart'] : null,
12751280
'VideoGenerator' => empty($json['videoGenerator']) ? null : $this->populateResultInputVideoGenerator($json['videoGenerator']),
1281+
'VideoOverlays' => !isset($json['videoOverlays']) ? null : $this->populateResult__listOfVideoOverlay($json['videoOverlays']),
12761282
'VideoSelector' => empty($json['videoSelector']) ? null : $this->populateResultVideoSelector($json['videoSelector']),
12771283
]);
12781284
}
@@ -1367,7 +1373,6 @@ private function populateResultJobSettings(array $json): JobSettings
13671373
'AvailBlanking' => empty($json['availBlanking']) ? null : $this->populateResultAvailBlanking($json['availBlanking']),
13681374
'Esam' => empty($json['esam']) ? null : $this->populateResultEsamSettings($json['esam']),
13691375
'ExtendedDataServices' => empty($json['extendedDataServices']) ? null : $this->populateResultExtendedDataServices($json['extendedDataServices']),
1370-
'FollowInputIndex' => isset($json['followInputIndex']) ? (int) $json['followInputIndex'] : null,
13711376
'Inputs' => !isset($json['inputs']) ? null : $this->populateResult__listOfInput($json['inputs']),
13721377
'KantarWatermark' => empty($json['kantarWatermark']) ? null : $this->populateResultKantarWatermarkSettings($json['kantarWatermark']),
13731378
'MotionImageInserter' => empty($json['motionImageInserter']) ? null : $this->populateResultMotionImageInserter($json['motionImageInserter']),
@@ -2066,6 +2071,33 @@ private function populateResultVideoDetail(array $json): VideoDetail
20662071
]);
20672072
}
20682073

2074+
private function populateResultVideoOverlay(array $json): VideoOverlay
2075+
{
2076+
return new VideoOverlay([
2077+
'EndTimecode' => isset($json['endTimecode']) ? (string) $json['endTimecode'] : null,
2078+
'Input' => empty($json['input']) ? null : $this->populateResultVideoOverlayInput($json['input']),
2079+
'StartTimecode' => isset($json['startTimecode']) ? (string) $json['startTimecode'] : null,
2080+
]);
2081+
}
2082+
2083+
private function populateResultVideoOverlayInput(array $json): VideoOverlayInput
2084+
{
2085+
return new VideoOverlayInput([
2086+
'FileInput' => isset($json['fileInput']) ? (string) $json['fileInput'] : null,
2087+
'InputClippings' => !isset($json['inputClippings']) ? null : $this->populateResult__listOfVideoOverlayInputClipping($json['inputClippings']),
2088+
'TimecodeSource' => isset($json['timecodeSource']) ? (string) $json['timecodeSource'] : null,
2089+
'TimecodeStart' => isset($json['timecodeStart']) ? (string) $json['timecodeStart'] : null,
2090+
]);
2091+
}
2092+
2093+
private function populateResultVideoOverlayInputClipping(array $json): VideoOverlayInputClipping
2094+
{
2095+
return new VideoOverlayInputClipping([
2096+
'EndTimecode' => isset($json['endTimecode']) ? (string) $json['endTimecode'] : null,
2097+
'StartTimecode' => isset($json['startTimecode']) ? (string) $json['startTimecode'] : null,
2098+
]);
2099+
}
2100+
20692101
private function populateResultVideoPreprocessor(array $json): VideoPreprocessor
20702102
{
20712103
return new VideoPreprocessor([
@@ -2555,6 +2587,32 @@ private function populateResult__listOfTeletextPageType(array $json): array
25552587
return $items;
25562588
}
25572589

2590+
/**
2591+
* @return VideoOverlay[]
2592+
*/
2593+
private function populateResult__listOfVideoOverlay(array $json): array
2594+
{
2595+
$items = [];
2596+
foreach ($json as $item) {
2597+
$items[] = $this->populateResultVideoOverlay($item);
2598+
}
2599+
2600+
return $items;
2601+
}
2602+
2603+
/**
2604+
* @return VideoOverlayInputClipping[]
2605+
*/
2606+
private function populateResult__listOfVideoOverlayInputClipping(array $json): array
2607+
{
2608+
$items = [];
2609+
foreach ($json as $item) {
2610+
$items[] = $this->populateResultVideoOverlayInputClipping($item);
2611+
}
2612+
2613+
return $items;
2614+
}
2615+
25582616
/**
25592617
* @return WarningGroup[]
25602618
*/

src/Service/MediaConvert/src/Result/GetJobResponse.php

Lines changed: 59 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -155,6 +155,9 @@
155155
use AsyncAws\MediaConvert\ValueObject\VideoCodecSettings;
156156
use AsyncAws\MediaConvert\ValueObject\VideoDescription;
157157
use AsyncAws\MediaConvert\ValueObject\VideoDetail;
158+
use AsyncAws\MediaConvert\ValueObject\VideoOverlay;
159+
use AsyncAws\MediaConvert\ValueObject\VideoOverlayInput;
160+
use AsyncAws\MediaConvert\ValueObject\VideoOverlayInputClipping;
158161
use AsyncAws\MediaConvert\ValueObject\VideoPreprocessor;
159162
use AsyncAws\MediaConvert\ValueObject\VideoSelector;
160163
use AsyncAws\MediaConvert\ValueObject\VorbisSettings;
@@ -989,6 +992,7 @@ private function populateResultH264Settings(array $json): H264Settings
989992
'CodecLevel' => isset($json['codecLevel']) ? (string) $json['codecLevel'] : null,
990993
'CodecProfile' => isset($json['codecProfile']) ? (string) $json['codecProfile'] : null,
991994
'DynamicSubGop' => isset($json['dynamicSubGop']) ? (string) $json['dynamicSubGop'] : null,
995+
'EndOfStreamMarkers' => isset($json['endOfStreamMarkers']) ? (string) $json['endOfStreamMarkers'] : null,
992996
'EntropyEncoding' => isset($json['entropyEncoding']) ? (string) $json['entropyEncoding'] : null,
993997
'FieldEncoding' => isset($json['fieldEncoding']) ? (string) $json['fieldEncoding'] : null,
994998
'FlickerAdaptiveQuantization' => isset($json['flickerAdaptiveQuantization']) ? (string) $json['flickerAdaptiveQuantization'] : null,
@@ -1047,6 +1051,7 @@ private function populateResultH265Settings(array $json): H265Settings
10471051
'CodecLevel' => isset($json['codecLevel']) ? (string) $json['codecLevel'] : null,
10481052
'CodecProfile' => isset($json['codecProfile']) ? (string) $json['codecProfile'] : null,
10491053
'DynamicSubGop' => isset($json['dynamicSubGop']) ? (string) $json['dynamicSubGop'] : null,
1054+
'EndOfStreamMarkers' => isset($json['endOfStreamMarkers']) ? (string) $json['endOfStreamMarkers'] : null,
10501055
'FlickerAdaptiveQuantization' => isset($json['flickerAdaptiveQuantization']) ? (string) $json['flickerAdaptiveQuantization'] : null,
10511056
'FramerateControl' => isset($json['framerateControl']) ? (string) $json['framerateControl'] : null,
10521057
'FramerateConversionAlgorithm' => isset($json['framerateConversionAlgorithm']) ? (string) $json['framerateConversionAlgorithm'] : null,
@@ -1273,6 +1278,7 @@ private function populateResultInput(array $json): Input
12731278
'TimecodeSource' => isset($json['timecodeSource']) ? (string) $json['timecodeSource'] : null,
12741279
'TimecodeStart' => isset($json['timecodeStart']) ? (string) $json['timecodeStart'] : null,
12751280
'VideoGenerator' => empty($json['videoGenerator']) ? null : $this->populateResultInputVideoGenerator($json['videoGenerator']),
1281+
'VideoOverlays' => !isset($json['videoOverlays']) ? null : $this->populateResult__listOfVideoOverlay($json['videoOverlays']),
12761282
'VideoSelector' => empty($json['videoSelector']) ? null : $this->populateResultVideoSelector($json['videoSelector']),
12771283
]);
12781284
}
@@ -1367,7 +1373,6 @@ private function populateResultJobSettings(array $json): JobSettings
13671373
'AvailBlanking' => empty($json['availBlanking']) ? null : $this->populateResultAvailBlanking($json['availBlanking']),
13681374
'Esam' => empty($json['esam']) ? null : $this->populateResultEsamSettings($json['esam']),
13691375
'ExtendedDataServices' => empty($json['extendedDataServices']) ? null : $this->populateResultExtendedDataServices($json['extendedDataServices']),
1370-
'FollowInputIndex' => isset($json['followInputIndex']) ? (int) $json['followInputIndex'] : null,
13711376
'Inputs' => !isset($json['inputs']) ? null : $this->populateResult__listOfInput($json['inputs']),
13721377
'KantarWatermark' => empty($json['kantarWatermark']) ? null : $this->populateResultKantarWatermarkSettings($json['kantarWatermark']),
13731378
'MotionImageInserter' => empty($json['motionImageInserter']) ? null : $this->populateResultMotionImageInserter($json['motionImageInserter']),
@@ -2066,6 +2071,33 @@ private function populateResultVideoDetail(array $json): VideoDetail
20662071
]);
20672072
}
20682073

2074+
private function populateResultVideoOverlay(array $json): VideoOverlay
2075+
{
2076+
return new VideoOverlay([
2077+
'EndTimecode' => isset($json['endTimecode']) ? (string) $json['endTimecode'] : null,
2078+
'Input' => empty($json['input']) ? null : $this->populateResultVideoOverlayInput($json['input']),
2079+
'StartTimecode' => isset($json['startTimecode']) ? (string) $json['startTimecode'] : null,
2080+
]);
2081+
}
2082+
2083+
private function populateResultVideoOverlayInput(array $json): VideoOverlayInput
2084+
{
2085+
return new VideoOverlayInput([
2086+
'FileInput' => isset($json['fileInput']) ? (string) $json['fileInput'] : null,
2087+
'InputClippings' => !isset($json['inputClippings']) ? null : $this->populateResult__listOfVideoOverlayInputClipping($json['inputClippings']),
2088+
'TimecodeSource' => isset($json['timecodeSource']) ? (string) $json['timecodeSource'] : null,
2089+
'TimecodeStart' => isset($json['timecodeStart']) ? (string) $json['timecodeStart'] : null,
2090+
]);
2091+
}
2092+
2093+
private function populateResultVideoOverlayInputClipping(array $json): VideoOverlayInputClipping
2094+
{
2095+
return new VideoOverlayInputClipping([
2096+
'EndTimecode' => isset($json['endTimecode']) ? (string) $json['endTimecode'] : null,
2097+
'StartTimecode' => isset($json['startTimecode']) ? (string) $json['startTimecode'] : null,
2098+
]);
2099+
}
2100+
20692101
private function populateResultVideoPreprocessor(array $json): VideoPreprocessor
20702102
{
20712103
return new VideoPreprocessor([
@@ -2555,6 +2587,32 @@ private function populateResult__listOfTeletextPageType(array $json): array
25552587
return $items;
25562588
}
25572589

2590+
/**
2591+
* @return VideoOverlay[]
2592+
*/
2593+
private function populateResult__listOfVideoOverlay(array $json): array
2594+
{
2595+
$items = [];
2596+
foreach ($json as $item) {
2597+
$items[] = $this->populateResultVideoOverlay($item);
2598+
}
2599+
2600+
return $items;
2601+
}
2602+
2603+
/**
2604+
* @return VideoOverlayInputClipping[]
2605+
*/
2606+
private function populateResult__listOfVideoOverlayInputClipping(array $json): array
2607+
{
2608+
$items = [];
2609+
foreach ($json as $item) {
2610+
$items[] = $this->populateResultVideoOverlayInputClipping($item);
2611+
}
2612+
2613+
return $items;
2614+
}
2615+
25582616
/**
25592617
* @return WarningGroup[]
25602618
*/

0 commit comments

Comments
 (0)