Skip to content

Commit

Permalink
Update generated code (#1580)
Browse files Browse the repository at this point in the history
update generated code
  • Loading branch information
async-aws-bot authored Oct 4, 2023
1 parent c2aa97e commit b15f8a3
Show file tree
Hide file tree
Showing 14 changed files with 613 additions and 25 deletions.
2 changes: 1 addition & 1 deletion manifest.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"variables": {
"${LATEST}": "3.281.15"
"${LATEST}": "3.282.2"
},
"endpoints": "https://raw.githubusercontent.com/aws/aws-sdk-php/${LATEST}/src/data/endpoints.json",
"services": {
Expand Down
1 change: 1 addition & 0 deletions src/Service/MediaConvert/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@

- 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.
- AWS api-change: This release supports the creation of of audio-only tracks in CMAF output groups.
- AWS api-change: This release adds the ability to replace video frames without modifying the audio essence.

## 0.1.1

Expand Down
22 changes: 22 additions & 0 deletions src/Service/MediaConvert/src/Enum/H264EndOfStreamMarkers.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
<?php

namespace AsyncAws\MediaConvert\Enum;

/**
* Optionally include or suppress markers at the end of your output that signal the end of the video stream. To include
* end of stream markers: Leave blank or keep the default value, Include. To not include end of stream markers: Choose
* Suppress. This is useful when your output will be inserted into another stream.
*/
final class H264EndOfStreamMarkers
{
public const INCLUDE = 'INCLUDE';
public const SUPPRESS = 'SUPPRESS';

public static function exists(string $value): bool
{
return isset([
self::INCLUDE => true,
self::SUPPRESS => true,
][$value]);
}
}
22 changes: 22 additions & 0 deletions src/Service/MediaConvert/src/Enum/H265EndOfStreamMarkers.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
<?php

namespace AsyncAws\MediaConvert\Enum;

/**
* Optionally include or suppress markers at the end of your output that signal the end of the video stream. To include
* end of stream markers: Leave blank or keep the default value, Include. To not include end of stream markers: Choose
* Suppress. This is useful when your output will be inserted into another stream.
*/
final class H265EndOfStreamMarkers
{
public const INCLUDE = 'INCLUDE';
public const SUPPRESS = 'SUPPRESS';

public static function exists(string $value): bool
{
return isset([
self::INCLUDE => true,
self::SUPPRESS => true,
][$value]);
}
}
60 changes: 59 additions & 1 deletion src/Service/MediaConvert/src/Result/CreateJobResponse.php
Original file line number Diff line number Diff line change
Expand Up @@ -155,6 +155,9 @@
use AsyncAws\MediaConvert\ValueObject\VideoCodecSettings;
use AsyncAws\MediaConvert\ValueObject\VideoDescription;
use AsyncAws\MediaConvert\ValueObject\VideoDetail;
use AsyncAws\MediaConvert\ValueObject\VideoOverlay;
use AsyncAws\MediaConvert\ValueObject\VideoOverlayInput;
use AsyncAws\MediaConvert\ValueObject\VideoOverlayInputClipping;
use AsyncAws\MediaConvert\ValueObject\VideoPreprocessor;
use AsyncAws\MediaConvert\ValueObject\VideoSelector;
use AsyncAws\MediaConvert\ValueObject\VorbisSettings;
Expand Down Expand Up @@ -989,6 +992,7 @@ private function populateResultH264Settings(array $json): H264Settings
'CodecLevel' => isset($json['codecLevel']) ? (string) $json['codecLevel'] : null,
'CodecProfile' => isset($json['codecProfile']) ? (string) $json['codecProfile'] : null,
'DynamicSubGop' => isset($json['dynamicSubGop']) ? (string) $json['dynamicSubGop'] : null,
'EndOfStreamMarkers' => isset($json['endOfStreamMarkers']) ? (string) $json['endOfStreamMarkers'] : null,
'EntropyEncoding' => isset($json['entropyEncoding']) ? (string) $json['entropyEncoding'] : null,
'FieldEncoding' => isset($json['fieldEncoding']) ? (string) $json['fieldEncoding'] : null,
'FlickerAdaptiveQuantization' => isset($json['flickerAdaptiveQuantization']) ? (string) $json['flickerAdaptiveQuantization'] : null,
Expand Down Expand Up @@ -1047,6 +1051,7 @@ private function populateResultH265Settings(array $json): H265Settings
'CodecLevel' => isset($json['codecLevel']) ? (string) $json['codecLevel'] : null,
'CodecProfile' => isset($json['codecProfile']) ? (string) $json['codecProfile'] : null,
'DynamicSubGop' => isset($json['dynamicSubGop']) ? (string) $json['dynamicSubGop'] : null,
'EndOfStreamMarkers' => isset($json['endOfStreamMarkers']) ? (string) $json['endOfStreamMarkers'] : null,
'FlickerAdaptiveQuantization' => isset($json['flickerAdaptiveQuantization']) ? (string) $json['flickerAdaptiveQuantization'] : null,
'FramerateControl' => isset($json['framerateControl']) ? (string) $json['framerateControl'] : null,
'FramerateConversionAlgorithm' => isset($json['framerateConversionAlgorithm']) ? (string) $json['framerateConversionAlgorithm'] : null,
Expand Down Expand Up @@ -1273,6 +1278,7 @@ private function populateResultInput(array $json): Input
'TimecodeSource' => isset($json['timecodeSource']) ? (string) $json['timecodeSource'] : null,
'TimecodeStart' => isset($json['timecodeStart']) ? (string) $json['timecodeStart'] : null,
'VideoGenerator' => empty($json['videoGenerator']) ? null : $this->populateResultInputVideoGenerator($json['videoGenerator']),
'VideoOverlays' => !isset($json['videoOverlays']) ? null : $this->populateResult__listOfVideoOverlay($json['videoOverlays']),
'VideoSelector' => empty($json['videoSelector']) ? null : $this->populateResultVideoSelector($json['videoSelector']),
]);
}
Expand Down Expand Up @@ -1367,7 +1373,6 @@ private function populateResultJobSettings(array $json): JobSettings
'AvailBlanking' => empty($json['availBlanking']) ? null : $this->populateResultAvailBlanking($json['availBlanking']),
'Esam' => empty($json['esam']) ? null : $this->populateResultEsamSettings($json['esam']),
'ExtendedDataServices' => empty($json['extendedDataServices']) ? null : $this->populateResultExtendedDataServices($json['extendedDataServices']),
'FollowInputIndex' => isset($json['followInputIndex']) ? (int) $json['followInputIndex'] : null,
'Inputs' => !isset($json['inputs']) ? null : $this->populateResult__listOfInput($json['inputs']),
'KantarWatermark' => empty($json['kantarWatermark']) ? null : $this->populateResultKantarWatermarkSettings($json['kantarWatermark']),
'MotionImageInserter' => empty($json['motionImageInserter']) ? null : $this->populateResultMotionImageInserter($json['motionImageInserter']),
Expand Down Expand Up @@ -2066,6 +2071,33 @@ private function populateResultVideoDetail(array $json): VideoDetail
]);
}

