Skip to content

Commit

Permalink
fix(specs): ingestion search endpoint (generated)
Browse files Browse the repository at this point in the history
algolia/api-clients-automation#3487

Co-authored-by: algolia-bot <accounts+algolia-api-client-bot@algolia.com>
Co-authored-by: Clément Vannicatte <vannicattec@gmail.com>
  • Loading branch information
algolia-bot and shortcuts committed Aug 7, 2024
1 parent cb11d65 commit eeced2d
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 23 deletions.
2 changes: 1 addition & 1 deletion lib/Api/IngestionClient.php
Original file line number Diff line number Diff line change
Expand Up @@ -2173,7 +2173,7 @@ public function searchTasksV1($taskSearch, $requestOptions = [])
* - editSettings
*
* @param array $transformationSearch transformationSearch (required)
* - $transformationSearch['transformationsIDs'] => (array) (required)
* - $transformationSearch['transformationIDs'] => (array)
*
* @see TransformationSearch
*
Expand Down
38 changes: 16 additions & 22 deletions lib/Model/Ingestion/TransformationSearch.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ class TransformationSearch extends AbstractModel implements ModelInterface, \Arr
* @var string[]
*/
protected static $modelTypes = [
'transformationsIDs' => 'string[]',
'transformationIDs' => 'string[]',
];

/**
Expand All @@ -28,7 +28,7 @@ class TransformationSearch extends AbstractModel implements ModelInterface, \Arr
* @var string[]
*/
protected static $modelFormats = [
'transformationsIDs' => null,
'transformationIDs' => null,
];

/**
Expand All @@ -38,7 +38,7 @@ class TransformationSearch extends AbstractModel implements ModelInterface, \Arr
* @var string[]
*/
protected static $attributeMap = [
'transformationsIDs' => 'transformationsIDs',
'transformationIDs' => 'transformationIDs',
];

/**
Expand All @@ -47,7 +47,7 @@ class TransformationSearch extends AbstractModel implements ModelInterface, \Arr
* @var string[]
*/
protected static $setters = [
'transformationsIDs' => 'setTransformationsIDs',
'transformationIDs' => 'setTransformationIDs',
];

/**
Expand All @@ -56,7 +56,7 @@ class TransformationSearch extends AbstractModel implements ModelInterface, \Arr
* @var string[]
*/
protected static $getters = [
'transformationsIDs' => 'getTransformationsIDs',
'transformationIDs' => 'getTransformationIDs',
];

/**
Expand All @@ -73,8 +73,8 @@ class TransformationSearch extends AbstractModel implements ModelInterface, \Arr
*/
public function __construct(?array $data = null)
{
if (isset($data['transformationsIDs'])) {
$this->container['transformationsIDs'] = $data['transformationsIDs'];
if (isset($data['transformationIDs'])) {
$this->container['transformationIDs'] = $data['transformationIDs'];
}
}

Expand Down Expand Up @@ -136,13 +136,7 @@ public static function getters()
*/
public function listInvalidProperties()
{
$invalidProperties = [];

if (!isset($this->container['transformationsIDs']) || null === $this->container['transformationsIDs']) {
$invalidProperties[] = "'transformationsIDs' can't be null";
}

return $invalidProperties;
return [];
}

/**
Expand All @@ -157,25 +151,25 @@ public function valid()
}

/**
* Gets transformationsIDs.
* Gets transformationIDs.
*
* @return string[]
* @return null|string[]
*/
public function getTransformationsIDs()
public function getTransformationIDs()
{
return $this->container['transformationsIDs'] ?? null;
return $this->container['transformationIDs'] ?? null;
}

/**
* Sets transformationsIDs.
* Sets transformationIDs.
*
* @param string[] $transformationsIDs transformationsIDs
* @param null|string[] $transformationIDs transformationIDs
*
* @return self
*/
public function setTransformationsIDs($transformationsIDs)
public function setTransformationIDs($transformationIDs)
{
$this->container['transformationsIDs'] = $transformationsIDs;
$this->container['transformationIDs'] = $transformationIDs;

return $this;
}
Expand Down

0 comments on commit eeced2d

Please sign in to comment.