Skip to content

Commit

Permalink
fix(specs): multiple clients fixes (generated)
Browse files Browse the repository at this point in the history
algolia/api-clients-automation#3971

Co-authored-by: algolia-bot <accounts+algolia-api-client-bot@algolia.com>
  • Loading branch information
algolia-bot committed Oct 16, 2024
1 parent 555a596 commit 54060ee
Show file tree
Hide file tree
Showing 8 changed files with 141 additions and 25 deletions.
12 changes: 3 additions & 9 deletions lib/Model/Abtesting/ABTestConfiguration.php
Original file line number Diff line number Diff line change
Expand Up @@ -155,13 +155,7 @@ public static function getters()
*/
public function listInvalidProperties()
{
$invalidProperties = [];

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

return $invalidProperties;
return [];
}

/**
Expand All @@ -178,7 +172,7 @@ public function valid()
/**
* Gets outliers.
*
* @return Outliers
* @return null|Outliers
*/
public function getOutliers()
{
Expand All @@ -188,7 +182,7 @@ public function getOutliers()
/**
* Sets outliers.
*
* @param Outliers $outliers outliers
* @param null|Outliers $outliers outliers
*
* @return self
*/
Expand Down
7 changes: 2 additions & 5 deletions lib/Model/Abtesting/Variant.php
Original file line number Diff line number Diff line change
Expand Up @@ -300,9 +300,6 @@ public function listInvalidProperties()
if (!isset($this->container['conversionCount']) || null === $this->container['conversionCount']) {
$invalidProperties[] = "'conversionCount' can't be null";
}
if (!isset($this->container['description']) || null === $this->container['description']) {
$invalidProperties[] = "'description' can't be null";
}
if (!isset($this->container['index']) || null === $this->container['index']) {
$invalidProperties[] = "'index' can't be null";
}
Expand Down Expand Up @@ -534,7 +531,7 @@ public function setCurrencies($currencies)
/**
* Gets description.
*
* @return string
* @return null|string
*/
public function getDescription()
{
Expand All @@ -544,7 +541,7 @@ public function getDescription()
/**
* Sets description.
*
* @param string $description description for this variant
* @param null|string $description description for this variant
*
* @return self
*/
Expand Down
32 changes: 32 additions & 0 deletions lib/Model/Recommend/RecommendationsResults.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ class RecommendationsResults extends AbstractModel implements ModelInterface, \A
'aroundLatLng' => 'string',
'automaticRadius' => 'string',
'exhaustive' => '\Algolia\AlgoliaSearch\Model\Recommend\Exhaustive',
'appliedRules' => 'object[]',
'exhaustiveFacetsCount' => 'bool',
'exhaustiveNbHits' => 'bool',
'exhaustiveTypo' => 'bool',
Expand Down Expand Up @@ -63,6 +64,7 @@ class RecommendationsResults extends AbstractModel implements ModelInterface, \A
'aroundLatLng' => null,
'automaticRadius' => null,
'exhaustive' => null,
'appliedRules' => null,
'exhaustiveFacetsCount' => null,
'exhaustiveNbHits' => null,
'exhaustiveTypo' => null,
Expand Down Expand Up @@ -102,6 +104,7 @@ class RecommendationsResults extends AbstractModel implements ModelInterface, \A
'aroundLatLng' => 'aroundLatLng',
'automaticRadius' => 'automaticRadius',
'exhaustive' => 'exhaustive',
'appliedRules' => 'appliedRules',
'exhaustiveFacetsCount' => 'exhaustiveFacetsCount',
'exhaustiveNbHits' => 'exhaustiveNbHits',
'exhaustiveTypo' => 'exhaustiveTypo',
Expand Down Expand Up @@ -140,6 +143,7 @@ class RecommendationsResults extends AbstractModel implements ModelInterface, \A
'aroundLatLng' => 'setAroundLatLng',
'automaticRadius' => 'setAutomaticRadius',
'exhaustive' => 'setExhaustive',
'appliedRules' => 'setAppliedRules',
'exhaustiveFacetsCount' => 'setExhaustiveFacetsCount',
'exhaustiveNbHits' => 'setExhaustiveNbHits',
'exhaustiveTypo' => 'setExhaustiveTypo',
Expand Down Expand Up @@ -178,6 +182,7 @@ class RecommendationsResults extends AbstractModel implements ModelInterface, \A
'aroundLatLng' => 'getAroundLatLng',
'automaticRadius' => 'getAutomaticRadius',
'exhaustive' => 'getExhaustive',
'appliedRules' => 'getAppliedRules',
'exhaustiveFacetsCount' => 'getExhaustiveFacetsCount',
'exhaustiveNbHits' => 'getExhaustiveNbHits',
'exhaustiveTypo' => 'getExhaustiveTypo',
Expand Down Expand Up @@ -234,6 +239,9 @@ public function __construct(?array $data = null)
if (isset($data['exhaustive'])) {
$this->container['exhaustive'] = $data['exhaustive'];
}
if (isset($data['appliedRules'])) {
$this->container['appliedRules'] = $data['appliedRules'];
}
if (isset($data['exhaustiveFacetsCount'])) {
$this->container['exhaustiveFacetsCount'] = $data['exhaustiveFacetsCount'];
}
Expand Down Expand Up @@ -512,6 +520,30 @@ public function setExhaustive($exhaustive)
return $this;
}

/**
* Gets appliedRules.
*
* @return null|object[]
*/
public function getAppliedRules()
{
return $this->container['appliedRules'] ?? null;
}

/**
* Sets appliedRules.
*
* @param null|object[] $appliedRules rules applied to the query
*
* @return self
*/
public function setAppliedRules($appliedRules)
{
$this->container['appliedRules'] = $appliedRules;

return $this;
}

/**
* Gets exhaustiveFacetsCount.
*
Expand Down
32 changes: 32 additions & 0 deletions lib/Model/Search/BrowseResponse.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ class BrowseResponse extends AbstractModel implements ModelInterface, \ArrayAcce
'aroundLatLng' => 'string',
'automaticRadius' => 'string',
'exhaustive' => '\Algolia\AlgoliaSearch\Model\Search\Exhaustive',
'appliedRules' => 'object[]',
'exhaustiveFacetsCount' => 'bool',
'exhaustiveNbHits' => 'bool',
'exhaustiveTypo' => 'bool',
Expand Down Expand Up @@ -66,6 +67,7 @@ class BrowseResponse extends AbstractModel implements ModelInterface, \ArrayAcce
'aroundLatLng' => null,
'automaticRadius' => null,
'exhaustive' => null,
'appliedRules' => null,
'exhaustiveFacetsCount' => null,
'exhaustiveNbHits' => null,
'exhaustiveTypo' => null,
Expand Down Expand Up @@ -108,6 +110,7 @@ class BrowseResponse extends AbstractModel implements ModelInterface, \ArrayAcce
'aroundLatLng' => 'aroundLatLng',
'automaticRadius' => 'automaticRadius',
'exhaustive' => 'exhaustive',
'appliedRules' => 'appliedRules',
'exhaustiveFacetsCount' => 'exhaustiveFacetsCount',
'exhaustiveNbHits' => 'exhaustiveNbHits',
'exhaustiveTypo' => 'exhaustiveTypo',
Expand Down Expand Up @@ -149,6 +152,7 @@ class BrowseResponse extends AbstractModel implements ModelInterface, \ArrayAcce
'aroundLatLng' => 'setAroundLatLng',
'automaticRadius' => 'setAutomaticRadius',
'exhaustive' => 'setExhaustive',
'appliedRules' => 'setAppliedRules',
'exhaustiveFacetsCount' => 'setExhaustiveFacetsCount',
'exhaustiveNbHits' => 'setExhaustiveNbHits',
'exhaustiveTypo' => 'setExhaustiveTypo',
Expand Down Expand Up @@ -190,6 +194,7 @@ class BrowseResponse extends AbstractModel implements ModelInterface, \ArrayAcce
'aroundLatLng' => 'getAroundLatLng',
'automaticRadius' => 'getAutomaticRadius',
'exhaustive' => 'getExhaustive',
'appliedRules' => 'getAppliedRules',
'exhaustiveFacetsCount' => 'getExhaustiveFacetsCount',
'exhaustiveNbHits' => 'getExhaustiveNbHits',
'exhaustiveTypo' => 'getExhaustiveTypo',
Expand Down Expand Up @@ -249,6 +254,9 @@ public function __construct(?array $data = null)
if (isset($data['exhaustive'])) {
$this->container['exhaustive'] = $data['exhaustive'];
}
if (isset($data['appliedRules'])) {
$this->container['appliedRules'] = $data['appliedRules'];
}
if (isset($data['exhaustiveFacetsCount'])) {
$this->container['exhaustiveFacetsCount'] = $data['exhaustiveFacetsCount'];
}
Expand Down Expand Up @@ -542,6 +550,30 @@ public function setExhaustive($exhaustive)
return $this;
}

/**
* Gets appliedRules.
*
* @return null|object[]
*/
public function getAppliedRules()
{
return $this->container['appliedRules'] ?? null;
}

/**
* Sets appliedRules.
*
* @param null|object[] $appliedRules rules applied to the query
*
* @return self
*/
public function setAppliedRules($appliedRules)
{
$this->container['appliedRules'] = $appliedRules;

return $this;
}

/**
* Gets exhaustiveFacetsCount.
*
Expand Down
7 changes: 5 additions & 2 deletions lib/Model/Search/GetApiKeyResponse.php
Original file line number Diff line number Diff line change
Expand Up @@ -211,6 +211,9 @@ public function listInvalidProperties()
{
$invalidProperties = [];

if (!isset($this->container['value']) || null === $this->container['value']) {
$invalidProperties[] = "'value' can't be null";
}
if (!isset($this->container['createdAt']) || null === $this->container['createdAt']) {
$invalidProperties[] = "'createdAt' can't be null";
}
Expand All @@ -235,7 +238,7 @@ public function valid()
/**
* Gets value.
*
* @return null|string
* @return string
*/
public function getValue()
{
Expand All @@ -245,7 +248,7 @@ public function getValue()
/**
* Sets value.
*
* @param null|string $value API key
* @param string $value API key
*
* @return self
*/
Expand Down
12 changes: 3 additions & 9 deletions lib/Model/Search/GetObjectsResponse.php
Original file line number Diff line number Diff line change
Expand Up @@ -137,13 +137,7 @@ public static function getters()
*/
public function listInvalidProperties()
{
$invalidProperties = [];

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

return $invalidProperties;
return [];
}

/**
Expand All @@ -160,7 +154,7 @@ public function valid()
/**
* Gets results.
*
* @return object[]
* @return null|object[]
*/
public function getResults()
{
Expand All @@ -170,7 +164,7 @@ public function getResults()
/**
* Sets results.
*
* @param object[] $results retrieved records
* @param null|object[] $results retrieved records
*
* @return self
*/
Expand Down
32 changes: 32 additions & 0 deletions lib/Model/Search/SearchResponse.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ class SearchResponse extends AbstractModel implements ModelInterface, \ArrayAcce
'aroundLatLng' => 'string',
'automaticRadius' => 'string',
'exhaustive' => '\Algolia\AlgoliaSearch\Model\Search\Exhaustive',
'appliedRules' => 'object[]',
'exhaustiveFacetsCount' => 'bool',
'exhaustiveNbHits' => 'bool',
'exhaustiveTypo' => 'bool',
Expand Down Expand Up @@ -65,6 +66,7 @@ class SearchResponse extends AbstractModel implements ModelInterface, \ArrayAcce
'aroundLatLng' => null,
'automaticRadius' => null,
'exhaustive' => null,
'appliedRules' => null,
'exhaustiveFacetsCount' => null,
'exhaustiveNbHits' => null,
'exhaustiveTypo' => null,
Expand Down Expand Up @@ -106,6 +108,7 @@ class SearchResponse extends AbstractModel implements ModelInterface, \ArrayAcce
'aroundLatLng' => 'aroundLatLng',
'automaticRadius' => 'automaticRadius',
'exhaustive' => 'exhaustive',
'appliedRules' => 'appliedRules',
'exhaustiveFacetsCount' => 'exhaustiveFacetsCount',
'exhaustiveNbHits' => 'exhaustiveNbHits',
'exhaustiveTypo' => 'exhaustiveTypo',
Expand Down Expand Up @@ -146,6 +149,7 @@ class SearchResponse extends AbstractModel implements ModelInterface, \ArrayAcce
'aroundLatLng' => 'setAroundLatLng',
'automaticRadius' => 'setAutomaticRadius',
'exhaustive' => 'setExhaustive',
'appliedRules' => 'setAppliedRules',
'exhaustiveFacetsCount' => 'setExhaustiveFacetsCount',
'exhaustiveNbHits' => 'setExhaustiveNbHits',
'exhaustiveTypo' => 'setExhaustiveTypo',
Expand Down Expand Up @@ -186,6 +190,7 @@ class SearchResponse extends AbstractModel implements ModelInterface, \ArrayAcce
'aroundLatLng' => 'getAroundLatLng',
'automaticRadius' => 'getAutomaticRadius',
'exhaustive' => 'getExhaustive',
'appliedRules' => 'getAppliedRules',
'exhaustiveFacetsCount' => 'getExhaustiveFacetsCount',
'exhaustiveNbHits' => 'getExhaustiveNbHits',
'exhaustiveTypo' => 'getExhaustiveTypo',
Expand Down Expand Up @@ -244,6 +249,9 @@ public function __construct(?array $data = null)
if (isset($data['exhaustive'])) {
$this->container['exhaustive'] = $data['exhaustive'];
}
if (isset($data['appliedRules'])) {
$this->container['appliedRules'] = $data['appliedRules'];
}
if (isset($data['exhaustiveFacetsCount'])) {
$this->container['exhaustiveFacetsCount'] = $data['exhaustiveFacetsCount'];
}
Expand Down Expand Up @@ -534,6 +542,30 @@ public function setExhaustive($exhaustive)
return $this;
}

/**
* Gets appliedRules.
*
* @return null|object[]
*/
public function getAppliedRules()
{
return $this->container['appliedRules'] ?? null;
}

/**
* Sets appliedRules.
*
* @param null|object[] $appliedRules rules applied to the query
*
* @return self
*/
public function setAppliedRules($appliedRules)
{
$this->container['appliedRules'] = $appliedRules;

return $this;
}

/**
* Gets exhaustiveFacetsCount.
*
Expand Down
Loading

0 comments on commit 54060ee

Please sign in to comment.