Skip to content

Commit 748fb4e

Browse files
Update generated code (#1890)
* update generated code * Add exception in psalm baseline --------- Co-authored-by: Jérémy Derussé <[email protected]>
1 parent b1fb4df commit 748fb4e

20 files changed

+456
-11
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.343.1"
3+
"${LATEST}": "3.343.4"
44
},
55
"endpoints": "https://raw.githubusercontent.com/aws/aws-sdk-php/${LATEST}/src/data/endpoints.json",
66
"services": {

psalm.baseline.xml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -207,35 +207,41 @@
207207
<code>$items</code>
208208
<code>$items</code>
209209
<code>$items</code>
210+
<code>$items</code>
210211
</LessSpecificReturnStatement>
211212
<MoreSpecificReturnType>
212213
<code><![CDATA[list<AudioChannelTag::*>]]></code>
213214
<code><![CDATA[list<HlsAdMarkers::*>]]></code>
214215
<code><![CDATA[list<TeletextPageType::*>]]></code>
216+
<code><![CDATA[list<FrameMetricType::*>]]></code>
215217
</MoreSpecificReturnType>
216218
</file>
217219
<file src="src/Service/MediaConvert/src/Result/GetJobResponse.php">
218220
<LessSpecificReturnStatement>
219221
<code>$items</code>
220222
<code>$items</code>
221223
<code>$items</code>
224+
<code>$items</code>
222225
</LessSpecificReturnStatement>
223226
<MoreSpecificReturnType>
224227
<code><![CDATA[list<AudioChannelTag::*>]]></code>
225228
<code><![CDATA[list<HlsAdMarkers::*>]]></code>
226229
<code><![CDATA[list<TeletextPageType::*>]]></code>
230+
<code><![CDATA[list<FrameMetricType::*>]]></code>
227231
</MoreSpecificReturnType>
228232
</file>
229233
<file src="src/Service/MediaConvert/src/Result/ListJobsResponse.php">
230234
<LessSpecificReturnStatement>
231235
<code>$items</code>
232236
<code>$items</code>
233237
<code>$items</code>
238+
<code>$items</code>
234239
</LessSpecificReturnStatement>
235240
<MoreSpecificReturnType>
236241
<code><![CDATA[list<AudioChannelTag::*>]]></code>
237242
<code><![CDATA[list<HlsAdMarkers::*>]]></code>
238243
<code><![CDATA[list<TeletextPageType::*>]]></code>
244+
<code><![CDATA[list<FrameMetricType::*>]]></code>
239245
</MoreSpecificReturnType>
240246
</file>
241247
<file src="src/Service/Rekognition/src/Result/IndexFacesResponse.php">

src/Service/MediaConvert/CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@
22

33
## NOT RELEASED
44

5+
### Added
6+
7+
- AWS api-change: This release adds an optional sidecar per-frame video quality metrics report and an ALL_PCM option for audio selectors. It also changes the data type for Probe API response fields related to video and audio bitrate from integer to double.
8+
59
### Changed
610

711
- Sort exception alphabetically.

src/Service/MediaConvert/composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
},
2929
"extra": {
3030
"branch-alias": {
31-
"dev-master": "1.7-dev"
31+
"dev-master": "1.8-dev"
3232
}
3333
}
3434
}

