Skip to content

Commit 252bf69

Browse files
authored
Uncapitalize objects's property (#925)
* Uncapitalize objects's property * Add changelog * Improve lowercase naming * Rename sseKms to sseKms * Normalize Methods and Classes
1 parent 14eaa94 commit 252bf69

12 files changed

+225
-224
lines changed

CHANGELOG.md

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

55
### Added
66

7+
- Changed case of object's properties to camelCase.
78
- Added documentation in class's headers.
89

910
## 1.2.0

src/Input/AddLayerVersionPermissionRequest.php

Lines changed: 36 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ final class AddLayerVersionPermissionRequest extends Input
1616
*
1717
* @var string|null
1818
*/
19-
private $LayerName;
19+
private $layerName;
2020

2121
/**
2222
* The version number.
@@ -25,7 +25,7 @@ final class AddLayerVersionPermissionRequest extends Input
2525
*
2626
* @var string|null
2727
*/
28-
private $VersionNumber;
28+
private $versionNumber;
2929

3030
/**
3131
* An identifier that distinguishes the policy from others on the same layer version.
@@ -34,7 +34,7 @@ final class AddLayerVersionPermissionRequest extends Input
3434
*
3535
* @var string|null
3636
*/
37-
private $StatementId;
37+
private $statementId;
3838

3939
/**
4040
* The API action that grants access to the layer. For example, `lambda:GetLayerVersion`.
@@ -43,7 +43,7 @@ final class AddLayerVersionPermissionRequest extends Input
4343
*
4444
* @var string|null
4545
*/
46-
private $Action;
46+
private $action;
4747

4848
/**
4949
* An account ID, or `*` to grant permission to all AWS accounts.
@@ -52,22 +52,22 @@ final class AddLayerVersionPermissionRequest extends Input
5252
*
5353
* @var string|null
5454
*/
55-
private $Principal;
55+
private $principal;
5656

5757
/**
5858
* With the principal set to `*`, grant permission to all accounts in the specified organization.
5959
*
6060
* @var string|null
6161
*/
62-
private $OrganizationId;
62+
private $organizationId;
6363

6464
/**
6565
* Only update the policy if the revision ID matches the ID specified. Use this option to avoid modifying a policy that
6666
* has changed since you last read it.
6767
*
6868
* @var string|null
6969
*/
70-
private $RevisionId;
70+
private $revisionId;
7171

7272
/**
7373
* @param array{
@@ -83,13 +83,13 @@ final class AddLayerVersionPermissionRequest extends Input
8383
*/
8484
public function __construct(array $input = [])
8585
{
86-
$this->LayerName = $input['LayerName'] ?? null;
87-
$this->VersionNumber = $input['VersionNumber'] ?? null;
88-
$this->StatementId = $input['StatementId'] ?? null;
89-
$this->Action = $input['Action'] ?? null;
90-
$this->Principal = $input['Principal'] ?? null;
91-
$this->OrganizationId = $input['OrganizationId'] ?? null;
92-
$this->RevisionId = $input['RevisionId'] ?? null;
86+
$this->layerName = $input['LayerName'] ?? null;
87+
$this->versionNumber = $input['VersionNumber'] ?? null;
88+
$this->statementId = $input['StatementId'] ?? null;
89+
$this->action = $input['Action'] ?? null;
90+
$this->principal = $input['Principal'] ?? null;
91+
$this->organizationId = $input['OrganizationId'] ?? null;
92+
$this->revisionId = $input['RevisionId'] ?? null;
9393
parent::__construct($input);
9494
}
9595

@@ -100,37 +100,37 @@ public static function create($input): self
100100

101101
public function getAction(): ?string
102102
{
103-
return $this->Action;
103+
return $this->action;
104104
}
105105

106106
public function getLayerName(): ?string
107107
{
108-
return $this->LayerName;
108+
return $this->layerName;
109109
}
110110

111111
public function getOrganizationId(): ?string
112112
{
113-
return $this->OrganizationId;
113+
return $this->organizationId;
114114
}
115115

