Skip to content

Commit d84610d

Browse files
authored
Move ObjectValue in dedicated Namespace (#316)
1 parent cb34a90 commit d84610d

11 files changed

Lines changed: 129 additions & 138 deletions

src/Input/PublishLayerVersionRequest.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
use AsyncAws\Core\Request;
77
use AsyncAws\Core\Stream\StreamFactory;
88
use AsyncAws\Lambda\Enum\Runtime;
9+
use AsyncAws\Lambda\ValueObject\LayerVersionContentInput;
910

1011
class PublishLayerVersionRequest
1112
{
@@ -54,7 +55,7 @@ class PublishLayerVersionRequest
5455
* @param array{
5556
* LayerName?: string,
5657
* Description?: string,
57-
* Content?: \AsyncAws\Lambda\Input\LayerVersionContentInput|array,
58+
* Content?: \AsyncAws\Lambda\ValueObject\LayerVersionContentInput|array,
5859
* CompatibleRuntimes?: list<\AsyncAws\Lambda\Enum\Runtime::*>,
5960
* LicenseInfo?: string,
6061
* } $input

src/LambdaClient.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ public function listLayerVersions($input): ListLayerVersionsResponse
102102
* @param array{
103103
* LayerName: string,
104104
* Description?: string,
105-
* Content: \AsyncAws\Lambda\Input\LayerVersionContentInput|array,
105+
* Content: \AsyncAws\Lambda\ValueObject\LayerVersionContentInput|array,
106106
* CompatibleRuntimes?: list<\AsyncAws\Lambda\Enum\Runtime::*>,
107107
* LicenseInfo?: string,
108108
* }|PublishLayerVersionRequest $input

src/Result/AddLayerVersionPermissionResponse.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,23 +8,23 @@
88

99
class AddLayerVersionPermissionResponse extends Result
1010
{
11+
/**
12+
* The permission statement.
13+
*/
1114
private $Statement;
1215

13-
private $RevisionId;
14-
1516
/**
1617
* A unique identifier for the current revision of the policy.
1718
*/
19+
private $RevisionId;
20+
1821
public function getRevisionId(): ?string
1922
{
2023
$this->initialize();
2124

2225
return $this->RevisionId;
2326
}
2427

25-
/**
26-
* The permission statement.
27-
*/
2828
public function getStatement(): ?string
2929
{
3030
$this->initialize();

src/Result/InvocationResponse.php

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -8,63 +8,63 @@
88

99
class InvocationResponse extends Result
1010
{
11+
/**
12+
* The HTTP status code is in the 200 range for a successful request. For the `RequestResponse` invocation type, this
13+
* status code is 200. For the `Event` invocation type, this status code is 202. For the `DryRun` invocation type, the
14+
* status code is 204.
15+
*/
1116
private $StatusCode;
1217

18+
/**
19+
* If present, indicates that an error occurred during function execution. Details about the error are included in the
20+
* response payload.
21+
*/
1322
private $FunctionError;
1423

24+
/**
25+
* The last 4 KB of the execution log, which is base64 encoded.
26+
*/
1527
private $LogResult;
1628

29+
/**
30+
* The response from the function, or an error object.
31+
*/
1732
private $Payload;
1833

19-
private $ExecutedVersion;
20-
2134
/**
2235
* The version of the function that executed. When you invoke a function with an alias, this indicates which version the
2336
* alias resolved to.
2437
*/
38+
private $ExecutedVersion;
39+
2540
public function getExecutedVersion(): ?string
2641
{
2742
$this->initialize();
2843

2944
return $this->ExecutedVersion;
3045
}
3146

32-
/**
33-
* If present, indicates that an error occurred during function execution. Details about the error are included in the
34-
* response payload.
35-
*/
3647
public function getFunctionError(): ?string
3748
{
3849
$this->initialize();
3950

4051
return $this->FunctionError;
4152
}
4253

43-
/**
44-
* The last 4 KB of the execution log, which is base64 encoded.
45-
*/
4654
public function getLogResult(): ?string
4755
{
4856
$this->initialize();
4957

5058
return $this->LogResult;
5159
}
5260

53-
/**
54-
* The response from the function, or an error object.
55-
*/
5661
public function getPayload(): ?string
5762
{
5863
$this->initialize();
5964

6065
return $this->Payload;
6166
}
6267

63-
/**
64-
* The HTTP status code is in the 200 range for a successful request. For the `RequestResponse` invocation type, this
65-
* status code is 200. For the `Event` invocation type, this status code is 202. For the `DryRun` invocation type, the
66-
* status code is 204.
67-
*/
6868
public function getStatusCode(): ?int
6969
{
7070
$this->initialize();

src/Result/ListLayerVersionsResponse.php

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,20 @@
55
use AsyncAws\Core\Result;
66
use AsyncAws\Lambda\Input\ListLayerVersionsRequest;
77
use AsyncAws\Lambda\LambdaClient;
8+
use AsyncAws\Lambda\ValueObject\LayerVersionsListItem;
89
use Symfony\Contracts\HttpClient\HttpClientInterface;
910
use Symfony\Contracts\HttpClient\ResponseInterface;
1011

1112
class ListLayerVersionsResponse extends Result implements \IteratorAggregate
1213
{
14+
/**
15+
* A pagination token returned when the response doesn't contain all versions.
16+
*/
1317
private $NextMarker;
1418

19+
/**
20+
* A list of versions.
21+
*/
1522
private $LayerVersions = [];
1623

1724
/**
@@ -93,9 +100,6 @@ public function getLayerVersions(bool $currentPageOnly = false): iterable
93100
}
94101
}
95102

96-
/**
97-
* A pagination token returned when the response doesn't contain all versions.
98-
*/
99103
public function getNextMarker(): ?string
100104
{
101105
$this->initialize();

src/Result/PublishLayerVersionResponse.php

Lines changed: 27 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -4,25 +4,52 @@
44

55
use AsyncAws\Core\Result;
66
use AsyncAws\Lambda\Enum\Runtime;
7+
use AsyncAws\Lambda\ValueObject\LayerVersionContentOutput;
78
use Symfony\Contracts\HttpClient\HttpClientInterface;
89
use Symfony\Contracts\HttpClient\ResponseInterface;
910

1011
class PublishLayerVersionResponse extends Result
1112
{
13+
/**
14+
* Details about the layer version.
15+
*/
1216
private $Content;
1317

18+
/**
19+
* The ARN of the layer.
20+
*/
1421
private $LayerArn;
1522

23+
/**
24+
* The ARN of the layer version.
25+
*/
1626
private $LayerVersionArn;
1727

28+
/**
29+
* The description of the version.
30+
*/
1831
private $Description;
1932

33+
/**
34+
* The date that the layer version was created, in ISO-8601 format (YYYY-MM-DDThh:mm:ss.sTZD).
35+
*
36+
* @see https://www.w3.org/TR/NOTE-datetime
37+
*/
2038
private $CreatedDate;
2139

40+
/**
41+
* The version number.
42+
*/
2243
private $Version;
2344

45+
/**
46+
* The layer's compatible runtimes.
47+
*/
2448
private $CompatibleRuntimes = [];
2549

50+
/**
51+
* The layer's software license.
52+
*/
2653
private $LicenseInfo;
2754

2855
/**
@@ -35,71 +62,48 @@ public function getCompatibleRuntimes(): array
3562
return $this->CompatibleRuntimes;
3663
}
3764

38-
/**
39-
* Details about the layer version.
40-
*/
4165
public function getContent(): ?LayerVersionContentOutput
4266
{
4367
$this->initialize();
4468

4569
return $this->Content;
4670
}
4771

48-
/**
49-
* The date that the layer version was created, in ISO-8601 format (YYYY-MM-DDThh:mm:ss.sTZD).
50-
*
51-
* @see https://www.w3.org/TR/NOTE-datetime
52-
*/
5372
public function getCreatedDate(): ?string
5473
{
5574
$this->initialize();
5675

5776
return $this->CreatedDate;
5877
}
5978

60-
/**
61-
* The description of the version.
62-
*/
6379
public function getDescription(): ?string
6480
{
6581
$this->initialize();
6682

6783
return $this->Description;
6884
}
6985

70-
/**
71-
* The ARN of the layer.
72-
*/
7386
public function getLayerArn(): ?string
7487
{
7588
$this->initialize();
7689

7790
return $this->LayerArn;
7891
}
7992

80-
/**
81-
* The ARN of the layer version.
82-
*/
8393
public function getLayerVersionArn(): ?string
8494
{
8595
$this->initialize();
8696

8797
return $this->LayerVersionArn;
8898
}
8999

90-
/**
91-
* The layer's software license.
92-
*/
93100
public function getLicenseInfo(): ?string
94101
{
95102
$this->initialize();
96103

97104
return $this->LicenseInfo;
98105
}
99106

100-
/**
101-
* The version number.
102-
*/
103107
public function getVersion(): ?string
104108
{
105109
$this->initialize();

src/Input/LayerVersionContentInput.php renamed to src/ValueObject/LayerVersionContentInput.php

Lines changed: 6 additions & 42 deletions
Original file line numberDiff line numberDiff line change
@@ -1,46 +1,38 @@
11
<?php
22

3-
namespace AsyncAws\Lambda\Input;
3+
namespace AsyncAws\Lambda\ValueObject;
44

55
class LayerVersionContentInput
66
{
77
/**
88
* The Amazon S3 bucket of the layer archive.
9-
*
10-
* @var string|null
119
*/
1210
private $S3Bucket;
1311

1412
/**
1513
* The Amazon S3 key of the layer archive.
16-
*
17-
* @var string|null
1814
*/
1915
private $S3Key;
2016

2117
/**
2218
* For versioned objects, the version of the layer archive object to use.
23-
*
24-
* @var string|null
2519
*/
2620
private $S3ObjectVersion;
2721

2822
/**
2923
* The base64-encoded contents of the layer archive. AWS SDK and AWS CLI clients handle the encoding for you.
30-
*
31-
* @var string|null
3224
*/
3325
private $ZipFile;
3426

3527
/**
3628
* @param array{
37-
* S3Bucket?: string,
38-
* S3Key?: string,
39-
* S3ObjectVersion?: string,
40-
* ZipFile?: string,
29+
* S3Bucket?: null|string,
30+
* S3Key?: null|string,
31+
* S3ObjectVersion?: null|string,
32+
* ZipFile?: null|string,
4133
* } $input
4234
*/
43-
public function __construct(array $input = [])
35+
public function __construct(array $input)
4436
{
4537
$this->S3Bucket = $input['S3Bucket'] ?? null;
4638
$this->S3Key = $input['S3Key'] ?? null;
@@ -73,34 +65,6 @@ public function getZipFile(): ?string
7365
return $this->ZipFile;
7466
}
7567

76-
public function setS3Bucket(?string $value): self
77-
{
78-
$this->S3Bucket = $value;
79-
80-
return $this;
81-
}
82-
83-
public function setS3Key(?string $value): self
84-
{
85-
$this->S3Key = $value;
86-
87-
return $this;
88-
}
89-
90-
public function setS3ObjectVersion(?string $value): self
91-
{
92-
$this->S3ObjectVersion = $value;
93-
94-
return $this;
95-
}
96-
97-
public function setZipFile(?string $value): self
98-
{
99-
$this->ZipFile = $value;
100-
101-
return $this;
102-
}
103-
10468
public function validate(): void
10569
{
10670
// There are no required properties

0 commit comments

Comments
 (0)