Skip to content

Commit 1668616

Browse files
committed
chore: unrelated changes
1 parent aad0f60 commit 1668616

File tree

3 files changed

+24
-24
lines changed

3 files changed

+24
-24
lines changed

clients/algoliasearch-client-csharp/algoliasearch/Serializer/EnumConverter.cs

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -91,21 +91,21 @@ JsonSerializerOptions options
9191
switch (type)
9292
{
9393
case JsonTokenType.String:
94-
{
95-
var stringValue = reader.GetString();
96-
if (stringValue != null && _stringToEnum.TryGetValue(stringValue, out var enumValue))
9794
{
98-
return enumValue;
99-
}
95+
var stringValue = reader.GetString();
96+
if (stringValue != null && _stringToEnum.TryGetValue(stringValue, out var enumValue))
97+
{
98+
return enumValue;
99+
}
100100

101-
break;
102-
}
101+
break;
102+
}
103103
case JsonTokenType.Number:
104-
{
105-
var numValue = reader.GetInt32();
106-
_numberToEnum.TryGetValue(numValue, out var enumValue);
107-
return enumValue;
108-
}
104+
{
105+
var numValue = reader.GetInt32();
106+
_numberToEnum.TryGetValue(numValue, out var enumValue);
107+
return enumValue;
108+
}
109109
}
110110

111111
return default;

clients/algoliasearch-client-csharp/algoliasearch/Utils/QueryStringHelper.cs

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -36,18 +36,18 @@ public static string ParameterToString(object obj)
3636
case bool boolean:
3737
return boolean ? "true" : "false";
3838
case ICollection collection:
39-
{
40-
var entries = new List<string>();
41-
foreach (var entry in collection)
42-
entries.Add(ParameterToString(entry));
43-
return string.Join(",", entries);
44-
}
39+
{
40+
var entries = new List<string>();
41+
foreach (var entry in collection)
42+
entries.Add(ParameterToString(entry));
43+
return string.Join(",", entries);
44+
}
4545
case Enum when HasEnumMemberAttrValue(obj):
4646
return GetEnumMemberAttrValue(obj);
4747
case AbstractSchema schema when obj.GetType().IsClass:
48-
{
49-
return ParameterToString(schema.ActualInstance);
50-
}
48+
{
49+
return ParameterToString(schema.ActualInstance);
50+
}
5151
default:
5252
return Convert.ToString(obj, CultureInfo.InvariantCulture);
5353
}

clients/algoliasearch-client-php/lib/FormDataProcessor.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,9 @@
1212
*/
1313

1414
/**
15-
* Ingestion API.
15+
* Search API.
1616
*
17-
* The Ingestion API lets you connect third-party services and platforms with Algolia and schedule tasks to ingest your data. The Ingestion API powers the no-code [data connectors](https://dashboard.algolia.com/connectors). ## Base URLs The base URLs for requests to the Ingestion API are: - `https://data.us.algolia.com` - `https://data.eu.algolia.com` Use the URL that matches your [analytics region](https://dashboard.algolia.com/account/infrastructure/analytics). **All requests must use HTTPS.** ## Authentication To authenticate your API requests, add these headers: - `x-algolia-application-id`. Your Algolia application ID. - `x-algolia-api-key`. An API key with the necessary permissions to make the request. The required access control list (ACL) to make a request is listed in each endpoint's reference. You can find your application ID and API key in the [Algolia dashboard](https://dashboard.algolia.com/account). ## Request format Request bodies must be JSON objects. ## Response status and errors Response bodies are JSON objects. Successful responses return a `2xx` status. Client errors return a `4xx` status. Server errors are indicated by a `5xx` status. Error responses have a `message` property with more information. ## Version The current version of the Ingestion API is version 1, as indicated by the `/1/` in each endpoint's URL.
17+
* The Algolia Search API lets you search, configure, and manage your indices and records. ## Client libraries Use Algolia's API clients and libraries to reliably integrate Algolia's APIs with your apps. The official API clients are covered by Algolia's [Service Level Agreement](https://www.algolia.com/policies/sla/). See: [Algolia's ecosystem](https://www.algolia.com/doc/guides/getting-started/how-algolia-works/in-depth/ecosystem/) ## Base URLs The base URLs for requests to the Search API are: - `https://{APPLICATION_ID}.algolia.net` - `https://{APPLICATION_ID}-dsn.algolia.net`. If your subscription includes a [Distributed Search Network](https://dashboard.algolia.com/infra), this ensures that requests are sent to servers closest to users. Both URLs provide high availability by distributing requests with load balancing. **All requests must use HTTPS.** ## Retry strategy To guarantee high availability, implement a retry strategy for all API requests using the URLs of your servers as fallbacks: - `https://{APPLICATION_ID}-1.algolianet.com` - `https://{APPLICATION_ID}-2.algolianet.com` - `https://{APPLICATION_ID}-3.algolianet.com` These URLs use a different DNS provider than the primary URLs. You should randomize this list to ensure an even load across the three servers. All Algolia API clients implement this retry strategy. ## Authentication To authenticate your API requests, add these headers: - `x-algolia-application-id`. Your Algolia application ID. - `x-algolia-api-key`. An API key with the necessary permissions to make the request. The required access control list (ACL) to make a request is listed in each endpoint's reference. You can find your application ID and API key in the [Algolia dashboard](https://dashboard.algolia.com/account). ## Request format Depending on the endpoint, request bodies are either JSON objects or arrays of JSON objects, ## Parameters Parameters are passed as query parameters for GET and DELETE requests, and in the request body for POST and PUT requests. Query parameters must be [URL-encoded](https://developer.mozilla.org/en-US/docs/Glossary/Percent-encoding). Non-ASCII characters must be UTF-8 encoded. Plus characters (`+`) are interpreted as spaces. Arrays as query parameters must be one of: - A comma-separated string: `attributesToRetrieve=title,description` - A URL-encoded JSON array: `attributesToRetrieve=%5B%22title%22,%22description%22%D` ## Response status and errors The Search API returns JSON responses. Since JSON doesn't guarantee any specific ordering, don't rely on the order of attributes in the API response. Successful responses return a `2xx` status. Client errors return a `4xx` status. Server errors are indicated by a `5xx` status. Error responses have a `message` property with more information. ## Version The current version of the Search API is version 1, as indicated by the `/1/` in each endpoint's URL.
1818
*
1919
* The version of the OpenAPI document: 1.0.0
2020
* Generated by: https://openapi-generator.tech
@@ -29,7 +29,7 @@
2929

3030
namespace Algolia\AlgoliaSearch;
3131

32-
use Algolia\AlgoliaSearch\Model\Ingestion\ModelInterface;
32+
use Algolia\AlgoliaSearch\Model\Search\ModelInterface;
3333
use DateTime;
3434
use GuzzleHttp\Psr7\Utils;
3535
use Psr\Http\Message\StreamInterface;

0 commit comments

Comments
 (0)