You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -141,10 +150,10 @@ public function __construct(array $input = [])
141
150
* @param array{
142
151
* KeyId?: string,
143
152
* Message?: string,
144
-
* Signature?: string,
145
153
* MessageType?: null|MessageType::*,
146
-
* GrantTokens?: null|string[],
154
+
* Signature?: string,
147
155
* SigningAlgorithm?: SigningAlgorithmSpec::*,
156
+
* GrantTokens?: null|string[],
148
157
* DryRun?: null|bool,
149
158
* '@region'?: string|null,
150
159
* }|VerifyRequest $input
@@ -177,11 +186,6 @@ public function getMessage(): ?string
177
186
return$this->message;
178
187
}
179
188
180
-
publicfunctiongetSignature(): ?string
181
-
{
182
-
return$this->signature;
183
-
}
184
-
185
189
/**
186
190
* @return MessageType::*|null
187
191
*/
@@ -190,6 +194,11 @@ public function getMessageType(): ?string
190
194
return$this->messageType;
191
195
}
192
196
197
+
publicfunctiongetSignature(): ?string
198
+
{
199
+
return$this->signature;
200
+
}
201
+
193
202
/**
194
203
* @return SigningAlgorithmSpec::*|null
195
204
*/
@@ -265,6 +274,13 @@ public function setMessageType(?string $value): self
265
274
return$this;
266
275
}
267
276
277
+
publicfunctionsetSignature(?string$value): self
278
+
{
279
+
$this->signature = $value;
280
+
281
+
return$this;
282
+
}
283
+
268
284
/**
269
285
* @param SigningAlgorithmSpec::*|null $value
270
286
*/
@@ -279,36 +295,30 @@ private function requestBody(): array
279
295
{
280
296
$payload = [];
281
297
if (null === $v = $this->keyId) {
282
-
thrownewInvalidArgument(sprintf(
283
-
'Missing parameter "KeyId" for "%s". The value cannot be null.',
284
-
self::class
285
-
));
298
+
thrownewInvalidArgument(\sprintf('Missing parameter "KeyId" for "%s". The value cannot be null.', __CLASS__));
286
299
}
287
300
$payload['KeyId'] = $v;
288
301
if (null === $v = $this->message) {
289
-
thrownewInvalidArgument(sprintf(
290
-
'Missing parameter "Message" for "%s". The value cannot be null.',
291
-
self::class
292
-
));
302
+
thrownewInvalidArgument(\sprintf('Missing parameter "Message" for "%s". The value cannot be null.', __CLASS__));
293
303
}
294
304
$payload['Message'] = base64_encode($v);
295
-
if (null === $v = $this->signature) {
296
-
thrownewInvalidArgument(sprintf(
297
-
'Missing parameter "Signature" for "%s". The value cannot be null.',
298
-
self::class
299
-
));
300
-
}
301
-
$payload['Signature'] = base64_encode($v);
302
305
if (null !== $v = $this->messageType) {
303
-
if (! MessageType::exists($v)) {
304
-
thrownewInvalidArgument(sprintf(
305
-
'Invalid parameter "MessageType" for "%s". The value "%s" is not a valid "MessageType".',
306
-
self::class,
307
-
$v
308
-
));
306
+
if (!MessageType::exists($v)) {
307
+
thrownewInvalidArgument(\sprintf('Invalid parameter "MessageType" for "%s". The value "%s" is not a valid "MessageType".', __CLASS__, $v));
309
308
}
310
309
$payload['MessageType'] = $v;
311
310
}
311
+
if (null === $v = $this->signature) {
312
+
thrownewInvalidArgument(\sprintf('Missing parameter "Signature" for "%s". The value cannot be null.', __CLASS__));
313
+
}
314
+
$payload['Signature'] = base64_encode($v);
315
+
if (null === $v = $this->signingAlgorithm) {
316
+
thrownewInvalidArgument(\sprintf('Missing parameter "SigningAlgorithm" for "%s". The value cannot be null.', __CLASS__));
317
+
}
318
+
if (!SigningAlgorithmSpec::exists($v)) {
319
+
thrownewInvalidArgument(\sprintf('Invalid parameter "SigningAlgorithm" for "%s". The value "%s" is not a valid "SigningAlgorithmSpec".', __CLASS__, $v));
320
+
}
321
+
$payload['SigningAlgorithm'] = $v;
312
322
if (null !== $v = $this->grantTokens) {
313
323
$index = -1;
314
324
$payload['GrantTokens'] = [];
@@ -317,20 +327,6 @@ private function requestBody(): array
317
327
$payload['GrantTokens'][$index] = $listValue;
318
328
}
319
329
}
320
-
if (null === $v = $this->signingAlgorithm) {
321
-
thrownewInvalidArgument(sprintf(
322
-
'Missing parameter "SigningAlgorithm" for "%s". The value cannot be null.',
323
-
self::class
324
-
));
325
-
}
326
-
if (! SigningAlgorithmSpec::exists($v)) {
327
-
thrownewInvalidArgument(sprintf(
328
-
'Invalid parameter "SigningAlgorithm" for "%s". The value "%s" is not a valid "SigningAlgorithmSpec".',
0 commit comments