src/Service/MediaConvert/src/Enum/AudioSelectorType.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
*/
88
final class AudioSelectorType
99
{
10+
public const ALL_PCM = 'ALL_PCM';
1011
public const HLS_RENDITION_GROUP = 'HLS_RENDITION_GROUP';
1112
public const LANGUAGE_CODE = 'LANGUAGE_CODE';
1213
public const PID = 'PID';
@@ -15,6 +16,7 @@ final class AudioSelectorType
1516
public static function exists(string $value): bool
1617
{
1718
return isset([
19+
self::ALL_PCM => true,
1820
self::HLS_RENDITION_GROUP => true,
1921
self::LANGUAGE_CODE => true,
2022
self::PID => true,
Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
<?php
2+
3+
namespace AsyncAws\MediaConvert\Enum;
4+
5+
/**
6+
* * PSNR: Peak Signal-to-Noise Ratio * SSIM: Structural Similarity Index Measure * MS_SSIM: Multi-Scale Similarity
7+
* Index Measure * PSNR_HVS: Peak Signal-to-Noise Ratio, Human Visual System * VMAF: Video Multi-Method Assessment
8+
* Fusion * QVBR: Quality-Defined Variable Bitrate. This option is only available when your output uses the QVBR rate
9+
* control mode.
10+
*/
11+
final class FrameMetricType
12+
{
13+
public const MS_SSIM = 'MS_SSIM';
14+
public const PSNR = 'PSNR';
15+
public const PSNR_HVS = 'PSNR_HVS';
16+
public const QVBR = 'QVBR';
17+
public const SSIM = 'SSIM';
18+
public const VMAF = 'VMAF';
19+
20+
public static function exists(string $value): bool
21+
{
22+
return isset([
23+
self::MS_SSIM => true,
24+
self::PSNR => true,
25+
self::PSNR_HVS => true,
26+
self::QVBR => true,
27+
self::SSIM => true,
28+
self::VMAF => true,
29+
][$value]);
30+
}
31+
}

src/Service/MediaConvert/src/Input/CreateJobRequest.php

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
use AsyncAws\MediaConvert\ValueObject\AccelerationSettings;
1313
use AsyncAws\MediaConvert\ValueObject\HopDestination;
1414
use AsyncAws\MediaConvert\ValueObject\JobSettings;
15+
use AsyncAws\MediaConvert\ValueObject\Output;
1516

1617
/**
1718
* Send your create job request with your job settings and IAM role. Optionally, include user metadata and the ARN for
@@ -29,10 +30,8 @@ final class CreateJobRequest extends Input1
2930
private $accelerationSettings;
3031

3132
/**
32-
* Optional. Choose a tag type that AWS Billing and Cost Management will use to sort your AWS Elemental MediaConvert
33-
* costs on any billing report that you set up. Any transcoding outputs that don't have an associated tag will appear in
34-
* your billing report unsorted. If you don't choose a valid value for this field, your job outputs will appear on the
35-
* billing report unsorted.
33+
* Optionally choose a Billing tags source that AWS Billing and Cost Management will use to display tags for individual
34+
* output costs on any billing report that you set up. Leave blank to use the default value, Job.
3635
*
3736
* @var BillingTagsSource::*|null
3837
*/

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

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
use AsyncAws\Core\Response;
66
use AsyncAws\Core\Result;
77
use AsyncAws\MediaConvert\Enum\AudioChannelTag;
8+
use AsyncAws\MediaConvert\Enum\FrameMetricType;
89
use AsyncAws\MediaConvert\Enum\HlsAdMarkers;
910
use AsyncAws\MediaConvert\Enum\TeletextPageType;
1011
use AsyncAws\MediaConvert\ValueObject\AacSettings;
@@ -413,6 +414,7 @@ private function populateResultAv1Settings(array $json): Av1Settings
413414
'GopSize' => isset($json['gopSize']) ? (float) $json['gopSize'] : null,
414415
'MaxBitrate' => isset($json['maxBitrate']) ? (int) $json['maxBitrate'] : null,
415416
'NumberBFramesBetweenReferenceFrames' => isset($json['numberBFramesBetweenReferenceFrames']) ? (int) $json['numberBFramesBetweenReferenceFrames'] : null,
417+
'PerFrameMetrics' => !isset($json['perFrameMetrics']) ? null : $this->populateResult__listOfFrameMetricType($json['perFrameMetrics']),
416418
'QvbrSettings' => empty($json['qvbrSettings']) ? null : $this->populateResultAv1QvbrSettings($json['qvbrSettings']),
417419
'RateControlMode' => isset($json['rateControlMode']) ? (string) $json['rateControlMode'] : null,
418420
'Slices' => isset($json['slices']) ? (int) $json['slices'] : null,
@@ -437,6 +439,7 @@ private function populateResultAvcIntraSettings(array $json): AvcIntraSettings
437439
'FramerateDenominator' => isset($json['framerateDenominator']) ? (int) $json['framerateDenominator'] : null,
438440
'FramerateNumerator' => isset($json['framerateNumerator']) ? (int) $json['framerateNumerator'] : null,
439441
'InterlaceMode' => isset($json['interlaceMode']) ? (string) $json['interlaceMode'] : null,
442+
'PerFrameMetrics' => !isset($json['perFrameMetrics']) ? null : $this->populateResult__listOfFrameMetricType($json['perFrameMetrics']),
440443
'ScanTypeConversionMode' => isset($json['scanTypeConversionMode']) ? (string) $json['scanTypeConversionMode'] : null,
441444
'SlowPal' => isset($json['slowPal']) ? (string) $json['slowPal'] : null,
442445
'Telecine' => isset($json['telecine']) ? (string) $json['telecine'] : null,
@@ -1078,6 +1081,7 @@ private function populateResultH264Settings(array $json): H264Settings
10781081
'ParControl' => isset($json['parControl']) ? (string) $json['parControl'] : null,
10791082
'ParDenominator' => isset($json['parDenominator']) ? (int) $json['parDenominator'] : null,
10801083
'ParNumerator' => isset($json['parNumerator']) ? (int) $json['parNumerator'] : null,
1084+
'PerFrameMetrics' => !isset($json['perFrameMetrics']) ? null : $this->populateResult__listOfFrameMetricType($json['perFrameMetrics']),
10811085
'QualityTuningLevel' => isset($json['qualityTuningLevel']) ? (string) $json['qualityTuningLevel'] : null,
10821086
'QvbrSettings' => empty($json['qvbrSettings']) ? null : $this->populateResultH264QvbrSettings($json['qvbrSettings']),
10831087
'RateControlMode' => isset($json['rateControlMode']) ? (string) $json['rateControlMode'] : null,
@@ -1138,6 +1142,7 @@ private function populateResultH265Settings(array $json): H265Settings
11381142
'ParControl' => isset($json['parControl']) ? (string) $json['parControl'] : null,
11391143
'ParDenominator' => isset($json['parDenominator']) ? (int) $json['parDenominator'] : null,
11401144
'ParNumerator' => isset($json['parNumerator']) ? (int) $json['parNumerator'] : null,
1145+
'PerFrameMetrics' => !isset($json['perFrameMetrics']) ? null : $this->populateResult__listOfFrameMetricType($json['perFrameMetrics']),
11411146
'QualityTuningLevel' => isset($json['qualityTuningLevel']) ? (string) $json['qualityTuningLevel'] : null,
11421147
'QvbrSettings' => empty($json['qvbrSettings']) ? null : $this->populateResultH265QvbrSettings($json['qvbrSettings']),
11431148
'RateControlMode' => isset($json['rateControlMode']) ? (string) $json['rateControlMode'] : null,
@@ -1692,6 +1697,7 @@ private function populateResultMpeg2Settings(array $json): Mpeg2Settings
16921697
'ParControl' => isset($json['parControl']) ? (string) $json['parControl'] : null,
16931698
'ParDenominator' => isset($json['parDenominator']) ? (int) $json['parDenominator'] : null,
16941699
'ParNumerator' => isset($json['parNumerator']) ? (int) $json['parNumerator'] : null,
1700+
'PerFrameMetrics' => !isset($json['perFrameMetrics']) ? null : $this->populateResult__listOfFrameMetricType($json['perFrameMetrics']),
16951701
'QualityTuningLevel' => isset($json['qualityTuningLevel']) ? (string) $json['qualityTuningLevel'] : null,
16961702
'RateControlMode' => isset($json['rateControlMode']) ? (string) $json['rateControlMode'] : null,
16971703
'ScanTypeConversionMode' => isset($json['scanTypeConversionMode']) ? (string) $json['scanTypeConversionMode'] : null,
@@ -1888,6 +1894,7 @@ private function populateResultOutputGroupSettings(array $json): OutputGroupSett
18881894
'FileGroupSettings' => empty($json['fileGroupSettings']) ? null : $this->populateResultFileGroupSettings($json['fileGroupSettings']),
18891895
'HlsGroupSettings' => empty($json['hlsGroupSettings']) ? null : $this->populateResultHlsGroupSettings($json['hlsGroupSettings']),
18901896
'MsSmoothGroupSettings' => empty($json['msSmoothGroupSettings']) ? null : $this->populateResultMsSmoothGroupSettings($json['msSmoothGroupSettings']),
1897+
'PerFrameMetrics' => !isset($json['perFrameMetrics']) ? null : $this->populateResult__listOfFrameMetricType($json['perFrameMetrics']),
18911898
'Type' => isset($json['type']) ? (string) $json['type'] : null,
18921899
]);
18931900
}
@@ -1919,6 +1926,7 @@ private function populateResultProresSettings(array $json): ProresSettings
19191926
'ParControl' => isset($json['parControl']) ? (string) $json['parControl'] : null,
19201927
'ParDenominator' => isset($json['parDenominator']) ? (int) $json['parDenominator'] : null,
19211928
'ParNumerator' => isset($json['parNumerator']) ? (int) $json['parNumerator'] : null,
1929+
'PerFrameMetrics' => !isset($json['perFrameMetrics']) ? null : $this->populateResult__listOfFrameMetricType($json['perFrameMetrics']),
19221930
'ScanTypeConversionMode' => isset($json['scanTypeConversionMode']) ? (string) $json['scanTypeConversionMode'] : null,
19231931
'SlowPal' => isset($json['slowPal']) ? (string) $json['slowPal'] : null,
19241932
'Telecine' => isset($json['telecine']) ? (string) $json['telecine'] : null,
@@ -2394,6 +2402,7 @@ private function populateResultXavcSettings(array $json): XavcSettings
23942402
'FramerateConversionAlgorithm' => isset($json['framerateConversionAlgorithm']) ? (string) $json['framerateConversionAlgorithm'] : null,
23952403
'FramerateDenominator' => isset($json['framerateDenominator']) ? (int) $json['framerateDenominator'] : null,
23962404
'FramerateNumerator' => isset($json['framerateNumerator']) ? (int) $json['framerateNumerator'] : null,
2405+
'PerFrameMetrics' => !isset($json['perFrameMetrics']) ? null : $this->populateResult__listOfFrameMetricType($json['perFrameMetrics']),
23972406
'Profile' => isset($json['profile']) ? (string) $json['profile'] : null,
23982407
'SlowPal' => isset($json['slowPal']) ? (string) $json['slowPal'] : null,
23992408
'Softness' => isset($json['softness']) ? (int) $json['softness'] : null,
@@ -2527,6 +2536,22 @@ private function populateResult__listOfForceIncludeRenditionSize(array $json): a
25272536
return $items;
25282537
}
25292538

2539+
/**
2540+
* @return list<FrameMetricType::*>
2541+
*/
2542+
private function populateResult__listOfFrameMetricType(array $json): array
2543+
{
2544+
$items = [];
2545+
foreach ($json as $item) {
2546+
$a = isset($item) ? (string) $item : null;
2547+
if (null !== $a) {
2548+
$items[] = $a;
2549+
}
2550+
}
2551+
2552+
return $items;
2553+
}
2554+
25302555
/**
25312556
* @return list<HlsAdMarkers::*>
25322557
*/

0 commit comments

Comments
 (0)