Skip to content

Commit

Permalink
fix(specs): proper title with linter (generated)
Browse files Browse the repository at this point in the history
algolia/api-clients-automation#3444

Co-authored-by: algolia-bot <[email protected]>
Co-authored-by: Pierre Millot <[email protected]>
  • Loading branch information
algolia-bot and millotp committed Jul 30, 2024
1 parent 64c3ab5 commit b60d250
Show file tree
Hide file tree
Showing 41 changed files with 1,070 additions and 96 deletions.
4 changes: 2 additions & 2 deletions lib/Api/QuerySuggestionsClient.php
Original file line number Diff line number Diff line change
Expand Up @@ -391,7 +391,7 @@ public function getConfig($indexName, $requestOptions = [])
* @param string $indexName Query Suggestions index name. (required)
* @param array $requestOptions the requestOptions to send along with the query, they will be merged with the transporter requestOptions
*
* @return \Algolia\AlgoliaSearch\Model\QuerySuggestions\GetConfigStatus200Response|array<string, mixed>
* @return \Algolia\AlgoliaSearch\Model\QuerySuggestions\ConfigStatus|array<string, mixed>
*/
public function getConfigStatus($indexName, $requestOptions = [])
{
Expand Down Expand Up @@ -428,7 +428,7 @@ public function getConfigStatus($indexName, $requestOptions = [])
* @param string $indexName Query Suggestions index name. (required)
* @param array $requestOptions the requestOptions to send along with the query, they will be merged with the transporter requestOptions
*
* @return \Algolia\AlgoliaSearch\Model\QuerySuggestions\GetLogFile200Response|array<string, mixed>
* @return \Algolia\AlgoliaSearch\Model\QuerySuggestions\LogFile|array<string, mixed>
*/
public function getLogFile($indexName, $requestOptions = [])
{
Expand Down
4 changes: 2 additions & 2 deletions lib/Api/UsageClient.php
Original file line number Diff line number Diff line change
Expand Up @@ -265,7 +265,7 @@ public function customPut($path, $parameters = null, $body = null, $requestOptio
* @param array $granularity Granularity of the aggregated metrics. - &#x60;hourly&#x60;: the maximum time range for hourly metrics is 7 days. - &#x60;daily&#x60;: the maximum time range for daily metrics is 365 days. (optional)
* @param array $requestOptions the requestOptions to send along with the query, they will be merged with the transporter requestOptions
*
* @return \Algolia\AlgoliaSearch\Model\Usage\GetUsage200Response|array<string, mixed>
* @return \Algolia\AlgoliaSearch\Model\Usage\IndexUsage|array<string, mixed>
*/
public function getIndexUsage($statistic, $indexName, $startDate, $endDate, $granularity = null, $requestOptions = [])
{
Expand Down Expand Up @@ -341,7 +341,7 @@ public function getIndexUsage($statistic, $indexName, $startDate, $endDate, $gra
* @param array $granularity Granularity of the aggregated metrics. - &#x60;hourly&#x60;: the maximum time range for hourly metrics is 7 days. - &#x60;daily&#x60;: the maximum time range for daily metrics is 365 days. (optional)
* @param array $requestOptions the requestOptions to send along with the query, they will be merged with the transporter requestOptions
*
* @return \Algolia\AlgoliaSearch\Model\Usage\GetUsage200Response|array<string, mixed>
* @return \Algolia\AlgoliaSearch\Model\Usage\IndexUsage|array<string, mixed>
*/
public function getUsage($statistic, $startDate, $endDate, $granularity = null, $requestOptions = [])
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,13 @@
use Algolia\AlgoliaSearch\Model\AbstractModel;

/**
* FilterEffectsEmptySearch Class Doc Comment.
* EmptySearchFilter Class Doc Comment.
*
* @category Class
*
* @description Empty searches removed from the A/B test as a result of configuration settings.
*/
class FilterEffectsEmptySearch extends AbstractModel implements ModelInterface, \ArrayAccess, \JsonSerializable
class EmptySearchFilter extends AbstractModel implements ModelInterface, \ArrayAccess, \JsonSerializable
{
/**
* Array of property to type mappings. Used for (de)serialization.
Expand Down
12 changes: 6 additions & 6 deletions lib/Model/Abtesting/FilterEffects.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@ class FilterEffects extends AbstractModel implements ModelInterface, \ArrayAcces
* @var string[]
*/
protected static $modelTypes = [
'outliers' => '\Algolia\AlgoliaSearch\Model\Abtesting\FilterEffectsOutliers',
'emptySearch' => '\Algolia\AlgoliaSearch\Model\Abtesting\FilterEffectsEmptySearch',
'outliers' => '\Algolia\AlgoliaSearch\Model\Abtesting\OutliersFilter',
'emptySearch' => '\Algolia\AlgoliaSearch\Model\Abtesting\EmptySearchFilter',
];

/**
Expand Down Expand Up @@ -163,7 +163,7 @@ public function valid()
/**
* Gets outliers.
*
* @return null|FilterEffectsOutliers
* @return null|OutliersFilter
*/
public function getOutliers()
{
Expand All @@ -173,7 +173,7 @@ public function getOutliers()
/**
* Sets outliers.
*
* @param null|FilterEffectsOutliers $outliers outliers
* @param null|OutliersFilter $outliers outliers
*
* @return self
*/
Expand All @@ -187,7 +187,7 @@ public function setOutliers($outliers)
/**
* Gets emptySearch.
*
* @return null|FilterEffectsEmptySearch
* @return null|EmptySearchFilter
*/
public function getEmptySearch()
{
Expand All @@ -197,7 +197,7 @@ public function getEmptySearch()
/**
* Sets emptySearch.
*
* @param null|FilterEffectsEmptySearch $emptySearch emptySearch
* @param null|EmptySearchFilter $emptySearch emptySearch
*
* @return self
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,13 @@
use Algolia\AlgoliaSearch\Model\AbstractModel;

/**
* FilterEffectsOutliers Class Doc Comment.
* OutliersFilter Class Doc Comment.
*
* @category Class
*
* @description Outliers removed from the A/B test as a result of configuration settings.
*/
class FilterEffectsOutliers extends AbstractModel implements ModelInterface, \ArrayAccess, \JsonSerializable
class OutliersFilter extends AbstractModel implements ModelInterface, \ArrayAccess, \JsonSerializable
{
/**
* Array of property to type mappings. Used for (de)serialization.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,13 @@
use Algolia\AlgoliaSearch\Model\AbstractModel;

/**
* ClickPositionsInner Class Doc Comment.
* ClickPosition Class Doc Comment.
*
* @category Class
*
* @description Click position.
*/
class ClickPositionsInner extends AbstractModel implements ModelInterface, \ArrayAccess, \JsonSerializable
class ClickPosition extends AbstractModel implements ModelInterface, \ArrayAccess, \JsonSerializable
{
/**
* Array of property to type mappings. Used for (de)serialization.
Expand Down Expand Up @@ -194,10 +194,10 @@ public function getPosition()
public function setPosition($position)
{
if (!is_null($position) && (count($position) > 2)) {
throw new \InvalidArgumentException('invalid value for $position when calling ClickPositionsInner., number of items must be less than or equal to 2.');
throw new \InvalidArgumentException('invalid value for $position when calling ClickPosition., number of items must be less than or equal to 2.');
}
if (!is_null($position) && (count($position) < 2)) {
throw new \InvalidArgumentException('invalid length for $position when calling ClickPositionsInner., number of items must be greater than or equal to 2.');
throw new \InvalidArgumentException('invalid length for $position when calling ClickPosition., number of items must be greater than or equal to 2.');
}
$this->container['position'] = $position;

Expand All @@ -224,7 +224,7 @@ public function getClickCount()
public function setClickCount($clickCount)
{
if (!is_null($clickCount) && ($clickCount < 0)) {
throw new \InvalidArgumentException('invalid value for $clickCount when calling ClickPositionsInner., must be bigger than or equal to 0.');
throw new \InvalidArgumentException('invalid value for $clickCount when calling ClickPosition., must be bigger than or equal to 0.');
}

$this->container['clickCount'] = $clickCount;
Expand Down
6 changes: 3 additions & 3 deletions lib/Model/Analytics/GetClickPositionsResponse.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ class GetClickPositionsResponse extends AbstractModel implements ModelInterface,
* @var string[]
*/
protected static $modelTypes = [
'positions' => '\Algolia\AlgoliaSearch\Model\Analytics\ClickPositionsInner[]',
'positions' => '\Algolia\AlgoliaSearch\Model\Analytics\ClickPosition[]',
];

/**
Expand Down Expand Up @@ -166,7 +166,7 @@ public function valid()
/**
* Gets positions.
*
* @return \Algolia\AlgoliaSearch\Model\Analytics\ClickPositionsInner[]
* @return \Algolia\AlgoliaSearch\Model\Analytics\ClickPosition[]
*/
public function getPositions()
{
Expand All @@ -176,7 +176,7 @@ public function getPositions()
/**
* Sets positions.
*
* @param \Algolia\AlgoliaSearch\Model\Analytics\ClickPositionsInner[] $positions list of positions in the search results and clicks associated with this search
* @param \Algolia\AlgoliaSearch\Model\Analytics\ClickPosition[] $positions list of positions in the search results and clicks associated with this search
*
* @return self
*/
Expand Down
6 changes: 3 additions & 3 deletions lib/Model/Analytics/TopSearchWithAnalytics.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ class TopSearchWithAnalytics extends AbstractModel implements ModelInterface, \A
'count' => 'int',
'clickThroughRate' => 'float',
'averageClickPosition' => 'float',
'clickPositions' => '\Algolia\AlgoliaSearch\Model\Analytics\ClickPositionsInner[]',
'clickPositions' => '\Algolia\AlgoliaSearch\Model\Analytics\ClickPosition[]',
'conversionRate' => 'float',
'trackedSearchCount' => 'int',
'clickCount' => 'int',
Expand Down Expand Up @@ -401,7 +401,7 @@ public function setAverageClickPosition($averageClickPosition)
/**
* Gets clickPositions.
*
* @return \Algolia\AlgoliaSearch\Model\Analytics\ClickPositionsInner[]
* @return \Algolia\AlgoliaSearch\Model\Analytics\ClickPosition[]
*/
public function getClickPositions()
{
Expand All @@ -411,7 +411,7 @@ public function getClickPositions()
/**
* Sets clickPositions.
*
* @param \Algolia\AlgoliaSearch\Model\Analytics\ClickPositionsInner[] $clickPositions list of positions in the search results and clicks associated with this search
* @param \Algolia\AlgoliaSearch\Model\Analytics\ClickPosition[] $clickPositions list of positions in the search results and clicks associated with this search
*
* @return self
*/
Expand Down
6 changes: 3 additions & 3 deletions lib/Model/Analytics/TopSearchWithRevenueAnalytics.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ class TopSearchWithRevenueAnalytics extends AbstractModel implements ModelInterf
'count' => 'int',
'clickThroughRate' => 'float',
'averageClickPosition' => 'float',
'clickPositions' => '\Algolia\AlgoliaSearch\Model\Analytics\ClickPositionsInner[]',
'clickPositions' => '\Algolia\AlgoliaSearch\Model\Analytics\ClickPosition[]',
'conversionRate' => 'float',
'trackedSearchCount' => 'int',
'clickCount' => 'int',
Expand Down Expand Up @@ -476,7 +476,7 @@ public function setAverageClickPosition($averageClickPosition)
/**
* Gets clickPositions.
*
* @return \Algolia\AlgoliaSearch\Model\Analytics\ClickPositionsInner[]
* @return \Algolia\AlgoliaSearch\Model\Analytics\ClickPosition[]
*/
public function getClickPositions()
{
Expand All @@ -486,7 +486,7 @@ public function getClickPositions()
/**
* Sets clickPositions.
*
* @param \Algolia\AlgoliaSearch\Model\Analytics\ClickPositionsInner[] $clickPositions list of positions in the search results and clicks associated with this search
* @param \Algolia\AlgoliaSearch\Model\Analytics\ClickPosition[] $clickPositions list of positions in the search results and clicks associated with this search
*
* @return self
*/
Expand Down
2 changes: 2 additions & 0 deletions lib/Model/Ingestion/DockerStreamsInput.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@
* DockerStreamsInput Class Doc Comment.
*
* @category Class
*
* @description The selected streams of a singer or airbyte connector.
*/
class DockerStreamsInput extends AbstractModel implements ModelInterface, \ArrayAccess, \JsonSerializable
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,13 @@
use Algolia\AlgoliaSearch\Model\AbstractModel;

/**
* TransformationTryResponseError Class Doc Comment.
* TransformationError Class Doc Comment.
*
* @category Class
*
* @description The error if the transformation failed.
*/
class TransformationTryResponseError extends AbstractModel implements ModelInterface, \ArrayAccess, \JsonSerializable
class TransformationError extends AbstractModel implements ModelInterface, \ArrayAccess, \JsonSerializable
{
/**
* Array of property to type mappings. Used for (de)serialization.
Expand Down
6 changes: 3 additions & 3 deletions lib/Model/Ingestion/TransformationTryResponse.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ class TransformationTryResponse extends AbstractModel implements ModelInterface,
*/
protected static $modelTypes = [
'payloads' => 'object[]',
'error' => '\Algolia\AlgoliaSearch\Model\Ingestion\TransformationTryResponseError',
'error' => '\Algolia\AlgoliaSearch\Model\Ingestion\TransformationError',
];

/**
Expand Down Expand Up @@ -191,7 +191,7 @@ public function setPayloads($payloads)
/**
* Gets error.
*
* @return null|TransformationTryResponseError
* @return null|TransformationError
*/
public function getError()
{
Expand All @@ -201,7 +201,7 @@ public function getError()
/**
* Sets error.
*
* @param null|TransformationTryResponseError $error error
* @param null|TransformationError $error error
*
* @return self
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,11 @@
use Algolia\AlgoliaSearch\Model\AbstractModel;

/**
* GetServers403Response Class Doc Comment.
* BadRequest Class Doc Comment.
*
* @category Class
*/
class GetServers403Response extends AbstractModel implements ModelInterface, \ArrayAccess, \JsonSerializable
class BadRequest extends AbstractModel implements ModelInterface, \ArrayAccess, \JsonSerializable
{
/**
* Array of property to type mappings. Used for (de)serialization.
Expand Down
Loading

0 comments on commit b60d250

Please sign in to comment.