Skip to content

Commit 9373c4f

Browse files
algolia-botrenovate[bot]shortcutsmillotp
committed
chore(deps): dependencies 2025-04-28 (generated)
algolia/api-clients-automation#4785 Co-authored-by: algolia-bot <[email protected]> Co-authored-by: Algolia Bot <[email protected]> Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: shortcuts <[email protected]> Co-authored-by: Pierre Millot <[email protected]>
1 parent c710f98 commit 9373c4f

File tree

638 files changed

+20504
-10788
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

638 files changed

+20504
-10788
lines changed

.config/dotnet-tools.json

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
{
2+
"version": 1,
3+
"isRoot": true,
4+
"tools": {
5+
"csharpier": {
6+
"version": "1.0.1",
7+
"commands": [
8+
"csharpier"
9+
]
10+
}
11+
}
12+
}

.csharpierignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
obj
2+
bin

algoliasearch/Algolia.Search.csproj

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
<Project Sdk="Microsoft.NET.Sdk">
2-
32
<PropertyGroup>
43
<Description>Algolia Search API Client for .NET</Description>
54
<AssemblyName>Algolia.Search</AssemblyName>
@@ -31,17 +30,16 @@
3130
<Description>Algolia is a powerful search-as-a-service solution, made easy to use with API clients, UI libraries, and pre-built integrations. Algolia API Client for the .NET framework lets you easily use the Algolia Search REST API from your .NET code.</Description>
3231
<RootNamespace>Algolia.Search</RootNamespace>
3332
<NoWarn>CS0612;CS1570</NoWarn>
34-
<GenerateAssemblyInfo>false</GenerateAssemblyInfo><!-- setting GenerateAssemblyInfo to false causes this bug https://github.com/dotnet/project-system/issues/3934 -->
33+
<GenerateAssemblyInfo>false</GenerateAssemblyInfo>
34+
<!-- setting GenerateAssemblyInfo to false causes this bug https://github.com/dotnet/project-system/issues/3934 -->
3535
<EnablePackageValidation>true</EnablePackageValidation>
3636
<PackageReadmeFile>README.md</PackageReadmeFile>
3737
</PropertyGroup>
38-
3938
<ItemGroup>
4039
<PackageReference Include="Microsoft.Extensions.Logging" Version="[8.0, 10.0)" />
4140
<PackageReference Include="Microsoft.Extensions.Logging.Abstractions" Version="[8.0, 10.0)" />
4241
<PackageReference Include="System.Text.Json" Version="[8.0.5, 10.0)" />
4342
</ItemGroup>
44-
4543
<ItemGroup>
4644
<Content Include="..\icon.png">
4745
<Pack>true</Pack>
@@ -54,5 +52,4 @@
5452
<Link>README.md</Link>
5553
</Content>
5654
</ItemGroup>
57-
5855
</Project>

algoliasearch/Clients/AbtestingClient.cs

Lines changed: 383 additions & 119 deletions
Large diffs are not rendered by default.

algoliasearch/Clients/AbtestingConfiguration.cs