private function populateResultVideoOverlay(array $json): VideoOverlay
{
return new VideoOverlay([
'EndTimecode' => isset($json['endTimecode']) ? (string) $json['endTimecode'] : null,
'Input' => empty($json['input']) ? null : $this->populateResultVideoOverlayInput($json['input']),
'StartTimecode' => isset($json['startTimecode']) ? (string) $json['startTimecode'] : null,
]);
}

private function populateResultVideoOverlayInput(array $json): VideoOverlayInput
{
return new VideoOverlayInput([
'FileInput' => isset($json['fileInput']) ? (string) $json['fileInput'] : null,
'InputClippings' => !isset($json['inputClippings']) ? null : $this->populateResult__listOfVideoOverlayInputClipping($json['inputClippings']),
'TimecodeSource' => isset($json['timecodeSource']) ? (string) $json['timecodeSource'] : null,
'TimecodeStart' => isset($json['timecodeStart']) ? (string) $json['timecodeStart'] : null,
]);
}

private function populateResultVideoOverlayInputClipping(array $json): VideoOverlayInputClipping
{
return new VideoOverlayInputClipping([
'EndTimecode' => isset($json['endTimecode']) ? (string) $json['endTimecode'] : null,
'StartTimecode' => isset($json['startTimecode']) ? (string) $json['startTimecode'] : null,
]);
}

