Skip to content

Commit

Permalink
chore: generated code for commit 87a87e9. [skip ci]
Browse files Browse the repository at this point in the history
Co-authored-by: Pierre Millot <pierre.millot@algolia.com>
  • Loading branch information
algolia-bot and millotp committed May 5, 2022
1 parent 87a87e9 commit 9f1730c
Show file tree
Hide file tree
Showing 7 changed files with 7 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -60,9 +60,7 @@ private static List<StatefulHost> getDefaultHosts(String region) {
List<StatefulHost> hosts = new ArrayList<StatefulHost>();
hosts.add(
new StatefulHost(
"personalization." +
(region == null ? "" : region + ".") +
"algolia.com",
"personalization." + region + "algolia.com",
"https",
EnumSet.of(CallType.READ, CallType.WRITE)
)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -60,9 +60,7 @@ private static List<StatefulHost> getDefaultHosts(String region) {
List<StatefulHost> hosts = new ArrayList<StatefulHost>();
hosts.add(
new StatefulHost(
"query-suggestions." +
(region == null ? "" : region + ".") +
"algolia.com",
"query-suggestions." + region + "algolia.com",
"https",
EnumSet.of(CallType.READ, CallType.WRITE)
)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ public function __construct(
*/
public static function create($appId = null, $apiKey = null, $region = null)
{
$allowedRegions = explode('-', 'us-de');
$allowedRegions = ['de', 'us'];
$config = AbtestingConfig::create(
$appId,
$apiKey,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ public function __construct(
*/
public static function create($appId = null, $apiKey = null, $region = null)
{
$allowedRegions = explode('-', 'us-de');
$allowedRegions = ['de', 'us'];
$config = AnalyticsConfig::create(
$appId,
$apiKey,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ public function __construct(
*/
public static function create($appId = null, $apiKey = null, $region = null)
{
$allowedRegions = explode('-', 'us-de');
$allowedRegions = ['de', 'us'];
$config = InsightsConfig::create(
$appId,
$apiKey,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ public function __construct(
*/
public static function create($appId = null, $apiKey = null, $region = null)
{
$allowedRegions = explode('-', 'us-eu');
$allowedRegions = ['eu', 'us'];
$config = PersonalizationConfig::create(
$appId,
$apiKey,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ public function __construct(
*/
public static function create($appId = null, $apiKey = null, $region = null)
{
$allowedRegions = explode('-', 'us-eu');
$allowedRegions = ['eu', 'us'];
$config = QuerySuggestionsConfig::create(
$appId,
$apiKey,
Expand Down

0 comments on commit 9f1730c

Please sign in to comment.