Skip to content

Commit f92e787

Browse files
Update generated code (#1893)
update generated code
1 parent d085542 commit f92e787

26 files changed

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

src/Service/CodeBuild/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: AWS CodeBuild now supports Docker Server capability
8+
59
## 2.10.0
610

711
### Added

src/Service/CodeBuild/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": "2.10-dev"
31+
"dev-master": "2.11-dev"
3232
}
3333
}
3434
}

src/Service/CodeBuild/src/Result/BatchGetBuildsOutput.php

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@
1111
use AsyncAws\CodeBuild\ValueObject\CloudWatchLogsConfig;
1212
use AsyncAws\CodeBuild\ValueObject\ComputeConfiguration;
1313
use AsyncAws\CodeBuild\ValueObject\DebugSession;
14+
use AsyncAws\CodeBuild\ValueObject\DockerServer;
15+
use AsyncAws\CodeBuild\ValueObject\DockerServerStatus;
1416
use AsyncAws\CodeBuild\ValueObject\EnvironmentVariable;
1517
use AsyncAws\CodeBuild\ValueObject\ExportedEnvironmentVariable;
1618
use AsyncAws\CodeBuild\ValueObject\GitSubmodulesConfig;
@@ -255,6 +257,23 @@ private function populateResultDebugSession(array $json): DebugSession
255257
]);
256258
}
257259

260+
private function populateResultDockerServer(array $json): DockerServer
261+
{
262+
return new DockerServer([
263+
'computeType' => (string) $json['computeType'],
264+
'securityGroupIds' => !isset($json['securityGroupIds']) ? null : $this->populateResultSecurityGroupIds($json['securityGroupIds']),
265+
'status' => empty($json['status']) ? null : $this->populateResultDockerServerStatus($json['status']),
266+
]);
267+
}
268+
269+
private function populateResultDockerServerStatus(array $json): DockerServerStatus
270+
{
271+
return new DockerServerStatus([
272+
'status' => isset($json['status']) ? (string) $json['status'] : null,
273+
'message' => isset($json['message']) ? (string) $json['message'] : null,
274+
]);
275+
}
276+
258277
private function populateResultEnvironmentVariable(array $json): EnvironmentVariable
259278
{
260279
return new EnvironmentVariable([
@@ -387,6 +406,7 @@ private function populateResultProjectEnvironment(array $json): ProjectEnvironme
387406
'certificate' => isset($json['certificate']) ? (string) $json['certificate'] : null,
388407
'registryCredential' => empty($json['registryCredential']) ? null : $this->populateResultRegistryCredential($json['registryCredential']),
389408
'imagePullCredentialsType' => isset($json['imagePullCredentialsType']) ? (string) $json['imagePullCredentialsType'] : null,
409+
'dockerServer' => empty($json['dockerServer']) ? null : $this->populateResultDockerServer($json['dockerServer']),
390410
]);
391411
}
392412

src/Service/CodeBuild/src/Result/StartBuildOutput.php

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@
1111
use AsyncAws\CodeBuild\ValueObject\CloudWatchLogsConfig;
1212
use AsyncAws\CodeBuild\ValueObject\ComputeConfiguration;
1313
use AsyncAws\CodeBuild\ValueObject\DebugSession;
14+
use AsyncAws\CodeBuild\ValueObject\DockerServer;
15+
use AsyncAws\CodeBuild\ValueObject\DockerServerStatus;
1416
use AsyncAws\CodeBuild\ValueObject\EnvironmentVariable;
1517
use AsyncAws\CodeBuild\ValueObject\ExportedEnvironmentVariable;
1618
use AsyncAws\CodeBuild\ValueObject\GitSubmodulesConfig;
@@ -205,6 +207,23 @@ private function populateResultDebugSession(array $json): DebugSession
205207
]);
206208
}
207209

210+
private function populateResultDockerServer(array $json): DockerServer
211+
{
212+
return new DockerServer([
213+
'computeType' => (string) $json['computeType'],
214+
'securityGroupIds' => !isset($json['securityGroupIds']) ? null : $this->populateResultSecurityGroupIds($json['securityGroupIds']),
215+
'status' => empty($json['status']) ? null : $this->populateResultDockerServerStatus($json['status']),
216+
]);
217+
}
218+
219+
private function populateResultDockerServerStatus(array $json): DockerServerStatus
220+
{
221+
return new DockerServerStatus([
222+
'status' => isset($json['status']) ? (string) $json['status'] : null,
223+
'message' => isset($json['message']) ? (string) $json['message'] : null,
224+
]);
225+
}
226+
208227
private function populateResultEnvironmentVariable(array $json): EnvironmentVariable
209228
{
210229
return new EnvironmentVariable([
@@ -337,6 +356,7 @@ private function populateResultProjectEnvironment(array $json): ProjectEnvironme
337356
'certificate' => isset($json['certificate']) ? (string) $json['certificate'] : null,
338357
'registryCredential' => empty($json['registryCredential']) ? null : $this->populateResultRegistryCredential($json['registryCredential']),
339358
'imagePullCredentialsType' => isset($json['imagePullCredentialsType']) ? (string) $json['imagePullCredentialsType'] : null,
359+
'dockerServer' => empty($json['dockerServer']) ? null : $this->populateResultDockerServer($json['dockerServer']),
340360
]);
341361
}
342362

