Skip to content

Commit

Permalink
chore: generated code for commit 83da9c3. [skip ci]
Browse files Browse the repository at this point in the history
Co-authored-by: Morgan Leroi <morgan.leroi@gmail.com>
  • Loading branch information
algolia-bot and morganleroi committed Feb 6, 2024
1 parent 83da9c3 commit ec644ff
Show file tree
Hide file tree
Showing 394 changed files with 1,360 additions and 1,502 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,8 @@
<RootNamespace>Algolia.Search</RootNamespace>
<NoWarn>CS0612;CS1570</NoWarn>
<GenerateAssemblyInfo>false</GenerateAssemblyInfo><!-- setting GenerateAssemblyInfo to false causes this bug https://github.com/dotnet/project-system/issues/3934 -->
<EnablePackageValidation>true</EnablePackageValidation>
<PackageReadmeFile>README.md</PackageReadmeFile>
</PropertyGroup>

<ItemGroup>
Expand All @@ -41,4 +43,17 @@
<PackageReference Include="Newtonsoft.Json" Version="13.0.3" />
</ItemGroup>

<ItemGroup>
<Content Include="..\icon.png">
<Pack>true</Pack>
<PackagePath>/</PackagePath>
<Link>icon.png</Link>
</Content>
<Content Include="..\README.md">
<Pack>true</Pack>
<PackagePath>/</PackagePath>
<Link>README.md</Link>
</Content>
</ItemGroup>

</Project>
2 changes: 1 addition & 1 deletion clients/algoliasearch-client-csharp/global.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"sdk": {
"version": "8.0.0",
"version": "8.0.101",
"rollForward": "latestMinor"
}
}
6 changes: 3 additions & 3 deletions clients/algoliasearch-client-php/lib/Algolia.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ final class Algolia
private static $logger;

/**
* @var HttpClientInterface
* @var \Algolia\AlgoliaSearch\Http\HttpClientInterface
*/
private static $httpClient;