Lines changed: 13 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,12 @@
11
/*
22
* A/B Testing API
33
*
4-
* The Algolia A/B Testing API lets you manage your Algolia A/B tests to optimize your search experience. ## Base URLs The base URLs for requests to the A/B testing API are: - `https://analytics.us.algolia.com` - `https://analytics.de.algolia.com` - `https://analytics.algolia.com` (routes requests to the closest of the above servers, based on your geographical location) Use the URL that matches your [analytics region](https://dashboard.algolia.com/account/infrastructure/analytics). **All requests must use HTTPS.** ## Availability and authentication Access to the A/B testing API is available as part of the [Premium or Elevate plans](https://www.algolia.com/pricing). 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). ## Rate limits You can make up to **100 requests per minute per app** to the A/B testing API. The response includes headers with information about the limits. ## Parameters 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. ## Response status and errors The A/B testing 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 A/B Testing API is version 2, as indicated by the `/2/` in each endpoint's URL.
4+
* The Algolia A/B Testing API lets you manage your Algolia A/B tests to optimize your search experience. ## Base URLs The base URLs for requests to the A/B testing API are: - `https://analytics.us.algolia.com` - `https://analytics.de.algolia.com` - `https://analytics.algolia.com` (routes requests to the closest of the above servers, based on your geographical location) Use the URL that matches your [analytics region](https://dashboard.algolia.com/account/infrastructure/analytics). **All requests must use HTTPS.** ## Availability and authentication Access to the A/B testing API is available as part of the [Premium or Elevate plans](https://www.algolia.com/pricing). 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). ## Rate limits You can make up to **100 requests per minute per app** to the A/B testing API. The response includes headers with information about the limits. ## Parameters 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. ## Response status and errors The A/B testing 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 A/B Testing API is version 2, as indicated by the `/2/` in each endpoint's URL.
55
*
66
* The version of the OpenAPI document: 2.0.0
77
* Generated by: https://github.com/openapitools/openapi-generator.git
88
*/
99

10-
1110
using System;
1211
using System.Collections.Generic;
1312
using Algolia.Search.Models.Common;
@@ -28,31 +27,35 @@ public sealed class AbtestingConfig : AlgoliaConfig
2827
/// <param name="appId">Your application ID</param>
2928
/// <param name="apiKey">Your API Key</param>
3029
/// <param name="region">Targeted region (optional)</param>
31-
public AbtestingConfig(string appId, string apiKey, string region = null) : base(appId, apiKey, "Abtesting", "7.16.4")
30+
public AbtestingConfig(string appId, string apiKey, string region = null)
31+
: base(appId, apiKey, "Abtesting", "7.16.4")
3232
{
3333
DefaultHosts = GetDefaultHosts(region);
3434
Compression = CompressionType.None;
3535
ReadTimeout = TimeSpan.FromMilliseconds(5000);
3636
WriteTimeout = TimeSpan.FromMilliseconds(30000);
3737
ConnectTimeout = TimeSpan.FromMilliseconds(2000);
3838
}
39+
3940
private static List<StatefulHost> GetDefaultHosts(string region)
4041
{
4142
var regions = new List<string> { "de", "us" };
4243
if (region != null && !regions.Contains(region))
4344
{
44-
throw new ArgumentException($"`region` must be one of the following: {string.Join(", ", regions)}");
45+
throw new ArgumentException(
46+
$"`region` must be one of the following: {string.Join(", ", regions)}"
47+
);
4548
}
4649

47-
var selectedRegion = region == null ? "analytics.algolia.com" : "analytics.{region}.algolia.com".Replace("{region}", region);
50+
var selectedRegion =
51+
region == null
52+
? "analytics.algolia.com"
53+
: "analytics.{region}.algolia.com".Replace("{region}", region);
4854

4955
var hosts = new List<StatefulHost>
50-
{
51-
new()
5256
{
53-
Url = selectedRegion, Accept = CallType.Read | CallType.Write
54-
}
55-
};
57+
new() { Url = selectedRegion, Accept = CallType.Read | CallType.Write },
58+
};
5659
return hosts;
5760
}
5861
}

algoliasearch/Clients/AlgoliaConfig.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ protected AlgoliaConfig(string appId, string apiKey, string clientName, string c
3131
{ Defaults.AlgoliaApiKeyHeader.ToLowerInvariant(), ApiKey },
3232
{ Defaults.UserAgentHeader.ToLowerInvariant(), "" },
3333
{ Defaults.Connection.ToLowerInvariant(), Defaults.KeepAlive },
34-
{ Defaults.AcceptHeader.ToLowerInvariant(), JsonConfig.JsonContentType }
34+
{ Defaults.AcceptHeader.ToLowerInvariant(), JsonConfig.JsonContentType },
3535
};
3636
}
3737

0 commit comments

Comments
 (0)