src/Service/CodeBuild/src/Result/StopBuildOutput.php

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@
1111
use AsyncAws\CodeBuild\ValueObject\CloudWatchLogsConfig;
1212
use AsyncAws\CodeBuild\ValueObject\ComputeConfiguration;
1313
use AsyncAws\CodeBuild\ValueObject\DebugSession;
14+
use AsyncAws\CodeBuild\ValueObject\DockerServer;
15+
use AsyncAws\CodeBuild\ValueObject\DockerServerStatus;
1416
use AsyncAws\CodeBuild\ValueObject\EnvironmentVariable;
1517
use AsyncAws\CodeBuild\ValueObject\ExportedEnvironmentVariable;
1618
use AsyncAws\CodeBuild\ValueObject\GitSubmodulesConfig;
@@ -205,6 +207,23 @@ private function populateResultDebugSession(array $json): DebugSession
205207
]);
206208
}
207209

210+
private function populateResultDockerServer(array $json): DockerServer
211+
{
212+
return new DockerServer([
213+
'computeType' => (string) $json['computeType'],
214+
'securityGroupIds' => !isset($json['securityGroupIds']) ? null : $this->populateResultSecurityGroupIds($json['securityGroupIds']),
215+
'status' => empty($json['status']) ? null : $this->populateResultDockerServerStatus($json['status']),
216+
]);
217+
}
218+
219+
private function populateResultDockerServerStatus(array $json): DockerServerStatus
220+
{
221+
return new DockerServerStatus([
222+
'status' => isset($json['status']) ? (string) $json['status'] : null,
223+
'message' => isset($json['message']) ? (string) $json['message'] : null,
224+
]);
225+
}
226+
208227
private function populateResultEnvironmentVariable(array $json): EnvironmentVariable
209228
{
210229
return new EnvironmentVariable([
@@ -337,6 +356,7 @@ private function populateResultProjectEnvironment(array $json): ProjectEnvironme
337356
'certificate' => isset($json['certificate']) ? (string) $json['certificate'] : null,
338357
'registryCredential' => empty($json['registryCredential']) ? null : $this->populateResultRegistryCredential($json['registryCredential']),
339358
'imagePullCredentialsType' => isset($json['imagePullCredentialsType']) ? (string) $json['imagePullCredentialsType'] : null,
359+
'dockerServer' => empty($json['dockerServer']) ? null : $this->populateResultDockerServer($json['dockerServer']),
340360
]);
341361
}
342362

Lines changed: 97 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,97 @@
1+
<?php
2+
3+
namespace AsyncAws\CodeBuild\ValueObject;
4+
5+
use AsyncAws\CodeBuild\Enum\ComputeType;
6+
use AsyncAws\Core\Exception\InvalidArgument;
7+
8+
/**
9+
* Contains docker server information.
10+
*/
11+
final class DockerServer
12+
{
13+
/**
14+
* Information about the compute resources the docker server uses. Available values include:
15+
*
16+
* - `BUILD_GENERAL1_SMALL`: Use up to 4 GiB memory and 2 vCPUs for your docker server.
17+
* - `BUILD_GENERAL1_MEDIUM`: Use up to 8 GiB memory and 4 vCPUs for your docker server.
18+
* - `BUILD_GENERAL1_LARGE`: Use up to 16 GiB memory and 8 vCPUs for your docker server.
19+
* - `BUILD_GENERAL1_XLARGE`: Use up to 64 GiB memory and 32 vCPUs for your docker server.
20+
* - `BUILD_GENERAL1_2XLARGE`: Use up to 128 GiB memory and 64 vCPUs for your docker server.
21+
*
22+
* @var ComputeType::*
23+
*/
24+
private $computeType;
25+
26+
/**
27+
* A list of one or more security groups IDs.
28+
*
29+
* > Security groups configured for Docker servers should allow ingress network traffic from the VPC configured in the
30+
* > project. They should allow ingress on port 9876.
31+
*
32+
* @var string[]|null
33+
*/
34+
private $securityGroupIds;
35+
36+
/**
37+
* A DockerServerStatus object to use for this docker server.
38+
*
39+
* @var DockerServerStatus|null
40+
*/
41+
private $status;
42+
43+
/**
44+
* @param array{
45+
* computeType: ComputeType::*,
46+
* securityGroupIds?: null|string[],
47+
* status?: null|DockerServerStatus|array,
48+
* } $input
49+
*/
50+
public function __construct(array $input)
51+
{
52+
$this->computeType = $input['computeType'] ?? $this->throwException(new InvalidArgument('Missing required field "computeType".'));
53+
$this->securityGroupIds = $input['securityGroupIds'] ?? null;
54+
$this->status = isset($input['status']) ? DockerServerStatus::create($input['status']) : null;
55+
}
56+
57+
/**
58+
* @param array{
59+
* computeType: ComputeType::*,
60+
* securityGroupIds?: null|string[],
61+
* status?: null|DockerServerStatus|array,
62+
* }|DockerServer $input
63+
*/
64+
public static function create($input): self
65+
{
66+
return $input instanceof self ? $input : new self($input);
67+
}
68+
69+
/**
70+
* @return ComputeType::*
71+
*/
72+
public function getComputeType(): string
73+
{
74+
return $this->computeType;
75+
}
76+
77+
/**
78+
* @return string[]
79+
*/
80+
public function getSecurityGroupIds(): array
81+
{
82+
return $this->securityGroupIds ?? [];
83+
}
84+
85+
public function getStatus(): ?DockerServerStatus
86+
{
87+
return $this->status;
88+
}
89+
90+
/**
91+
* @return never
92+
*/
93+
private function throwException(\Throwable $exception)
94+
{
95+
throw $exception;
96+
}
97+
}
Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
1+
<?php
2+
3+
namespace AsyncAws\CodeBuild\ValueObject;
4+
5+
/**
6+
* Contains information about the status of the docker server.
7+
*/
8+
final class DockerServerStatus
9+
{
10+
/**
11+
* The status of the docker server.
12+
*
13+
* @var string|null
14+
*/
15+
private $status;
16+
17+
/**
18+
* A message associated with the status of a docker server.
19+
*
20+
* @var string|null
21+
*/
22+
private $message;
23+
24+
/**
25+
* @param array{
26+
* status?: null|string,
27+
* message?: null|string,
28+
* } $input
29+
*/
30+
public function __construct(array $input)
31+
{
32+
$this->status = $input['status'] ?? null;
33+
$this->message = $input['message'] ?? null;
34+
}
35+
36+
/**
37+
* @param array{
38+
* status?: null|string,
39+
* message?: null|string,
40+
* }|DockerServerStatus $input
41+
*/
42+
public static function create($input): self
43+
{
44+
return $input instanceof self ? $input : new self($input);
45+
}
46+
47+
public function getMessage(): ?string
48+
{
49+
return $this->message;
50+
}
51+
52+
public function getStatus(): ?string
53+
{
54+
return $this->status;
55+
}
56+
}