Expand All @@ -43,7 +43,7 @@ public static function isCacheEnabled()
/**
* Gets the cache instance.
*
* @return CacheInterface
* @return \Psr\SimpleCache\CacheInterface
*/
public static function getCache()
{
Expand All @@ -65,7 +65,7 @@ public static function setCache(CacheInterface $cache)
/**
* Gets the logger instance.
*
* @return LoggerInterface
* @return \Psr\Log\LoggerInterface
*/
public static function getLogger()
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -266,9 +266,9 @@ public function setDefaultHeaders(array $defaultHeaders)
*
* @param string $algoliaAgent the user agent of the api client
*
* @return $this
*
* @throws \InvalidArgumentException
*
* @return $this
*/
public function setAlgoliaAgent($algoliaAgent)
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,6 @@

namespace Algolia\AlgoliaSearch\Exceptions;

class AlgoliaException extends \Exception {}
class AlgoliaException extends \Exception
{
}
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,6 @@

namespace Algolia\AlgoliaSearch\Exceptions;

class BadRequestException extends RequestException {}
class BadRequestException extends RequestException
{
}
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,6 @@

namespace Algolia\AlgoliaSearch\Exceptions;

final class CannotWaitException extends AlgoliaException {}
final class CannotWaitException extends AlgoliaException
{
}
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,6 @@

namespace Algolia\AlgoliaSearch\Exceptions;

final class ExceededRetriesException extends RequestException {}
final class ExceededRetriesException extends RequestException
{
}
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,6 @@

namespace Algolia\AlgoliaSearch\Exceptions;

class MissingObjectId extends AlgoliaException {}
class MissingObjectId extends AlgoliaException
{
}
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,6 @@

namespace Algolia\AlgoliaSearch\Exceptions;

final class NotFoundException extends BadRequestException {}
final class NotFoundException extends BadRequestException
{
}
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,6 @@

namespace Algolia\AlgoliaSearch\Exceptions;

final class ObjectNotFoundException extends AlgoliaException {}
final class ObjectNotFoundException extends AlgoliaException
{
}
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,6 @@

namespace Algolia\AlgoliaSearch\Exceptions;

final class RetriableException extends RequestException {}
final class RetriableException extends RequestException
{
}
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,6 @@

namespace Algolia\AlgoliaSearch\Exceptions;

final class ValidUntilNotFoundException extends AlgoliaException {}
final class ValidUntilNotFoundException extends AlgoliaException
{
}
24 changes: 12 additions & 12 deletions clients/algoliasearch-client-php/lib/Http/Psr7/Uri.php
Original file line number Diff line number Diff line change
Expand Up @@ -384,10 +384,10 @@ public static function withQueryValue(UriInterface $uri, $key, $value)
/**
* Creates a URI from a hash of `parse_url` components.
*
* @return UriInterface
*
* @throws \InvalidArgumentException if the components do not form a valid URI
*
* @return UriInterface
*
* @see http://php.net/manual/en/function.parse-url.php
*/
public static function fromParts(array $parts)
Expand Down Expand Up @@ -592,9 +592,9 @@ private function applyParts(array $parts)
/**
* @param string $scheme
*
* @return string
*
* @throws \InvalidArgumentException if the scheme is invalid
*
* @return string
*/
private function filterScheme($scheme)
{
Expand All @@ -608,9 +608,9 @@ private function filterScheme($scheme)
/**
* @param string $host
*
* @return string
*
* @throws \InvalidArgumentException if the host is invalid
*
* @return string
*/
private function filterHost($host)
{
Expand All @@ -624,9 +624,9 @@ private function filterHost($host)
/**
* @param null|int $port
*
* @return null|int
*
* @throws \InvalidArgumentException if the port is invalid
*
* @return null|int
*/
private function filterPort($port)
{
Expand Down Expand Up @@ -654,9 +654,9 @@ private function removeDefaultPort()
*
* @param string $path
*
* @return string
*
* @throws \InvalidArgumentException if the path is invalid
*
* @return string
*/
private function filterPath($path)
{
Expand All @@ -679,9 +679,9 @@ private function filterPath($path)
*
* @param string $str
*
* @return string
*
* @throws \InvalidArgumentException if the query or fragment is invalid
*
* @return string
*/
private function filterQueryAndFragment($str)
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@
* @category Class
*
* @internal
*
* @coversNothing
*/
class ABTest extends \Algolia\AlgoliaSearch\Model\AbstractModel implements ModelInterface, \ArrayAccess, \JsonSerializable
Expand Down Expand Up @@ -546,7 +545,7 @@ public function setStatus($status)
/**
* Gets variants.
*
* @return Variant[]
* @return \Algolia\AlgoliaSearch\Model\Abtesting\Variant[]
*/
public function getVariants()
{
Expand All @@ -556,7 +555,7 @@ public function getVariants()
/**
* Sets variants.
*
* @param Variant[] $variants A/B test variants
* @param \Algolia\AlgoliaSearch\Model\Abtesting\Variant[] $variants A/B test variants
*
* @return self
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -211,7 +211,7 @@ public function setName($name)
/**
* Gets variants.
*
* @return AddABTestsVariant[]
* @return \Algolia\AlgoliaSearch\Model\Abtesting\AddABTestsVariant[]
*/
public function getVariants()
{
Expand All @@ -221,7 +221,7 @@ public function getVariants()
/**
* Sets variants.
*
* @param AddABTestsVariant[] $variants A/B test variants
* @param \Algolia\AlgoliaSearch\Model\Abtesting\AddABTestsVariant[] $variants A/B test variants
*
* @return self
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
* CustomSearchParams Class Doc Comment.
*
* @category Class
*
* @description Applies search parameters from [a restricted set of options](https://www.algolia.com/doc/api-reference/api-methods/add-ab-test/#method-param-customsearchparameters). Only use this parameter if the two variants use the same index.
*/
class CustomSearchParams extends \Algolia\AlgoliaSearch\Model\AbstractModel implements ModelInterface, \ArrayAccess, \JsonSerializable
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
* ErrorBase Class Doc Comment.
*
* @category Class
*
* @description Error.
*/
class ErrorBase extends \Algolia\AlgoliaSearch\Model\AbstractModel implements ModelInterface, \ArrayAccess, \JsonSerializable
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
* FilterEffects Class Doc Comment.
*
* @category Class
*
* @description A/B test filter effects resulting from configuration settings.
*/
class FilterEffects extends \Algolia\AlgoliaSearch\Model\AbstractModel implements ModelInterface, \ArrayAccess, \JsonSerializable
Expand Down Expand Up @@ -161,7 +160,7 @@ public function valid()
/**
* Gets outliers.
*
* @return null|FilterEffectsOutliers
* @return null|\Algolia\AlgoliaSearch\Model\Abtesting\FilterEffectsOutliers
*/
public function getOutliers()
{
Expand All @@ -171,7 +170,7 @@ public function getOutliers()
/**
* Sets outliers.
*
* @param null|FilterEffectsOutliers $outliers outliers
* @param null|\Algolia\AlgoliaSearch\Model\Abtesting\FilterEffectsOutliers $outliers outliers
*
* @return self
*/
Expand All @@ -185,7 +184,7 @@ public function setOutliers($outliers)
/**
* Gets emptySearch.
*
* @return null|FilterEffectsEmptySearch
* @return null|\Algolia\AlgoliaSearch\Model\Abtesting\FilterEffectsEmptySearch
*/
public function getEmptySearch()
{
Expand All @@ -195,7 +194,7 @@ public function getEmptySearch()
/**
* Sets emptySearch.
*
* @param null|FilterEffectsEmptySearch $emptySearch emptySearch
* @param null|\Algolia\AlgoliaSearch\Model\Abtesting\FilterEffectsEmptySearch $emptySearch emptySearch
*
* @return self
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
* FilterEffectsEmptySearch Class Doc Comment.
*
* @category Class
*
* @description Empty searches removed from the A/B test as a result of configuration settings.
*/
class FilterEffectsEmptySearch extends \Algolia\AlgoliaSearch\Model\AbstractModel implements ModelInterface, \ArrayAccess, \JsonSerializable
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
* FilterEffectsOutliers Class Doc Comment.
*
* @category Class
*
* @description Outliers removed from the A/B test as a result of configuration settings.
*/
class FilterEffectsOutliers extends \Algolia\AlgoliaSearch\Model\AbstractModel implements ModelInterface, \ArrayAccess, \JsonSerializable
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,7 @@ public function valid()
/**
* Gets abtests.
*
* @return ABTest[]
* @return \Algolia\AlgoliaSearch\Model\Abtesting\ABTest[]
*/
public function getAbtests()
{
Expand All @@ -189,7 +189,7 @@ public function getAbtests()
/**
* Sets abtests.
*
* @param ABTest[] $abtests A/B tests
* @param \Algolia\AlgoliaSearch\Model\Abtesting\ABTest[] $abtests A/B tests
*
* @return self
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -568,7 +568,7 @@ public function setDescription($description)
/**
* Gets filterEffects.
*
* @return null|FilterEffects
* @return null|\Algolia\AlgoliaSearch\Model\Abtesting\FilterEffects
*/
public function getFilterEffects()
{
Expand All @@ -578,7 +578,7 @@ public function getFilterEffects()
/**
* Sets filterEffects.
*
* @param null|FilterEffects $filterEffects filterEffects
* @param null|\Algolia\AlgoliaSearch\Model\Abtesting\FilterEffects $filterEffects filterEffects
*
* @return self
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
* ErrorBase Class Doc Comment.
*
* @category Class
*
* @description Error.
*/
class ErrorBase extends \Algolia\AlgoliaSearch\Model\AbstractModel implements ModelInterface, \ArrayAccess, \JsonSerializable
Expand Down
Loading

0 comments on commit ec644ff

Please sign in to comment.