private function populateResultVideoPreprocessor(array $json): VideoPreprocessor
{
return new VideoPreprocessor([
Expand Down Expand Up @@ -2555,6 +2587,32 @@ private function populateResult__listOfTeletextPageType(array $json): array
return $items;
}

/**
* @return VideoOverlay[]
*/
private function populateResult__listOfVideoOverlay(array $json): array
{
$items = [];
foreach ($json as $item) {
$items[] = $this->populateResultVideoOverlay($item);
}

return $items;
}

/**
* @return VideoOverlayInputClipping[]
*/
private function populateResult__listOfVideoOverlayInputClipping(array $json): array
{
$items = [];
foreach ($json as $item) {
$items[] = $this->populateResultVideoOverlayInputClipping($item);
}

return $items;
}

/**
* @return WarningGroup[]
*/
Expand Down
60 changes: 59 additions & 1 deletion src/Service/MediaConvert/src/Result/GetJobResponse.php
Original file line number Diff line number Diff line change
Expand Up @@ -155,6 +155,9 @@
use AsyncAws\MediaConvert\ValueObject\VideoCodecSettings;
use AsyncAws\MediaConvert\ValueObject\VideoDescription;
use AsyncAws\MediaConvert\ValueObject\VideoDetail;
use AsyncAws\MediaConvert\ValueObject\VideoOverlay;
use AsyncAws\MediaConvert\ValueObject\VideoOverlayInput;
use AsyncAws\MediaConvert\ValueObject\VideoOverlayInputClipping;
use AsyncAws\MediaConvert\ValueObject\VideoPreprocessor;
use AsyncAws\MediaConvert\ValueObject\VideoSelector;
use AsyncAws\MediaConvert\ValueObject\VorbisSettings;
Expand Down Expand Up @@ -989,6 +992,7 @@ private function populateResultH264Settings(array $json): H264Settings
'CodecLevel' => isset($json['codecLevel']) ? (string) $json['codecLevel'] : null,
'CodecProfile' => isset($json['codecProfile']) ? (string) $json['codecProfile'] : null,
'DynamicSubGop' => isset($json['dynamicSubGop']) ? (string) $json['dynamicSubGop'] : null,
'EndOfStreamMarkers' => isset($json['endOfStreamMarkers']) ? (string) $json['endOfStreamMarkers'] : null,
'EntropyEncoding' => isset($json['entropyEncoding']) ? (string) $json['entropyEncoding'] : null,
'FieldEncoding' => isset($json['fieldEncoding']) ? (string) $json['fieldEncoding'] : null,
'FlickerAdaptiveQuantization' => isset($json['flickerAdaptiveQuantization']) ? (string) $json['flickerAdaptiveQuantization'] : null,
Expand Down Expand Up @@ -1047,6 +1051,7 @@ private function populateResultH265Settings(array $json): H265Settings
'CodecLevel' => isset($json['codecLevel']) ? (string) $json['codecLevel'] : null,
'CodecProfile' => isset($json['codecProfile']) ? (string) $json['codecProfile'] : null,
'DynamicSubGop' => isset($json['dynamicSubGop']) ? (string) $json['dynamicSubGop'] : null,
'EndOfStreamMarkers' => isset($json['endOfStreamMarkers']) ? (string) $json['endOfStreamMarkers'] : null,
'FlickerAdaptiveQuantization' => isset($json['flickerAdaptiveQuantization']) ? (string) $json['flickerAdaptiveQuantization'] : null,
'FramerateControl' => isset($json['framerateControl']) ? (string) $json['framerateControl'] : null,
'FramerateConversionAlgorithm' => isset($json['framerateConversionAlgorithm']) ? (string) $json['framerateConversionAlgorithm'] : null,
Expand Down Expand Up @@ -1273,6 +1278,7 @@ private function populateResultInput(array $json): Input
'TimecodeSource' => isset($json['timecodeSource']) ? (string) $json['timecodeSource'] : null,
'TimecodeStart' => isset($json['timecodeStart']) ? (string) $json['timecodeStart'] : null,
'VideoGenerator' => empty($json['videoGenerator']) ? null : $this->populateResultInputVideoGenerator($json['videoGenerator']),
'VideoOverlays' => !isset($json['videoOverlays']) ? null : $this->populateResult__listOfVideoOverlay($json['videoOverlays']),
'VideoSelector' => empty($json['videoSelector']) ? null : $this->populateResultVideoSelector($json['videoSelector']),
]);
}
Expand Down Expand Up @@ -1367,7 +1373,6 @@ private function populateResultJobSettings(array $json): JobSettings
'AvailBlanking' => empty($json['availBlanking']) ? null : $this->populateResultAvailBlanking($json['availBlanking']),
'Esam' => empty($json['esam']) ? null : $this->populateResultEsamSettings($json['esam']),
'ExtendedDataServices' => empty($json['extendedDataServices']) ? null : $this->populateResultExtendedDataServices($json['extendedDataServices']),
'FollowInputIndex' => isset($json['followInputIndex']) ? (int) $json['followInputIndex'] : null,
'Inputs' => !isset($json['inputs']) ? null : $this->populateResult__listOfInput($json['inputs']),
'KantarWatermark' => empty($json['kantarWatermark']) ? null : $this->populateResultKantarWatermarkSettings($json['kantarWatermark']),
'MotionImageInserter' => empty($json['motionImageInserter']) ? null : $this->populateResultMotionImageInserter($json['motionImageInserter']),
Expand Down Expand Up @@ -2066,6 +2071,33 @@ private function populateResultVideoDetail(array $json): VideoDetail
]);
}