src/Service/CodeBuild/src/ValueObject/ProjectEnvironment.php

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -174,6 +174,13 @@ final class ProjectEnvironment
174174
*/
175175
private $imagePullCredentialsType;
176176

177+
/**
178+
* A DockerServer object to use for this build project.
179+
*
180+
* @var DockerServer|null
181+
*/
182+
private $dockerServer;
183+
177184
/**
178185
* @param array{
179186
* type: EnvironmentType::*,
@@ -186,6 +193,7 @@ final class ProjectEnvironment
186193
* certificate?: null|string,
187194
* registryCredential?: null|RegistryCredential|array,
188195
* imagePullCredentialsType?: null|ImagePullCredentialsType::*,
196+
* dockerServer?: null|DockerServer|array,
189197
* } $input
190198
*/
191199
public function __construct(array $input)
@@ -200,6 +208,7 @@ public function __construct(array $input)
200208
$this->certificate = $input['certificate'] ?? null;
201209
$this->registryCredential = isset($input['registryCredential']) ? RegistryCredential::create($input['registryCredential']) : null;
202210
$this->imagePullCredentialsType = $input['imagePullCredentialsType'] ?? null;
211+
$this->dockerServer = isset($input['dockerServer']) ? DockerServer::create($input['dockerServer']) : null;
203212
}
204213

205214
/**
@@ -214,6 +223,7 @@ public function __construct(array $input)
214223
* certificate?: null|string,
215224
* registryCredential?: null|RegistryCredential|array,
216225
* imagePullCredentialsType?: null|ImagePullCredentialsType::*,
226+
* dockerServer?: null|DockerServer|array,
217227
* }|ProjectEnvironment $input
218228
*/
219229
public static function create($input): self
@@ -239,6 +249,11 @@ public function getComputeType(): string
239249
return $this->computeType;
240250
}
241251

252+
public function getDockerServer(): ?DockerServer
253+
{
254+
return $this->dockerServer;
255+
}
256+
242257
/**
243258
* @return EnvironmentVariable[]
244259
*/

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 update enables cropping for video overlays and adds a new STL to Teletext upconversion toggle to preserve styling.
8+
59
## 1.8.0
610

711
### Added

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.8-dev"
31+
"dev-master": "1.9-dev"
3232
}
3333
}
3434
}
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+
* Specify whether this set of input captions appears in your outputs in both STL and Teletext format. If you choose
7+
* Upconvert, MediaConvert includes the captions data in two ways: it passes the STL data through using the Teletext
8+
* compatibility bytes fields of the Teletext wrapper, and it also translates the STL data into Teletext.
9+
*/
10+
final class CaptionSourceUpconvertSTLToTeletext
11+
{
12+
public const DISABLED = 'DISABLED';
13+
public const UPCONVERT = 'UPCONVERT';
14+
15+
public static function exists(string $value): bool
16+
{
17+
return isset([
18+
self::DISABLED => true,
19+
self::UPCONVERT => true,
20+
][$value]);
21+
}
22+
}

0 commit comments

Comments
 (0)