Skip to content

Commit 1f3d566

Browse files
algolia-botleonardogavaudanshortcuts
committed
feat(clients): add new abtesting-v3 package to clients + stabilize alpha js package (generated)
algolia/api-clients-automation#5157 Co-authored-by: algolia-bot <[email protected]> Co-authored-by: Leonardo Gavaudan <[email protected]> Co-authored-by: shortcuts <[email protected]>
1 parent b25f24f commit 1f3d566

34 files changed

+9080
-0
lines changed

lib/Api/AbtestingV3Client.php

Lines changed: 619 additions & 0 deletions
Large diffs are not rendered by default.
Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
<?php
2+
3+
// Code generated by OpenAPI Generator (https://openapi-generator.tech), manual changes will be lost - read more on https://github.com/algolia/api-clients-automation. DO NOT EDIT.
4+
5+
namespace Algolia\AlgoliaSearch\Configuration;
6+
7+
use Algolia\AlgoliaSearch\Exceptions\AlgoliaException;
8+
9+
class AbtestingV3Config extends ConfigWithRegion
10+
{
11+
protected $clientName = 'AbtestingV3';
12+
13+
public static function create($appId, $apiKey, $region = null)
14+
{
15+
$allowedRegions = ['de', 'us'];
16+
17+
if (
18+
null !== $region && !in_array($region, $allowedRegions, true)
19+
) {
20+
throw new AlgoliaException(
21+
'`region` must be one of the following: '.
22+
implode(', ', $allowedRegions)
23+
);
24+
}
25+
26+
return parent::create($appId, $apiKey, $region);
27+
}
28+
29+
public function getDefaultConfiguration()
30+
{
31+
return [
32+
'appId' => '',
33+
'apiKey' => '',
34+
'hosts' => null,
35+
'hasFullHosts' => false,
36+
'readTimeout' => 5,
37+
'writeTimeout' => 30,
38+
'connectTimeout' => 2,
39+
'defaultHeaders' => [],
40+
];
41+
}
42+
}

0 commit comments

Comments
 (0)