116116
public function getPrincipal(): ?string
117117
{
118-
return $this->Principal;
118+
return $this->principal;
119119
}
120120

121121
public function getRevisionId(): ?string
122122
{
123-
return $this->RevisionId;
123+
return $this->revisionId;
124124
}
125125

126126
public function getStatementId(): ?string
127127
{
128-
return $this->StatementId;
128+
return $this->statementId;
129129
}
130130

131131
public function getVersionNumber(): ?string
132132
{
133-
return $this->VersionNumber;
133+
return $this->versionNumber;
134134
}
135135

136136
/**
@@ -143,17 +143,17 @@ public function request(): Request
143143

144144
// Prepare query
145145
$query = [];
146-
if (null !== $this->RevisionId) {
147-
$query['RevisionId'] = $this->RevisionId;
146+
if (null !== $this->revisionId) {
147+
$query['RevisionId'] = $this->revisionId;
148148
}
149149

150150
// Prepare URI
151151
$uri = [];
152-
if (null === $v = $this->LayerName) {
152+
if (null === $v = $this->layerName) {
153153
throw new InvalidArgument(sprintf('Missing parameter "LayerName" for "%s". The value cannot be null.', __CLASS__));
154154
}
155155
$uri['LayerName'] = $v;
156-
if (null === $v = $this->VersionNumber) {
156+
if (null === $v = $this->versionNumber) {
157157
throw new InvalidArgument(sprintf('Missing parameter "VersionNumber" for "%s". The value cannot be null.', __CLASS__));
158158
}
159159
$uri['VersionNumber'] = $v;
@@ -169,49 +169,49 @@ public function request(): Request
169169

170170
public function setAction(?string $value): self
171171
{
172-
$this->Action = $value;
172+
$this->action = $value;
173173

174174
return $this;
175175
}
176176

177177
public function setLayerName(?string $value): self
178178
{
179-
$this->LayerName = $value;
179+
$this->layerName = $value;
180180

181181
return $this;
182182
}
183183

184184
public function setOrganizationId(?string $value): self
185185
{
186-
$this->OrganizationId = $value;
186+
$this->organizationId = $value;
187187

188188
return $this;
189189
}
190190

191191
public function setPrincipal(?string $value): self
192192
{
193-
$this->Principal = $value;
193+
$this->principal = $value;
194194

195195
return $this;
196196
}
197197

198198
public function setRevisionId(?string $value): self
199199
{
200-
$this->RevisionId = $value;
200+
$this->revisionId = $value;
201201

202202
return $this;
203203
}
204204

205205
public function setStatementId(?string $value): self
206206
{
207-
$this->StatementId = $value;
207+
$this->statementId = $value;
208208

209209
return $this;
210210
}
211211

212212
public function setVersionNumber(?string $value): self
213213
{
214-
$this->VersionNumber = $value;
214+
$this->versionNumber = $value;
215215

216216
return $this;
217217
}
@@ -220,19 +220,19 @@ private function requestBody(): array
220220
{
221221
$payload = [];
222222

223-
if (null === $v = $this->StatementId) {
223+
if (null === $v = $this->statementId) {
224224
throw new InvalidArgument(sprintf('Missing parameter "StatementId" for "%s". The value cannot be null.', __CLASS__));
225225
}
226226
$payload['StatementId'] = $v;
227-
if (null === $v = $this->Action) {
227+
if (null === $v = $this->action) {
228228
throw new InvalidArgument(sprintf('Missing parameter "Action" for "%s". The value cannot be null.', __CLASS__));
229229
}
230230
$payload['Action'] = $v;
231-
if (null === $v = $this->Principal) {
231+
if (null === $v = $this->principal) {
232232
throw new InvalidArgument(sprintf('Missing parameter "Principal" for "%s". The value cannot be null.', __CLASS__));
233233
}
234234
$payload['Principal'] = $v;
235-
if (null !== $v = $this->OrganizationId) {
235+
if (null !== $v = $this->organizationId) {
236236
$payload['OrganizationId'] = $v;
237237
}
238238

0 commit comments

Comments
 (0)