private function populateResultVideoOverlay(array $json): VideoOverlay
{
return new VideoOverlay([
'EndTimecode' => isset($json['endTimecode']) ? (string) $json['endTimecode'] : null,
'Input' => empty($json['input']) ? null : $this->populateResultVideoOverlayInput($json['input']),
'StartTimecode' => isset($json['startTimecode']) ? (string) $json['startTimecode'] : null,
]);
}

private function populateResultVideoOverlayInput(array $json): VideoOverlayInput
{
return new VideoOverlayInput([
'FileInput' => isset($json['fileInput']) ? (string) $json['fileInput'] : null,
'InputClippings' => !isset($json['inputClippings']) ? null : $this->populateResult__listOfVideoOverlayInputClipping($json['inputClippings']),
'TimecodeSource' => isset($json['timecodeSource']) ? (string) $json['timecodeSource'] : null,
'TimecodeStart' => isset($json['timecodeStart']) ? (string) $json['timecodeStart'] : null,
]);
}

private function populateResultVideoOverlayInputClipping(array $json): VideoOverlayInputClipping
{
return new VideoOverlayInputClipping([
'EndTimecode' => isset($json['endTimecode']) ? (string) $json['endTimecode'] : null,
'StartTimecode' => isset($json['startTimecode']) ? (string) $json['startTimecode'] : null,
]);
}

private function populateResultVideoPreprocessor(array $json): VideoPreprocessor
{
return new VideoPreprocessor([
Expand Down Expand Up @@ -2555,6 +2587,32 @@ private function populateResult__listOfTeletextPageType(array $json): array
return $items;
}

/**
* @return VideoOverlay[]
*/
private function populateResult__listOfVideoOverlay(array $json): array
{
$items = [];
foreach ($json as $item) {
$items[] = $this->populateResultVideoOverlay($item);
}

return $items;
}

/**
* @return VideoOverlayInputClipping[]
*/
private function populateResult__listOfVideoOverlayInputClipping(array $json): array
{
$items = [];
foreach ($json as $item) {
$items[] = $this->populateResultVideoOverlayInputClipping($item);
}

return $items;
}

/**
* @return WarningGroup[]
*/
Expand Down
Loading

0 comments on commit b15f8a3

Please sign in to comment.