Skip to content

Commit b220ff3

Browse files
fix(specs): make optional for tasks [skip-bc] (generated)
algolia/api-clients-automation#4095 Co-authored-by: algolia-bot <[email protected]> Co-authored-by: Clément Vannicatte <[email protected]>
1 parent d7e0c41 commit b220ff3

File tree

2 files changed

+4
-10
lines changed

2 files changed

+4
-10
lines changed

lib/Model/Ingestion/Task.php

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -247,9 +247,6 @@ public function listInvalidProperties()
247247
if (!isset($this->container['enabled']) || null === $this->container['enabled']) {
248248
$invalidProperties[] = "'enabled' can't be null";
249249
}
250-
if (!isset($this->container['action']) || null === $this->container['action']) {
251-
$invalidProperties[] = "'action' can't be null";
252-
}
253250
if (!isset($this->container['createdAt']) || null === $this->container['createdAt']) {
254251
$invalidProperties[] = "'createdAt' can't be null";
255252
}
@@ -487,7 +484,7 @@ public function setFailureThreshold($failureThreshold)
487484
/**
488485
* Gets action.
489486
*
490-
* @return ActionType
487+
* @return null|ActionType
491488
*/
492489
public function getAction()
493490
{
@@ -497,7 +494,7 @@ public function getAction()
497494
/**
498495
* Sets action.
499496
*
500-
* @param ActionType $action action
497+
* @param null|ActionType $action action
501498
*
502499
* @return self
503500
*/

lib/Model/Ingestion/TaskV1.php

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -236,9 +236,6 @@ public function listInvalidProperties()
236236
if (!isset($this->container['enabled']) || null === $this->container['enabled']) {
237237
$invalidProperties[] = "'enabled' can't be null";
238238
}
239-
if (!isset($this->container['action']) || null === $this->container['action']) {
240-
$invalidProperties[] = "'action' can't be null";
241-
}
242239
if (!isset($this->container['createdAt']) || null === $this->container['createdAt']) {
243240
$invalidProperties[] = "'createdAt' can't be null";
244241
}
@@ -428,7 +425,7 @@ public function setFailureThreshold($failureThreshold)
428425
/**
429426
* Gets action.
430427
*
431-
* @return ActionType
428+
* @return null|ActionType
432429
*/
433430
public function getAction()
434431
{
@@ -438,7 +435,7 @@ public function getAction()
438435
/**
439436
* Sets action.
440437
*
441-
* @param ActionType $action action
438+
* @param null|ActionType $action action
442439
*
443440
* @return self
444441
*/

0 commit comments

Comments
 (0)