Skip to content

Commit 9aa2ea4

Browse files
algolia-botmillotp
andcommitted
fix(specs): make the updateAt non-null in ingestion (generated)
algolia/api-clients-automation#4697 Co-authored-by: algolia-bot <[email protected]> Co-authored-by: Pierre Millot <[email protected]>
1 parent 45865f0 commit 9aa2ea4

File tree

7 files changed

+33
-15
lines changed

7 files changed

+33
-15
lines changed

lib/Model/Ingestion/Authentication.php

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -212,6 +212,9 @@ public function listInvalidProperties()
212212
if (!isset($this->container['createdAt']) || null === $this->container['createdAt']) {
213213
$invalidProperties[] = "'createdAt' can't be null";
214214
}
215+
if (!isset($this->container['updatedAt']) || null === $this->container['updatedAt']) {
216+
$invalidProperties[] = "'updatedAt' can't be null";
217+
}
215218

216219
return $invalidProperties;
217220
}
@@ -398,7 +401,7 @@ public function setCreatedAt($createdAt)
398401
/**
399402
* Gets updatedAt.
400403
*
401-
* @return null|string
404+
* @return string
402405
*/
403406
public function getUpdatedAt()
404407
{
@@ -408,7 +411,7 @@ public function getUpdatedAt()
408411
/**
409412
* Sets updatedAt.
410413
*
411-
* @param null|string $updatedAt date of last update in RFC 3339 format
414+
* @param string $updatedAt date of last update in RFC 3339 format
412415
*
413416
* @return self
414417
*/

lib/Model/Ingestion/Destination.php

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -220,6 +220,9 @@ public function listInvalidProperties()
220220
if (!isset($this->container['createdAt']) || null === $this->container['createdAt']) {
221221
$invalidProperties[] = "'createdAt' can't be null";
222222
}
223+
if (!isset($this->container['updatedAt']) || null === $this->container['updatedAt']) {
224+
$invalidProperties[] = "'updatedAt' can't be null";
225+
}
223226

224227
return $invalidProperties;
225228
}
@@ -382,7 +385,7 @@ public function setCreatedAt($createdAt)
382385
/**
383386
* Gets updatedAt.
384387
*
385-
* @return null|string
388+
* @return string
386389
*/
387390
public function getUpdatedAt()
388391
{
@@ -392,7 +395,7 @@ public function getUpdatedAt()
392395
/**
393396
* Sets updatedAt.
394397
*
395-
* @param null|string $updatedAt date of last update in RFC 3339 format
398+
* @param string $updatedAt date of last update in RFC 3339 format
396399
*
397400
* @return self
398401
*/

lib/Model/Ingestion/Source.php

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -207,6 +207,9 @@ public function listInvalidProperties()
207207
if (!isset($this->container['createdAt']) || null === $this->container['createdAt']) {
208208
$invalidProperties[] = "'createdAt' can't be null";
209209
}
210+
if (!isset($this->container['updatedAt']) || null === $this->container['updatedAt']) {
211+
$invalidProperties[] = "'updatedAt' can't be null";
212+
}
210213

211214
return $invalidProperties;
212215
}
@@ -393,7 +396,7 @@ public function setCreatedAt($createdAt)
393396
/**
394397
* Gets updatedAt.
395398
*
396-
* @return null|string
399+
* @return string
397400
*/
398401
public function getUpdatedAt()
399402
{
@@ -403,7 +406,7 @@ public function getUpdatedAt()
403406
/**
404407
* Sets updatedAt.
405408
*
406-
* @param null|string $updatedAt date of last update in RFC 3339 format
409+
* @param string $updatedAt date of last update in RFC 3339 format
407410
*
408411
* @return self
409412
*/

lib/Model/Ingestion/Task.php

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -282,6 +282,9 @@ public function listInvalidProperties()
282282
if (!isset($this->container['createdAt']) || null === $this->container['createdAt']) {
283283
$invalidProperties[] = "'createdAt' can't be null";
284284
}
285+
if (!isset($this->container['updatedAt']) || null === $this->container['updatedAt']) {
286+
$invalidProperties[] = "'updatedAt' can't be null";
287+
}
285288

286289
return $invalidProperties;
287290
}
@@ -684,7 +687,7 @@ public function setCreatedAt($createdAt)
684687
/**
685688
* Gets updatedAt.
686689
*
687-
* @return null|string
690+
* @return string
688691
*/
689692
public function getUpdatedAt()
690693
{
@@ -694,7 +697,7 @@ public function getUpdatedAt()
694697
/**
695698
* Sets updatedAt.
696699
*
697-
* @param null|string $updatedAt date of last update in RFC 3339 format
700+
* @param string $updatedAt date of last update in RFC 3339 format
698701
*
699702
* @return self
700703
*/

lib/Model/Ingestion/TaskV1.php

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -255,6 +255,9 @@ public function listInvalidProperties()
255255
if (!isset($this->container['createdAt']) || null === $this->container['createdAt']) {
256256
$invalidProperties[] = "'createdAt' can't be null";
257257
}
258+
if (!isset($this->container['updatedAt']) || null === $this->container['updatedAt']) {
259+
$invalidProperties[] = "'updatedAt' can't be null";
260+
}
258261

259262
return $invalidProperties;
260263
}
@@ -561,7 +564,7 @@ public function setCreatedAt($createdAt)
561564
/**
562565
* Gets updatedAt.
563566
*
564-
* @return null|string
567+
* @return string
565568
*/
566569
public function getUpdatedAt()
567570
{
@@ -571,7 +574,7 @@ public function getUpdatedAt()
571574
/**
572575
* Sets updatedAt.
573576
*
574-
* @param null|string $updatedAt date of last update in RFC 3339 format
577+
* @param string $updatedAt date of last update in RFC 3339 format
575578
*
576579
* @return self
577580
*/

lib/Model/Ingestion/Transformation.php

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -207,6 +207,9 @@ public function listInvalidProperties()
207207
if (!isset($this->container['createdAt']) || null === $this->container['createdAt']) {
208208
$invalidProperties[] = "'createdAt' can't be null";
209209
}
210+
if (!isset($this->container['updatedAt']) || null === $this->container['updatedAt']) {
211+
$invalidProperties[] = "'updatedAt' can't be null";
212+
}
210213

211214
return $invalidProperties;
212215
}
@@ -393,7 +396,7 @@ public function setCreatedAt($createdAt)
393396
/**
394397
* Gets updatedAt.
395398
*
396-
* @return null|string
399+
* @return string
397400
*/
398401
public function getUpdatedAt()
399402
{
@@ -403,7 +406,7 @@ public function getUpdatedAt()
403406
/**
404407
* Sets updatedAt.
405408
*
406-
* @param null|string $updatedAt date of last update in RFC 3339 format
409+
* @param string $updatedAt date of last update in RFC 3339 format
407410
*
408411
* @return self
409412
*/

lib/Model/Ingestion/TransformationTryResponse.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ class TransformationTryResponse extends AbstractModel implements ModelInterface,
2020
* @var string[]
2121
*/
2222
protected static $modelTypes = [
23-
'payloads' => 'object[]',
23+
'payloads' => 'string[]',
2424
'error' => '\Algolia\AlgoliaSearch\Model\Ingestion\TransformationError',
2525
];
2626

@@ -168,7 +168,7 @@ public function valid()
168168
/**
169169
* Gets payloads.
170170
*
171-
* @return object[]
171+
* @return string[]
172172
*/
173173
public function getPayloads()
174174
{
@@ -178,7 +178,7 @@ public function getPayloads()
178178
/**
179179
* Sets payloads.
180180
*
181-
* @param object[] $payloads the array of records returned by the transformation service
181+
* @param string[] $payloads the array of stringified records returned by the transformation service
182182
*
183183
* @return self
184184
*/

0 commit comments

Comments
 (0)