diff --git a/clients/algoliasearch-client-csharp/algoliasearch/Clients/QuerySuggestionsClient.cs b/clients/algoliasearch-client-csharp/algoliasearch/Clients/QuerySuggestionsClient.cs
index 83da71046d..2bf0f15213 100644
--- a/clients/algoliasearch-client-csharp/algoliasearch/Clients/QuerySuggestionsClient.cs
+++ b/clients/algoliasearch-client-csharp/algoliasearch/Clients/QuerySuggestionsClient.cs
@@ -232,8 +232,8 @@ public interface IQuerySuggestionsClient
/// Thrown when arguments are not correct
/// Thrown when the API call was rejected by Algolia
/// Thrown when the client failed to call the endpoint
- /// Task of GetConfigStatus200Response
- Task GetConfigStatusAsync(string indexName, RequestOptions options = null, CancellationToken cancellationToken = default);
+ /// Task of ConfigStatus
+ Task GetConfigStatusAsync(string indexName, RequestOptions options = null, CancellationToken cancellationToken = default);
///
/// Reports the status of a Query Suggestions index. (Synchronous version)
@@ -244,8 +244,8 @@ public interface IQuerySuggestionsClient
/// Thrown when arguments are not correct
/// Thrown when the API call was rejected by Algolia
/// Thrown when the client failed to call the endpoint
- /// GetConfigStatus200Response
- GetConfigStatus200Response GetConfigStatus(string indexName, RequestOptions options = null, CancellationToken cancellationToken = default);
+ /// ConfigStatus
+ ConfigStatus GetConfigStatus(string indexName, RequestOptions options = null, CancellationToken cancellationToken = default);
///
/// Retrieves the logs for a single Query Suggestions index.
@@ -256,8 +256,8 @@ public interface IQuerySuggestionsClient
/// Thrown when arguments are not correct
/// Thrown when the API call was rejected by Algolia
/// Thrown when the client failed to call the endpoint
- /// Task of GetLogFile200Response
- Task GetLogFileAsync(string indexName, RequestOptions options = null, CancellationToken cancellationToken = default);
+ /// Task of LogFile
+ Task GetLogFileAsync(string indexName, RequestOptions options = null, CancellationToken cancellationToken = default);
///
/// Retrieves the logs for a single Query Suggestions index. (Synchronous version)
@@ -268,8 +268,8 @@ public interface IQuerySuggestionsClient
/// Thrown when arguments are not correct
/// Thrown when the API call was rejected by Algolia
/// Thrown when the client failed to call the endpoint
- /// GetLogFile200Response
- GetLogFile200Response GetLogFile(string indexName, RequestOptions options = null, CancellationToken cancellationToken = default);
+ /// LogFile
+ LogFile GetLogFile(string indexName, RequestOptions options = null, CancellationToken cancellationToken = default);
///
/// Updates a QuerySuggestions configuration.
@@ -712,8 +712,8 @@ public ConfigurationResponse GetConfig(string indexName, RequestOptions options
/// Thrown when arguments are not correct
/// Thrown when the API call was rejected by Algolia
/// Thrown when the client failed to call the endpoint
- /// Task of GetConfigStatus200Response
- public async Task GetConfigStatusAsync(string indexName, RequestOptions options = null, CancellationToken cancellationToken = default)
+ /// Task of ConfigStatus
+ public async Task GetConfigStatusAsync(string indexName, RequestOptions options = null, CancellationToken cancellationToken = default)
{
if (indexName == null)
@@ -723,7 +723,7 @@ public async Task GetConfigStatusAsync(string indexN
requestOptions.PathParameters.Add("indexName", QueryStringHelper.ParameterToString(indexName));
- return await _transport.ExecuteRequestAsync(new HttpMethod("GET"), "/1/configs/{indexName}/status", requestOptions, cancellationToken).ConfigureAwait(false);
+ return await _transport.ExecuteRequestAsync(new HttpMethod("GET"), "/1/configs/{indexName}/status", requestOptions, cancellationToken).ConfigureAwait(false);
}
@@ -739,8 +739,8 @@ public async Task GetConfigStatusAsync(string indexN
/// Thrown when arguments are not correct
/// Thrown when the API call was rejected by Algolia
/// Thrown when the client failed to call the endpoint
- /// GetConfigStatus200Response
- public GetConfigStatus200Response GetConfigStatus(string indexName, RequestOptions options = null, CancellationToken cancellationToken = default) =>
+ /// ConfigStatus
+ public ConfigStatus GetConfigStatus(string indexName, RequestOptions options = null, CancellationToken cancellationToken = default) =>
AsyncHelper.RunSync(() => GetConfigStatusAsync(indexName, options, cancellationToken));
@@ -756,8 +756,8 @@ public GetConfigStatus200Response GetConfigStatus(string indexName, RequestOptio
/// Thrown when arguments are not correct
/// Thrown when the API call was rejected by Algolia
/// Thrown when the client failed to call the endpoint
- /// Task of GetLogFile200Response
- public async Task GetLogFileAsync(string indexName, RequestOptions options = null, CancellationToken cancellationToken = default)
+ /// Task of LogFile
+ public async Task GetLogFileAsync(string indexName, RequestOptions options = null, CancellationToken cancellationToken = default)
{
if (indexName == null)
@@ -767,7 +767,7 @@ public async Task GetLogFileAsync(string indexName, Reque
requestOptions.PathParameters.Add("indexName", QueryStringHelper.ParameterToString(indexName));
- return await _transport.ExecuteRequestAsync(new HttpMethod("GET"), "/1/logs/{indexName}", requestOptions, cancellationToken).ConfigureAwait(false);
+ return await _transport.ExecuteRequestAsync(new HttpMethod("GET"), "/1/logs/{indexName}", requestOptions, cancellationToken).ConfigureAwait(false);
}
@@ -783,8 +783,8 @@ public async Task GetLogFileAsync(string indexName, Reque
/// Thrown when arguments are not correct
/// Thrown when the API call was rejected by Algolia
/// Thrown when the client failed to call the endpoint
- /// GetLogFile200Response
- public GetLogFile200Response GetLogFile(string indexName, RequestOptions options = null, CancellationToken cancellationToken = default) =>
+ /// LogFile
+ public LogFile GetLogFile(string indexName, RequestOptions options = null, CancellationToken cancellationToken = default) =>
AsyncHelper.RunSync(() => GetLogFileAsync(indexName, options, cancellationToken));
diff --git a/clients/algoliasearch-client-csharp/algoliasearch/Clients/UsageClient.cs b/clients/algoliasearch-client-csharp/algoliasearch/Clients/UsageClient.cs
index 0f2afe047d..20b027a3ad 100644
--- a/clients/algoliasearch-client-csharp/algoliasearch/Clients/UsageClient.cs
+++ b/clients/algoliasearch-client-csharp/algoliasearch/Clients/UsageClient.cs
@@ -142,8 +142,8 @@ public interface IUsageClient
/// Thrown when arguments are not correct
/// Thrown when the API call was rejected by Algolia
/// Thrown when the client failed to call the endpoint
- /// Task of GetUsage200Response
- Task GetIndexUsageAsync(Statistic statistic, string indexName, string startDate, string endDate, Granularity? granularity = default, RequestOptions options = null, CancellationToken cancellationToken = default);
+ /// Task of IndexUsage
+ Task GetIndexUsageAsync(Statistic statistic, string indexName, string startDate, string endDate, Granularity? granularity = default, RequestOptions options = null, CancellationToken cancellationToken = default);
///
/// Retrieves the selected usage statistics for one index. (Synchronous version)
@@ -158,8 +158,8 @@ public interface IUsageClient
/// Thrown when arguments are not correct
/// Thrown when the API call was rejected by Algolia
/// Thrown when the client failed to call the endpoint
- /// GetUsage200Response
- GetUsage200Response GetIndexUsage(Statistic statistic, string indexName, string startDate, string endDate, Granularity? granularity = default, RequestOptions options = null, CancellationToken cancellationToken = default);
+ /// IndexUsage
+ IndexUsage GetIndexUsage(Statistic statistic, string indexName, string startDate, string endDate, Granularity? granularity = default, RequestOptions options = null, CancellationToken cancellationToken = default);
///
/// Retrieves usage statistics evaluated over a specified period.
@@ -173,8 +173,8 @@ public interface IUsageClient
/// Thrown when arguments are not correct
/// Thrown when the API call was rejected by Algolia
/// Thrown when the client failed to call the endpoint
- /// Task of GetUsage200Response
- Task GetUsageAsync(Statistic statistic, string startDate, string endDate, Granularity? granularity = default, RequestOptions options = null, CancellationToken cancellationToken = default);
+ /// Task of IndexUsage
+ Task GetUsageAsync(Statistic statistic, string startDate, string endDate, Granularity? granularity = default, RequestOptions options = null, CancellationToken cancellationToken = default);
///
/// Retrieves usage statistics evaluated over a specified period. (Synchronous version)
@@ -188,8 +188,8 @@ public interface IUsageClient
/// Thrown when arguments are not correct
/// Thrown when the API call was rejected by Algolia
/// Thrown when the client failed to call the endpoint
- /// GetUsage200Response
- GetUsage200Response GetUsage(Statistic statistic, string startDate, string endDate, Granularity? granularity = default, RequestOptions options = null, CancellationToken cancellationToken = default);
+ /// IndexUsage
+ IndexUsage GetUsage(Statistic statistic, string startDate, string endDate, Granularity? granularity = default, RequestOptions options = null, CancellationToken cancellationToken = default);
}
@@ -438,8 +438,8 @@ public object CustomPut(string path, Dictionary parameters = def
/// Thrown when arguments are not correct
/// Thrown when the API call was rejected by Algolia
/// Thrown when the client failed to call the endpoint
- /// Task of GetUsage200Response
- public async Task GetIndexUsageAsync(Statistic statistic, string indexName, string startDate, string endDate, Granularity? granularity = default, RequestOptions options = null, CancellationToken cancellationToken = default)
+ /// Task of IndexUsage
+ public async Task GetIndexUsageAsync(Statistic statistic, string indexName, string startDate, string endDate, Granularity? granularity = default, RequestOptions options = null, CancellationToken cancellationToken = default)
{
@@ -462,7 +462,7 @@ public async Task GetIndexUsageAsync(Statistic statistic, s
requestOptions.AddQueryParameter("startDate", startDate);
requestOptions.AddQueryParameter("endDate", endDate);
requestOptions.AddQueryParameter("granularity", granularity);
- return await _transport.ExecuteRequestAsync(new HttpMethod("GET"), "/1/usage/{statistic}/{indexName}", requestOptions, cancellationToken).ConfigureAwait(false);
+ return await _transport.ExecuteRequestAsync(new HttpMethod("GET"), "/1/usage/{statistic}/{indexName}", requestOptions, cancellationToken).ConfigureAwait(false);
}
@@ -479,8 +479,8 @@ public async Task GetIndexUsageAsync(Statistic statistic, s
/// Thrown when arguments are not correct
/// Thrown when the API call was rejected by Algolia
/// Thrown when the client failed to call the endpoint
- /// GetUsage200Response
- public GetUsage200Response GetIndexUsage(Statistic statistic, string indexName, string startDate, string endDate, Granularity? granularity = default, RequestOptions options = null, CancellationToken cancellationToken = default) =>
+ /// IndexUsage
+ public IndexUsage GetIndexUsage(Statistic statistic, string indexName, string startDate, string endDate, Granularity? granularity = default, RequestOptions options = null, CancellationToken cancellationToken = default) =>
AsyncHelper.RunSync(() => GetIndexUsageAsync(statistic, indexName, startDate, endDate, granularity, options, cancellationToken));
@@ -496,8 +496,8 @@ public GetUsage200Response GetIndexUsage(Statistic statistic, string indexName,
/// Thrown when arguments are not correct
/// Thrown when the API call was rejected by Algolia
/// Thrown when the client failed to call the endpoint
- /// Task of GetUsage200Response
- public async Task GetUsageAsync(Statistic statistic, string startDate, string endDate, Granularity? granularity = default, RequestOptions options = null, CancellationToken cancellationToken = default)
+ /// Task of IndexUsage
+ public async Task GetUsageAsync(Statistic statistic, string startDate, string endDate, Granularity? granularity = default, RequestOptions options = null, CancellationToken cancellationToken = default)
{
@@ -515,7 +515,7 @@ public async Task GetUsageAsync(Statistic statistic, string
requestOptions.AddQueryParameter("startDate", startDate);
requestOptions.AddQueryParameter("endDate", endDate);
requestOptions.AddQueryParameter("granularity", granularity);
- return await _transport.ExecuteRequestAsync(new HttpMethod("GET"), "/1/usage/{statistic}", requestOptions, cancellationToken).ConfigureAwait(false);
+ return await _transport.ExecuteRequestAsync(new HttpMethod("GET"), "/1/usage/{statistic}", requestOptions, cancellationToken).ConfigureAwait(false);
}
@@ -531,8 +531,8 @@ public async Task GetUsageAsync(Statistic statistic, string
/// Thrown when arguments are not correct
/// Thrown when the API call was rejected by Algolia
/// Thrown when the client failed to call the endpoint
- /// GetUsage200Response
- public GetUsage200Response GetUsage(Statistic statistic, string startDate, string endDate, Granularity? granularity = default, RequestOptions options = null, CancellationToken cancellationToken = default) =>
+ /// IndexUsage
+ public IndexUsage GetUsage(Statistic statistic, string startDate, string endDate, Granularity? granularity = default, RequestOptions options = null, CancellationToken cancellationToken = default) =>
AsyncHelper.RunSync(() => GetUsageAsync(statistic, startDate, endDate, granularity, options, cancellationToken));
}
diff --git a/clients/algoliasearch-client-csharp/algoliasearch/Models/Abtesting/FilterEffectsEmptySearch.cs b/clients/algoliasearch-client-csharp/algoliasearch/Models/Abtesting/EmptySearchFilter.cs
similarity index 90%
rename from clients/algoliasearch-client-csharp/algoliasearch/Models/Abtesting/FilterEffectsEmptySearch.cs
rename to clients/algoliasearch-client-csharp/algoliasearch/Models/Abtesting/EmptySearchFilter.cs
index 783fc5f191..01a0ade7b1 100644
--- a/clients/algoliasearch-client-csharp/algoliasearch/Models/Abtesting/FilterEffectsEmptySearch.cs
+++ b/clients/algoliasearch-client-csharp/algoliasearch/Models/Abtesting/EmptySearchFilter.cs
@@ -14,12 +14,12 @@ namespace Algolia.Search.Models.Abtesting;
///
/// Empty searches removed from the A/B test as a result of configuration settings.
///
-public partial class FilterEffectsEmptySearch
+public partial class EmptySearchFilter
{
///
- /// Initializes a new instance of the FilterEffectsEmptySearch class.
+ /// Initializes a new instance of the EmptySearchFilter class.
///
- public FilterEffectsEmptySearch()
+ public EmptySearchFilter()
{
}
@@ -44,7 +44,7 @@ public FilterEffectsEmptySearch()
public override string ToString()
{
StringBuilder sb = new StringBuilder();
- sb.Append("class FilterEffectsEmptySearch {\n");
+ sb.Append("class EmptySearchFilter {\n");
sb.Append(" UsersCount: ").Append(UsersCount).Append("\n");
sb.Append(" TrackedSearchesCount: ").Append(TrackedSearchesCount).Append("\n");
sb.Append("}\n");
@@ -67,7 +67,7 @@ public virtual string ToJson()
/// Boolean
public override bool Equals(object obj)
{
- if (obj is not FilterEffectsEmptySearch input)
+ if (obj is not EmptySearchFilter input)
{
return false;
}
diff --git a/clients/algoliasearch-client-csharp/algoliasearch/Models/Abtesting/FilterEffects.cs b/clients/algoliasearch-client-csharp/algoliasearch/Models/Abtesting/FilterEffects.cs
index 042fd5a147..7ff62a9c14 100644
--- a/clients/algoliasearch-client-csharp/algoliasearch/Models/Abtesting/FilterEffects.cs
+++ b/clients/algoliasearch-client-csharp/algoliasearch/Models/Abtesting/FilterEffects.cs
@@ -27,13 +27,13 @@ public FilterEffects()
/// Gets or Sets Outliers
///
[JsonPropertyName("outliers")]
- public FilterEffectsOutliers Outliers { get; set; }
+ public OutliersFilter Outliers { get; set; }
///
/// Gets or Sets EmptySearch
///
[JsonPropertyName("emptySearch")]
- public FilterEffectsEmptySearch EmptySearch { get; set; }
+ public EmptySearchFilter EmptySearch { get; set; }
///
/// Returns the string presentation of the object
diff --git a/clients/algoliasearch-client-csharp/algoliasearch/Models/Abtesting/FilterEffectsOutliers.cs b/clients/algoliasearch-client-csharp/algoliasearch/Models/Abtesting/OutliersFilter.cs
similarity index 91%
rename from clients/algoliasearch-client-csharp/algoliasearch/Models/Abtesting/FilterEffectsOutliers.cs
rename to clients/algoliasearch-client-csharp/algoliasearch/Models/Abtesting/OutliersFilter.cs
index f8c7401ad9..0fc568b9bf 100644
--- a/clients/algoliasearch-client-csharp/algoliasearch/Models/Abtesting/FilterEffectsOutliers.cs
+++ b/clients/algoliasearch-client-csharp/algoliasearch/Models/Abtesting/OutliersFilter.cs
@@ -14,12 +14,12 @@ namespace Algolia.Search.Models.Abtesting;
///
/// Outliers removed from the A/B test as a result of configuration settings.
///
-public partial class FilterEffectsOutliers
+public partial class OutliersFilter
{
///
- /// Initializes a new instance of the FilterEffectsOutliers class.
+ /// Initializes a new instance of the OutliersFilter class.
///
- public FilterEffectsOutliers()
+ public OutliersFilter()
{
}
@@ -44,7 +44,7 @@ public FilterEffectsOutliers()
public override string ToString()
{
StringBuilder sb = new StringBuilder();
- sb.Append("class FilterEffectsOutliers {\n");
+ sb.Append("class OutliersFilter {\n");
sb.Append(" UsersCount: ").Append(UsersCount).Append("\n");
sb.Append(" TrackedSearchesCount: ").Append(TrackedSearchesCount).Append("\n");
sb.Append("}\n");
@@ -67,7 +67,7 @@ public virtual string ToJson()
/// Boolean
public override bool Equals(object obj)
{
- if (obj is not FilterEffectsOutliers input)
+ if (obj is not OutliersFilter input)
{
return false;
}
diff --git a/clients/algoliasearch-client-csharp/algoliasearch/Models/Analytics/ClickPositionsInner.cs b/clients/algoliasearch-client-csharp/algoliasearch/Models/Analytics/ClickPosition.cs
similarity index 92%
rename from clients/algoliasearch-client-csharp/algoliasearch/Models/Analytics/ClickPositionsInner.cs
rename to clients/algoliasearch-client-csharp/algoliasearch/Models/Analytics/ClickPosition.cs
index 86805c308a..d6d7aa9452 100644
--- a/clients/algoliasearch-client-csharp/algoliasearch/Models/Analytics/ClickPositionsInner.cs
+++ b/clients/algoliasearch-client-csharp/algoliasearch/Models/Analytics/ClickPosition.cs
@@ -14,12 +14,12 @@ namespace Algolia.Search.Models.Analytics;
///
/// Click position.
///
-public partial class ClickPositionsInner
+public partial class ClickPosition
{
///
- /// Initializes a new instance of the ClickPositionsInner class.
+ /// Initializes a new instance of the ClickPosition class.
///
- public ClickPositionsInner()
+ public ClickPosition()
{
}
@@ -44,7 +44,7 @@ public ClickPositionsInner()
public override string ToString()
{
StringBuilder sb = new StringBuilder();
- sb.Append("class ClickPositionsInner {\n");
+ sb.Append("class ClickPosition {\n");
sb.Append(" Position: ").Append(Position).Append("\n");
sb.Append(" ClickCount: ").Append(ClickCount).Append("\n");
sb.Append("}\n");
@@ -67,7 +67,7 @@ public virtual string ToJson()
/// Boolean
public override bool Equals(object obj)
{
- if (obj is not ClickPositionsInner input)
+ if (obj is not ClickPosition input)
{
return false;
}
diff --git a/clients/algoliasearch-client-csharp/algoliasearch/Models/Analytics/GetClickPositionsResponse.cs b/clients/algoliasearch-client-csharp/algoliasearch/Models/Analytics/GetClickPositionsResponse.cs
index 2a08f99d39..d178001bdb 100644
--- a/clients/algoliasearch-client-csharp/algoliasearch/Models/Analytics/GetClickPositionsResponse.cs
+++ b/clients/algoliasearch-client-csharp/algoliasearch/Models/Analytics/GetClickPositionsResponse.cs
@@ -25,7 +25,7 @@ public GetClickPositionsResponse() { }
/// Initializes a new instance of the GetClickPositionsResponse class.
///
/// List of positions in the search results and clicks associated with this search. (required).
- public GetClickPositionsResponse(List positions)
+ public GetClickPositionsResponse(List positions)
{
Positions = positions ?? throw new ArgumentNullException(nameof(positions));
}
@@ -35,7 +35,7 @@ public GetClickPositionsResponse(List positions)
///
/// List of positions in the search results and clicks associated with this search.
[JsonPropertyName("positions")]
- public List Positions { get; set; }
+ public List Positions { get; set; }
///
/// Returns the string presentation of the object
diff --git a/clients/algoliasearch-client-csharp/algoliasearch/Models/Analytics/TopSearchWithAnalytics.cs b/clients/algoliasearch-client-csharp/algoliasearch/Models/Analytics/TopSearchWithAnalytics.cs
index a898737052..9f27d80ff5 100644
--- a/clients/algoliasearch-client-csharp/algoliasearch/Models/Analytics/TopSearchWithAnalytics.cs
+++ b/clients/algoliasearch-client-csharp/algoliasearch/Models/Analytics/TopSearchWithAnalytics.cs
@@ -34,7 +34,7 @@ public TopSearchWithAnalytics() { }
/// Number of clicks associated with this search. (required) (default to 0).
/// Number of conversions from this search. (required) (default to 0).
/// Number of results (hits). (required).
- public TopSearchWithAnalytics(string search, int count, double? clickThroughRate, double? averageClickPosition, List clickPositions, double? conversionRate, int trackedSearchCount, int clickCount, int conversionCount, int nbHits)
+ public TopSearchWithAnalytics(string search, int count, double? clickThroughRate, double? averageClickPosition, List clickPositions, double? conversionRate, int trackedSearchCount, int clickCount, int conversionCount, int nbHits)
{
Search = search ?? throw new ArgumentNullException(nameof(search));
Count = count;
@@ -81,7 +81,7 @@ public TopSearchWithAnalytics(string search, int count, double? clickThroughRate
///
/// List of positions in the search results and clicks associated with this search.
[JsonPropertyName("clickPositions")]
- public List ClickPositions { get; set; }
+ public List ClickPositions { get; set; }
///
/// Conversion rate, calculated as number of tracked searches with at least one conversion event divided by the number of tracked searches. If null, Algolia didn't receive any search requests with `clickAnalytics` set to true.
diff --git a/clients/algoliasearch-client-csharp/algoliasearch/Models/Analytics/TopSearchWithRevenueAnalytics.cs b/clients/algoliasearch-client-csharp/algoliasearch/Models/Analytics/TopSearchWithRevenueAnalytics.cs
index 8fa31a97cb..50995fd344 100644
--- a/clients/algoliasearch-client-csharp/algoliasearch/Models/Analytics/TopSearchWithRevenueAnalytics.cs
+++ b/clients/algoliasearch-client-csharp/algoliasearch/Models/Analytics/TopSearchWithRevenueAnalytics.cs
@@ -39,7 +39,7 @@ public TopSearchWithRevenueAnalytics() { }
/// Number of add-to-cart events from this search. (required) (default to 0).
/// Purchase rate, calculated as number of tracked searches with at least one purchase event divided by the number of tracked searches. If null, Algolia didn't receive any search requests with `clickAnalytics` set to true. (required).
/// Number of purchase events from this search. (required) (default to 0).
- public TopSearchWithRevenueAnalytics(string search, int count, double? clickThroughRate, double? averageClickPosition, List clickPositions, double? conversionRate, int trackedSearchCount, int clickCount, int conversionCount, int nbHits, Dictionary currencies, double? addToCartRate, int addToCartCount, double? purchaseRate, int purchaseCount)
+ public TopSearchWithRevenueAnalytics(string search, int count, double? clickThroughRate, double? averageClickPosition, List clickPositions, double? conversionRate, int trackedSearchCount, int clickCount, int conversionCount, int nbHits, Dictionary currencies, double? addToCartRate, int addToCartCount, double? purchaseRate, int purchaseCount)
{
Search = search ?? throw new ArgumentNullException(nameof(search));
Count = count;
@@ -91,7 +91,7 @@ public TopSearchWithRevenueAnalytics(string search, int count, double? clickThro
///
/// List of positions in the search results and clicks associated with this search.
[JsonPropertyName("clickPositions")]
- public List ClickPositions { get; set; }
+ public List ClickPositions { get; set; }
///
/// Conversion rate, calculated as number of tracked searches with at least one conversion event divided by the number of tracked searches. If null, Algolia didn't receive any search requests with `clickAnalytics` set to true.
diff --git a/clients/algoliasearch-client-csharp/algoliasearch/Models/Ingestion/DockerStreamsInput.cs b/clients/algoliasearch-client-csharp/algoliasearch/Models/Ingestion/DockerStreamsInput.cs
index cf87144967..6f230921a1 100644
--- a/clients/algoliasearch-client-csharp/algoliasearch/Models/Ingestion/DockerStreamsInput.cs
+++ b/clients/algoliasearch-client-csharp/algoliasearch/Models/Ingestion/DockerStreamsInput.cs
@@ -12,7 +12,7 @@
namespace Algolia.Search.Models.Ingestion;
///
-/// DockerStreamsInput
+/// The selected streams of a singer or airbyte connector.
///
public partial class DockerStreamsInput
{
diff --git a/clients/algoliasearch-client-csharp/algoliasearch/Models/Ingestion/TransformationTryResponseError.cs b/clients/algoliasearch-client-csharp/algoliasearch/Models/Ingestion/TransformationError.cs
similarity index 89%
rename from clients/algoliasearch-client-csharp/algoliasearch/Models/Ingestion/TransformationTryResponseError.cs
rename to clients/algoliasearch-client-csharp/algoliasearch/Models/Ingestion/TransformationError.cs
index 3f6e985aef..01d84ee66e 100644
--- a/clients/algoliasearch-client-csharp/algoliasearch/Models/Ingestion/TransformationTryResponseError.cs
+++ b/clients/algoliasearch-client-csharp/algoliasearch/Models/Ingestion/TransformationError.cs
@@ -14,12 +14,12 @@ namespace Algolia.Search.Models.Ingestion;
///
/// The error if the transformation failed.
///
-public partial class TransformationTryResponseError
+public partial class TransformationError
{
///
- /// Initializes a new instance of the TransformationTryResponseError class.
+ /// Initializes a new instance of the TransformationError class.
///
- public TransformationTryResponseError()
+ public TransformationError()
{
}
@@ -44,7 +44,7 @@ public TransformationTryResponseError()
public override string ToString()
{
StringBuilder sb = new StringBuilder();
- sb.Append("class TransformationTryResponseError {\n");
+ sb.Append("class TransformationError {\n");
sb.Append(" Code: ").Append(Code).Append("\n");
sb.Append(" Message: ").Append(Message).Append("\n");
sb.Append("}\n");
@@ -67,7 +67,7 @@ public virtual string ToJson()
/// Boolean
public override bool Equals(object obj)
{
- if (obj is not TransformationTryResponseError input)
+ if (obj is not TransformationError input)
{
return false;
}
diff --git a/clients/algoliasearch-client-csharp/algoliasearch/Models/Ingestion/TransformationTryResponse.cs b/clients/algoliasearch-client-csharp/algoliasearch/Models/Ingestion/TransformationTryResponse.cs
index 5de6f5df21..60c8171b57 100644
--- a/clients/algoliasearch-client-csharp/algoliasearch/Models/Ingestion/TransformationTryResponse.cs
+++ b/clients/algoliasearch-client-csharp/algoliasearch/Models/Ingestion/TransformationTryResponse.cs
@@ -41,7 +41,7 @@ public TransformationTryResponse(List
[JsonPropertyName("error")]
- public TransformationTryResponseError Error { get; set; }
+ public TransformationError Error { get; set; }
///
/// Returns the string presentation of the object
diff --git a/clients/algoliasearch-client-csharp/algoliasearch/Models/Monitoring/GetServers403Response.cs b/clients/algoliasearch-client-csharp/algoliasearch/Models/Monitoring/BadRequest.cs
similarity index 87%
rename from clients/algoliasearch-client-csharp/algoliasearch/Models/Monitoring/GetServers403Response.cs
rename to clients/algoliasearch-client-csharp/algoliasearch/Models/Monitoring/BadRequest.cs
index 387035732d..23c1b4c0c3 100644
--- a/clients/algoliasearch-client-csharp/algoliasearch/Models/Monitoring/GetServers403Response.cs
+++ b/clients/algoliasearch-client-csharp/algoliasearch/Models/Monitoring/BadRequest.cs
@@ -12,14 +12,14 @@
namespace Algolia.Search.Models.Monitoring;
///
-/// GetServers403Response
+/// BadRequest
///
-public partial class GetServers403Response
+public partial class BadRequest
{
///
- /// Initializes a new instance of the GetServers403Response class.
+ /// Initializes a new instance of the BadRequest class.
///
- public GetServers403Response()
+ public BadRequest()
{
}
@@ -36,7 +36,7 @@ public GetServers403Response()
public override string ToString()
{
StringBuilder sb = new StringBuilder();
- sb.Append("class GetServers403Response {\n");
+ sb.Append("class BadRequest {\n");
sb.Append(" Reason: ").Append(Reason).Append("\n");
sb.Append("}\n");
return sb.ToString();
@@ -58,7 +58,7 @@ public virtual string ToJson()
/// Boolean
public override bool Equals(object obj)
{
- if (obj is not GetServers403Response input)
+ if (obj is not BadRequest input)
{
return false;
}
diff --git a/clients/algoliasearch-client-csharp/algoliasearch/Models/Monitoring/Forbidden.cs b/clients/algoliasearch-client-csharp/algoliasearch/Models/Monitoring/Forbidden.cs
new file mode 100644
index 0000000000..4355a88195
--- /dev/null
+++ b/clients/algoliasearch-client-csharp/algoliasearch/Models/Monitoring/Forbidden.cs
@@ -0,0 +1,88 @@
+//
+// 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.
+//
+using System;
+using System.Text;
+using System.Linq;
+using System.Text.Json.Serialization;
+using System.Collections.Generic;
+using Algolia.Search.Serializer;
+using System.Text.Json;
+
+namespace Algolia.Search.Models.Monitoring;
+
+///
+/// Forbidden
+///
+public partial class Forbidden
+{
+ ///
+ /// Initializes a new instance of the Forbidden class.
+ ///
+ public Forbidden()
+ {
+ }
+
+ ///
+ /// Gets or Sets Reason
+ ///
+ [JsonPropertyName("reason")]
+ public string Reason { get; set; }
+
+ ///
+ /// Returns the string presentation of the object
+ ///
+ /// String presentation of the object
+ public override string ToString()
+ {
+ StringBuilder sb = new StringBuilder();
+ sb.Append("class Forbidden {\n");
+ sb.Append(" Reason: ").Append(Reason).Append("\n");
+ sb.Append("}\n");
+ return sb.ToString();
+ }
+
+ ///
+ /// Returns the JSON string presentation of the object
+ ///
+ /// JSON string presentation of the object
+ public virtual string ToJson()
+ {
+ return JsonSerializer.Serialize(this, JsonConfig.Options);
+ }
+
+ ///
+ /// Returns true if objects are equal
+ ///
+ /// Object to be compared
+ /// Boolean
+ public override bool Equals(object obj)
+ {
+ if (obj is not Forbidden input)
+ {
+ return false;
+ }
+
+ return
+ (Reason == input.Reason || (Reason != null && Reason.Equals(input.Reason)));
+ }
+
+ ///
+ /// Gets the hash code
+ ///
+ /// Hash code
+ public override int GetHashCode()
+ {
+ unchecked // Overflow is fine, just wrap
+ {
+ int hashCode = 41;
+ if (Reason != null)
+ {
+ hashCode = (hashCode * 59) + Reason.GetHashCode();
+ }
+ return hashCode;
+ }
+ }
+
+}
+
diff --git a/clients/algoliasearch-client-csharp/algoliasearch/Models/Monitoring/IncidentsInner.cs b/clients/algoliasearch-client-csharp/algoliasearch/Models/Monitoring/IncidentEntry.cs
similarity index 90%
rename from clients/algoliasearch-client-csharp/algoliasearch/Models/Monitoring/IncidentsInner.cs
rename to clients/algoliasearch-client-csharp/algoliasearch/Models/Monitoring/IncidentEntry.cs
index 2c4de697e3..f097731b52 100644
--- a/clients/algoliasearch-client-csharp/algoliasearch/Models/Monitoring/IncidentsInner.cs
+++ b/clients/algoliasearch-client-csharp/algoliasearch/Models/Monitoring/IncidentEntry.cs
@@ -12,14 +12,14 @@
namespace Algolia.Search.Models.Monitoring;
///
-/// IncidentsInner
+/// IncidentEntry
///
-public partial class IncidentsInner
+public partial class IncidentEntry
{
///
- /// Initializes a new instance of the IncidentsInner class.
+ /// Initializes a new instance of the IncidentEntry class.
///
- public IncidentsInner()
+ public IncidentEntry()
{
}
@@ -43,7 +43,7 @@ public IncidentsInner()
public override string ToString()
{
StringBuilder sb = new StringBuilder();
- sb.Append("class IncidentsInner {\n");
+ sb.Append("class IncidentEntry {\n");
sb.Append(" T: ").Append(T).Append("\n");
sb.Append(" V: ").Append(V).Append("\n");
sb.Append("}\n");
@@ -66,7 +66,7 @@ public virtual string ToJson()
/// Boolean
public override bool Equals(object obj)
{
- if (obj is not IncidentsInner input)
+ if (obj is not IncidentEntry input)
{
return false;
}
diff --git a/clients/algoliasearch-client-csharp/algoliasearch/Models/Monitoring/IncidentsResponse.cs b/clients/algoliasearch-client-csharp/algoliasearch/Models/Monitoring/IncidentsResponse.cs
index ac7081dde7..8ff2e2397d 100644
--- a/clients/algoliasearch-client-csharp/algoliasearch/Models/Monitoring/IncidentsResponse.cs
+++ b/clients/algoliasearch-client-csharp/algoliasearch/Models/Monitoring/IncidentsResponse.cs
@@ -27,7 +27,7 @@ public IncidentsResponse()
/// Gets or Sets Incidents
///
[JsonPropertyName("incidents")]
- public Dictionary> Incidents { get; set; }
+ public Dictionary> Incidents { get; set; }
///
/// Returns the string presentation of the object
diff --git a/clients/algoliasearch-client-csharp/algoliasearch/Models/Monitoring/IndexingTimeResponseMetrics.cs b/clients/algoliasearch-client-csharp/algoliasearch/Models/Monitoring/IndexingMetric.cs
similarity index 83%
rename from clients/algoliasearch-client-csharp/algoliasearch/Models/Monitoring/IndexingTimeResponseMetrics.cs
rename to clients/algoliasearch-client-csharp/algoliasearch/Models/Monitoring/IndexingMetric.cs
index 04bec19652..b169b9b31a 100644
--- a/clients/algoliasearch-client-csharp/algoliasearch/Models/Monitoring/IndexingTimeResponseMetrics.cs
+++ b/clients/algoliasearch-client-csharp/algoliasearch/Models/Monitoring/IndexingMetric.cs
@@ -12,14 +12,14 @@
namespace Algolia.Search.Models.Monitoring;
///
-/// IndexingTimeResponseMetrics
+/// IndexingMetric
///
-public partial class IndexingTimeResponseMetrics
+public partial class IndexingMetric
{
///
- /// Initializes a new instance of the IndexingTimeResponseMetrics class.
+ /// Initializes a new instance of the IndexingMetric class.
///
- public IndexingTimeResponseMetrics()
+ public IndexingMetric()
{
}
@@ -27,7 +27,7 @@ public IndexingTimeResponseMetrics()
/// Gets or Sets Indexing
///
[JsonPropertyName("indexing")]
- public Dictionary> Indexing { get; set; }
+ public Dictionary> Indexing { get; set; }
///
/// Returns the string presentation of the object
@@ -36,7 +36,7 @@ public IndexingTimeResponseMetrics()
public override string ToString()
{
StringBuilder sb = new StringBuilder();
- sb.Append("class IndexingTimeResponseMetrics {\n");
+ sb.Append("class IndexingMetric {\n");
sb.Append(" Indexing: ").Append(Indexing).Append("\n");
sb.Append("}\n");
return sb.ToString();
@@ -58,7 +58,7 @@ public virtual string ToJson()
/// Boolean
public override bool Equals(object obj)
{
- if (obj is not IndexingTimeResponseMetrics input)
+ if (obj is not IndexingMetric input)
{
return false;
}
diff --git a/clients/algoliasearch-client-csharp/algoliasearch/Models/Monitoring/IndexingTimeResponse.cs b/clients/algoliasearch-client-csharp/algoliasearch/Models/Monitoring/IndexingTimeResponse.cs
index f073fc823c..bfe51aac75 100644
--- a/clients/algoliasearch-client-csharp/algoliasearch/Models/Monitoring/IndexingTimeResponse.cs
+++ b/clients/algoliasearch-client-csharp/algoliasearch/Models/Monitoring/IndexingTimeResponse.cs
@@ -27,7 +27,7 @@ public IndexingTimeResponse()
/// Gets or Sets Metrics
///
[JsonPropertyName("metrics")]
- public IndexingTimeResponseMetrics Metrics { get; set; }
+ public IndexingMetric Metrics { get; set; }
///
/// Returns the string presentation of the object
diff --git a/clients/algoliasearch-client-csharp/algoliasearch/Models/Monitoring/InfrastructureResponse.cs b/clients/algoliasearch-client-csharp/algoliasearch/Models/Monitoring/InfrastructureResponse.cs
index 0df36855e9..1bdc045f5b 100644
--- a/clients/algoliasearch-client-csharp/algoliasearch/Models/Monitoring/InfrastructureResponse.cs
+++ b/clients/algoliasearch-client-csharp/algoliasearch/Models/Monitoring/InfrastructureResponse.cs
@@ -27,7 +27,7 @@ public InfrastructureResponse()
/// Gets or Sets Metrics
///
[JsonPropertyName("metrics")]
- public InfrastructureResponseMetrics Metrics { get; set; }
+ public Metrics Metrics { get; set; }
///
/// Returns the string presentation of the object
diff --git a/clients/algoliasearch-client-csharp/algoliasearch/Models/Monitoring/LatencyResponseMetrics.cs b/clients/algoliasearch-client-csharp/algoliasearch/Models/Monitoring/LatencyMetric.cs
similarity index 84%
rename from clients/algoliasearch-client-csharp/algoliasearch/Models/Monitoring/LatencyResponseMetrics.cs
rename to clients/algoliasearch-client-csharp/algoliasearch/Models/Monitoring/LatencyMetric.cs
index 2f0a066379..b28adaaf52 100644
--- a/clients/algoliasearch-client-csharp/algoliasearch/Models/Monitoring/LatencyResponseMetrics.cs
+++ b/clients/algoliasearch-client-csharp/algoliasearch/Models/Monitoring/LatencyMetric.cs
@@ -12,14 +12,14 @@
namespace Algolia.Search.Models.Monitoring;
///
-/// LatencyResponseMetrics
+/// LatencyMetric
///
-public partial class LatencyResponseMetrics
+public partial class LatencyMetric
{
///
- /// Initializes a new instance of the LatencyResponseMetrics class.
+ /// Initializes a new instance of the LatencyMetric class.
///
- public LatencyResponseMetrics()
+ public LatencyMetric()
{
}
@@ -27,7 +27,7 @@ public LatencyResponseMetrics()
/// Gets or Sets Latency
///
[JsonPropertyName("latency")]
- public Dictionary> Latency { get; set; }
+ public Dictionary> Latency { get; set; }
///
/// Returns the string presentation of the object
@@ -36,7 +36,7 @@ public LatencyResponseMetrics()
public override string ToString()
{
StringBuilder sb = new StringBuilder();
- sb.Append("class LatencyResponseMetrics {\n");
+ sb.Append("class LatencyMetric {\n");
sb.Append(" Latency: ").Append(Latency).Append("\n");
sb.Append("}\n");
return sb.ToString();
@@ -58,7 +58,7 @@ public virtual string ToJson()
/// Boolean
public override bool Equals(object obj)
{
- if (obj is not LatencyResponseMetrics input)
+ if (obj is not LatencyMetric input)
{
return false;
}
diff --git a/clients/algoliasearch-client-csharp/algoliasearch/Models/Monitoring/LatencyResponse.cs b/clients/algoliasearch-client-csharp/algoliasearch/Models/Monitoring/LatencyResponse.cs
index af9fe1eda4..e019d685b4 100644
--- a/clients/algoliasearch-client-csharp/algoliasearch/Models/Monitoring/LatencyResponse.cs
+++ b/clients/algoliasearch-client-csharp/algoliasearch/Models/Monitoring/LatencyResponse.cs
@@ -27,7 +27,7 @@ public LatencyResponse()
/// Gets or Sets Metrics
///
[JsonPropertyName("metrics")]
- public LatencyResponseMetrics Metrics { get; set; }
+ public LatencyMetric Metrics { get; set; }
///
/// Returns the string presentation of the object
diff --git a/clients/algoliasearch-client-csharp/algoliasearch/Models/Monitoring/InfrastructureResponseMetrics.cs b/clients/algoliasearch-client-csharp/algoliasearch/Models/Monitoring/Metrics.cs
similarity index 93%
rename from clients/algoliasearch-client-csharp/algoliasearch/Models/Monitoring/InfrastructureResponseMetrics.cs
rename to clients/algoliasearch-client-csharp/algoliasearch/Models/Monitoring/Metrics.cs
index 2685c4353a..e1828add5a 100644
--- a/clients/algoliasearch-client-csharp/algoliasearch/Models/Monitoring/InfrastructureResponseMetrics.cs
+++ b/clients/algoliasearch-client-csharp/algoliasearch/Models/Monitoring/Metrics.cs
@@ -12,14 +12,14 @@
namespace Algolia.Search.Models.Monitoring;
///
-/// InfrastructureResponseMetrics
+/// Metrics
///
-public partial class InfrastructureResponseMetrics
+public partial class Metrics
{
///
- /// Initializes a new instance of the InfrastructureResponseMetrics class.
+ /// Initializes a new instance of the Metrics class.
///
- public InfrastructureResponseMetrics()
+ public Metrics()
{
}
@@ -65,7 +65,7 @@ public InfrastructureResponseMetrics()
public override string ToString()
{
StringBuilder sb = new StringBuilder();
- sb.Append("class InfrastructureResponseMetrics {\n");
+ sb.Append("class Metrics {\n");
sb.Append(" CpuUsage: ").Append(CpuUsage).Append("\n");
sb.Append(" RamIndexingUsage: ").Append(RamIndexingUsage).Append("\n");
sb.Append(" RamSearchUsage: ").Append(RamSearchUsage).Append("\n");
@@ -91,7 +91,7 @@ public virtual string ToJson()
/// Boolean
public override bool Equals(object obj)
{
- if (obj is not InfrastructureResponseMetrics input)
+ if (obj is not Metrics input)
{
return false;
}
diff --git a/clients/algoliasearch-client-csharp/algoliasearch/Models/Monitoring/TimeInner.cs b/clients/algoliasearch-client-csharp/algoliasearch/Models/Monitoring/TimeEntry.cs
similarity index 91%
rename from clients/algoliasearch-client-csharp/algoliasearch/Models/Monitoring/TimeInner.cs
rename to clients/algoliasearch-client-csharp/algoliasearch/Models/Monitoring/TimeEntry.cs
index a65c51f518..2b55e62696 100644
--- a/clients/algoliasearch-client-csharp/algoliasearch/Models/Monitoring/TimeInner.cs
+++ b/clients/algoliasearch-client-csharp/algoliasearch/Models/Monitoring/TimeEntry.cs
@@ -12,14 +12,14 @@
namespace Algolia.Search.Models.Monitoring;
///
-/// TimeInner
+/// TimeEntry
///
-public partial class TimeInner
+public partial class TimeEntry
{
///
- /// Initializes a new instance of the TimeInner class.
+ /// Initializes a new instance of the TimeEntry class.
///
- public TimeInner()
+ public TimeEntry()
{
}
@@ -44,7 +44,7 @@ public TimeInner()
public override string ToString()
{
StringBuilder sb = new StringBuilder();
- sb.Append("class TimeInner {\n");
+ sb.Append("class TimeEntry {\n");
sb.Append(" T: ").Append(T).Append("\n");
sb.Append(" V: ").Append(V).Append("\n");
sb.Append("}\n");
@@ -67,7 +67,7 @@ public virtual string ToJson()
/// Boolean
public override bool Equals(object obj)
{
- if (obj is not TimeInner input)
+ if (obj is not TimeEntry input)
{
return false;
}
diff --git a/clients/algoliasearch-client-csharp/algoliasearch/Models/Monitoring/Unauthorized.cs b/clients/algoliasearch-client-csharp/algoliasearch/Models/Monitoring/Unauthorized.cs
new file mode 100644
index 0000000000..406b27bfc1
--- /dev/null
+++ b/clients/algoliasearch-client-csharp/algoliasearch/Models/Monitoring/Unauthorized.cs
@@ -0,0 +1,88 @@
+//
+// 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.
+//
+using System;
+using System.Text;
+using System.Linq;
+using System.Text.Json.Serialization;
+using System.Collections.Generic;
+using Algolia.Search.Serializer;
+using System.Text.Json;
+
+namespace Algolia.Search.Models.Monitoring;
+
+///
+/// Unauthorized
+///
+public partial class Unauthorized
+{
+ ///
+ /// Initializes a new instance of the Unauthorized class.
+ ///
+ public Unauthorized()
+ {
+ }
+
+ ///
+ /// Gets or Sets Reason
+ ///
+ [JsonPropertyName("reason")]
+ public string Reason { get; set; }
+
+ ///
+ /// Returns the string presentation of the object
+ ///
+ /// String presentation of the object
+ public override string ToString()
+ {
+ StringBuilder sb = new StringBuilder();
+ sb.Append("class Unauthorized {\n");
+ sb.Append(" Reason: ").Append(Reason).Append("\n");
+ sb.Append("}\n");
+ return sb.ToString();
+ }
+
+ ///
+ /// Returns the JSON string presentation of the object
+ ///
+ /// JSON string presentation of the object
+ public virtual string ToJson()
+ {
+ return JsonSerializer.Serialize(this, JsonConfig.Options);
+ }
+
+ ///
+ /// Returns true if objects are equal
+ ///
+ /// Object to be compared
+ /// Boolean
+ public override bool Equals(object obj)
+ {
+ if (obj is not Unauthorized input)
+ {
+ return false;
+ }
+
+ return
+ (Reason == input.Reason || (Reason != null && Reason.Equals(input.Reason)));
+ }
+
+ ///
+ /// Gets the hash code
+ ///
+ /// Hash code
+ public override int GetHashCode()
+ {
+ unchecked // Overflow is fine, just wrap
+ {
+ int hashCode = 41;
+ if (Reason != null)
+ {
+ hashCode = (hashCode * 59) + Reason.GetHashCode();
+ }
+ return hashCode;
+ }
+ }
+
+}
+
diff --git a/clients/algoliasearch-client-csharp/algoliasearch/Models/QuerySuggestions/GetConfigStatus200Response.cs b/clients/algoliasearch-client-csharp/algoliasearch/Models/QuerySuggestions/ConfigStatus.cs
similarity index 93%
rename from clients/algoliasearch-client-csharp/algoliasearch/Models/QuerySuggestions/GetConfigStatus200Response.cs
rename to clients/algoliasearch-client-csharp/algoliasearch/Models/QuerySuggestions/ConfigStatus.cs
index 822490f88b..6c25964859 100644
--- a/clients/algoliasearch-client-csharp/algoliasearch/Models/QuerySuggestions/GetConfigStatus200Response.cs
+++ b/clients/algoliasearch-client-csharp/algoliasearch/Models/QuerySuggestions/ConfigStatus.cs
@@ -12,14 +12,14 @@
namespace Algolia.Search.Models.QuerySuggestions;
///
-/// GetConfigStatus200Response
+/// ConfigStatus
///
-public partial class GetConfigStatus200Response
+public partial class ConfigStatus
{
///
- /// Initializes a new instance of the GetConfigStatus200Response class.
+ /// Initializes a new instance of the ConfigStatus class.
///
- public GetConfigStatus200Response()
+ public ConfigStatus()
{
}
@@ -65,7 +65,7 @@ public GetConfigStatus200Response()
public override string ToString()
{
StringBuilder sb = new StringBuilder();
- sb.Append("class GetConfigStatus200Response {\n");
+ sb.Append("class ConfigStatus {\n");
sb.Append(" IndexName: ").Append(IndexName).Append("\n");
sb.Append(" IsRunning: ").Append(IsRunning).Append("\n");
sb.Append(" LastBuiltAt: ").Append(LastBuiltAt).Append("\n");
@@ -91,7 +91,7 @@ public virtual string ToJson()
/// Boolean
public override bool Equals(object obj)
{
- if (obj is not GetConfigStatus200Response input)
+ if (obj is not ConfigStatus input)
{
return false;
}
diff --git a/clients/algoliasearch-client-csharp/algoliasearch/Models/QuerySuggestions/GetLogFile200Response.cs b/clients/algoliasearch-client-csharp/algoliasearch/Models/QuerySuggestions/LogFile.cs
similarity index 92%
rename from clients/algoliasearch-client-csharp/algoliasearch/Models/QuerySuggestions/GetLogFile200Response.cs
rename to clients/algoliasearch-client-csharp/algoliasearch/Models/QuerySuggestions/LogFile.cs
index a54f24c2d7..656c7bbdc3 100644
--- a/clients/algoliasearch-client-csharp/algoliasearch/Models/QuerySuggestions/GetLogFile200Response.cs
+++ b/clients/algoliasearch-client-csharp/algoliasearch/Models/QuerySuggestions/LogFile.cs
@@ -12,9 +12,9 @@
namespace Algolia.Search.Models.QuerySuggestions;
///
-/// GetLogFile200Response
+/// LogFile
///
-public partial class GetLogFile200Response
+public partial class LogFile
{
///
@@ -23,9 +23,9 @@ public partial class GetLogFile200Response
[JsonPropertyName("level")]
public LogLevel? Level { get; set; }
///
- /// Initializes a new instance of the GetLogFile200Response class.
+ /// Initializes a new instance of the LogFile class.
///
- public GetLogFile200Response()
+ public LogFile()
{
}
@@ -57,7 +57,7 @@ public GetLogFile200Response()
public override string ToString()
{
StringBuilder sb = new StringBuilder();
- sb.Append("class GetLogFile200Response {\n");
+ sb.Append("class LogFile {\n");
sb.Append(" Timestamp: ").Append(Timestamp).Append("\n");
sb.Append(" Level: ").Append(Level).Append("\n");
sb.Append(" Message: ").Append(Message).Append("\n");
@@ -82,7 +82,7 @@ public virtual string ToJson()
/// Boolean
public override bool Equals(object obj)
{
- if (obj is not GetLogFile200Response input)
+ if (obj is not LogFile input)
{
return false;
}
diff --git a/clients/algoliasearch-client-csharp/algoliasearch/Models/Recommend/AroundPrecision.cs b/clients/algoliasearch-client-csharp/algoliasearch/Models/Recommend/AroundPrecision.cs
index e1be7844cf..810ee43b47 100644
--- a/clients/algoliasearch-client-csharp/algoliasearch/Models/Recommend/AroundPrecision.cs
+++ b/clients/algoliasearch-client-csharp/algoliasearch/Models/Recommend/AroundPrecision.cs
@@ -32,10 +32,10 @@ public AroundPrecision(int actualInstance)
///
/// Initializes a new instance of the AroundPrecision class
- /// with a List{AroundPrecisionFromValueInner}
+ /// with a List{Range}
///
- /// An instance of List<AroundPrecisionFromValueInner>.
- public AroundPrecision(List actualInstance)
+ /// An instance of List<Range>.
+ public AroundPrecision(List actualInstance)
{
ActualInstance = actualInstance ?? throw new ArgumentException("Invalid instance found. Must not be null.");
}
@@ -57,13 +57,13 @@ public int AsInt()
}
///
- /// Get the actual instance of `List{AroundPrecisionFromValueInner}`. If the actual instance is not `List{AroundPrecisionFromValueInner}`,
+ /// Get the actual instance of `List{Range}`. If the actual instance is not `List{Range}`,
/// the InvalidClassException will be thrown
///
- /// An instance of List<AroundPrecisionFromValueInner>
- public List AsList()
+ /// An instance of List<Range>
+ public List AsList()
{
- return (List)ActualInstance;
+ return (List)ActualInstance;
}
@@ -77,12 +77,12 @@ public bool IsInt()
}
///
- /// Check if the actual instance is of `List{AroundPrecisionFromValueInner}` type.
+ /// Check if the actual instance is of `List{Range}` type.
///
/// Whether or not the instance is the type
public bool IsList()
{
- return ActualInstance.GetType() == typeof(List);
+ return ActualInstance.GetType() == typeof(List);
}
///
@@ -185,12 +185,12 @@ public override AroundPrecision Read(ref Utf8JsonReader reader, Type typeToConve
{
try
{
- return new AroundPrecision(jsonDocument.Deserialize>(JsonConfig.Options));
+ return new AroundPrecision(jsonDocument.Deserialize>(JsonConfig.Options));
}
catch (Exception exception)
{
// deserialization failed, try the next one
- System.Diagnostics.Debug.WriteLine($"Failed to deserialize into List: {exception}");
+ System.Diagnostics.Debug.WriteLine($"Failed to deserialize into List: {exception}");
}
}
throw new InvalidDataException($"The JSON string cannot be deserialized into any schema defined.");
diff --git a/clients/algoliasearch-client-csharp/algoliasearch/Models/Recommend/AroundPrecisionFromValueInner.cs b/clients/algoliasearch-client-csharp/algoliasearch/Models/Recommend/Range.cs
similarity index 90%
rename from clients/algoliasearch-client-csharp/algoliasearch/Models/Recommend/AroundPrecisionFromValueInner.cs
rename to clients/algoliasearch-client-csharp/algoliasearch/Models/Recommend/Range.cs
index 69ec54d5b3..891de3c082 100644
--- a/clients/algoliasearch-client-csharp/algoliasearch/Models/Recommend/AroundPrecisionFromValueInner.cs
+++ b/clients/algoliasearch-client-csharp/algoliasearch/Models/Recommend/Range.cs
@@ -14,12 +14,12 @@ namespace Algolia.Search.Models.Recommend;
///
/// Range object with lower and upper values in meters to define custom ranges.
///
-public partial class AroundPrecisionFromValueInner
+public partial class Range
{
///
- /// Initializes a new instance of the AroundPrecisionFromValueInner class.
+ /// Initializes a new instance of the Range class.
///
- public AroundPrecisionFromValueInner()
+ public Range()
{
}
@@ -44,7 +44,7 @@ public AroundPrecisionFromValueInner()
public override string ToString()
{
StringBuilder sb = new StringBuilder();
- sb.Append("class AroundPrecisionFromValueInner {\n");
+ sb.Append("class Range {\n");
sb.Append(" From: ").Append(From).Append("\n");
sb.Append(" Value: ").Append(Value).Append("\n");
sb.Append("}\n");
@@ -67,7 +67,7 @@ public virtual string ToJson()
/// Boolean
public override bool Equals(object obj)
{
- if (obj is not AroundPrecisionFromValueInner input)
+ if (obj is not Range input)
{
return false;
}
diff --git a/clients/algoliasearch-client-csharp/algoliasearch/Models/Recommend/RecommendRule.cs b/clients/algoliasearch-client-csharp/algoliasearch/Models/Recommend/RecommendRule.cs
index da1bcb83f3..32ea009a18 100644
--- a/clients/algoliasearch-client-csharp/algoliasearch/Models/Recommend/RecommendRule.cs
+++ b/clients/algoliasearch-client-csharp/algoliasearch/Models/Recommend/RecommendRule.cs
@@ -27,7 +27,7 @@ public RecommendRule()
/// Gets or Sets Metadata
///
[JsonPropertyName("_metadata")]
- public RecommendRuleMetadata Metadata { get; set; }
+ public RuleMetadata Metadata { get; set; }
///
/// Unique identifier of a rule object.
diff --git a/clients/algoliasearch-client-csharp/algoliasearch/Models/Recommend/RedirectRuleIndexMetadataData.cs b/clients/algoliasearch-client-csharp/algoliasearch/Models/Recommend/RedirectRuleIndexData.cs
similarity index 83%
rename from clients/algoliasearch-client-csharp/algoliasearch/Models/Recommend/RedirectRuleIndexMetadataData.cs
rename to clients/algoliasearch-client-csharp/algoliasearch/Models/Recommend/RedirectRuleIndexData.cs
index 109d648cef..bded9b1730 100644
--- a/clients/algoliasearch-client-csharp/algoliasearch/Models/Recommend/RedirectRuleIndexMetadataData.cs
+++ b/clients/algoliasearch-client-csharp/algoliasearch/Models/Recommend/RedirectRuleIndexData.cs
@@ -14,18 +14,18 @@ namespace Algolia.Search.Models.Recommend;
///
/// Redirect rule data.
///
-public partial class RedirectRuleIndexMetadataData
+public partial class RedirectRuleIndexData
{
///
- /// Initializes a new instance of the RedirectRuleIndexMetadataData class.
+ /// Initializes a new instance of the RedirectRuleIndexData class.
///
[JsonConstructor]
- public RedirectRuleIndexMetadataData() { }
+ public RedirectRuleIndexData() { }
///
- /// Initializes a new instance of the RedirectRuleIndexMetadataData class.
+ /// Initializes a new instance of the RedirectRuleIndexData class.
///
/// ruleObjectID (required).
- public RedirectRuleIndexMetadataData(string ruleObjectID)
+ public RedirectRuleIndexData(string ruleObjectID)
{
RuleObjectID = ruleObjectID ?? throw new ArgumentNullException(nameof(ruleObjectID));
}
@@ -43,7 +43,7 @@ public RedirectRuleIndexMetadataData(string ruleObjectID)
public override string ToString()
{
StringBuilder sb = new StringBuilder();
- sb.Append("class RedirectRuleIndexMetadataData {\n");
+ sb.Append("class RedirectRuleIndexData {\n");
sb.Append(" RuleObjectID: ").Append(RuleObjectID).Append("\n");
sb.Append("}\n");
return sb.ToString();
@@ -65,7 +65,7 @@ public virtual string ToJson()
/// Boolean
public override bool Equals(object obj)
{
- if (obj is not RedirectRuleIndexMetadataData input)
+ if (obj is not RedirectRuleIndexData input)
{
return false;
}
diff --git a/clients/algoliasearch-client-csharp/algoliasearch/Models/Recommend/RedirectRuleIndexMetadata.cs b/clients/algoliasearch-client-csharp/algoliasearch/Models/Recommend/RedirectRuleIndexMetadata.cs
index a690580ebd..5e38234c8e 100644
--- a/clients/algoliasearch-client-csharp/algoliasearch/Models/Recommend/RedirectRuleIndexMetadata.cs
+++ b/clients/algoliasearch-client-csharp/algoliasearch/Models/Recommend/RedirectRuleIndexMetadata.cs
@@ -29,7 +29,7 @@ public RedirectRuleIndexMetadata() { }
/// Reason for the redirect rule. (required).
/// Redirect rule status. (required).
/// data (required).
- public RedirectRuleIndexMetadata(string source, string dest, string reason, bool succeed, RedirectRuleIndexMetadataData data)
+ public RedirectRuleIndexMetadata(string source, string dest, string reason, bool succeed, RedirectRuleIndexData data)
{
Source = source ?? throw new ArgumentNullException(nameof(source));
Dest = dest ?? throw new ArgumentNullException(nameof(dest));
@@ -70,7 +70,7 @@ public RedirectRuleIndexMetadata(string source, string dest, string reason, bool
/// Gets or Sets Data
///
[JsonPropertyName("data")]
- public RedirectRuleIndexMetadataData Data { get; set; }
+ public RedirectRuleIndexData Data { get; set; }
///
/// Returns the string presentation of the object
diff --git a/clients/algoliasearch-client-csharp/algoliasearch/Models/Recommend/RecommendRuleMetadata.cs b/clients/algoliasearch-client-csharp/algoliasearch/Models/Recommend/RuleMetadata.cs
similarity index 89%
rename from clients/algoliasearch-client-csharp/algoliasearch/Models/Recommend/RecommendRuleMetadata.cs
rename to clients/algoliasearch-client-csharp/algoliasearch/Models/Recommend/RuleMetadata.cs
index c524ada786..4fdbffa74c 100644
--- a/clients/algoliasearch-client-csharp/algoliasearch/Models/Recommend/RecommendRuleMetadata.cs
+++ b/clients/algoliasearch-client-csharp/algoliasearch/Models/Recommend/RuleMetadata.cs
@@ -14,12 +14,12 @@ namespace Algolia.Search.Models.Recommend;
///
/// Rule metadata.
///
-public partial class RecommendRuleMetadata
+public partial class RuleMetadata
{
///
- /// Initializes a new instance of the RecommendRuleMetadata class.
+ /// Initializes a new instance of the RuleMetadata class.
///
- public RecommendRuleMetadata()
+ public RuleMetadata()
{
}
@@ -37,7 +37,7 @@ public RecommendRuleMetadata()
public override string ToString()
{
StringBuilder sb = new StringBuilder();
- sb.Append("class RecommendRuleMetadata {\n");
+ sb.Append("class RuleMetadata {\n");
sb.Append(" LastUpdate: ").Append(LastUpdate).Append("\n");
sb.Append("}\n");
return sb.ToString();
@@ -59,7 +59,7 @@ public virtual string ToJson()
/// Boolean
public override bool Equals(object obj)
{
- if (obj is not RecommendRuleMetadata input)
+ if (obj is not RuleMetadata input)
{
return false;
}
diff --git a/clients/algoliasearch-client-csharp/algoliasearch/Models/Search/AroundPrecision.cs b/clients/algoliasearch-client-csharp/algoliasearch/Models/Search/AroundPrecision.cs
index 39da18b262..2c6368810c 100644
--- a/clients/algoliasearch-client-csharp/algoliasearch/Models/Search/AroundPrecision.cs
+++ b/clients/algoliasearch-client-csharp/algoliasearch/Models/Search/AroundPrecision.cs
@@ -32,10 +32,10 @@ public AroundPrecision(int actualInstance)
///
/// Initializes a new instance of the AroundPrecision class
- /// with a List{AroundPrecisionFromValueInner}
+ /// with a List{Range}
///
- /// An instance of List<AroundPrecisionFromValueInner>.
- public AroundPrecision(List actualInstance)
+ /// An instance of List<Range>.
+ public AroundPrecision(List actualInstance)
{
ActualInstance = actualInstance ?? throw new ArgumentException("Invalid instance found. Must not be null.");
}
@@ -57,13 +57,13 @@ public int AsInt()
}
///
- /// Get the actual instance of `List{AroundPrecisionFromValueInner}`. If the actual instance is not `List{AroundPrecisionFromValueInner}`,
+ /// Get the actual instance of `List{Range}`. If the actual instance is not `List{Range}`,
/// the InvalidClassException will be thrown
///
- /// An instance of List<AroundPrecisionFromValueInner>
- public List AsList()
+ /// An instance of List<Range>
+ public List AsList()
{
- return (List)ActualInstance;
+ return (List)ActualInstance;
}
@@ -77,12 +77,12 @@ public bool IsInt()
}
///
- /// Check if the actual instance is of `List{AroundPrecisionFromValueInner}` type.
+ /// Check if the actual instance is of `List{Range}` type.
///
/// Whether or not the instance is the type
public bool IsList()
{
- return ActualInstance.GetType() == typeof(List);
+ return ActualInstance.GetType() == typeof(List);
}
///
@@ -185,12 +185,12 @@ public override AroundPrecision Read(ref Utf8JsonReader reader, Type typeToConve
{
try
{
- return new AroundPrecision(jsonDocument.Deserialize>(JsonConfig.Options));
+ return new AroundPrecision(jsonDocument.Deserialize>(JsonConfig.Options));
}
catch (Exception exception)
{
// deserialization failed, try the next one
- System.Diagnostics.Debug.WriteLine($"Failed to deserialize into List: {exception}");
+ System.Diagnostics.Debug.WriteLine($"Failed to deserialize into List: {exception}");
}
}
throw new InvalidDataException($"The JSON string cannot be deserialized into any schema defined.");
diff --git a/clients/algoliasearch-client-csharp/algoliasearch/Models/Search/AroundPrecisionFromValueInner.cs b/clients/algoliasearch-client-csharp/algoliasearch/Models/Search/Range.cs
similarity index 90%
rename from clients/algoliasearch-client-csharp/algoliasearch/Models/Search/AroundPrecisionFromValueInner.cs
rename to clients/algoliasearch-client-csharp/algoliasearch/Models/Search/Range.cs
index da70103ff5..edf1af2b9c 100644
--- a/clients/algoliasearch-client-csharp/algoliasearch/Models/Search/AroundPrecisionFromValueInner.cs
+++ b/clients/algoliasearch-client-csharp/algoliasearch/Models/Search/Range.cs
@@ -14,12 +14,12 @@ namespace Algolia.Search.Models.Search;
///
/// Range object with lower and upper values in meters to define custom ranges.
///
-public partial class AroundPrecisionFromValueInner
+public partial class Range
{
///
- /// Initializes a new instance of the AroundPrecisionFromValueInner class.
+ /// Initializes a new instance of the Range class.
///
- public AroundPrecisionFromValueInner()
+ public Range()
{
}
@@ -44,7 +44,7 @@ public AroundPrecisionFromValueInner()
public override string ToString()
{
StringBuilder sb = new StringBuilder();
- sb.Append("class AroundPrecisionFromValueInner {\n");
+ sb.Append("class Range {\n");
sb.Append(" From: ").Append(From).Append("\n");
sb.Append(" Value: ").Append(Value).Append("\n");
sb.Append("}\n");
@@ -67,7 +67,7 @@ public virtual string ToJson()
/// Boolean
public override bool Equals(object obj)
{
- if (obj is not AroundPrecisionFromValueInner input)
+ if (obj is not Range input)
{
return false;
}
diff --git a/clients/algoliasearch-client-csharp/algoliasearch/Models/Search/RedirectRuleIndexMetadataData.cs b/clients/algoliasearch-client-csharp/algoliasearch/Models/Search/RedirectRuleIndexData.cs
similarity index 83%
rename from clients/algoliasearch-client-csharp/algoliasearch/Models/Search/RedirectRuleIndexMetadataData.cs
rename to clients/algoliasearch-client-csharp/algoliasearch/Models/Search/RedirectRuleIndexData.cs
index e9f2904a45..86acb85e13 100644
--- a/clients/algoliasearch-client-csharp/algoliasearch/Models/Search/RedirectRuleIndexMetadataData.cs
+++ b/clients/algoliasearch-client-csharp/algoliasearch/Models/Search/RedirectRuleIndexData.cs
@@ -14,18 +14,18 @@ namespace Algolia.Search.Models.Search;
///
/// Redirect rule data.
///
-public partial class RedirectRuleIndexMetadataData
+public partial class RedirectRuleIndexData
{
///
- /// Initializes a new instance of the RedirectRuleIndexMetadataData class.
+ /// Initializes a new instance of the RedirectRuleIndexData class.
///
[JsonConstructor]
- public RedirectRuleIndexMetadataData() { }
+ public RedirectRuleIndexData() { }
///
- /// Initializes a new instance of the RedirectRuleIndexMetadataData class.
+ /// Initializes a new instance of the RedirectRuleIndexData class.
///
/// ruleObjectID (required).
- public RedirectRuleIndexMetadataData(string ruleObjectID)
+ public RedirectRuleIndexData(string ruleObjectID)
{
RuleObjectID = ruleObjectID ?? throw new ArgumentNullException(nameof(ruleObjectID));
}
@@ -43,7 +43,7 @@ public RedirectRuleIndexMetadataData(string ruleObjectID)
public override string ToString()
{
StringBuilder sb = new StringBuilder();
- sb.Append("class RedirectRuleIndexMetadataData {\n");
+ sb.Append("class RedirectRuleIndexData {\n");
sb.Append(" RuleObjectID: ").Append(RuleObjectID).Append("\n");
sb.Append("}\n");
return sb.ToString();
@@ -65,7 +65,7 @@ public virtual string ToJson()
/// Boolean
public override bool Equals(object obj)
{
- if (obj is not RedirectRuleIndexMetadataData input)
+ if (obj is not RedirectRuleIndexData input)
{
return false;
}
diff --git a/clients/algoliasearch-client-csharp/algoliasearch/Models/Search/RedirectRuleIndexMetadata.cs b/clients/algoliasearch-client-csharp/algoliasearch/Models/Search/RedirectRuleIndexMetadata.cs
index 90ced0d02a..32faac232f 100644
--- a/clients/algoliasearch-client-csharp/algoliasearch/Models/Search/RedirectRuleIndexMetadata.cs
+++ b/clients/algoliasearch-client-csharp/algoliasearch/Models/Search/RedirectRuleIndexMetadata.cs
@@ -29,7 +29,7 @@ public RedirectRuleIndexMetadata() { }
/// Reason for the redirect rule. (required).
/// Redirect rule status. (required).
/// data (required).
- public RedirectRuleIndexMetadata(string source, string dest, string reason, bool succeed, RedirectRuleIndexMetadataData data)
+ public RedirectRuleIndexMetadata(string source, string dest, string reason, bool succeed, RedirectRuleIndexData data)
{
Source = source ?? throw new ArgumentNullException(nameof(source));
Dest = dest ?? throw new ArgumentNullException(nameof(dest));
@@ -70,7 +70,7 @@ public RedirectRuleIndexMetadata(string source, string dest, string reason, bool
/// Gets or Sets Data
///
[JsonPropertyName("data")]
- public RedirectRuleIndexMetadataData Data { get; set; }
+ public RedirectRuleIndexData Data { get; set; }
///
/// Returns the string presentation of the object
diff --git a/clients/algoliasearch-client-csharp/algoliasearch/Models/Search/SearchParamsString.cs b/clients/algoliasearch-client-csharp/algoliasearch/Models/Search/SearchParamsString.cs
index 48e62e7227..025957c996 100644
--- a/clients/algoliasearch-client-csharp/algoliasearch/Models/Search/SearchParamsString.cs
+++ b/clients/algoliasearch-client-csharp/algoliasearch/Models/Search/SearchParamsString.cs
@@ -12,7 +12,7 @@
namespace Algolia.Search.Models.Search;
///
-/// SearchParamsString
+/// Search parameters as query string.
///
public partial class SearchParamsString
{
diff --git a/clients/algoliasearch-client-csharp/algoliasearch/Models/Usage/GetUsage400ResponseErrorErrorsInner.cs b/clients/algoliasearch-client-csharp/algoliasearch/Models/Usage/ErrorItem.cs
similarity index 85%
rename from clients/algoliasearch-client-csharp/algoliasearch/Models/Usage/GetUsage400ResponseErrorErrorsInner.cs
rename to clients/algoliasearch-client-csharp/algoliasearch/Models/Usage/ErrorItem.cs
index d4d75796f5..511b3d3144 100644
--- a/clients/algoliasearch-client-csharp/algoliasearch/Models/Usage/GetUsage400ResponseErrorErrorsInner.cs
+++ b/clients/algoliasearch-client-csharp/algoliasearch/Models/Usage/ErrorItem.cs
@@ -12,20 +12,20 @@
namespace Algolia.Search.Models.Usage;
///
-/// GetUsage400ResponseErrorErrorsInner
+/// ErrorItem
///
-public partial class GetUsage400ResponseErrorErrorsInner
+public partial class ErrorItem
{
///
- /// Initializes a new instance of the GetUsage400ResponseErrorErrorsInner class.
+ /// Initializes a new instance of the ErrorItem class.
///
[JsonConstructor]
- public GetUsage400ResponseErrorErrorsInner() { }
+ public ErrorItem() { }
///
- /// Initializes a new instance of the GetUsage400ResponseErrorErrorsInner class.
+ /// Initializes a new instance of the ErrorItem class.
///
/// message (required).
- public GetUsage400ResponseErrorErrorsInner(string message)
+ public ErrorItem(string message)
{
Message = message ?? throw new ArgumentNullException(nameof(message));
}
@@ -61,7 +61,7 @@ public GetUsage400ResponseErrorErrorsInner(string message)
public override string ToString()
{
StringBuilder sb = new StringBuilder();
- sb.Append("class GetUsage400ResponseErrorErrorsInner {\n");
+ sb.Append("class ErrorItem {\n");
sb.Append(" Code: ").Append(Code).Append("\n");
sb.Append(" Message: ").Append(Message).Append("\n");
sb.Append(" Line: ").Append(Line).Append("\n");
@@ -86,7 +86,7 @@ public virtual string ToJson()
/// Boolean
public override bool Equals(object obj)
{
- if (obj is not GetUsage400ResponseErrorErrorsInner input)
+ if (obj is not ErrorItem input)
{
return false;
}
diff --git a/clients/algoliasearch-client-csharp/algoliasearch/Models/Usage/GetUsage400Response.cs b/clients/algoliasearch-client-csharp/algoliasearch/Models/Usage/Forbidden.cs
similarity index 82%
rename from clients/algoliasearch-client-csharp/algoliasearch/Models/Usage/GetUsage400Response.cs
rename to clients/algoliasearch-client-csharp/algoliasearch/Models/Usage/Forbidden.cs
index 460e34eddc..00beb3cc35 100644
--- a/clients/algoliasearch-client-csharp/algoliasearch/Models/Usage/GetUsage400Response.cs
+++ b/clients/algoliasearch-client-csharp/algoliasearch/Models/Usage/Forbidden.cs
@@ -12,20 +12,20 @@
namespace Algolia.Search.Models.Usage;
///
-/// GetUsage400Response
+/// Forbidden
///
-public partial class GetUsage400Response
+public partial class Forbidden
{
///
- /// Initializes a new instance of the GetUsage400Response class.
+ /// Initializes a new instance of the Forbidden class.
///
[JsonConstructor]
- public GetUsage400Response() { }
+ public Forbidden() { }
///
- /// Initializes a new instance of the GetUsage400Response class.
+ /// Initializes a new instance of the Forbidden class.
///
/// error (required).
- public GetUsage400Response(GetUsage400ResponseError error)
+ public Forbidden(ForbiddenError error)
{
Error = error ?? throw new ArgumentNullException(nameof(error));
}
@@ -34,7 +34,7 @@ public GetUsage400Response(GetUsage400ResponseError error)
/// Gets or Sets Error
///
[JsonPropertyName("error")]
- public GetUsage400ResponseError Error { get; set; }
+ public ForbiddenError Error { get; set; }
///
/// Returns the string presentation of the object
@@ -43,7 +43,7 @@ public GetUsage400Response(GetUsage400ResponseError error)
public override string ToString()
{
StringBuilder sb = new StringBuilder();
- sb.Append("class GetUsage400Response {\n");
+ sb.Append("class Forbidden {\n");
sb.Append(" Error: ").Append(Error).Append("\n");
sb.Append("}\n");
return sb.ToString();
@@ -65,7 +65,7 @@ public virtual string ToJson()
/// Boolean
public override bool Equals(object obj)
{
- if (obj is not GetUsage400Response input)
+ if (obj is not Forbidden input)
{
return false;
}
diff --git a/clients/algoliasearch-client-csharp/algoliasearch/Models/Usage/GetUsage400ResponseError.cs b/clients/algoliasearch-client-csharp/algoliasearch/Models/Usage/ForbiddenError.cs
similarity index 87%
rename from clients/algoliasearch-client-csharp/algoliasearch/Models/Usage/GetUsage400ResponseError.cs
rename to clients/algoliasearch-client-csharp/algoliasearch/Models/Usage/ForbiddenError.cs
index f1a65210f5..5e51c2c14b 100644
--- a/clients/algoliasearch-client-csharp/algoliasearch/Models/Usage/GetUsage400ResponseError.cs
+++ b/clients/algoliasearch-client-csharp/algoliasearch/Models/Usage/ForbiddenError.cs
@@ -12,14 +12,14 @@
namespace Algolia.Search.Models.Usage;
///
-/// GetUsage400ResponseError
+/// ForbiddenError
///
-public partial class GetUsage400ResponseError
+public partial class ForbiddenError
{
///
- /// Initializes a new instance of the GetUsage400ResponseError class.
+ /// Initializes a new instance of the ForbiddenError class.
///
- public GetUsage400ResponseError()
+ public ForbiddenError()
{
}
@@ -39,7 +39,7 @@ public GetUsage400ResponseError()
/// Gets or Sets Errors
///
[JsonPropertyName("errors")]
- public List Errors { get; set; }
+ public List Errors { get; set; }
///
/// Returns the string presentation of the object
@@ -48,7 +48,7 @@ public GetUsage400ResponseError()
public override string ToString()
{
StringBuilder sb = new StringBuilder();
- sb.Append("class GetUsage400ResponseError {\n");
+ sb.Append("class ForbiddenError {\n");
sb.Append(" Code: ").Append(Code).Append("\n");
sb.Append(" Message: ").Append(Message).Append("\n");
sb.Append(" Errors: ").Append(Errors).Append("\n");
@@ -72,7 +72,7 @@ public virtual string ToJson()
/// Boolean
public override bool Equals(object obj)
{
- if (obj is not GetUsage400ResponseError input)
+ if (obj is not ForbiddenError input)
{
return false;
}
diff --git a/clients/algoliasearch-client-csharp/algoliasearch/Models/Usage/GetUsage200Response.cs b/clients/algoliasearch-client-csharp/algoliasearch/Models/Usage/IndexUsage.cs
similarity index 85%
rename from clients/algoliasearch-client-csharp/algoliasearch/Models/Usage/GetUsage200Response.cs
rename to clients/algoliasearch-client-csharp/algoliasearch/Models/Usage/IndexUsage.cs
index 54f1288ee3..62201065a0 100644
--- a/clients/algoliasearch-client-csharp/algoliasearch/Models/Usage/GetUsage200Response.cs
+++ b/clients/algoliasearch-client-csharp/algoliasearch/Models/Usage/IndexUsage.cs
@@ -12,14 +12,14 @@
namespace Algolia.Search.Models.Usage;
///
-/// GetUsage200Response
+/// IndexUsage
///
-public partial class GetUsage200Response
+public partial class IndexUsage
{
///
- /// Initializes a new instance of the GetUsage200Response class.
+ /// Initializes a new instance of the IndexUsage class.
///
- public GetUsage200Response()
+ public IndexUsage()
{
}
@@ -27,7 +27,7 @@ public GetUsage200Response()
/// Gets or Sets Statistics
///
[JsonPropertyName("statistics")]
- public List Statistics { get; set; }
+ public List Statistics { get; set; }
///
/// Returns the string presentation of the object
@@ -36,7 +36,7 @@ public GetUsage200Response()
public override string ToString()
{
StringBuilder sb = new StringBuilder();
- sb.Append("class GetUsage200Response {\n");
+ sb.Append("class IndexUsage {\n");
sb.Append(" Statistics: ").Append(Statistics).Append("\n");
sb.Append("}\n");
return sb.ToString();
@@ -58,7 +58,7 @@ public virtual string ToJson()
/// Boolean
public override bool Equals(object obj)
{
- if (obj is not GetUsage200Response input)
+ if (obj is not IndexUsage input)
{
return false;
}
diff --git a/clients/algoliasearch-client-csharp/algoliasearch/Models/Usage/InvalidRequest.cs b/clients/algoliasearch-client-csharp/algoliasearch/Models/Usage/InvalidRequest.cs
new file mode 100644
index 0000000000..2b9fe531ce
--- /dev/null
+++ b/clients/algoliasearch-client-csharp/algoliasearch/Models/Usage/InvalidRequest.cs
@@ -0,0 +1,95 @@
+//
+// 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.
+//
+using System;
+using System.Text;
+using System.Linq;
+using System.Text.Json.Serialization;
+using System.Collections.Generic;
+using Algolia.Search.Serializer;
+using System.Text.Json;
+
+namespace Algolia.Search.Models.Usage;
+
+///
+/// InvalidRequest
+///
+public partial class InvalidRequest
+{
+ ///
+ /// Initializes a new instance of the InvalidRequest class.
+ ///
+ [JsonConstructor]
+ public InvalidRequest() { }
+ ///
+ /// Initializes a new instance of the InvalidRequest class.
+ ///
+ /// error (required).
+ public InvalidRequest(InvalidRequestError error)
+ {
+ Error = error ?? throw new ArgumentNullException(nameof(error));
+ }
+
+ ///
+ /// Gets or Sets Error
+ ///
+ [JsonPropertyName("error")]
+ public InvalidRequestError Error { get; set; }
+
+ ///
+ /// Returns the string presentation of the object
+ ///
+ /// String presentation of the object
+ public override string ToString()
+ {
+ StringBuilder sb = new StringBuilder();
+ sb.Append("class InvalidRequest {\n");
+ sb.Append(" Error: ").Append(Error).Append("\n");
+ sb.Append("}\n");
+ return sb.ToString();
+ }
+
+ ///
+ /// Returns the JSON string presentation of the object
+ ///
+ /// JSON string presentation of the object
+ public virtual string ToJson()
+ {
+ return JsonSerializer.Serialize(this, JsonConfig.Options);
+ }
+
+ ///
+ /// Returns true if objects are equal
+ ///
+ /// Object to be compared
+ /// Boolean
+ public override bool Equals(object obj)
+ {
+ if (obj is not InvalidRequest input)
+ {
+ return false;
+ }
+
+ return
+ (Error == input.Error || (Error != null && Error.Equals(input.Error)));
+ }
+
+ ///
+ /// Gets the hash code
+ ///
+ /// Hash code
+ public override int GetHashCode()
+ {
+ unchecked // Overflow is fine, just wrap
+ {
+ int hashCode = 41;
+ if (Error != null)
+ {
+ hashCode = (hashCode * 59) + Error.GetHashCode();
+ }
+ return hashCode;
+ }
+ }
+
+}
+
diff --git a/clients/algoliasearch-client-csharp/algoliasearch/Models/Usage/InvalidRequestError.cs b/clients/algoliasearch-client-csharp/algoliasearch/Models/Usage/InvalidRequestError.cs
new file mode 100644
index 0000000000..0ed688da7b
--- /dev/null
+++ b/clients/algoliasearch-client-csharp/algoliasearch/Models/Usage/InvalidRequestError.cs
@@ -0,0 +1,112 @@
+//
+// 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.
+//
+using System;
+using System.Text;
+using System.Linq;
+using System.Text.Json.Serialization;
+using System.Collections.Generic;
+using Algolia.Search.Serializer;
+using System.Text.Json;
+
+namespace Algolia.Search.Models.Usage;
+
+///
+/// InvalidRequestError
+///
+public partial class InvalidRequestError
+{
+ ///
+ /// Initializes a new instance of the InvalidRequestError class.
+ ///
+ public InvalidRequestError()
+ {
+ }
+
+ ///
+ /// Gets or Sets Code
+ ///
+ [JsonPropertyName("code")]
+ public string Code { get; set; }
+
+ ///
+ /// Gets or Sets Message
+ ///
+ [JsonPropertyName("message")]
+ public string Message { get; set; }
+
+ ///
+ /// Gets or Sets Errors
+ ///
+ [JsonPropertyName("errors")]
+ public List Errors { get; set; }
+
+ ///
+ /// Returns the string presentation of the object
+ ///
+ /// String presentation of the object
+ public override string ToString()
+ {
+ StringBuilder sb = new StringBuilder();
+ sb.Append("class InvalidRequestError {\n");
+ sb.Append(" Code: ").Append(Code).Append("\n");
+ sb.Append(" Message: ").Append(Message).Append("\n");
+ sb.Append(" Errors: ").Append(Errors).Append("\n");
+ sb.Append("}\n");
+ return sb.ToString();
+ }
+
+ ///
+ /// Returns the JSON string presentation of the object
+ ///
+ /// JSON string presentation of the object
+ public virtual string ToJson()
+ {
+ return JsonSerializer.Serialize(this, JsonConfig.Options);
+ }
+
+ ///
+ /// Returns true if objects are equal
+ ///
+ /// Object to be compared
+ /// Boolean
+ public override bool Equals(object obj)
+ {
+ if (obj is not InvalidRequestError input)
+ {
+ return false;
+ }
+
+ return
+ (Code == input.Code || (Code != null && Code.Equals(input.Code))) &&
+ (Message == input.Message || (Message != null && Message.Equals(input.Message))) &&
+ (Errors == input.Errors || Errors != null && input.Errors != null && Errors.SequenceEqual(input.Errors));
+ }
+
+ ///
+ /// Gets the hash code
+ ///
+ /// Hash code
+ public override int GetHashCode()
+ {
+ unchecked // Overflow is fine, just wrap
+ {
+ int hashCode = 41;
+ if (Code != null)
+ {
+ hashCode = (hashCode * 59) + Code.GetHashCode();
+ }
+ if (Message != null)
+ {
+ hashCode = (hashCode * 59) + Message.GetHashCode();
+ }
+ if (Errors != null)
+ {
+ hashCode = (hashCode * 59) + Errors.GetHashCode();
+ }
+ return hashCode;
+ }
+ }
+
+}
+
diff --git a/clients/algoliasearch-client-csharp/algoliasearch/Models/Usage/GetUsage200ResponseStatisticsInner.cs b/clients/algoliasearch-client-csharp/algoliasearch/Models/Usage/StatisticEntry.cs
similarity index 86%
rename from clients/algoliasearch-client-csharp/algoliasearch/Models/Usage/GetUsage200ResponseStatisticsInner.cs
rename to clients/algoliasearch-client-csharp/algoliasearch/Models/Usage/StatisticEntry.cs
index 846f06d6ec..b63da7b61b 100644
--- a/clients/algoliasearch-client-csharp/algoliasearch/Models/Usage/GetUsage200ResponseStatisticsInner.cs
+++ b/clients/algoliasearch-client-csharp/algoliasearch/Models/Usage/StatisticEntry.cs
@@ -12,14 +12,14 @@
namespace Algolia.Search.Models.Usage;
///
-/// GetUsage200ResponseStatisticsInner
+/// StatisticEntry
///
-public partial class GetUsage200ResponseStatisticsInner
+public partial class StatisticEntry
{
///
- /// Initializes a new instance of the GetUsage200ResponseStatisticsInner class.
+ /// Initializes a new instance of the StatisticEntry class.
///
- public GetUsage200ResponseStatisticsInner()
+ public StatisticEntry()
{
}
@@ -43,7 +43,7 @@ public GetUsage200ResponseStatisticsInner()
public override string ToString()
{
StringBuilder sb = new StringBuilder();
- sb.Append("class GetUsage200ResponseStatisticsInner {\n");
+ sb.Append("class StatisticEntry {\n");
sb.Append(" T: ").Append(T).Append("\n");
sb.Append(" V: ").Append(V).Append("\n");
sb.Append("}\n");
@@ -66,7 +66,7 @@ public virtual string ToJson()
/// Boolean
public override bool Equals(object obj)
{
- if (obj is not GetUsage200ResponseStatisticsInner input)
+ if (obj is not StatisticEntry input)
{
return false;
}
diff --git a/clients/algoliasearch-client-dart/packages/algoliasearch/lib/algoliasearch_lite.dart b/clients/algoliasearch-client-dart/packages/algoliasearch/lib/algoliasearch_lite.dart
index 8830ca686a..4ef055975a 100644
--- a/clients/algoliasearch-client-dart/packages/algoliasearch/lib/algoliasearch_lite.dart
+++ b/clients/algoliasearch-client-dart/packages/algoliasearch/lib/algoliasearch_lite.dart
@@ -9,7 +9,6 @@ export 'src/model/acl.dart';
export 'src/model/advanced_syntax_features.dart';
export 'src/model/alternatives_as_exact.dart';
export 'src/model/api_key.dart';
-export 'src/model/around_precision_from_value_inner.dart';
export 'src/model/around_radius_all.dart';
export 'src/model/automatic_facet_filter.dart';
export 'src/model/base_get_api_key_response.dart';
@@ -53,6 +52,7 @@ export 'src/model/mode.dart';
export 'src/model/params.dart';
export 'src/model/personalization.dart';
export 'src/model/query_type.dart';
+export 'src/model/range.dart';
export 'src/model/ranking_info.dart';
export 'src/model/recommend_hit.dart';
export 'src/model/recommendations_hits.dart';
@@ -61,8 +61,8 @@ export 'src/model/recommended_for_you.dart';
export 'src/model/recommended_for_you_model.dart';
export 'src/model/recommended_for_you_query.dart';
export 'src/model/redirect.dart';
+export 'src/model/redirect_rule_index_data.dart';
export 'src/model/redirect_rule_index_metadata.dart';
-export 'src/model/redirect_rule_index_metadata_data.dart';
export 'src/model/redirect_url.dart';
export 'src/model/related_model.dart';
export 'src/model/related_products.dart';
diff --git a/clients/algoliasearch-client-dart/packages/algoliasearch/lib/src/deserialize.dart b/clients/algoliasearch-client-dart/packages/algoliasearch/lib/src/deserialize.dart
index dbf5bba5c4..2ef3823dd6 100644
--- a/clients/algoliasearch-client-dart/packages/algoliasearch/lib/src/deserialize.dart
+++ b/clients/algoliasearch-client-dart/packages/algoliasearch/lib/src/deserialize.dart
@@ -2,7 +2,6 @@ import 'package:algoliasearch/src/model/acl.dart';
import 'package:algoliasearch/src/model/advanced_syntax_features.dart';
import 'package:algoliasearch/src/model/alternatives_as_exact.dart';
import 'package:algoliasearch/src/model/api_key.dart';
-import 'package:algoliasearch/src/model/around_precision_from_value_inner.dart';
import 'package:algoliasearch/src/model/around_radius_all.dart';
import 'package:algoliasearch/src/model/automatic_facet_filter.dart';
import 'package:algoliasearch/src/model/base_get_api_key_response.dart';
@@ -46,6 +45,7 @@ import 'package:algoliasearch/src/model/mode.dart';
import 'package:algoliasearch/src/model/params.dart';
import 'package:algoliasearch/src/model/personalization.dart';
import 'package:algoliasearch/src/model/query_type.dart';
+import 'package:algoliasearch/src/model/range.dart';
import 'package:algoliasearch/src/model/ranking_info.dart';
import 'package:algoliasearch/src/model/recommend_hit.dart';
import 'package:algoliasearch/src/model/recommendations_hits.dart';
@@ -54,8 +54,8 @@ import 'package:algoliasearch/src/model/recommended_for_you.dart';
import 'package:algoliasearch/src/model/recommended_for_you_model.dart';
import 'package:algoliasearch/src/model/recommended_for_you_query.dart';
import 'package:algoliasearch/src/model/redirect.dart';
+import 'package:algoliasearch/src/model/redirect_rule_index_data.dart';
import 'package:algoliasearch/src/model/redirect_rule_index_metadata.dart';
-import 'package:algoliasearch/src/model/redirect_rule_index_metadata_data.dart';
import 'package:algoliasearch/src/model/redirect_url.dart';
import 'package:algoliasearch/src/model/related_model.dart';
import 'package:algoliasearch/src/model/related_products.dart';
@@ -121,9 +121,6 @@ ReturnType deserialize(dynamic value, String targetType,
return AlternativesAsExact.fromJson(value) as ReturnType;
case 'ApiKey':
return ApiKey.fromJson(value as Map) as ReturnType;
- case 'AroundPrecisionFromValueInner':
- return AroundPrecisionFromValueInner.fromJson(
- value as Map) as ReturnType;
case 'AroundRadiusAll':
return AroundRadiusAll.fromJson(value) as ReturnType;
case 'AutomaticFacetFilter':
@@ -236,6 +233,8 @@ ReturnType deserialize(dynamic value, String targetType,
as ReturnType;
case 'QueryType':
return QueryType.fromJson(value) as ReturnType;
+ case 'Range':
+ return Range.fromJson(value as Map) as ReturnType;
case 'RankingInfo':
return RankingInfo.fromJson(value as Map) as ReturnType;
case 'RecommendHit':
@@ -256,12 +255,12 @@ ReturnType deserialize(dynamic value, String targetType,
as ReturnType;
case 'Redirect':
return Redirect.fromJson(value as Map) as ReturnType;
+ case 'RedirectRuleIndexData':
+ return RedirectRuleIndexData.fromJson(value as Map)
+ as ReturnType;
case 'RedirectRuleIndexMetadata':
return RedirectRuleIndexMetadata.fromJson(value as Map)
as ReturnType;
- case 'RedirectRuleIndexMetadataData':
- return RedirectRuleIndexMetadataData.fromJson(
- value as Map) as ReturnType;
case 'RedirectURL':
return RedirectURL.fromJson(value as Map) as ReturnType;
case 'RelatedModel':
diff --git a/clients/algoliasearch-client-dart/packages/algoliasearch/lib/src/model/base_search_params.dart b/clients/algoliasearch-client-dart/packages/algoliasearch/lib/src/model/base_search_params.dart
index 3baf3359fa..2fb3991c41 100644
--- a/clients/algoliasearch-client-dart/packages/algoliasearch/lib/src/model/base_search_params.dart
+++ b/clients/algoliasearch-client-dart/packages/algoliasearch/lib/src/model/base_search_params.dart
@@ -130,7 +130,7 @@ final class BaseSearchParams {
final dynamic aroundRadius;
/// One of types:
- /// - [List]
+ /// - [List]
/// - [int]
@JsonKey(name: r'aroundPrecision')
final dynamic aroundPrecision;
diff --git a/clients/algoliasearch-client-dart/packages/algoliasearch/lib/src/model/base_search_params_without_query.dart b/clients/algoliasearch-client-dart/packages/algoliasearch/lib/src/model/base_search_params_without_query.dart
index 7d91ad7b14..e75567a400 100644
--- a/clients/algoliasearch-client-dart/packages/algoliasearch/lib/src/model/base_search_params_without_query.dart
+++ b/clients/algoliasearch-client-dart/packages/algoliasearch/lib/src/model/base_search_params_without_query.dart
@@ -125,7 +125,7 @@ final class BaseSearchParamsWithoutQuery {
final dynamic aroundRadius;
/// One of types:
- /// - [List]
+ /// - [List]
/// - [int]
@JsonKey(name: r'aroundPrecision')
final dynamic aroundPrecision;
diff --git a/clients/algoliasearch-client-dart/packages/algoliasearch/lib/src/model/browse_params_object.dart b/clients/algoliasearch-client-dart/packages/algoliasearch/lib/src/model/browse_params_object.dart
index a27195e7f8..f2c38f1165 100644
--- a/clients/algoliasearch-client-dart/packages/algoliasearch/lib/src/model/browse_params_object.dart
+++ b/clients/algoliasearch-client-dart/packages/algoliasearch/lib/src/model/browse_params_object.dart
@@ -183,7 +183,7 @@ final class BrowseParamsObject {
final dynamic aroundRadius;
/// One of types:
- /// - [List]
+ /// - [List]
/// - [int]
@JsonKey(name: r'aroundPrecision')
final dynamic aroundPrecision;
diff --git a/clients/algoliasearch-client-dart/packages/algoliasearch/lib/src/model/consequence_params.dart b/clients/algoliasearch-client-dart/packages/algoliasearch/lib/src/model/consequence_params.dart
index df7b2b8e2e..4117f93466 100644
--- a/clients/algoliasearch-client-dart/packages/algoliasearch/lib/src/model/consequence_params.dart
+++ b/clients/algoliasearch-client-dart/packages/algoliasearch/lib/src/model/consequence_params.dart
@@ -180,7 +180,7 @@ final class ConsequenceParams {
final dynamic aroundRadius;
/// One of types:
- /// - [List]
+ /// - [List]
/// - [int]
@JsonKey(name: r'aroundPrecision')
final dynamic aroundPrecision;
diff --git a/clients/algoliasearch-client-dart/packages/algoliasearch/lib/src/model/fallback_params.dart b/clients/algoliasearch-client-dart/packages/algoliasearch/lib/src/model/fallback_params.dart
index cf5ba7ff39..4091ceaad6 100644
--- a/clients/algoliasearch-client-dart/packages/algoliasearch/lib/src/model/fallback_params.dart
+++ b/clients/algoliasearch-client-dart/packages/algoliasearch/lib/src/model/fallback_params.dart
@@ -182,7 +182,7 @@ final class FallbackParams {
final dynamic aroundRadius;
/// One of types:
- /// - [List]
+ /// - [List]
/// - [int]
@JsonKey(name: r'aroundPrecision')
final dynamic aroundPrecision;
diff --git a/clients/algoliasearch-client-dart/packages/client_search/lib/src/model/around_precision_from_value_inner.dart b/clients/algoliasearch-client-dart/packages/algoliasearch/lib/src/model/range.dart
similarity index 63%
rename from clients/algoliasearch-client-dart/packages/client_search/lib/src/model/around_precision_from_value_inner.dart
rename to clients/algoliasearch-client-dart/packages/algoliasearch/lib/src/model/range.dart
index b426c8727f..029577a5df 100644
--- a/clients/algoliasearch-client-dart/packages/client_search/lib/src/model/around_precision_from_value_inner.dart
+++ b/clients/algoliasearch-client-dart/packages/algoliasearch/lib/src/model/range.dart
@@ -3,12 +3,12 @@
import 'package:json_annotation/json_annotation.dart';
-part 'around_precision_from_value_inner.g.dart';
+part 'range.g.dart';
@JsonSerializable()
-final class AroundPrecisionFromValueInner {
- /// Returns a new [AroundPrecisionFromValueInner] instance.
- const AroundPrecisionFromValueInner({
+final class Range {
+ /// Returns a new [Range] instance.
+ const Range({
this.from,
this.value,
});
@@ -24,17 +24,14 @@ final class AroundPrecisionFromValueInner {
@override
bool operator ==(Object other) =>
identical(this, other) ||
- other is AroundPrecisionFromValueInner &&
- other.from == from &&
- other.value == value;
+ other is Range && other.from == from && other.value == value;
@override
int get hashCode => from.hashCode + value.hashCode;
- factory AroundPrecisionFromValueInner.fromJson(Map json) =>
- _$AroundPrecisionFromValueInnerFromJson(json);
+ factory Range.fromJson(Map json) => _$RangeFromJson(json);
- Map toJson() => _$AroundPrecisionFromValueInnerToJson(this);
+ Map toJson() => _$RangeToJson(this);
@override
String toString() {
diff --git a/clients/algoliasearch-client-dart/packages/client_recommend/lib/src/model/around_precision_from_value_inner.g.dart b/clients/algoliasearch-client-dart/packages/algoliasearch/lib/src/model/range.g.dart
similarity index 65%
rename from clients/algoliasearch-client-dart/packages/client_recommend/lib/src/model/around_precision_from_value_inner.g.dart
rename to clients/algoliasearch-client-dart/packages/algoliasearch/lib/src/model/range.g.dart
index 026e0551d3..223e9bd02e 100644
--- a/clients/algoliasearch-client-dart/packages/client_recommend/lib/src/model/around_precision_from_value_inner.g.dart
+++ b/clients/algoliasearch-client-dart/packages/algoliasearch/lib/src/model/range.g.dart
@@ -1,18 +1,16 @@
// GENERATED CODE - DO NOT MODIFY BY HAND
-part of 'around_precision_from_value_inner.dart';
+part of 'range.dart';
// **************************************************************************
// JsonSerializableGenerator
// **************************************************************************
-AroundPrecisionFromValueInner _$AroundPrecisionFromValueInnerFromJson(
- Map json) =>
- $checkedCreate(
- 'AroundPrecisionFromValueInner',
+Range _$RangeFromJson(Map json) => $checkedCreate(
+ 'Range',
json,
($checkedConvert) {
- final val = AroundPrecisionFromValueInner(
+ final val = Range(
from: $checkedConvert('from', (v) => (v as num?)?.toInt()),
value: $checkedConvert('value', (v) => (v as num?)?.toInt()),
);
@@ -20,8 +18,7 @@ AroundPrecisionFromValueInner _$AroundPrecisionFromValueInnerFromJson(
},
);
-Map _$AroundPrecisionFromValueInnerToJson(
- AroundPrecisionFromValueInner instance) {
+Map _$RangeToJson(Range instance) {
final val = {};
void writeNotNull(String key, dynamic value) {
diff --git a/clients/algoliasearch-client-dart/packages/client_recommend/lib/src/model/redirect_rule_index_metadata_data.dart b/clients/algoliasearch-client-dart/packages/algoliasearch/lib/src/model/redirect_rule_index_data.dart
similarity index 54%
rename from clients/algoliasearch-client-dart/packages/client_recommend/lib/src/model/redirect_rule_index_metadata_data.dart
rename to clients/algoliasearch-client-dart/packages/algoliasearch/lib/src/model/redirect_rule_index_data.dart
index f9bba71211..55f0f0e368 100644
--- a/clients/algoliasearch-client-dart/packages/client_recommend/lib/src/model/redirect_rule_index_metadata_data.dart
+++ b/clients/algoliasearch-client-dart/packages/algoliasearch/lib/src/model/redirect_rule_index_data.dart
@@ -3,12 +3,12 @@
import 'package:json_annotation/json_annotation.dart';
-part 'redirect_rule_index_metadata_data.g.dart';
+part 'redirect_rule_index_data.g.dart';
@JsonSerializable()
-final class RedirectRuleIndexMetadataData {
- /// Returns a new [RedirectRuleIndexMetadataData] instance.
- const RedirectRuleIndexMetadataData({
+final class RedirectRuleIndexData {
+ /// Returns a new [RedirectRuleIndexData] instance.
+ const RedirectRuleIndexData({
required this.ruleObjectID,
});
@@ -18,16 +18,15 @@ final class RedirectRuleIndexMetadataData {
@override
bool operator ==(Object other) =>
identical(this, other) ||
- other is RedirectRuleIndexMetadataData &&
- other.ruleObjectID == ruleObjectID;
+ other is RedirectRuleIndexData && other.ruleObjectID == ruleObjectID;
@override
int get hashCode => ruleObjectID.hashCode;
- factory RedirectRuleIndexMetadataData.fromJson(Map json) =>
- _$RedirectRuleIndexMetadataDataFromJson(json);
+ factory RedirectRuleIndexData.fromJson(Map json) =>
+ _$RedirectRuleIndexDataFromJson(json);
- Map toJson() => _$RedirectRuleIndexMetadataDataToJson(this);
+ Map toJson() => _$RedirectRuleIndexDataToJson(this);
@override
String toString() {
diff --git a/clients/algoliasearch-client-dart/packages/client_recommend/lib/src/model/redirect_rule_index_metadata_data.g.dart b/clients/algoliasearch-client-dart/packages/algoliasearch/lib/src/model/redirect_rule_index_data.g.dart
similarity index 62%
rename from clients/algoliasearch-client-dart/packages/client_recommend/lib/src/model/redirect_rule_index_metadata_data.g.dart
rename to clients/algoliasearch-client-dart/packages/algoliasearch/lib/src/model/redirect_rule_index_data.g.dart
index c994c4ce10..a038eb9225 100644
--- a/clients/algoliasearch-client-dart/packages/client_recommend/lib/src/model/redirect_rule_index_metadata_data.g.dart
+++ b/clients/algoliasearch-client-dart/packages/algoliasearch/lib/src/model/redirect_rule_index_data.g.dart
@@ -1,26 +1,26 @@
// GENERATED CODE - DO NOT MODIFY BY HAND
-part of 'redirect_rule_index_metadata_data.dart';
+part of 'redirect_rule_index_data.dart';
// **************************************************************************
// JsonSerializableGenerator
// **************************************************************************
-RedirectRuleIndexMetadataData _$RedirectRuleIndexMetadataDataFromJson(
+RedirectRuleIndexData _$RedirectRuleIndexDataFromJson(
Map json) =>
$checkedCreate(
- 'RedirectRuleIndexMetadataData',
+ 'RedirectRuleIndexData',
json,
($checkedConvert) {
- final val = RedirectRuleIndexMetadataData(
+ final val = RedirectRuleIndexData(
ruleObjectID: $checkedConvert('ruleObjectID', (v) => v as String),
);
return val;
},
);
-Map _$RedirectRuleIndexMetadataDataToJson(
- RedirectRuleIndexMetadataData instance) =>
+Map _$RedirectRuleIndexDataToJson(
+ RedirectRuleIndexData instance) =>
{
'ruleObjectID': instance.ruleObjectID,
};
diff --git a/clients/algoliasearch-client-dart/packages/algoliasearch/lib/src/model/redirect_rule_index_metadata.dart b/clients/algoliasearch-client-dart/packages/algoliasearch/lib/src/model/redirect_rule_index_metadata.dart
index 8b4934f870..58af1438dc 100644
--- a/clients/algoliasearch-client-dart/packages/algoliasearch/lib/src/model/redirect_rule_index_metadata.dart
+++ b/clients/algoliasearch-client-dart/packages/algoliasearch/lib/src/model/redirect_rule_index_metadata.dart
@@ -1,6 +1,6 @@
// 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.
// ignore_for_file: unused_element
-import 'package:algoliasearch/src/model/redirect_rule_index_metadata_data.dart';
+import 'package:algoliasearch/src/model/redirect_rule_index_data.dart';
import 'package:json_annotation/json_annotation.dart';
@@ -34,7 +34,7 @@ final class RedirectRuleIndexMetadata {
final bool succeed;
@JsonKey(name: r'data')
- final RedirectRuleIndexMetadataData data;
+ final RedirectRuleIndexData data;
@override
bool operator ==(Object other) =>
diff --git a/clients/algoliasearch-client-dart/packages/algoliasearch/lib/src/model/redirect_rule_index_metadata.g.dart b/clients/algoliasearch-client-dart/packages/algoliasearch/lib/src/model/redirect_rule_index_metadata.g.dart
index d2e1897f87..91cb7e5991 100644
--- a/clients/algoliasearch-client-dart/packages/algoliasearch/lib/src/model/redirect_rule_index_metadata.g.dart
+++ b/clients/algoliasearch-client-dart/packages/algoliasearch/lib/src/model/redirect_rule_index_metadata.g.dart
@@ -17,10 +17,8 @@ RedirectRuleIndexMetadata _$RedirectRuleIndexMetadataFromJson(
dest: $checkedConvert('dest', (v) => v as String),
reason: $checkedConvert('reason', (v) => v as String),
succeed: $checkedConvert('succeed', (v) => v as bool),
- data: $checkedConvert(
- 'data',
- (v) => RedirectRuleIndexMetadataData.fromJson(
- v as Map)),
+ data: $checkedConvert('data',
+ (v) => RedirectRuleIndexData.fromJson(v as Map)),
);
return val;
},
diff --git a/clients/algoliasearch-client-dart/packages/algoliasearch/lib/src/model/search_for_facets.dart b/clients/algoliasearch-client-dart/packages/algoliasearch/lib/src/model/search_for_facets.dart
index 0e9ba3a974..90e219873a 100644
--- a/clients/algoliasearch-client-dart/packages/algoliasearch/lib/src/model/search_for_facets.dart
+++ b/clients/algoliasearch-client-dart/packages/algoliasearch/lib/src/model/search_for_facets.dart
@@ -187,7 +187,7 @@ final class SearchForFacets {
final dynamic aroundRadius;
/// One of types:
- /// - [List]
+ /// - [List]
/// - [int]
@JsonKey(name: r'aroundPrecision')
final dynamic aroundPrecision;
diff --git a/clients/algoliasearch-client-dart/packages/algoliasearch/lib/src/model/search_for_hits.dart b/clients/algoliasearch-client-dart/packages/algoliasearch/lib/src/model/search_for_hits.dart
index 7710edc354..60925794b8 100644
--- a/clients/algoliasearch-client-dart/packages/algoliasearch/lib/src/model/search_for_hits.dart
+++ b/clients/algoliasearch-client-dart/packages/algoliasearch/lib/src/model/search_for_hits.dart
@@ -185,7 +185,7 @@ final class SearchForHits {
final dynamic aroundRadius;
/// One of types:
- /// - [List]
+ /// - [List]
/// - [int]
@JsonKey(name: r'aroundPrecision')
final dynamic aroundPrecision;
diff --git a/clients/algoliasearch-client-dart/packages/algoliasearch/lib/src/model/search_params.dart b/clients/algoliasearch-client-dart/packages/algoliasearch/lib/src/model/search_params.dart
index b9d29c45b1..7ad1bf1802 100644
--- a/clients/algoliasearch-client-dart/packages/algoliasearch/lib/src/model/search_params.dart
+++ b/clients/algoliasearch-client-dart/packages/algoliasearch/lib/src/model/search_params.dart
@@ -182,7 +182,7 @@ final class SearchParams {
final dynamic aroundRadius;
/// One of types:
- /// - [List]
+ /// - [List]
/// - [int]
@JsonKey(name: r'aroundPrecision')
final dynamic aroundPrecision;
diff --git a/clients/algoliasearch-client-dart/packages/algoliasearch/lib/src/model/search_params_object.dart b/clients/algoliasearch-client-dart/packages/algoliasearch/lib/src/model/search_params_object.dart
index 65bdb5629a..87f9af398b 100644
--- a/clients/algoliasearch-client-dart/packages/algoliasearch/lib/src/model/search_params_object.dart
+++ b/clients/algoliasearch-client-dart/packages/algoliasearch/lib/src/model/search_params_object.dart
@@ -182,7 +182,7 @@ final class SearchParamsObject {
final dynamic aroundRadius;
/// One of types:
- /// - [List]
+ /// - [List]
/// - [int]
@JsonKey(name: r'aroundPrecision')
final dynamic aroundPrecision;
diff --git a/clients/algoliasearch-client-dart/packages/client_recommend/lib/algolia_client_recommend.dart b/clients/algoliasearch-client-dart/packages/client_recommend/lib/algolia_client_recommend.dart
index 53141f935f..9880b6a87e 100644
--- a/clients/algoliasearch-client-dart/packages/client_recommend/lib/algolia_client_recommend.dart
+++ b/clients/algoliasearch-client-dart/packages/client_recommend/lib/algolia_client_recommend.dart
@@ -7,7 +7,6 @@ export 'src/api/recommend_client.dart';
export 'src/model/advanced_syntax_features.dart';
export 'src/model/alternatives_as_exact.dart';
-export 'src/model/around_precision_from_value_inner.dart';
export 'src/model/around_radius_all.dart';
export 'src/model/auto_facet_filter.dart';
export 'src/model/base_recommend_request.dart';
@@ -43,25 +42,26 @@ export 'src/model/params_consequence.dart';
export 'src/model/personalization.dart';
export 'src/model/promote_consequence_object.dart';
export 'src/model/query_type.dart';
+export 'src/model/range.dart';
export 'src/model/ranking_info.dart';
export 'src/model/recommend_hit.dart';
export 'src/model/recommend_models.dart';
export 'src/model/recommend_rule.dart';
-export 'src/model/recommend_rule_metadata.dart';
export 'src/model/recommendations_hits.dart';
export 'src/model/recommendations_results.dart';
export 'src/model/recommended_for_you.dart';
export 'src/model/recommended_for_you_model.dart';
export 'src/model/recommended_for_you_query.dart';
export 'src/model/redirect.dart';
+export 'src/model/redirect_rule_index_data.dart';
export 'src/model/redirect_rule_index_metadata.dart';
-export 'src/model/redirect_rule_index_metadata_data.dart';
export 'src/model/redirect_url.dart';
export 'src/model/related_model.dart';
export 'src/model/related_products.dart';
export 'src/model/related_query.dart';
export 'src/model/remove_words_if_no_results.dart';
export 'src/model/rendering_content.dart';
+export 'src/model/rule_metadata.dart';
export 'src/model/search_pagination.dart';
export 'src/model/search_params.dart';
export 'src/model/search_params_object.dart';
diff --git a/clients/algoliasearch-client-dart/packages/client_recommend/lib/src/deserialize.dart b/clients/algoliasearch-client-dart/packages/client_recommend/lib/src/deserialize.dart
index 54ab8bb6f2..d65bec024b 100644
--- a/clients/algoliasearch-client-dart/packages/client_recommend/lib/src/deserialize.dart
+++ b/clients/algoliasearch-client-dart/packages/client_recommend/lib/src/deserialize.dart
@@ -1,6 +1,5 @@
import 'package:algolia_client_recommend/src/model/advanced_syntax_features.dart';
import 'package:algolia_client_recommend/src/model/alternatives_as_exact.dart';
-import 'package:algolia_client_recommend/src/model/around_precision_from_value_inner.dart';
import 'package:algolia_client_recommend/src/model/around_radius_all.dart';
import 'package:algolia_client_recommend/src/model/auto_facet_filter.dart';
import 'package:algolia_client_recommend/src/model/base_recommend_request.dart';
@@ -36,25 +35,26 @@ import 'package:algolia_client_recommend/src/model/params_consequence.dart';
import 'package:algolia_client_recommend/src/model/personalization.dart';
import 'package:algolia_client_recommend/src/model/promote_consequence_object.dart';
import 'package:algolia_client_recommend/src/model/query_type.dart';
+import 'package:algolia_client_recommend/src/model/range.dart';
import 'package:algolia_client_recommend/src/model/ranking_info.dart';
import 'package:algolia_client_recommend/src/model/recommend_hit.dart';
import 'package:algolia_client_recommend/src/model/recommend_models.dart';
import 'package:algolia_client_recommend/src/model/recommend_rule.dart';
-import 'package:algolia_client_recommend/src/model/recommend_rule_metadata.dart';
import 'package:algolia_client_recommend/src/model/recommendations_hits.dart';
import 'package:algolia_client_recommend/src/model/recommendations_results.dart';
import 'package:algolia_client_recommend/src/model/recommended_for_you.dart';
import 'package:algolia_client_recommend/src/model/recommended_for_you_model.dart';
import 'package:algolia_client_recommend/src/model/recommended_for_you_query.dart';
import 'package:algolia_client_recommend/src/model/redirect.dart';
+import 'package:algolia_client_recommend/src/model/redirect_rule_index_data.dart';
import 'package:algolia_client_recommend/src/model/redirect_rule_index_metadata.dart';
-import 'package:algolia_client_recommend/src/model/redirect_rule_index_metadata_data.dart';
import 'package:algolia_client_recommend/src/model/redirect_url.dart';
import 'package:algolia_client_recommend/src/model/related_model.dart';
import 'package:algolia_client_recommend/src/model/related_products.dart';
import 'package:algolia_client_recommend/src/model/related_query.dart';
import 'package:algolia_client_recommend/src/model/remove_words_if_no_results.dart';
import 'package:algolia_client_recommend/src/model/rendering_content.dart';
+import 'package:algolia_client_recommend/src/model/rule_metadata.dart';
import 'package:algolia_client_recommend/src/model/search_pagination.dart';
import 'package:algolia_client_recommend/src/model/search_params.dart';
import 'package:algolia_client_recommend/src/model/search_params_object.dart';
@@ -99,9 +99,6 @@ ReturnType deserialize(dynamic value, String targetType,
return AdvancedSyntaxFeatures.fromJson(value) as ReturnType;
case 'AlternativesAsExact':
return AlternativesAsExact.fromJson(value) as ReturnType;
- case 'AroundPrecisionFromValueInner':
- return AroundPrecisionFromValueInner.fromJson(
- value as Map) as ReturnType;
case 'AroundRadiusAll':
return AroundRadiusAll.fromJson(value) as ReturnType;
case 'AutoFacetFilter':
@@ -194,6 +191,8 @@ ReturnType deserialize(dynamic value, String targetType,
as ReturnType;
case 'QueryType':
return QueryType.fromJson(value) as ReturnType;
+ case 'Range':
+ return Range.fromJson(value as Map) as ReturnType;
case 'RankingInfo':
return RankingInfo.fromJson(value as Map) as ReturnType;
case 'RecommendHit':
@@ -203,9 +202,6 @@ ReturnType deserialize(dynamic value, String targetType,
case 'RecommendRule':
return RecommendRule.fromJson(value as Map)
as ReturnType;
- case 'RecommendRuleMetadata':
- return RecommendRuleMetadata.fromJson(value as Map)
- as ReturnType;
case 'RecommendationsHits':
return RecommendationsHits.fromJson(value as Map)
as ReturnType;
@@ -222,12 +218,12 @@ ReturnType deserialize(dynamic value, String targetType,
as ReturnType;
case 'Redirect':
return Redirect.fromJson(value as Map) as ReturnType;
+ case 'RedirectRuleIndexData':
+ return RedirectRuleIndexData.fromJson(value as Map)
+ as ReturnType;
case 'RedirectRuleIndexMetadata':
return RedirectRuleIndexMetadata.fromJson(value as Map)
as ReturnType;
- case 'RedirectRuleIndexMetadataData':
- return RedirectRuleIndexMetadataData.fromJson(
- value as Map) as ReturnType;
case 'RedirectURL':
return RedirectURL.fromJson(value as Map) as ReturnType;
case 'RelatedModel':
@@ -242,6 +238,8 @@ ReturnType deserialize(dynamic value, String targetType,
case 'RenderingContent':
return RenderingContent.fromJson(value as Map)
as ReturnType;
+ case 'RuleMetadata':
+ return RuleMetadata.fromJson(value as Map) as ReturnType;
case 'SearchPagination':
return SearchPagination.fromJson(value as Map)
as ReturnType;
diff --git a/clients/algoliasearch-client-dart/packages/client_recommend/lib/src/model/base_search_params.dart b/clients/algoliasearch-client-dart/packages/client_recommend/lib/src/model/base_search_params.dart
index 340cfc79c8..0804061fd4 100644
--- a/clients/algoliasearch-client-dart/packages/client_recommend/lib/src/model/base_search_params.dart
+++ b/clients/algoliasearch-client-dart/packages/client_recommend/lib/src/model/base_search_params.dart
@@ -130,7 +130,7 @@ final class BaseSearchParams {
final dynamic aroundRadius;
/// One of types:
- /// - [List]
+ /// - [List]
/// - [int]
@JsonKey(name: r'aroundPrecision')
final dynamic aroundPrecision;
diff --git a/clients/algoliasearch-client-dart/packages/client_recommend/lib/src/model/base_search_params_without_query.dart b/clients/algoliasearch-client-dart/packages/client_recommend/lib/src/model/base_search_params_without_query.dart
index 982fba8f77..adeb385877 100644
--- a/clients/algoliasearch-client-dart/packages/client_recommend/lib/src/model/base_search_params_without_query.dart
+++ b/clients/algoliasearch-client-dart/packages/client_recommend/lib/src/model/base_search_params_without_query.dart
@@ -125,7 +125,7 @@ final class BaseSearchParamsWithoutQuery {
final dynamic aroundRadius;
/// One of types:
- /// - [List]
+ /// - [List]
/// - [int]
@JsonKey(name: r'aroundPrecision')
final dynamic aroundPrecision;
diff --git a/clients/algoliasearch-client-dart/packages/client_recommend/lib/src/model/fallback_params.dart b/clients/algoliasearch-client-dart/packages/client_recommend/lib/src/model/fallback_params.dart
index 154a3a4cbc..e139409f2b 100644
--- a/clients/algoliasearch-client-dart/packages/client_recommend/lib/src/model/fallback_params.dart
+++ b/clients/algoliasearch-client-dart/packages/client_recommend/lib/src/model/fallback_params.dart
@@ -182,7 +182,7 @@ final class FallbackParams {
final dynamic aroundRadius;
/// One of types:
- /// - [List]
+ /// - [List]
/// - [int]
@JsonKey(name: r'aroundPrecision')
final dynamic aroundPrecision;
diff --git a/clients/algoliasearch-client-dart/packages/algoliasearch/lib/src/model/around_precision_from_value_inner.dart b/clients/algoliasearch-client-dart/packages/client_recommend/lib/src/model/range.dart
similarity index 63%
rename from clients/algoliasearch-client-dart/packages/algoliasearch/lib/src/model/around_precision_from_value_inner.dart
rename to clients/algoliasearch-client-dart/packages/client_recommend/lib/src/model/range.dart
index b426c8727f..029577a5df 100644
--- a/clients/algoliasearch-client-dart/packages/algoliasearch/lib/src/model/around_precision_from_value_inner.dart
+++ b/clients/algoliasearch-client-dart/packages/client_recommend/lib/src/model/range.dart
@@ -3,12 +3,12 @@
import 'package:json_annotation/json_annotation.dart';
-part 'around_precision_from_value_inner.g.dart';
+part 'range.g.dart';
@JsonSerializable()
-final class AroundPrecisionFromValueInner {
- /// Returns a new [AroundPrecisionFromValueInner] instance.
- const AroundPrecisionFromValueInner({
+final class Range {
+ /// Returns a new [Range] instance.
+ const Range({
this.from,
this.value,
});
@@ -24,17 +24,14 @@ final class AroundPrecisionFromValueInner {
@override
bool operator ==(Object other) =>
identical(this, other) ||
- other is AroundPrecisionFromValueInner &&
- other.from == from &&
- other.value == value;
+ other is Range && other.from == from && other.value == value;
@override
int get hashCode => from.hashCode + value.hashCode;
- factory AroundPrecisionFromValueInner.fromJson(Map json) =>
- _$AroundPrecisionFromValueInnerFromJson(json);
+ factory Range.fromJson(Map json) => _$RangeFromJson(json);
- Map toJson() => _$AroundPrecisionFromValueInnerToJson(this);
+ Map toJson() => _$RangeToJson(this);
@override
String toString() {
diff --git a/clients/algoliasearch-client-dart/packages/algoliasearch/lib/src/model/around_precision_from_value_inner.g.dart b/clients/algoliasearch-client-dart/packages/client_recommend/lib/src/model/range.g.dart
similarity index 65%
rename from clients/algoliasearch-client-dart/packages/algoliasearch/lib/src/model/around_precision_from_value_inner.g.dart
rename to clients/algoliasearch-client-dart/packages/client_recommend/lib/src/model/range.g.dart
index 026e0551d3..223e9bd02e 100644
--- a/clients/algoliasearch-client-dart/packages/algoliasearch/lib/src/model/around_precision_from_value_inner.g.dart
+++ b/clients/algoliasearch-client-dart/packages/client_recommend/lib/src/model/range.g.dart
@@ -1,18 +1,16 @@
// GENERATED CODE - DO NOT MODIFY BY HAND
-part of 'around_precision_from_value_inner.dart';
+part of 'range.dart';
// **************************************************************************
// JsonSerializableGenerator
// **************************************************************************
-AroundPrecisionFromValueInner _$AroundPrecisionFromValueInnerFromJson(
- Map json) =>
- $checkedCreate(
- 'AroundPrecisionFromValueInner',
+Range _$RangeFromJson(Map json) => $checkedCreate(
+ 'Range',
json,
($checkedConvert) {
- final val = AroundPrecisionFromValueInner(
+ final val = Range(
from: $checkedConvert('from', (v) => (v as num?)?.toInt()),
value: $checkedConvert('value', (v) => (v as num?)?.toInt()),
);
@@ -20,8 +18,7 @@ AroundPrecisionFromValueInner _$AroundPrecisionFromValueInnerFromJson(
},
);
-Map _$AroundPrecisionFromValueInnerToJson(
- AroundPrecisionFromValueInner instance) {
+Map _$RangeToJson(Range instance) {
final val = {};
void writeNotNull(String key, dynamic value) {
diff --git a/clients/algoliasearch-client-dart/packages/client_recommend/lib/src/model/recommend_rule.dart b/clients/algoliasearch-client-dart/packages/client_recommend/lib/src/model/recommend_rule.dart
index f81bd9c859..a8500168f7 100644
--- a/clients/algoliasearch-client-dart/packages/client_recommend/lib/src/model/recommend_rule.dart
+++ b/clients/algoliasearch-client-dart/packages/client_recommend/lib/src/model/recommend_rule.dart
@@ -1,7 +1,7 @@
// 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.
// ignore_for_file: unused_element
-import 'package:algolia_client_recommend/src/model/recommend_rule_metadata.dart';
import 'package:algolia_client_recommend/src/model/condition.dart';
+import 'package:algolia_client_recommend/src/model/rule_metadata.dart';
import 'package:algolia_client_recommend/src/model/consequence.dart';
import 'package:json_annotation/json_annotation.dart';
@@ -21,7 +21,7 @@ final class RecommendRule {
});
@JsonKey(name: r'_metadata')
- final RecommendRuleMetadata? metadata;
+ final RuleMetadata? metadata;
/// Unique identifier of a rule object.
@JsonKey(name: r'objectID')
diff --git a/clients/algoliasearch-client-dart/packages/client_recommend/lib/src/model/recommend_rule.g.dart b/clients/algoliasearch-client-dart/packages/client_recommend/lib/src/model/recommend_rule.g.dart
index b04850c798..d62bdfe882 100644
--- a/clients/algoliasearch-client-dart/packages/client_recommend/lib/src/model/recommend_rule.g.dart
+++ b/clients/algoliasearch-client-dart/packages/client_recommend/lib/src/model/recommend_rule.g.dart
@@ -16,7 +16,7 @@ RecommendRule _$RecommendRuleFromJson(Map json) =>
'_metadata',
(v) => v == null
? null
- : RecommendRuleMetadata.fromJson(v as Map)),
+ : RuleMetadata.fromJson(v as Map)),
objectID: $checkedConvert('objectID', (v) => v as String?),
condition: $checkedConvert(
'condition',
diff --git a/clients/algoliasearch-client-dart/packages/algoliasearch/lib/src/model/redirect_rule_index_metadata_data.dart b/clients/algoliasearch-client-dart/packages/client_recommend/lib/src/model/redirect_rule_index_data.dart
similarity index 54%
rename from clients/algoliasearch-client-dart/packages/algoliasearch/lib/src/model/redirect_rule_index_metadata_data.dart
rename to clients/algoliasearch-client-dart/packages/client_recommend/lib/src/model/redirect_rule_index_data.dart
index f9bba71211..55f0f0e368 100644
--- a/clients/algoliasearch-client-dart/packages/algoliasearch/lib/src/model/redirect_rule_index_metadata_data.dart
+++ b/clients/algoliasearch-client-dart/packages/client_recommend/lib/src/model/redirect_rule_index_data.dart
@@ -3,12 +3,12 @@
import 'package:json_annotation/json_annotation.dart';
-part 'redirect_rule_index_metadata_data.g.dart';
+part 'redirect_rule_index_data.g.dart';
@JsonSerializable()
-final class RedirectRuleIndexMetadataData {
- /// Returns a new [RedirectRuleIndexMetadataData] instance.
- const RedirectRuleIndexMetadataData({
+final class RedirectRuleIndexData {
+ /// Returns a new [RedirectRuleIndexData] instance.
+ const RedirectRuleIndexData({
required this.ruleObjectID,
});
@@ -18,16 +18,15 @@ final class RedirectRuleIndexMetadataData {
@override
bool operator ==(Object other) =>
identical(this, other) ||
- other is RedirectRuleIndexMetadataData &&
- other.ruleObjectID == ruleObjectID;
+ other is RedirectRuleIndexData && other.ruleObjectID == ruleObjectID;
@override
int get hashCode => ruleObjectID.hashCode;
- factory RedirectRuleIndexMetadataData.fromJson(Map json) =>
- _$RedirectRuleIndexMetadataDataFromJson(json);
+ factory RedirectRuleIndexData.fromJson(Map json) =>
+ _$RedirectRuleIndexDataFromJson(json);
- Map toJson() => _$RedirectRuleIndexMetadataDataToJson(this);
+ Map toJson() => _$RedirectRuleIndexDataToJson(this);
@override
String toString() {
diff --git a/clients/algoliasearch-client-dart/packages/client_search/lib/src/model/redirect_rule_index_metadata_data.g.dart b/clients/algoliasearch-client-dart/packages/client_recommend/lib/src/model/redirect_rule_index_data.g.dart
similarity index 62%
rename from clients/algoliasearch-client-dart/packages/client_search/lib/src/model/redirect_rule_index_metadata_data.g.dart
rename to clients/algoliasearch-client-dart/packages/client_recommend/lib/src/model/redirect_rule_index_data.g.dart
index c994c4ce10..a038eb9225 100644
--- a/clients/algoliasearch-client-dart/packages/client_search/lib/src/model/redirect_rule_index_metadata_data.g.dart
+++ b/clients/algoliasearch-client-dart/packages/client_recommend/lib/src/model/redirect_rule_index_data.g.dart
@@ -1,26 +1,26 @@
// GENERATED CODE - DO NOT MODIFY BY HAND
-part of 'redirect_rule_index_metadata_data.dart';
+part of 'redirect_rule_index_data.dart';
// **************************************************************************
// JsonSerializableGenerator
// **************************************************************************
-RedirectRuleIndexMetadataData _$RedirectRuleIndexMetadataDataFromJson(
+RedirectRuleIndexData _$RedirectRuleIndexDataFromJson(
Map json) =>
$checkedCreate(
- 'RedirectRuleIndexMetadataData',
+ 'RedirectRuleIndexData',
json,
($checkedConvert) {
- final val = RedirectRuleIndexMetadataData(
+ final val = RedirectRuleIndexData(
ruleObjectID: $checkedConvert('ruleObjectID', (v) => v as String),
);
return val;
},
);
-Map _$RedirectRuleIndexMetadataDataToJson(
- RedirectRuleIndexMetadataData instance) =>
+Map _$RedirectRuleIndexDataToJson(
+ RedirectRuleIndexData instance) =>
{
'ruleObjectID': instance.ruleObjectID,
};
diff --git a/clients/algoliasearch-client-dart/packages/client_recommend/lib/src/model/redirect_rule_index_metadata.dart b/clients/algoliasearch-client-dart/packages/client_recommend/lib/src/model/redirect_rule_index_metadata.dart
index 9ac021c011..0358abcaea 100644
--- a/clients/algoliasearch-client-dart/packages/client_recommend/lib/src/model/redirect_rule_index_metadata.dart
+++ b/clients/algoliasearch-client-dart/packages/client_recommend/lib/src/model/redirect_rule_index_metadata.dart
@@ -1,6 +1,6 @@
// 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.
// ignore_for_file: unused_element
-import 'package:algolia_client_recommend/src/model/redirect_rule_index_metadata_data.dart';
+import 'package:algolia_client_recommend/src/model/redirect_rule_index_data.dart';
import 'package:json_annotation/json_annotation.dart';
@@ -34,7 +34,7 @@ final class RedirectRuleIndexMetadata {
final bool succeed;
@JsonKey(name: r'data')
- final RedirectRuleIndexMetadataData data;
+ final RedirectRuleIndexData data;
@override
bool operator ==(Object other) =>
diff --git a/clients/algoliasearch-client-dart/packages/client_recommend/lib/src/model/redirect_rule_index_metadata.g.dart b/clients/algoliasearch-client-dart/packages/client_recommend/lib/src/model/redirect_rule_index_metadata.g.dart
index d2e1897f87..91cb7e5991 100644
--- a/clients/algoliasearch-client-dart/packages/client_recommend/lib/src/model/redirect_rule_index_metadata.g.dart
+++ b/clients/algoliasearch-client-dart/packages/client_recommend/lib/src/model/redirect_rule_index_metadata.g.dart
@@ -17,10 +17,8 @@ RedirectRuleIndexMetadata _$RedirectRuleIndexMetadataFromJson(
dest: $checkedConvert('dest', (v) => v as String),
reason: $checkedConvert('reason', (v) => v as String),
succeed: $checkedConvert('succeed', (v) => v as bool),
- data: $checkedConvert(
- 'data',
- (v) => RedirectRuleIndexMetadataData.fromJson(
- v as Map)),
+ data: $checkedConvert('data',
+ (v) => RedirectRuleIndexData.fromJson(v as Map)),
);
return val;
},
diff --git a/clients/algoliasearch-client-dart/packages/client_recommend/lib/src/model/recommend_rule_metadata.dart b/clients/algoliasearch-client-dart/packages/client_recommend/lib/src/model/rule_metadata.dart
similarity index 61%
rename from clients/algoliasearch-client-dart/packages/client_recommend/lib/src/model/recommend_rule_metadata.dart
rename to clients/algoliasearch-client-dart/packages/client_recommend/lib/src/model/rule_metadata.dart
index 2f01ee3f81..0ddcfdb7c6 100644
--- a/clients/algoliasearch-client-dart/packages/client_recommend/lib/src/model/recommend_rule_metadata.dart
+++ b/clients/algoliasearch-client-dart/packages/client_recommend/lib/src/model/rule_metadata.dart
@@ -3,12 +3,12 @@
import 'package:json_annotation/json_annotation.dart';
-part 'recommend_rule_metadata.g.dart';
+part 'rule_metadata.g.dart';
@JsonSerializable()
-final class RecommendRuleMetadata {
- /// Returns a new [RecommendRuleMetadata] instance.
- const RecommendRuleMetadata({
+final class RuleMetadata {
+ /// Returns a new [RuleMetadata] instance.
+ const RuleMetadata({
this.lastUpdate,
});
@@ -19,15 +19,15 @@ final class RecommendRuleMetadata {
@override
bool operator ==(Object other) =>
identical(this, other) ||
- other is RecommendRuleMetadata && other.lastUpdate == lastUpdate;
+ other is RuleMetadata && other.lastUpdate == lastUpdate;
@override
int get hashCode => lastUpdate.hashCode;
- factory RecommendRuleMetadata.fromJson(Map json) =>
- _$RecommendRuleMetadataFromJson(json);
+ factory RuleMetadata.fromJson(Map json) =>
+ _$RuleMetadataFromJson(json);
- Map toJson() => _$RecommendRuleMetadataToJson(this);
+ Map toJson() => _$RuleMetadataToJson(this);
@override
String toString() {
diff --git a/clients/algoliasearch-client-dart/packages/client_recommend/lib/src/model/recommend_rule_metadata.g.dart b/clients/algoliasearch-client-dart/packages/client_recommend/lib/src/model/rule_metadata.g.dart
similarity index 67%
rename from clients/algoliasearch-client-dart/packages/client_recommend/lib/src/model/recommend_rule_metadata.g.dart
rename to clients/algoliasearch-client-dart/packages/client_recommend/lib/src/model/rule_metadata.g.dart
index 30dcaaff20..518d3aeaf1 100644
--- a/clients/algoliasearch-client-dart/packages/client_recommend/lib/src/model/recommend_rule_metadata.g.dart
+++ b/clients/algoliasearch-client-dart/packages/client_recommend/lib/src/model/rule_metadata.g.dart
@@ -1,26 +1,24 @@
// GENERATED CODE - DO NOT MODIFY BY HAND
-part of 'recommend_rule_metadata.dart';
+part of 'rule_metadata.dart';
// **************************************************************************
// JsonSerializableGenerator
// **************************************************************************
-RecommendRuleMetadata _$RecommendRuleMetadataFromJson(
- Map json) =>
+RuleMetadata _$RuleMetadataFromJson(Map json) =>
$checkedCreate(
- 'RecommendRuleMetadata',
+ 'RuleMetadata',
json,
($checkedConvert) {
- final val = RecommendRuleMetadata(
+ final val = RuleMetadata(
lastUpdate: $checkedConvert('lastUpdate', (v) => v as String?),
);
return val;
},
);
-Map _$RecommendRuleMetadataToJson(
- RecommendRuleMetadata instance) {
+Map _$RuleMetadataToJson(RuleMetadata instance) {
final val = {};
void writeNotNull(String key, dynamic value) {
diff --git a/clients/algoliasearch-client-dart/packages/client_recommend/lib/src/model/search_params.dart b/clients/algoliasearch-client-dart/packages/client_recommend/lib/src/model/search_params.dart
index a648ca4959..f86353606b 100644
--- a/clients/algoliasearch-client-dart/packages/client_recommend/lib/src/model/search_params.dart
+++ b/clients/algoliasearch-client-dart/packages/client_recommend/lib/src/model/search_params.dart
@@ -182,7 +182,7 @@ final class SearchParams {
final dynamic aroundRadius;
/// One of types:
- /// - [List]
+ /// - [List]
/// - [int]
@JsonKey(name: r'aroundPrecision')
final dynamic aroundPrecision;
diff --git a/clients/algoliasearch-client-dart/packages/client_recommend/lib/src/model/search_params_object.dart b/clients/algoliasearch-client-dart/packages/client_recommend/lib/src/model/search_params_object.dart
index f3d0664750..134903a24e 100644
--- a/clients/algoliasearch-client-dart/packages/client_recommend/lib/src/model/search_params_object.dart
+++ b/clients/algoliasearch-client-dart/packages/client_recommend/lib/src/model/search_params_object.dart
@@ -182,7 +182,7 @@ final class SearchParamsObject {
final dynamic aroundRadius;
/// One of types:
- /// - [List]
+ /// - [List]
/// - [int]
@JsonKey(name: r'aroundPrecision')
final dynamic aroundPrecision;
diff --git a/clients/algoliasearch-client-dart/packages/client_search/lib/algolia_client_search.dart b/clients/algoliasearch-client-dart/packages/client_search/lib/algolia_client_search.dart
index 944b6439b6..0cb5134e2c 100644
--- a/clients/algoliasearch-client-dart/packages/client_search/lib/algolia_client_search.dart
+++ b/clients/algoliasearch-client-dart/packages/client_search/lib/algolia_client_search.dart
@@ -13,7 +13,6 @@ export 'src/model/alternatives_as_exact.dart';
export 'src/model/anchoring.dart';
export 'src/model/api_key.dart';
export 'src/model/api_key_operation.dart';
-export 'src/model/around_precision_from_value_inner.dart';
export 'src/model/around_radius_all.dart';
export 'src/model/assign_user_id_params.dart';
export 'src/model/automatic_facet_filter.dart';
@@ -94,10 +93,11 @@ export 'src/model/personalization.dart';
export 'src/model/promote_object_id.dart';
export 'src/model/promote_object_ids.dart';
export 'src/model/query_type.dart';
+export 'src/model/range.dart';
export 'src/model/ranking_info.dart';
export 'src/model/redirect.dart';
+export 'src/model/redirect_rule_index_data.dart';
export 'src/model/redirect_rule_index_metadata.dart';
-export 'src/model/redirect_rule_index_metadata_data.dart';
export 'src/model/redirect_url.dart';
export 'src/model/remove_user_id_response.dart';
export 'src/model/remove_words_if_no_results.dart';
diff --git a/clients/algoliasearch-client-dart/packages/client_search/lib/src/deserialize.dart b/clients/algoliasearch-client-dart/packages/client_search/lib/src/deserialize.dart
index c4fefcede3..4299423243 100644
--- a/clients/algoliasearch-client-dart/packages/client_search/lib/src/deserialize.dart
+++ b/clients/algoliasearch-client-dart/packages/client_search/lib/src/deserialize.dart
@@ -6,7 +6,6 @@ import 'package:algolia_client_search/src/model/alternatives_as_exact.dart';
import 'package:algolia_client_search/src/model/anchoring.dart';
import 'package:algolia_client_search/src/model/api_key.dart';
import 'package:algolia_client_search/src/model/api_key_operation.dart';
-import 'package:algolia_client_search/src/model/around_precision_from_value_inner.dart';
import 'package:algolia_client_search/src/model/around_radius_all.dart';
import 'package:algolia_client_search/src/model/assign_user_id_params.dart';
import 'package:algolia_client_search/src/model/automatic_facet_filter.dart';
@@ -87,10 +86,11 @@ import 'package:algolia_client_search/src/model/personalization.dart';
import 'package:algolia_client_search/src/model/promote_object_id.dart';
import 'package:algolia_client_search/src/model/promote_object_ids.dart';
import 'package:algolia_client_search/src/model/query_type.dart';
+import 'package:algolia_client_search/src/model/range.dart';
import 'package:algolia_client_search/src/model/ranking_info.dart';
import 'package:algolia_client_search/src/model/redirect.dart';
+import 'package:algolia_client_search/src/model/redirect_rule_index_data.dart';
import 'package:algolia_client_search/src/model/redirect_rule_index_metadata.dart';
-import 'package:algolia_client_search/src/model/redirect_rule_index_metadata_data.dart';
import 'package:algolia_client_search/src/model/redirect_url.dart';
import 'package:algolia_client_search/src/model/remove_user_id_response.dart';
import 'package:algolia_client_search/src/model/remove_words_if_no_results.dart';
@@ -185,9 +185,6 @@ ReturnType deserialize(dynamic value, String targetType,
return ApiKey.fromJson(value as Map) as ReturnType;
case 'ApiKeyOperation':
return ApiKeyOperation.fromJson(value) as ReturnType;
- case 'AroundPrecisionFromValueInner':
- return AroundPrecisionFromValueInner.fromJson(
- value as Map) as ReturnType;
case 'AroundRadiusAll':
return AroundRadiusAll.fromJson(value) as ReturnType;
case 'AssignUserIdParams':
@@ -399,16 +396,18 @@ ReturnType deserialize(dynamic value, String targetType,
as ReturnType;
case 'QueryType':
return QueryType.fromJson(value) as ReturnType;
+ case 'Range':
+ return Range.fromJson(value as Map) as ReturnType;
case 'RankingInfo':
return RankingInfo.fromJson(value as Map) as ReturnType;
case 'Redirect':
return Redirect.fromJson(value as Map) as ReturnType;
+ case 'RedirectRuleIndexData':
+ return RedirectRuleIndexData.fromJson(value as Map)
+ as ReturnType;
case 'RedirectRuleIndexMetadata':
return RedirectRuleIndexMetadata.fromJson(value as Map)
as ReturnType;
- case 'RedirectRuleIndexMetadataData':
- return RedirectRuleIndexMetadataData.fromJson(
- value as Map) as ReturnType;
case 'RedirectURL':
return RedirectURL.fromJson(value as Map) as ReturnType;
case 'RemoveUserIdResponse':
diff --git a/clients/algoliasearch-client-dart/packages/client_search/lib/src/model/base_search_params.dart b/clients/algoliasearch-client-dart/packages/client_search/lib/src/model/base_search_params.dart
index 7613849303..7208b6dfe1 100644
--- a/clients/algoliasearch-client-dart/packages/client_search/lib/src/model/base_search_params.dart
+++ b/clients/algoliasearch-client-dart/packages/client_search/lib/src/model/base_search_params.dart
@@ -130,7 +130,7 @@ final class BaseSearchParams {
final dynamic aroundRadius;
/// One of types:
- /// - [List]
+ /// - [List]
/// - [int]
@JsonKey(name: r'aroundPrecision')
final dynamic aroundPrecision;
diff --git a/clients/algoliasearch-client-dart/packages/client_search/lib/src/model/base_search_params_without_query.dart b/clients/algoliasearch-client-dart/packages/client_search/lib/src/model/base_search_params_without_query.dart
index a24895008b..ca67cc9d13 100644
--- a/clients/algoliasearch-client-dart/packages/client_search/lib/src/model/base_search_params_without_query.dart
+++ b/clients/algoliasearch-client-dart/packages/client_search/lib/src/model/base_search_params_without_query.dart
@@ -125,7 +125,7 @@ final class BaseSearchParamsWithoutQuery {
final dynamic aroundRadius;
/// One of types:
- /// - [List]
+ /// - [List]
/// - [int]
@JsonKey(name: r'aroundPrecision')
final dynamic aroundPrecision;
diff --git a/clients/algoliasearch-client-dart/packages/client_search/lib/src/model/browse_params_object.dart b/clients/algoliasearch-client-dart/packages/client_search/lib/src/model/browse_params_object.dart
index 69e1932c8c..c9d7544ee4 100644
--- a/clients/algoliasearch-client-dart/packages/client_search/lib/src/model/browse_params_object.dart
+++ b/clients/algoliasearch-client-dart/packages/client_search/lib/src/model/browse_params_object.dart
@@ -183,7 +183,7 @@ final class BrowseParamsObject {
final dynamic aroundRadius;
/// One of types:
- /// - [List]
+ /// - [List]
/// - [int]
@JsonKey(name: r'aroundPrecision')
final dynamic aroundPrecision;
diff --git a/clients/algoliasearch-client-dart/packages/client_search/lib/src/model/consequence_params.dart b/clients/algoliasearch-client-dart/packages/client_search/lib/src/model/consequence_params.dart
index e502559844..15bf975220 100644
--- a/clients/algoliasearch-client-dart/packages/client_search/lib/src/model/consequence_params.dart
+++ b/clients/algoliasearch-client-dart/packages/client_search/lib/src/model/consequence_params.dart
@@ -180,7 +180,7 @@ final class ConsequenceParams {
final dynamic aroundRadius;
/// One of types:
- /// - [List]
+ /// - [List]
/// - [int]
@JsonKey(name: r'aroundPrecision')
final dynamic aroundPrecision;
diff --git a/clients/algoliasearch-client-dart/packages/client_recommend/lib/src/model/around_precision_from_value_inner.dart b/clients/algoliasearch-client-dart/packages/client_search/lib/src/model/range.dart
similarity index 63%
rename from clients/algoliasearch-client-dart/packages/client_recommend/lib/src/model/around_precision_from_value_inner.dart
rename to clients/algoliasearch-client-dart/packages/client_search/lib/src/model/range.dart
index b426c8727f..029577a5df 100644
--- a/clients/algoliasearch-client-dart/packages/client_recommend/lib/src/model/around_precision_from_value_inner.dart
+++ b/clients/algoliasearch-client-dart/packages/client_search/lib/src/model/range.dart
@@ -3,12 +3,12 @@
import 'package:json_annotation/json_annotation.dart';
-part 'around_precision_from_value_inner.g.dart';
+part 'range.g.dart';
@JsonSerializable()
-final class AroundPrecisionFromValueInner {
- /// Returns a new [AroundPrecisionFromValueInner] instance.
- const AroundPrecisionFromValueInner({
+final class Range {
+ /// Returns a new [Range] instance.
+ const Range({
this.from,
this.value,
});
@@ -24,17 +24,14 @@ final class AroundPrecisionFromValueInner {
@override
bool operator ==(Object other) =>
identical(this, other) ||
- other is AroundPrecisionFromValueInner &&
- other.from == from &&
- other.value == value;
+ other is Range && other.from == from && other.value == value;
@override
int get hashCode => from.hashCode + value.hashCode;
- factory AroundPrecisionFromValueInner.fromJson(Map json) =>
- _$AroundPrecisionFromValueInnerFromJson(json);
+ factory Range.fromJson(Map json) => _$RangeFromJson(json);
- Map toJson() => _$AroundPrecisionFromValueInnerToJson(this);
+ Map toJson() => _$RangeToJson(this);
@override
String toString() {
diff --git a/clients/algoliasearch-client-dart/packages/client_search/lib/src/model/around_precision_from_value_inner.g.dart b/clients/algoliasearch-client-dart/packages/client_search/lib/src/model/range.g.dart
similarity index 65%
rename from clients/algoliasearch-client-dart/packages/client_search/lib/src/model/around_precision_from_value_inner.g.dart
rename to clients/algoliasearch-client-dart/packages/client_search/lib/src/model/range.g.dart
index 026e0551d3..223e9bd02e 100644
--- a/clients/algoliasearch-client-dart/packages/client_search/lib/src/model/around_precision_from_value_inner.g.dart
+++ b/clients/algoliasearch-client-dart/packages/client_search/lib/src/model/range.g.dart
@@ -1,18 +1,16 @@
// GENERATED CODE - DO NOT MODIFY BY HAND
-part of 'around_precision_from_value_inner.dart';
+part of 'range.dart';
// **************************************************************************
// JsonSerializableGenerator
// **************************************************************************
-AroundPrecisionFromValueInner _$AroundPrecisionFromValueInnerFromJson(
- Map json) =>
- $checkedCreate(
- 'AroundPrecisionFromValueInner',
+Range _$RangeFromJson(Map json) => $checkedCreate(
+ 'Range',
json,
($checkedConvert) {
- final val = AroundPrecisionFromValueInner(
+ final val = Range(
from: $checkedConvert('from', (v) => (v as num?)?.toInt()),
value: $checkedConvert('value', (v) => (v as num?)?.toInt()),
);
@@ -20,8 +18,7 @@ AroundPrecisionFromValueInner _$AroundPrecisionFromValueInnerFromJson(
},
);
-Map _$AroundPrecisionFromValueInnerToJson(
- AroundPrecisionFromValueInner instance) {
+Map _$RangeToJson(Range instance) {
final val = {};
void writeNotNull(String key, dynamic value) {
diff --git a/clients/algoliasearch-client-dart/packages/client_search/lib/src/model/redirect_rule_index_metadata_data.dart b/clients/algoliasearch-client-dart/packages/client_search/lib/src/model/redirect_rule_index_data.dart
similarity index 54%
rename from clients/algoliasearch-client-dart/packages/client_search/lib/src/model/redirect_rule_index_metadata_data.dart
rename to clients/algoliasearch-client-dart/packages/client_search/lib/src/model/redirect_rule_index_data.dart
index f9bba71211..55f0f0e368 100644
--- a/clients/algoliasearch-client-dart/packages/client_search/lib/src/model/redirect_rule_index_metadata_data.dart
+++ b/clients/algoliasearch-client-dart/packages/client_search/lib/src/model/redirect_rule_index_data.dart
@@ -3,12 +3,12 @@
import 'package:json_annotation/json_annotation.dart';
-part 'redirect_rule_index_metadata_data.g.dart';
+part 'redirect_rule_index_data.g.dart';
@JsonSerializable()
-final class RedirectRuleIndexMetadataData {
- /// Returns a new [RedirectRuleIndexMetadataData] instance.
- const RedirectRuleIndexMetadataData({
+final class RedirectRuleIndexData {
+ /// Returns a new [RedirectRuleIndexData] instance.
+ const RedirectRuleIndexData({
required this.ruleObjectID,
});
@@ -18,16 +18,15 @@ final class RedirectRuleIndexMetadataData {
@override
bool operator ==(Object other) =>
identical(this, other) ||
- other is RedirectRuleIndexMetadataData &&
- other.ruleObjectID == ruleObjectID;
+ other is RedirectRuleIndexData && other.ruleObjectID == ruleObjectID;
@override
int get hashCode => ruleObjectID.hashCode;
- factory RedirectRuleIndexMetadataData.fromJson(Map json) =>
- _$RedirectRuleIndexMetadataDataFromJson(json);
+ factory RedirectRuleIndexData.fromJson(Map json) =>
+ _$RedirectRuleIndexDataFromJson(json);
- Map toJson() => _$RedirectRuleIndexMetadataDataToJson(this);
+ Map toJson() => _$RedirectRuleIndexDataToJson(this);
@override
String toString() {
diff --git a/clients/algoliasearch-client-dart/packages/algoliasearch/lib/src/model/redirect_rule_index_metadata_data.g.dart b/clients/algoliasearch-client-dart/packages/client_search/lib/src/model/redirect_rule_index_data.g.dart
similarity index 62%
rename from clients/algoliasearch-client-dart/packages/algoliasearch/lib/src/model/redirect_rule_index_metadata_data.g.dart
rename to clients/algoliasearch-client-dart/packages/client_search/lib/src/model/redirect_rule_index_data.g.dart
index c994c4ce10..a038eb9225 100644
--- a/clients/algoliasearch-client-dart/packages/algoliasearch/lib/src/model/redirect_rule_index_metadata_data.g.dart
+++ b/clients/algoliasearch-client-dart/packages/client_search/lib/src/model/redirect_rule_index_data.g.dart
@@ -1,26 +1,26 @@
// GENERATED CODE - DO NOT MODIFY BY HAND
-part of 'redirect_rule_index_metadata_data.dart';
+part of 'redirect_rule_index_data.dart';
// **************************************************************************
// JsonSerializableGenerator
// **************************************************************************
-RedirectRuleIndexMetadataData _$RedirectRuleIndexMetadataDataFromJson(
+RedirectRuleIndexData _$RedirectRuleIndexDataFromJson(
Map json) =>
$checkedCreate(
- 'RedirectRuleIndexMetadataData',
+ 'RedirectRuleIndexData',
json,
($checkedConvert) {
- final val = RedirectRuleIndexMetadataData(
+ final val = RedirectRuleIndexData(
ruleObjectID: $checkedConvert('ruleObjectID', (v) => v as String),
);
return val;
},
);
-Map _$RedirectRuleIndexMetadataDataToJson(
- RedirectRuleIndexMetadataData instance) =>
+Map _$RedirectRuleIndexDataToJson(
+ RedirectRuleIndexData instance) =>
{
'ruleObjectID': instance.ruleObjectID,
};
diff --git a/clients/algoliasearch-client-dart/packages/client_search/lib/src/model/redirect_rule_index_metadata.dart b/clients/algoliasearch-client-dart/packages/client_search/lib/src/model/redirect_rule_index_metadata.dart
index eb89fdb03f..9df7eb07da 100644
--- a/clients/algoliasearch-client-dart/packages/client_search/lib/src/model/redirect_rule_index_metadata.dart
+++ b/clients/algoliasearch-client-dart/packages/client_search/lib/src/model/redirect_rule_index_metadata.dart
@@ -1,6 +1,6 @@
// 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.
// ignore_for_file: unused_element
-import 'package:algolia_client_search/src/model/redirect_rule_index_metadata_data.dart';
+import 'package:algolia_client_search/src/model/redirect_rule_index_data.dart';
import 'package:json_annotation/json_annotation.dart';
@@ -34,7 +34,7 @@ final class RedirectRuleIndexMetadata {
final bool succeed;
@JsonKey(name: r'data')
- final RedirectRuleIndexMetadataData data;
+ final RedirectRuleIndexData data;
@override
bool operator ==(Object other) =>
diff --git a/clients/algoliasearch-client-dart/packages/client_search/lib/src/model/redirect_rule_index_metadata.g.dart b/clients/algoliasearch-client-dart/packages/client_search/lib/src/model/redirect_rule_index_metadata.g.dart
index d2e1897f87..91cb7e5991 100644
--- a/clients/algoliasearch-client-dart/packages/client_search/lib/src/model/redirect_rule_index_metadata.g.dart
+++ b/clients/algoliasearch-client-dart/packages/client_search/lib/src/model/redirect_rule_index_metadata.g.dart
@@ -17,10 +17,8 @@ RedirectRuleIndexMetadata _$RedirectRuleIndexMetadataFromJson(
dest: $checkedConvert('dest', (v) => v as String),
reason: $checkedConvert('reason', (v) => v as String),
succeed: $checkedConvert('succeed', (v) => v as bool),
- data: $checkedConvert(
- 'data',
- (v) => RedirectRuleIndexMetadataData.fromJson(
- v as Map)),
+ data: $checkedConvert('data',
+ (v) => RedirectRuleIndexData.fromJson(v as Map)),
);
return val;
},
diff --git a/clients/algoliasearch-client-dart/packages/client_search/lib/src/model/search_for_facets.dart b/clients/algoliasearch-client-dart/packages/client_search/lib/src/model/search_for_facets.dart
index 4c1768ff9e..8ef7649504 100644
--- a/clients/algoliasearch-client-dart/packages/client_search/lib/src/model/search_for_facets.dart
+++ b/clients/algoliasearch-client-dart/packages/client_search/lib/src/model/search_for_facets.dart
@@ -192,7 +192,7 @@ final class SearchForFacets {
final dynamic aroundRadius;
/// One of types:
- /// - [List]
+ /// - [List]
/// - [int]
@JsonKey(name: r'aroundPrecision')
final dynamic aroundPrecision;
diff --git a/clients/algoliasearch-client-dart/packages/client_search/lib/src/model/search_for_hits.dart b/clients/algoliasearch-client-dart/packages/client_search/lib/src/model/search_for_hits.dart
index c36b8e3420..4b4c4ce5b3 100644
--- a/clients/algoliasearch-client-dart/packages/client_search/lib/src/model/search_for_hits.dart
+++ b/clients/algoliasearch-client-dart/packages/client_search/lib/src/model/search_for_hits.dart
@@ -190,7 +190,7 @@ final class SearchForHits {
final dynamic aroundRadius;
/// One of types:
- /// - [List]
+ /// - [List]
/// - [int]
@JsonKey(name: r'aroundPrecision')
final dynamic aroundPrecision;
diff --git a/clients/algoliasearch-client-dart/packages/client_search/lib/src/model/search_params_object.dart b/clients/algoliasearch-client-dart/packages/client_search/lib/src/model/search_params_object.dart
index 90a95075f1..92c56835a3 100644
--- a/clients/algoliasearch-client-dart/packages/client_search/lib/src/model/search_params_object.dart
+++ b/clients/algoliasearch-client-dart/packages/client_search/lib/src/model/search_params_object.dart
@@ -182,7 +182,7 @@ final class SearchParamsObject {
final dynamic aroundRadius;
/// One of types:
- /// - [List]
+ /// - [List]
/// - [int]
@JsonKey(name: r'aroundPrecision')
final dynamic aroundPrecision;
diff --git a/clients/algoliasearch-client-go/algolia/abtesting/model_filter_effects_empty_search.go b/clients/algoliasearch-client-go/algolia/abtesting/model_empty_search_filter.go
similarity index 60%
rename from clients/algoliasearch-client-go/algolia/abtesting/model_filter_effects_empty_search.go
rename to clients/algoliasearch-client-go/algolia/abtesting/model_empty_search_filter.go
index 5828cd6365..529c42e384 100644
--- a/clients/algoliasearch-client-go/algolia/abtesting/model_filter_effects_empty_search.go
+++ b/clients/algoliasearch-client-go/algolia/abtesting/model_empty_search_filter.go
@@ -6,47 +6,47 @@ import (
"fmt"
)
-// FilterEffectsEmptySearch Empty searches removed from the A/B test as a result of configuration settings.
-type FilterEffectsEmptySearch struct {
+// EmptySearchFilter Empty searches removed from the A/B test as a result of configuration settings.
+type EmptySearchFilter struct {
// Number of users removed from the A/B test.
UsersCount *int32 `json:"usersCount,omitempty"`
// Number of tracked searches removed from the A/B test.
TrackedSearchesCount *int32 `json:"trackedSearchesCount,omitempty"`
}
-type FilterEffectsEmptySearchOption func(f *FilterEffectsEmptySearch)
+type EmptySearchFilterOption func(f *EmptySearchFilter)
-func WithFilterEffectsEmptySearchUsersCount(val int32) FilterEffectsEmptySearchOption {
- return func(f *FilterEffectsEmptySearch) {
+func WithEmptySearchFilterUsersCount(val int32) EmptySearchFilterOption {
+ return func(f *EmptySearchFilter) {
f.UsersCount = &val
}
}
-func WithFilterEffectsEmptySearchTrackedSearchesCount(val int32) FilterEffectsEmptySearchOption {
- return func(f *FilterEffectsEmptySearch) {
+func WithEmptySearchFilterTrackedSearchesCount(val int32) EmptySearchFilterOption {
+ return func(f *EmptySearchFilter) {
f.TrackedSearchesCount = &val
}
}
-// NewFilterEffectsEmptySearch instantiates a new FilterEffectsEmptySearch object
+// NewEmptySearchFilter instantiates a new EmptySearchFilter object
// This constructor will assign default values to properties that have it defined,
// and makes sure properties required by API are set, but the set of arguments
// will change when the set of required properties is changed.
-func NewFilterEffectsEmptySearch(opts ...FilterEffectsEmptySearchOption) *FilterEffectsEmptySearch {
- this := &FilterEffectsEmptySearch{}
+func NewEmptySearchFilter(opts ...EmptySearchFilterOption) *EmptySearchFilter {
+ this := &EmptySearchFilter{}
for _, opt := range opts {
opt(this)
}
return this
}
-// NewEmptyFilterEffectsEmptySearch return a pointer to an empty FilterEffectsEmptySearch object.
-func NewEmptyFilterEffectsEmptySearch() *FilterEffectsEmptySearch {
- return &FilterEffectsEmptySearch{}
+// NewEmptyEmptySearchFilter return a pointer to an empty EmptySearchFilter object.
+func NewEmptyEmptySearchFilter() *EmptySearchFilter {
+ return &EmptySearchFilter{}
}
// GetUsersCount returns the UsersCount field value if set, zero value otherwise.
-func (o *FilterEffectsEmptySearch) GetUsersCount() int32 {
+func (o *EmptySearchFilter) GetUsersCount() int32 {
if o == nil || o.UsersCount == nil {
var ret int32
return ret
@@ -56,7 +56,7 @@ func (o *FilterEffectsEmptySearch) GetUsersCount() int32 {
// GetUsersCountOk returns a tuple with the UsersCount field value if set, nil otherwise
// and a boolean to check if the value has been set.
-func (o *FilterEffectsEmptySearch) GetUsersCountOk() (*int32, bool) {
+func (o *EmptySearchFilter) GetUsersCountOk() (*int32, bool) {
if o == nil || o.UsersCount == nil {
return nil, false
}
@@ -64,7 +64,7 @@ func (o *FilterEffectsEmptySearch) GetUsersCountOk() (*int32, bool) {
}
// HasUsersCount returns a boolean if a field has been set.
-func (o *FilterEffectsEmptySearch) HasUsersCount() bool {
+func (o *EmptySearchFilter) HasUsersCount() bool {
if o != nil && o.UsersCount != nil {
return true
}
@@ -73,13 +73,13 @@ func (o *FilterEffectsEmptySearch) HasUsersCount() bool {
}
// SetUsersCount gets a reference to the given int32 and assigns it to the UsersCount field.
-func (o *FilterEffectsEmptySearch) SetUsersCount(v int32) *FilterEffectsEmptySearch {
+func (o *EmptySearchFilter) SetUsersCount(v int32) *EmptySearchFilter {
o.UsersCount = &v
return o
}
// GetTrackedSearchesCount returns the TrackedSearchesCount field value if set, zero value otherwise.
-func (o *FilterEffectsEmptySearch) GetTrackedSearchesCount() int32 {
+func (o *EmptySearchFilter) GetTrackedSearchesCount() int32 {
if o == nil || o.TrackedSearchesCount == nil {
var ret int32
return ret
@@ -89,7 +89,7 @@ func (o *FilterEffectsEmptySearch) GetTrackedSearchesCount() int32 {
// GetTrackedSearchesCountOk returns a tuple with the TrackedSearchesCount field value if set, nil otherwise
// and a boolean to check if the value has been set.
-func (o *FilterEffectsEmptySearch) GetTrackedSearchesCountOk() (*int32, bool) {
+func (o *EmptySearchFilter) GetTrackedSearchesCountOk() (*int32, bool) {
if o == nil || o.TrackedSearchesCount == nil {
return nil, false
}
@@ -97,7 +97,7 @@ func (o *FilterEffectsEmptySearch) GetTrackedSearchesCountOk() (*int32, bool) {
}
// HasTrackedSearchesCount returns a boolean if a field has been set.
-func (o *FilterEffectsEmptySearch) HasTrackedSearchesCount() bool {
+func (o *EmptySearchFilter) HasTrackedSearchesCount() bool {
if o != nil && o.TrackedSearchesCount != nil {
return true
}
@@ -106,12 +106,12 @@ func (o *FilterEffectsEmptySearch) HasTrackedSearchesCount() bool {
}
// SetTrackedSearchesCount gets a reference to the given int32 and assigns it to the TrackedSearchesCount field.
-func (o *FilterEffectsEmptySearch) SetTrackedSearchesCount(v int32) *FilterEffectsEmptySearch {
+func (o *EmptySearchFilter) SetTrackedSearchesCount(v int32) *EmptySearchFilter {
o.TrackedSearchesCount = &v
return o
}
-func (o FilterEffectsEmptySearch) MarshalJSON() ([]byte, error) {
+func (o EmptySearchFilter) MarshalJSON() ([]byte, error) {
toSerialize := map[string]any{}
if o.UsersCount != nil {
toSerialize["usersCount"] = o.UsersCount
@@ -121,15 +121,15 @@ func (o FilterEffectsEmptySearch) MarshalJSON() ([]byte, error) {
}
serialized, err := json.Marshal(toSerialize)
if err != nil {
- return nil, fmt.Errorf("failed to marshal FilterEffectsEmptySearch: %w", err)
+ return nil, fmt.Errorf("failed to marshal EmptySearchFilter: %w", err)
}
return serialized, nil
}
-func (o FilterEffectsEmptySearch) String() string {
+func (o EmptySearchFilter) String() string {
out := ""
out += fmt.Sprintf(" usersCount=%v\n", o.UsersCount)
out += fmt.Sprintf(" trackedSearchesCount=%v\n", o.TrackedSearchesCount)
- return fmt.Sprintf("FilterEffectsEmptySearch {\n%s}", out)
+ return fmt.Sprintf("EmptySearchFilter {\n%s}", out)
}
diff --git a/clients/algoliasearch-client-go/algolia/abtesting/model_filter_effects.go b/clients/algoliasearch-client-go/algolia/abtesting/model_filter_effects.go
index fc6afdf178..9e8b901ccf 100644
--- a/clients/algoliasearch-client-go/algolia/abtesting/model_filter_effects.go
+++ b/clients/algoliasearch-client-go/algolia/abtesting/model_filter_effects.go
@@ -8,19 +8,19 @@ import (
// FilterEffects A/B test filter effects resulting from configuration settings.
type FilterEffects struct {
- Outliers *FilterEffectsOutliers `json:"outliers,omitempty"`
- EmptySearch *FilterEffectsEmptySearch `json:"emptySearch,omitempty"`
+ Outliers *OutliersFilter `json:"outliers,omitempty"`
+ EmptySearch *EmptySearchFilter `json:"emptySearch,omitempty"`
}
type FilterEffectsOption func(f *FilterEffects)
-func WithFilterEffectsOutliers(val FilterEffectsOutliers) FilterEffectsOption {
+func WithFilterEffectsOutliers(val OutliersFilter) FilterEffectsOption {
return func(f *FilterEffects) {
f.Outliers = &val
}
}
-func WithFilterEffectsEmptySearch(val FilterEffectsEmptySearch) FilterEffectsOption {
+func WithFilterEffectsEmptySearch(val EmptySearchFilter) FilterEffectsOption {
return func(f *FilterEffects) {
f.EmptySearch = &val
}
@@ -44,9 +44,9 @@ func NewEmptyFilterEffects() *FilterEffects {
}
// GetOutliers returns the Outliers field value if set, zero value otherwise.
-func (o *FilterEffects) GetOutliers() FilterEffectsOutliers {
+func (o *FilterEffects) GetOutliers() OutliersFilter {
if o == nil || o.Outliers == nil {
- var ret FilterEffectsOutliers
+ var ret OutliersFilter
return ret
}
return *o.Outliers
@@ -54,7 +54,7 @@ func (o *FilterEffects) GetOutliers() FilterEffectsOutliers {
// GetOutliersOk returns a tuple with the Outliers field value if set, nil otherwise
// and a boolean to check if the value has been set.
-func (o *FilterEffects) GetOutliersOk() (*FilterEffectsOutliers, bool) {
+func (o *FilterEffects) GetOutliersOk() (*OutliersFilter, bool) {
if o == nil || o.Outliers == nil {
return nil, false
}
@@ -70,16 +70,16 @@ func (o *FilterEffects) HasOutliers() bool {
return false
}
-// SetOutliers gets a reference to the given FilterEffectsOutliers and assigns it to the Outliers field.
-func (o *FilterEffects) SetOutliers(v *FilterEffectsOutliers) *FilterEffects {
+// SetOutliers gets a reference to the given OutliersFilter and assigns it to the Outliers field.
+func (o *FilterEffects) SetOutliers(v *OutliersFilter) *FilterEffects {
o.Outliers = v
return o
}
// GetEmptySearch returns the EmptySearch field value if set, zero value otherwise.
-func (o *FilterEffects) GetEmptySearch() FilterEffectsEmptySearch {
+func (o *FilterEffects) GetEmptySearch() EmptySearchFilter {
if o == nil || o.EmptySearch == nil {
- var ret FilterEffectsEmptySearch
+ var ret EmptySearchFilter
return ret
}
return *o.EmptySearch
@@ -87,7 +87,7 @@ func (o *FilterEffects) GetEmptySearch() FilterEffectsEmptySearch {
// GetEmptySearchOk returns a tuple with the EmptySearch field value if set, nil otherwise
// and a boolean to check if the value has been set.
-func (o *FilterEffects) GetEmptySearchOk() (*FilterEffectsEmptySearch, bool) {
+func (o *FilterEffects) GetEmptySearchOk() (*EmptySearchFilter, bool) {
if o == nil || o.EmptySearch == nil {
return nil, false
}
@@ -103,8 +103,8 @@ func (o *FilterEffects) HasEmptySearch() bool {
return false
}
-// SetEmptySearch gets a reference to the given FilterEffectsEmptySearch and assigns it to the EmptySearch field.
-func (o *FilterEffects) SetEmptySearch(v *FilterEffectsEmptySearch) *FilterEffects {
+// SetEmptySearch gets a reference to the given EmptySearchFilter and assigns it to the EmptySearch field.
+func (o *FilterEffects) SetEmptySearch(v *EmptySearchFilter) *FilterEffects {
o.EmptySearch = v
return o
}
diff --git a/clients/algoliasearch-client-go/algolia/abtesting/model_filter_effects_outliers.go b/clients/algoliasearch-client-go/algolia/abtesting/model_outliers_filter.go
similarity index 62%
rename from clients/algoliasearch-client-go/algolia/abtesting/model_filter_effects_outliers.go
rename to clients/algoliasearch-client-go/algolia/abtesting/model_outliers_filter.go
index 41c90fcf8e..a2b7d91cfc 100644
--- a/clients/algoliasearch-client-go/algolia/abtesting/model_filter_effects_outliers.go
+++ b/clients/algoliasearch-client-go/algolia/abtesting/model_outliers_filter.go
@@ -6,47 +6,47 @@ import (
"fmt"
)
-// FilterEffectsOutliers Outliers removed from the A/B test as a result of configuration settings.
-type FilterEffectsOutliers struct {
+// OutliersFilter Outliers removed from the A/B test as a result of configuration settings.
+type OutliersFilter struct {
// Number of users removed from the A/B test.
UsersCount *int32 `json:"usersCount,omitempty"`
// Number of tracked searches removed from the A/B test.
TrackedSearchesCount *int32 `json:"trackedSearchesCount,omitempty"`
}
-type FilterEffectsOutliersOption func(f *FilterEffectsOutliers)
+type OutliersFilterOption func(f *OutliersFilter)
-func WithFilterEffectsOutliersUsersCount(val int32) FilterEffectsOutliersOption {
- return func(f *FilterEffectsOutliers) {
+func WithOutliersFilterUsersCount(val int32) OutliersFilterOption {
+ return func(f *OutliersFilter) {
f.UsersCount = &val
}
}
-func WithFilterEffectsOutliersTrackedSearchesCount(val int32) FilterEffectsOutliersOption {
- return func(f *FilterEffectsOutliers) {
+func WithOutliersFilterTrackedSearchesCount(val int32) OutliersFilterOption {
+ return func(f *OutliersFilter) {
f.TrackedSearchesCount = &val
}
}
-// NewFilterEffectsOutliers instantiates a new FilterEffectsOutliers object
+// NewOutliersFilter instantiates a new OutliersFilter object
// This constructor will assign default values to properties that have it defined,
// and makes sure properties required by API are set, but the set of arguments
// will change when the set of required properties is changed.
-func NewFilterEffectsOutliers(opts ...FilterEffectsOutliersOption) *FilterEffectsOutliers {
- this := &FilterEffectsOutliers{}
+func NewOutliersFilter(opts ...OutliersFilterOption) *OutliersFilter {
+ this := &OutliersFilter{}
for _, opt := range opts {
opt(this)
}
return this
}
-// NewEmptyFilterEffectsOutliers return a pointer to an empty FilterEffectsOutliers object.
-func NewEmptyFilterEffectsOutliers() *FilterEffectsOutliers {
- return &FilterEffectsOutliers{}
+// NewEmptyOutliersFilter return a pointer to an empty OutliersFilter object.
+func NewEmptyOutliersFilter() *OutliersFilter {
+ return &OutliersFilter{}
}
// GetUsersCount returns the UsersCount field value if set, zero value otherwise.
-func (o *FilterEffectsOutliers) GetUsersCount() int32 {
+func (o *OutliersFilter) GetUsersCount() int32 {
if o == nil || o.UsersCount == nil {
var ret int32
return ret
@@ -56,7 +56,7 @@ func (o *FilterEffectsOutliers) GetUsersCount() int32 {
// GetUsersCountOk returns a tuple with the UsersCount field value if set, nil otherwise
// and a boolean to check if the value has been set.
-func (o *FilterEffectsOutliers) GetUsersCountOk() (*int32, bool) {
+func (o *OutliersFilter) GetUsersCountOk() (*int32, bool) {
if o == nil || o.UsersCount == nil {
return nil, false
}
@@ -64,7 +64,7 @@ func (o *FilterEffectsOutliers) GetUsersCountOk() (*int32, bool) {
}
// HasUsersCount returns a boolean if a field has been set.
-func (o *FilterEffectsOutliers) HasUsersCount() bool {
+func (o *OutliersFilter) HasUsersCount() bool {
if o != nil && o.UsersCount != nil {
return true
}
@@ -73,13 +73,13 @@ func (o *FilterEffectsOutliers) HasUsersCount() bool {
}
// SetUsersCount gets a reference to the given int32 and assigns it to the UsersCount field.
-func (o *FilterEffectsOutliers) SetUsersCount(v int32) *FilterEffectsOutliers {
+func (o *OutliersFilter) SetUsersCount(v int32) *OutliersFilter {
o.UsersCount = &v
return o
}
// GetTrackedSearchesCount returns the TrackedSearchesCount field value if set, zero value otherwise.
-func (o *FilterEffectsOutliers) GetTrackedSearchesCount() int32 {
+func (o *OutliersFilter) GetTrackedSearchesCount() int32 {
if o == nil || o.TrackedSearchesCount == nil {
var ret int32
return ret
@@ -89,7 +89,7 @@ func (o *FilterEffectsOutliers) GetTrackedSearchesCount() int32 {
// GetTrackedSearchesCountOk returns a tuple with the TrackedSearchesCount field value if set, nil otherwise
// and a boolean to check if the value has been set.
-func (o *FilterEffectsOutliers) GetTrackedSearchesCountOk() (*int32, bool) {
+func (o *OutliersFilter) GetTrackedSearchesCountOk() (*int32, bool) {
if o == nil || o.TrackedSearchesCount == nil {
return nil, false
}
@@ -97,7 +97,7 @@ func (o *FilterEffectsOutliers) GetTrackedSearchesCountOk() (*int32, bool) {
}
// HasTrackedSearchesCount returns a boolean if a field has been set.
-func (o *FilterEffectsOutliers) HasTrackedSearchesCount() bool {
+func (o *OutliersFilter) HasTrackedSearchesCount() bool {
if o != nil && o.TrackedSearchesCount != nil {
return true
}
@@ -106,12 +106,12 @@ func (o *FilterEffectsOutliers) HasTrackedSearchesCount() bool {
}
// SetTrackedSearchesCount gets a reference to the given int32 and assigns it to the TrackedSearchesCount field.
-func (o *FilterEffectsOutliers) SetTrackedSearchesCount(v int32) *FilterEffectsOutliers {
+func (o *OutliersFilter) SetTrackedSearchesCount(v int32) *OutliersFilter {
o.TrackedSearchesCount = &v
return o
}
-func (o FilterEffectsOutliers) MarshalJSON() ([]byte, error) {
+func (o OutliersFilter) MarshalJSON() ([]byte, error) {
toSerialize := map[string]any{}
if o.UsersCount != nil {
toSerialize["usersCount"] = o.UsersCount
@@ -121,15 +121,15 @@ func (o FilterEffectsOutliers) MarshalJSON() ([]byte, error) {
}
serialized, err := json.Marshal(toSerialize)
if err != nil {
- return nil, fmt.Errorf("failed to marshal FilterEffectsOutliers: %w", err)
+ return nil, fmt.Errorf("failed to marshal OutliersFilter: %w", err)
}
return serialized, nil
}
-func (o FilterEffectsOutliers) String() string {
+func (o OutliersFilter) String() string {
out := ""
out += fmt.Sprintf(" usersCount=%v\n", o.UsersCount)
out += fmt.Sprintf(" trackedSearchesCount=%v\n", o.TrackedSearchesCount)
- return fmt.Sprintf("FilterEffectsOutliers {\n%s}", out)
+ return fmt.Sprintf("OutliersFilter {\n%s}", out)
}
diff --git a/clients/algoliasearch-client-go/algolia/analytics/model_click_positions_inner.go b/clients/algoliasearch-client-go/algolia/analytics/model_click_position.go
similarity index 64%
rename from clients/algoliasearch-client-go/algolia/analytics/model_click_positions_inner.go
rename to clients/algoliasearch-client-go/algolia/analytics/model_click_position.go
index f4256a9cf5..9770cd06a6 100644
--- a/clients/algoliasearch-client-go/algolia/analytics/model_click_positions_inner.go
+++ b/clients/algoliasearch-client-go/algolia/analytics/model_click_position.go
@@ -6,47 +6,47 @@ import (
"fmt"
)
-// ClickPositionsInner Click position.
-type ClickPositionsInner struct {
+// ClickPosition Click position.
+type ClickPosition struct {
// Range of positions in the search results, using the pattern `[start,end]`. For positions 11 and up, click events are summed over the specified range. `-1` indicates the end of the list of search results.
Position []int32 `json:"position,omitempty"`
// Number of times this search has been clicked at that position.
ClickCount *int32 `json:"clickCount,omitempty"`
}
-type ClickPositionsInnerOption func(f *ClickPositionsInner)
+type ClickPositionOption func(f *ClickPosition)
-func WithClickPositionsInnerPosition(val []int32) ClickPositionsInnerOption {
- return func(f *ClickPositionsInner) {
+func WithClickPositionPosition(val []int32) ClickPositionOption {
+ return func(f *ClickPosition) {
f.Position = val
}
}
-func WithClickPositionsInnerClickCount(val int32) ClickPositionsInnerOption {
- return func(f *ClickPositionsInner) {
+func WithClickPositionClickCount(val int32) ClickPositionOption {
+ return func(f *ClickPosition) {
f.ClickCount = &val
}
}
-// NewClickPositionsInner instantiates a new ClickPositionsInner object
+// NewClickPosition instantiates a new ClickPosition object
// This constructor will assign default values to properties that have it defined,
// and makes sure properties required by API are set, but the set of arguments
// will change when the set of required properties is changed.
-func NewClickPositionsInner(opts ...ClickPositionsInnerOption) *ClickPositionsInner {
- this := &ClickPositionsInner{}
+func NewClickPosition(opts ...ClickPositionOption) *ClickPosition {
+ this := &ClickPosition{}
for _, opt := range opts {
opt(this)
}
return this
}
-// NewEmptyClickPositionsInner return a pointer to an empty ClickPositionsInner object.
-func NewEmptyClickPositionsInner() *ClickPositionsInner {
- return &ClickPositionsInner{}
+// NewEmptyClickPosition return a pointer to an empty ClickPosition object.
+func NewEmptyClickPosition() *ClickPosition {
+ return &ClickPosition{}
}
// GetPosition returns the Position field value if set, zero value otherwise.
-func (o *ClickPositionsInner) GetPosition() []int32 {
+func (o *ClickPosition) GetPosition() []int32 {
if o == nil || o.Position == nil {
var ret []int32
return ret
@@ -56,7 +56,7 @@ func (o *ClickPositionsInner) GetPosition() []int32 {
// GetPositionOk returns a tuple with the Position field value if set, nil otherwise
// and a boolean to check if the value has been set.
-func (o *ClickPositionsInner) GetPositionOk() ([]int32, bool) {
+func (o *ClickPosition) GetPositionOk() ([]int32, bool) {
if o == nil || o.Position == nil {
return nil, false
}
@@ -64,7 +64,7 @@ func (o *ClickPositionsInner) GetPositionOk() ([]int32, bool) {
}
// HasPosition returns a boolean if a field has been set.
-func (o *ClickPositionsInner) HasPosition() bool {
+func (o *ClickPosition) HasPosition() bool {
if o != nil && o.Position != nil {
return true
}
@@ -73,13 +73,13 @@ func (o *ClickPositionsInner) HasPosition() bool {
}
// SetPosition gets a reference to the given []int32 and assigns it to the Position field.
-func (o *ClickPositionsInner) SetPosition(v []int32) *ClickPositionsInner {
+func (o *ClickPosition) SetPosition(v []int32) *ClickPosition {
o.Position = v
return o
}
// GetClickCount returns the ClickCount field value if set, zero value otherwise.
-func (o *ClickPositionsInner) GetClickCount() int32 {
+func (o *ClickPosition) GetClickCount() int32 {
if o == nil || o.ClickCount == nil {
var ret int32
return ret
@@ -89,7 +89,7 @@ func (o *ClickPositionsInner) GetClickCount() int32 {
// GetClickCountOk returns a tuple with the ClickCount field value if set, nil otherwise
// and a boolean to check if the value has been set.
-func (o *ClickPositionsInner) GetClickCountOk() (*int32, bool) {
+func (o *ClickPosition) GetClickCountOk() (*int32, bool) {
if o == nil || o.ClickCount == nil {
return nil, false
}
@@ -97,7 +97,7 @@ func (o *ClickPositionsInner) GetClickCountOk() (*int32, bool) {
}
// HasClickCount returns a boolean if a field has been set.
-func (o *ClickPositionsInner) HasClickCount() bool {
+func (o *ClickPosition) HasClickCount() bool {
if o != nil && o.ClickCount != nil {
return true
}
@@ -106,12 +106,12 @@ func (o *ClickPositionsInner) HasClickCount() bool {
}
// SetClickCount gets a reference to the given int32 and assigns it to the ClickCount field.
-func (o *ClickPositionsInner) SetClickCount(v int32) *ClickPositionsInner {
+func (o *ClickPosition) SetClickCount(v int32) *ClickPosition {
o.ClickCount = &v
return o
}
-func (o ClickPositionsInner) MarshalJSON() ([]byte, error) {
+func (o ClickPosition) MarshalJSON() ([]byte, error) {
toSerialize := map[string]any{}
if o.Position != nil {
toSerialize["position"] = o.Position
@@ -121,15 +121,15 @@ func (o ClickPositionsInner) MarshalJSON() ([]byte, error) {
}
serialized, err := json.Marshal(toSerialize)
if err != nil {
- return nil, fmt.Errorf("failed to marshal ClickPositionsInner: %w", err)
+ return nil, fmt.Errorf("failed to marshal ClickPosition: %w", err)
}
return serialized, nil
}
-func (o ClickPositionsInner) String() string {
+func (o ClickPosition) String() string {
out := ""
out += fmt.Sprintf(" position=%v\n", o.Position)
out += fmt.Sprintf(" clickCount=%v\n", o.ClickCount)
- return fmt.Sprintf("ClickPositionsInner {\n%s}", out)
+ return fmt.Sprintf("ClickPosition {\n%s}", out)
}
diff --git a/clients/algoliasearch-client-go/algolia/analytics/model_get_click_positions_response.go b/clients/algoliasearch-client-go/algolia/analytics/model_get_click_positions_response.go
index 638a8c2143..61c1954dec 100644
--- a/clients/algoliasearch-client-go/algolia/analytics/model_get_click_positions_response.go
+++ b/clients/algoliasearch-client-go/algolia/analytics/model_get_click_positions_response.go
@@ -9,14 +9,14 @@ import (
// GetClickPositionsResponse struct for GetClickPositionsResponse.
type GetClickPositionsResponse struct {
// List of positions in the search results and clicks associated with this search.
- Positions []ClickPositionsInner `json:"positions"`
+ Positions []ClickPosition `json:"positions"`
}
// NewGetClickPositionsResponse instantiates a new GetClickPositionsResponse object
// This constructor will assign default values to properties that have it defined,
// and makes sure properties required by API are set, but the set of arguments
// will change when the set of required properties is changed.
-func NewGetClickPositionsResponse(positions []ClickPositionsInner) *GetClickPositionsResponse {
+func NewGetClickPositionsResponse(positions []ClickPosition) *GetClickPositionsResponse {
this := &GetClickPositionsResponse{}
this.Positions = positions
return this
@@ -28,9 +28,9 @@ func NewEmptyGetClickPositionsResponse() *GetClickPositionsResponse {
}
// GetPositions returns the Positions field value.
-func (o *GetClickPositionsResponse) GetPositions() []ClickPositionsInner {
+func (o *GetClickPositionsResponse) GetPositions() []ClickPosition {
if o == nil {
- var ret []ClickPositionsInner
+ var ret []ClickPosition
return ret
}
@@ -39,7 +39,7 @@ func (o *GetClickPositionsResponse) GetPositions() []ClickPositionsInner {
// GetPositionsOk returns a tuple with the Positions field value
// and a boolean to check if the value has been set.
-func (o *GetClickPositionsResponse) GetPositionsOk() ([]ClickPositionsInner, bool) {
+func (o *GetClickPositionsResponse) GetPositionsOk() ([]ClickPosition, bool) {
if o == nil {
return nil, false
}
@@ -47,7 +47,7 @@ func (o *GetClickPositionsResponse) GetPositionsOk() ([]ClickPositionsInner, boo
}
// SetPositions sets field value.
-func (o *GetClickPositionsResponse) SetPositions(v []ClickPositionsInner) *GetClickPositionsResponse {
+func (o *GetClickPositionsResponse) SetPositions(v []ClickPosition) *GetClickPositionsResponse {
o.Positions = v
return o
}
diff --git a/clients/algoliasearch-client-go/algolia/analytics/model_top_search_with_analytics.go b/clients/algoliasearch-client-go/algolia/analytics/model_top_search_with_analytics.go
index cbead85d62..cb1df34000 100644
--- a/clients/algoliasearch-client-go/algolia/analytics/model_top_search_with_analytics.go
+++ b/clients/algoliasearch-client-go/algolia/analytics/model_top_search_with_analytics.go
@@ -19,7 +19,7 @@ type TopSearchWithAnalytics struct {
// Average position of a clicked search result in the list of search results. If null, Algolia didn't receive any search requests with `clickAnalytics` set to true.
AverageClickPosition utils.Nullable[float64] `json:"averageClickPosition"`
// List of positions in the search results and clicks associated with this search.
- ClickPositions []ClickPositionsInner `json:"clickPositions"`
+ ClickPositions []ClickPosition `json:"clickPositions"`
// Conversion rate, calculated as number of tracked searches with at least one conversion event divided by the number of tracked searches. If null, Algolia didn't receive any search requests with `clickAnalytics` set to true.
ConversionRate utils.Nullable[float64] `json:"conversionRate"`
// Number of tracked searches. Tracked searches are search requests where the `clickAnalytics` parameter is true.
@@ -36,7 +36,7 @@ type TopSearchWithAnalytics struct {
// This constructor will assign default values to properties that have it defined,
// and makes sure properties required by API are set, but the set of arguments
// will change when the set of required properties is changed.
-func NewTopSearchWithAnalytics(search string, count int32, clickThroughRate utils.Nullable[float64], averageClickPosition utils.Nullable[float64], clickPositions []ClickPositionsInner, conversionRate utils.Nullable[float64], trackedSearchCount int32, clickCount int32, conversionCount int32, nbHits int32) *TopSearchWithAnalytics {
+func NewTopSearchWithAnalytics(search string, count int32, clickThroughRate utils.Nullable[float64], averageClickPosition utils.Nullable[float64], clickPositions []ClickPosition, conversionRate utils.Nullable[float64], trackedSearchCount int32, clickCount int32, conversionCount int32, nbHits int32) *TopSearchWithAnalytics {
this := &TopSearchWithAnalytics{}
this.Search = search
this.Count = count
@@ -161,9 +161,9 @@ func (o *TopSearchWithAnalytics) SetAverageClickPosition(v float64) *TopSearchWi
}
// GetClickPositions returns the ClickPositions field value.
-func (o *TopSearchWithAnalytics) GetClickPositions() []ClickPositionsInner {
+func (o *TopSearchWithAnalytics) GetClickPositions() []ClickPosition {
if o == nil {
- var ret []ClickPositionsInner
+ var ret []ClickPosition
return ret
}
@@ -172,7 +172,7 @@ func (o *TopSearchWithAnalytics) GetClickPositions() []ClickPositionsInner {
// GetClickPositionsOk returns a tuple with the ClickPositions field value
// and a boolean to check if the value has been set.
-func (o *TopSearchWithAnalytics) GetClickPositionsOk() ([]ClickPositionsInner, bool) {
+func (o *TopSearchWithAnalytics) GetClickPositionsOk() ([]ClickPosition, bool) {
if o == nil {
return nil, false
}
@@ -180,7 +180,7 @@ func (o *TopSearchWithAnalytics) GetClickPositionsOk() ([]ClickPositionsInner, b
}
// SetClickPositions sets field value.
-func (o *TopSearchWithAnalytics) SetClickPositions(v []ClickPositionsInner) *TopSearchWithAnalytics {
+func (o *TopSearchWithAnalytics) SetClickPositions(v []ClickPosition) *TopSearchWithAnalytics {
o.ClickPositions = v
return o
}
diff --git a/clients/algoliasearch-client-go/algolia/analytics/model_top_search_with_revenue_analytics.go b/clients/algoliasearch-client-go/algolia/analytics/model_top_search_with_revenue_analytics.go
index d30a426b1b..cd32c8d5fb 100644
--- a/clients/algoliasearch-client-go/algolia/analytics/model_top_search_with_revenue_analytics.go
+++ b/clients/algoliasearch-client-go/algolia/analytics/model_top_search_with_revenue_analytics.go
@@ -19,7 +19,7 @@ type TopSearchWithRevenueAnalytics struct {
// Average position of a clicked search result in the list of search results. If null, Algolia didn't receive any search requests with `clickAnalytics` set to true.
AverageClickPosition utils.Nullable[float64] `json:"averageClickPosition"`
// List of positions in the search results and clicks associated with this search.
- ClickPositions []ClickPositionsInner `json:"clickPositions"`
+ ClickPositions []ClickPosition `json:"clickPositions"`
// Conversion rate, calculated as number of tracked searches with at least one conversion event divided by the number of tracked searches. If null, Algolia didn't receive any search requests with `clickAnalytics` set to true.
ConversionRate utils.Nullable[float64] `json:"conversionRate"`
// Number of tracked searches. Tracked searches are search requests where the `clickAnalytics` parameter is true.
@@ -46,7 +46,7 @@ type TopSearchWithRevenueAnalytics struct {
// This constructor will assign default values to properties that have it defined,
// and makes sure properties required by API are set, but the set of arguments
// will change when the set of required properties is changed.
-func NewTopSearchWithRevenueAnalytics(search string, count int32, clickThroughRate utils.Nullable[float64], averageClickPosition utils.Nullable[float64], clickPositions []ClickPositionsInner, conversionRate utils.Nullable[float64], trackedSearchCount int32, clickCount int32, conversionCount int32, nbHits int32, currencies map[string]CurrenciesValue, addToCartRate utils.Nullable[float64], addToCartCount int32, purchaseRate utils.Nullable[float64], purchaseCount int32) *TopSearchWithRevenueAnalytics {
+func NewTopSearchWithRevenueAnalytics(search string, count int32, clickThroughRate utils.Nullable[float64], averageClickPosition utils.Nullable[float64], clickPositions []ClickPosition, conversionRate utils.Nullable[float64], trackedSearchCount int32, clickCount int32, conversionCount int32, nbHits int32, currencies map[string]CurrenciesValue, addToCartRate utils.Nullable[float64], addToCartCount int32, purchaseRate utils.Nullable[float64], purchaseCount int32) *TopSearchWithRevenueAnalytics {
this := &TopSearchWithRevenueAnalytics{}
this.Search = search
this.Count = count
@@ -176,9 +176,9 @@ func (o *TopSearchWithRevenueAnalytics) SetAverageClickPosition(v float64) *TopS
}
// GetClickPositions returns the ClickPositions field value.
-func (o *TopSearchWithRevenueAnalytics) GetClickPositions() []ClickPositionsInner {
+func (o *TopSearchWithRevenueAnalytics) GetClickPositions() []ClickPosition {
if o == nil {
- var ret []ClickPositionsInner
+ var ret []ClickPosition
return ret
}
@@ -187,7 +187,7 @@ func (o *TopSearchWithRevenueAnalytics) GetClickPositions() []ClickPositionsInne
// GetClickPositionsOk returns a tuple with the ClickPositions field value
// and a boolean to check if the value has been set.
-func (o *TopSearchWithRevenueAnalytics) GetClickPositionsOk() ([]ClickPositionsInner, bool) {
+func (o *TopSearchWithRevenueAnalytics) GetClickPositionsOk() ([]ClickPosition, bool) {
if o == nil {
return nil, false
}
@@ -195,7 +195,7 @@ func (o *TopSearchWithRevenueAnalytics) GetClickPositionsOk() ([]ClickPositionsI
}
// SetClickPositions sets field value.
-func (o *TopSearchWithRevenueAnalytics) SetClickPositions(v []ClickPositionsInner) *TopSearchWithRevenueAnalytics {
+func (o *TopSearchWithRevenueAnalytics) SetClickPositions(v []ClickPosition) *TopSearchWithRevenueAnalytics {
o.ClickPositions = v
return o
}
diff --git a/clients/algoliasearch-client-go/algolia/ingestion/model_docker_streams_input.go b/clients/algoliasearch-client-go/algolia/ingestion/model_docker_streams_input.go
index 683fd41753..33caf87666 100644
--- a/clients/algoliasearch-client-go/algolia/ingestion/model_docker_streams_input.go
+++ b/clients/algoliasearch-client-go/algolia/ingestion/model_docker_streams_input.go
@@ -6,7 +6,7 @@ import (
"fmt"
)
-// DockerStreamsInput struct for DockerStreamsInput.
+// DockerStreamsInput The selected streams of a singer or airbyte connector.
type DockerStreamsInput struct {
Streams map[string]any `json:"streams"`
}
diff --git a/clients/algoliasearch-client-go/algolia/ingestion/model_transformation_try_response_error.go b/clients/algoliasearch-client-go/algolia/ingestion/model_transformation_error.go
similarity index 55%
rename from clients/algoliasearch-client-go/algolia/ingestion/model_transformation_try_response_error.go
rename to clients/algoliasearch-client-go/algolia/ingestion/model_transformation_error.go
index ebe9e12b7f..08333e950f 100644
--- a/clients/algoliasearch-client-go/algolia/ingestion/model_transformation_try_response_error.go
+++ b/clients/algoliasearch-client-go/algolia/ingestion/model_transformation_error.go
@@ -6,47 +6,47 @@ import (
"fmt"
)
-// TransformationTryResponseError The error if the transformation failed.
-type TransformationTryResponseError struct {
+// TransformationError The error if the transformation failed.
+type TransformationError struct {
// The error status code.
Code *int32 `json:"code,omitempty"`
// A descriptive message explaining the failure.
Message *string `json:"message,omitempty"`
}
-type TransformationTryResponseErrorOption func(f *TransformationTryResponseError)
+type TransformationErrorOption func(f *TransformationError)
-func WithTransformationTryResponseErrorCode(val int32) TransformationTryResponseErrorOption {
- return func(f *TransformationTryResponseError) {
+func WithTransformationErrorCode(val int32) TransformationErrorOption {
+ return func(f *TransformationError) {
f.Code = &val
}
}
-func WithTransformationTryResponseErrorMessage(val string) TransformationTryResponseErrorOption {
- return func(f *TransformationTryResponseError) {
+func WithTransformationErrorMessage(val string) TransformationErrorOption {
+ return func(f *TransformationError) {
f.Message = &val
}
}
-// NewTransformationTryResponseError instantiates a new TransformationTryResponseError object
+// NewTransformationError instantiates a new TransformationError object
// This constructor will assign default values to properties that have it defined,
// and makes sure properties required by API are set, but the set of arguments
// will change when the set of required properties is changed.
-func NewTransformationTryResponseError(opts ...TransformationTryResponseErrorOption) *TransformationTryResponseError {
- this := &TransformationTryResponseError{}
+func NewTransformationError(opts ...TransformationErrorOption) *TransformationError {
+ this := &TransformationError{}
for _, opt := range opts {
opt(this)
}
return this
}
-// NewEmptyTransformationTryResponseError return a pointer to an empty TransformationTryResponseError object.
-func NewEmptyTransformationTryResponseError() *TransformationTryResponseError {
- return &TransformationTryResponseError{}
+// NewEmptyTransformationError return a pointer to an empty TransformationError object.
+func NewEmptyTransformationError() *TransformationError {
+ return &TransformationError{}
}
// GetCode returns the Code field value if set, zero value otherwise.
-func (o *TransformationTryResponseError) GetCode() int32 {
+func (o *TransformationError) GetCode() int32 {
if o == nil || o.Code == nil {
var ret int32
return ret
@@ -56,7 +56,7 @@ func (o *TransformationTryResponseError) GetCode() int32 {
// GetCodeOk returns a tuple with the Code field value if set, nil otherwise
// and a boolean to check if the value has been set.
-func (o *TransformationTryResponseError) GetCodeOk() (*int32, bool) {
+func (o *TransformationError) GetCodeOk() (*int32, bool) {
if o == nil || o.Code == nil {
return nil, false
}
@@ -64,7 +64,7 @@ func (o *TransformationTryResponseError) GetCodeOk() (*int32, bool) {
}
// HasCode returns a boolean if a field has been set.
-func (o *TransformationTryResponseError) HasCode() bool {
+func (o *TransformationError) HasCode() bool {
if o != nil && o.Code != nil {
return true
}
@@ -73,13 +73,13 @@ func (o *TransformationTryResponseError) HasCode() bool {
}
// SetCode gets a reference to the given int32 and assigns it to the Code field.
-func (o *TransformationTryResponseError) SetCode(v int32) *TransformationTryResponseError {
+func (o *TransformationError) SetCode(v int32) *TransformationError {
o.Code = &v
return o
}
// GetMessage returns the Message field value if set, zero value otherwise.
-func (o *TransformationTryResponseError) GetMessage() string {
+func (o *TransformationError) GetMessage() string {
if o == nil || o.Message == nil {
var ret string
return ret
@@ -89,7 +89,7 @@ func (o *TransformationTryResponseError) GetMessage() string {
// GetMessageOk returns a tuple with the Message field value if set, nil otherwise
// and a boolean to check if the value has been set.
-func (o *TransformationTryResponseError) GetMessageOk() (*string, bool) {
+func (o *TransformationError) GetMessageOk() (*string, bool) {
if o == nil || o.Message == nil {
return nil, false
}
@@ -97,7 +97,7 @@ func (o *TransformationTryResponseError) GetMessageOk() (*string, bool) {
}
// HasMessage returns a boolean if a field has been set.
-func (o *TransformationTryResponseError) HasMessage() bool {
+func (o *TransformationError) HasMessage() bool {
if o != nil && o.Message != nil {
return true
}
@@ -106,12 +106,12 @@ func (o *TransformationTryResponseError) HasMessage() bool {
}
// SetMessage gets a reference to the given string and assigns it to the Message field.
-func (o *TransformationTryResponseError) SetMessage(v string) *TransformationTryResponseError {
+func (o *TransformationError) SetMessage(v string) *TransformationError {
o.Message = &v
return o
}
-func (o TransformationTryResponseError) MarshalJSON() ([]byte, error) {
+func (o TransformationError) MarshalJSON() ([]byte, error) {
toSerialize := map[string]any{}
if o.Code != nil {
toSerialize["code"] = o.Code
@@ -121,15 +121,15 @@ func (o TransformationTryResponseError) MarshalJSON() ([]byte, error) {
}
serialized, err := json.Marshal(toSerialize)
if err != nil {
- return nil, fmt.Errorf("failed to marshal TransformationTryResponseError: %w", err)
+ return nil, fmt.Errorf("failed to marshal TransformationError: %w", err)
}
return serialized, nil
}
-func (o TransformationTryResponseError) String() string {
+func (o TransformationError) String() string {
out := ""
out += fmt.Sprintf(" code=%v\n", o.Code)
out += fmt.Sprintf(" message=%v\n", o.Message)
- return fmt.Sprintf("TransformationTryResponseError {\n%s}", out)
+ return fmt.Sprintf("TransformationError {\n%s}", out)
}
diff --git a/clients/algoliasearch-client-go/algolia/ingestion/model_transformation_try_response.go b/clients/algoliasearch-client-go/algolia/ingestion/model_transformation_try_response.go
index 7606bb81b3..3528a872f2 100644
--- a/clients/algoliasearch-client-go/algolia/ingestion/model_transformation_try_response.go
+++ b/clients/algoliasearch-client-go/algolia/ingestion/model_transformation_try_response.go
@@ -9,13 +9,13 @@ import (
// TransformationTryResponse struct for TransformationTryResponse.
type TransformationTryResponse struct {
// The array of records returned by the transformation service.
- Payloads []map[string]any `json:"payloads"`
- Error *TransformationTryResponseError `json:"error,omitempty"`
+ Payloads []map[string]any `json:"payloads"`
+ Error *TransformationError `json:"error,omitempty"`
}
type TransformationTryResponseOption func(f *TransformationTryResponse)
-func WithTransformationTryResponseError(val TransformationTryResponseError) TransformationTryResponseOption {
+func WithTransformationTryResponseError(val TransformationError) TransformationTryResponseOption {
return func(f *TransformationTryResponse) {
f.Error = &val
}
@@ -65,9 +65,9 @@ func (o *TransformationTryResponse) SetPayloads(v []map[string]any) *Transformat
}
// GetError returns the Error field value if set, zero value otherwise.
-func (o *TransformationTryResponse) GetError() TransformationTryResponseError {
+func (o *TransformationTryResponse) GetError() TransformationError {
if o == nil || o.Error == nil {
- var ret TransformationTryResponseError
+ var ret TransformationError
return ret
}
return *o.Error
@@ -75,7 +75,7 @@ func (o *TransformationTryResponse) GetError() TransformationTryResponseError {
// GetErrorOk returns a tuple with the Error field value if set, nil otherwise
// and a boolean to check if the value has been set.
-func (o *TransformationTryResponse) GetErrorOk() (*TransformationTryResponseError, bool) {
+func (o *TransformationTryResponse) GetErrorOk() (*TransformationError, bool) {
if o == nil || o.Error == nil {
return nil, false
}
@@ -91,8 +91,8 @@ func (o *TransformationTryResponse) HasError() bool {
return false
}
-// SetError gets a reference to the given TransformationTryResponseError and assigns it to the Error field.
-func (o *TransformationTryResponse) SetError(v *TransformationTryResponseError) *TransformationTryResponse {
+// SetError gets a reference to the given TransformationError and assigns it to the Error field.
+func (o *TransformationTryResponse) SetError(v *TransformationError) *TransformationTryResponse {
o.Error = v
return o
}
diff --git a/clients/algoliasearch-client-go/algolia/monitoring/model_get_servers_403_response.go b/clients/algoliasearch-client-go/algolia/monitoring/model_bad_request.go
similarity index 55%
rename from clients/algoliasearch-client-go/algolia/monitoring/model_get_servers_403_response.go
rename to clients/algoliasearch-client-go/algolia/monitoring/model_bad_request.go
index 00d093bd69..a240da0a82 100644
--- a/clients/algoliasearch-client-go/algolia/monitoring/model_get_servers_403_response.go
+++ b/clients/algoliasearch-client-go/algolia/monitoring/model_bad_request.go
@@ -6,38 +6,38 @@ import (
"fmt"
)
-// GetServers403Response struct for GetServers403Response.
-type GetServers403Response struct {
+// BadRequest struct for BadRequest.
+type BadRequest struct {
Reason *string `json:"reason,omitempty"`
}
-type GetServers403ResponseOption func(f *GetServers403Response)
+type BadRequestOption func(f *BadRequest)
-func WithGetServers403ResponseReason(val string) GetServers403ResponseOption {
- return func(f *GetServers403Response) {
+func WithBadRequestReason(val string) BadRequestOption {
+ return func(f *BadRequest) {
f.Reason = &val
}
}
-// NewGetServers403Response instantiates a new GetServers403Response object
+// NewBadRequest instantiates a new BadRequest object
// This constructor will assign default values to properties that have it defined,
// and makes sure properties required by API are set, but the set of arguments
// will change when the set of required properties is changed.
-func NewGetServers403Response(opts ...GetServers403ResponseOption) *GetServers403Response {
- this := &GetServers403Response{}
+func NewBadRequest(opts ...BadRequestOption) *BadRequest {
+ this := &BadRequest{}
for _, opt := range opts {
opt(this)
}
return this
}
-// NewEmptyGetServers403Response return a pointer to an empty GetServers403Response object.
-func NewEmptyGetServers403Response() *GetServers403Response {
- return &GetServers403Response{}
+// NewEmptyBadRequest return a pointer to an empty BadRequest object.
+func NewEmptyBadRequest() *BadRequest {
+ return &BadRequest{}
}
// GetReason returns the Reason field value if set, zero value otherwise.
-func (o *GetServers403Response) GetReason() string {
+func (o *BadRequest) GetReason() string {
if o == nil || o.Reason == nil {
var ret string
return ret
@@ -47,7 +47,7 @@ func (o *GetServers403Response) GetReason() string {
// GetReasonOk returns a tuple with the Reason field value if set, nil otherwise
// and a boolean to check if the value has been set.
-func (o *GetServers403Response) GetReasonOk() (*string, bool) {
+func (o *BadRequest) GetReasonOk() (*string, bool) {
if o == nil || o.Reason == nil {
return nil, false
}
@@ -55,7 +55,7 @@ func (o *GetServers403Response) GetReasonOk() (*string, bool) {
}
// HasReason returns a boolean if a field has been set.
-func (o *GetServers403Response) HasReason() bool {
+func (o *BadRequest) HasReason() bool {
if o != nil && o.Reason != nil {
return true
}
@@ -64,26 +64,26 @@ func (o *GetServers403Response) HasReason() bool {
}
// SetReason gets a reference to the given string and assigns it to the Reason field.
-func (o *GetServers403Response) SetReason(v string) *GetServers403Response {
+func (o *BadRequest) SetReason(v string) *BadRequest {
o.Reason = &v
return o
}
-func (o GetServers403Response) MarshalJSON() ([]byte, error) {
+func (o BadRequest) MarshalJSON() ([]byte, error) {
toSerialize := map[string]any{}
if o.Reason != nil {
toSerialize["reason"] = o.Reason
}
serialized, err := json.Marshal(toSerialize)
if err != nil {
- return nil, fmt.Errorf("failed to marshal GetServers403Response: %w", err)
+ return nil, fmt.Errorf("failed to marshal BadRequest: %w", err)
}
return serialized, nil
}
-func (o GetServers403Response) String() string {
+func (o BadRequest) String() string {
out := ""
out += fmt.Sprintf(" reason=%v\n", o.Reason)
- return fmt.Sprintf("GetServers403Response {\n%s}", out)
+ return fmt.Sprintf("BadRequest {\n%s}", out)
}
diff --git a/clients/algoliasearch-client-go/algolia/monitoring/model_forbidden.go b/clients/algoliasearch-client-go/algolia/monitoring/model_forbidden.go
new file mode 100644
index 0000000000..3ba095540a
--- /dev/null
+++ b/clients/algoliasearch-client-go/algolia/monitoring/model_forbidden.go
@@ -0,0 +1,89 @@
+// 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.
+package monitoring
+
+import (
+ "encoding/json"
+ "fmt"
+)
+
+// Forbidden struct for Forbidden.
+type Forbidden struct {
+ Reason *string `json:"reason,omitempty"`
+}
+
+type ForbiddenOption func(f *Forbidden)
+
+func WithForbiddenReason(val string) ForbiddenOption {
+ return func(f *Forbidden) {
+ f.Reason = &val
+ }
+}
+
+// NewForbidden instantiates a new Forbidden object
+// This constructor will assign default values to properties that have it defined,
+// and makes sure properties required by API are set, but the set of arguments
+// will change when the set of required properties is changed.
+func NewForbidden(opts ...ForbiddenOption) *Forbidden {
+ this := &Forbidden{}
+ for _, opt := range opts {
+ opt(this)
+ }
+ return this
+}
+
+// NewEmptyForbidden return a pointer to an empty Forbidden object.
+func NewEmptyForbidden() *Forbidden {
+ return &Forbidden{}
+}
+
+// GetReason returns the Reason field value if set, zero value otherwise.
+func (o *Forbidden) GetReason() string {
+ if o == nil || o.Reason == nil {
+ var ret string
+ return ret
+ }
+ return *o.Reason
+}
+
+// GetReasonOk returns a tuple with the Reason field value if set, nil otherwise
+// and a boolean to check if the value has been set.
+func (o *Forbidden) GetReasonOk() (*string, bool) {
+ if o == nil || o.Reason == nil {
+ return nil, false
+ }
+ return o.Reason, true
+}
+
+// HasReason returns a boolean if a field has been set.
+func (o *Forbidden) HasReason() bool {
+ if o != nil && o.Reason != nil {
+ return true
+ }
+
+ return false
+}
+
+// SetReason gets a reference to the given string and assigns it to the Reason field.
+func (o *Forbidden) SetReason(v string) *Forbidden {
+ o.Reason = &v
+ return o
+}
+
+func (o Forbidden) MarshalJSON() ([]byte, error) {
+ toSerialize := map[string]any{}
+ if o.Reason != nil {
+ toSerialize["reason"] = o.Reason
+ }
+ serialized, err := json.Marshal(toSerialize)
+ if err != nil {
+ return nil, fmt.Errorf("failed to marshal Forbidden: %w", err)
+ }
+
+ return serialized, nil
+}
+
+func (o Forbidden) String() string {
+ out := ""
+ out += fmt.Sprintf(" reason=%v\n", o.Reason)
+ return fmt.Sprintf("Forbidden {\n%s}", out)
+}
diff --git a/clients/algoliasearch-client-go/algolia/monitoring/model_incidents_inner.go b/clients/algoliasearch-client-go/algolia/monitoring/model_incident_entry.go
similarity index 63%
rename from clients/algoliasearch-client-go/algolia/monitoring/model_incidents_inner.go
rename to clients/algoliasearch-client-go/algolia/monitoring/model_incident_entry.go
index 3c886b0ca9..f32ccc7d0e 100644
--- a/clients/algoliasearch-client-go/algolia/monitoring/model_incidents_inner.go
+++ b/clients/algoliasearch-client-go/algolia/monitoring/model_incident_entry.go
@@ -6,46 +6,46 @@ import (
"fmt"
)
-// IncidentsInner struct for IncidentsInner.
-type IncidentsInner struct {
+// IncidentEntry struct for IncidentEntry.
+type IncidentEntry struct {
// Timestamp, measured in milliseconds since the Unix epoch.
T *int64 `json:"t,omitempty"`
V *Incident `json:"v,omitempty"`
}
-type IncidentsInnerOption func(f *IncidentsInner)
+type IncidentEntryOption func(f *IncidentEntry)
-func WithIncidentsInnerT(val int64) IncidentsInnerOption {
- return func(f *IncidentsInner) {
+func WithIncidentEntryT(val int64) IncidentEntryOption {
+ return func(f *IncidentEntry) {
f.T = &val
}
}
-func WithIncidentsInnerV(val Incident) IncidentsInnerOption {
- return func(f *IncidentsInner) {
+func WithIncidentEntryV(val Incident) IncidentEntryOption {
+ return func(f *IncidentEntry) {
f.V = &val
}
}
-// NewIncidentsInner instantiates a new IncidentsInner object
+// NewIncidentEntry instantiates a new IncidentEntry object
// This constructor will assign default values to properties that have it defined,
// and makes sure properties required by API are set, but the set of arguments
// will change when the set of required properties is changed.
-func NewIncidentsInner(opts ...IncidentsInnerOption) *IncidentsInner {
- this := &IncidentsInner{}
+func NewIncidentEntry(opts ...IncidentEntryOption) *IncidentEntry {
+ this := &IncidentEntry{}
for _, opt := range opts {
opt(this)
}
return this
}
-// NewEmptyIncidentsInner return a pointer to an empty IncidentsInner object.
-func NewEmptyIncidentsInner() *IncidentsInner {
- return &IncidentsInner{}
+// NewEmptyIncidentEntry return a pointer to an empty IncidentEntry object.
+func NewEmptyIncidentEntry() *IncidentEntry {
+ return &IncidentEntry{}
}
// GetT returns the T field value if set, zero value otherwise.
-func (o *IncidentsInner) GetT() int64 {
+func (o *IncidentEntry) GetT() int64 {
if o == nil || o.T == nil {
var ret int64
return ret
@@ -55,7 +55,7 @@ func (o *IncidentsInner) GetT() int64 {
// GetTOk returns a tuple with the T field value if set, nil otherwise
// and a boolean to check if the value has been set.
-func (o *IncidentsInner) GetTOk() (*int64, bool) {
+func (o *IncidentEntry) GetTOk() (*int64, bool) {
if o == nil || o.T == nil {
return nil, false
}
@@ -63,7 +63,7 @@ func (o *IncidentsInner) GetTOk() (*int64, bool) {
}
// HasT returns a boolean if a field has been set.
-func (o *IncidentsInner) HasT() bool {
+func (o *IncidentEntry) HasT() bool {
if o != nil && o.T != nil {
return true
}
@@ -72,13 +72,13 @@ func (o *IncidentsInner) HasT() bool {
}
// SetT gets a reference to the given int64 and assigns it to the T field.
-func (o *IncidentsInner) SetT(v int64) *IncidentsInner {
+func (o *IncidentEntry) SetT(v int64) *IncidentEntry {
o.T = &v
return o
}
// GetV returns the V field value if set, zero value otherwise.
-func (o *IncidentsInner) GetV() Incident {
+func (o *IncidentEntry) GetV() Incident {
if o == nil || o.V == nil {
var ret Incident
return ret
@@ -88,7 +88,7 @@ func (o *IncidentsInner) GetV() Incident {
// GetVOk returns a tuple with the V field value if set, nil otherwise
// and a boolean to check if the value has been set.
-func (o *IncidentsInner) GetVOk() (*Incident, bool) {
+func (o *IncidentEntry) GetVOk() (*Incident, bool) {
if o == nil || o.V == nil {
return nil, false
}
@@ -96,7 +96,7 @@ func (o *IncidentsInner) GetVOk() (*Incident, bool) {
}
// HasV returns a boolean if a field has been set.
-func (o *IncidentsInner) HasV() bool {
+func (o *IncidentEntry) HasV() bool {
if o != nil && o.V != nil {
return true
}
@@ -105,12 +105,12 @@ func (o *IncidentsInner) HasV() bool {
}
// SetV gets a reference to the given Incident and assigns it to the V field.
-func (o *IncidentsInner) SetV(v *Incident) *IncidentsInner {
+func (o *IncidentEntry) SetV(v *Incident) *IncidentEntry {
o.V = v
return o
}
-func (o IncidentsInner) MarshalJSON() ([]byte, error) {
+func (o IncidentEntry) MarshalJSON() ([]byte, error) {
toSerialize := map[string]any{}
if o.T != nil {
toSerialize["t"] = o.T
@@ -120,15 +120,15 @@ func (o IncidentsInner) MarshalJSON() ([]byte, error) {
}
serialized, err := json.Marshal(toSerialize)
if err != nil {
- return nil, fmt.Errorf("failed to marshal IncidentsInner: %w", err)
+ return nil, fmt.Errorf("failed to marshal IncidentEntry: %w", err)
}
return serialized, nil
}
-func (o IncidentsInner) String() string {
+func (o IncidentEntry) String() string {
out := ""
out += fmt.Sprintf(" t=%v\n", o.T)
out += fmt.Sprintf(" v=%v\n", o.V)
- return fmt.Sprintf("IncidentsInner {\n%s}", out)
+ return fmt.Sprintf("IncidentEntry {\n%s}", out)
}
diff --git a/clients/algoliasearch-client-go/algolia/monitoring/model_incidents_response.go b/clients/algoliasearch-client-go/algolia/monitoring/model_incidents_response.go
index 386e69bcc8..ba8e1ad62f 100644
--- a/clients/algoliasearch-client-go/algolia/monitoring/model_incidents_response.go
+++ b/clients/algoliasearch-client-go/algolia/monitoring/model_incidents_response.go
@@ -8,12 +8,12 @@ import (
// IncidentsResponse struct for IncidentsResponse.
type IncidentsResponse struct {
- Incidents *map[string][]IncidentsInner `json:"incidents,omitempty"`
+ Incidents *map[string][]IncidentEntry `json:"incidents,omitempty"`
}
type IncidentsResponseOption func(f *IncidentsResponse)
-func WithIncidentsResponseIncidents(val map[string][]IncidentsInner) IncidentsResponseOption {
+func WithIncidentsResponseIncidents(val map[string][]IncidentEntry) IncidentsResponseOption {
return func(f *IncidentsResponse) {
f.Incidents = &val
}
@@ -37,9 +37,9 @@ func NewEmptyIncidentsResponse() *IncidentsResponse {
}
// GetIncidents returns the Incidents field value if set, zero value otherwise.
-func (o *IncidentsResponse) GetIncidents() map[string][]IncidentsInner {
+func (o *IncidentsResponse) GetIncidents() map[string][]IncidentEntry {
if o == nil || o.Incidents == nil {
- var ret map[string][]IncidentsInner
+ var ret map[string][]IncidentEntry
return ret
}
return *o.Incidents
@@ -47,7 +47,7 @@ func (o *IncidentsResponse) GetIncidents() map[string][]IncidentsInner {
// GetIncidentsOk returns a tuple with the Incidents field value if set, nil otherwise
// and a boolean to check if the value has been set.
-func (o *IncidentsResponse) GetIncidentsOk() (*map[string][]IncidentsInner, bool) {
+func (o *IncidentsResponse) GetIncidentsOk() (*map[string][]IncidentEntry, bool) {
if o == nil || o.Incidents == nil {
return nil, false
}
@@ -63,8 +63,8 @@ func (o *IncidentsResponse) HasIncidents() bool {
return false
}
-// SetIncidents gets a reference to the given map[string][]IncidentsInner and assigns it to the Incidents field.
-func (o *IncidentsResponse) SetIncidents(v map[string][]IncidentsInner) *IncidentsResponse {
+// SetIncidents gets a reference to the given map[string][]IncidentEntry and assigns it to the Incidents field.
+func (o *IncidentsResponse) SetIncidents(v map[string][]IncidentEntry) *IncidentsResponse {
o.Incidents = &v
return o
}
diff --git a/clients/algoliasearch-client-go/algolia/monitoring/model_indexing_metric.go b/clients/algoliasearch-client-go/algolia/monitoring/model_indexing_metric.go
new file mode 100644
index 0000000000..b857c66c37
--- /dev/null
+++ b/clients/algoliasearch-client-go/algolia/monitoring/model_indexing_metric.go
@@ -0,0 +1,89 @@
+// 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.
+package monitoring
+
+import (
+ "encoding/json"
+ "fmt"
+)
+
+// IndexingMetric struct for IndexingMetric.
+type IndexingMetric struct {
+ Indexing *map[string][]TimeEntry `json:"indexing,omitempty"`
+}
+
+type IndexingMetricOption func(f *IndexingMetric)
+
+func WithIndexingMetricIndexing(val map[string][]TimeEntry) IndexingMetricOption {
+ return func(f *IndexingMetric) {
+ f.Indexing = &val
+ }
+}
+
+// NewIndexingMetric instantiates a new IndexingMetric object
+// This constructor will assign default values to properties that have it defined,
+// and makes sure properties required by API are set, but the set of arguments
+// will change when the set of required properties is changed.
+func NewIndexingMetric(opts ...IndexingMetricOption) *IndexingMetric {
+ this := &IndexingMetric{}
+ for _, opt := range opts {
+ opt(this)
+ }
+ return this
+}
+
+// NewEmptyIndexingMetric return a pointer to an empty IndexingMetric object.
+func NewEmptyIndexingMetric() *IndexingMetric {
+ return &IndexingMetric{}
+}
+
+// GetIndexing returns the Indexing field value if set, zero value otherwise.
+func (o *IndexingMetric) GetIndexing() map[string][]TimeEntry {
+ if o == nil || o.Indexing == nil {
+ var ret map[string][]TimeEntry
+ return ret
+ }
+ return *o.Indexing
+}
+
+// GetIndexingOk returns a tuple with the Indexing field value if set, nil otherwise
+// and a boolean to check if the value has been set.
+func (o *IndexingMetric) GetIndexingOk() (*map[string][]TimeEntry, bool) {
+ if o == nil || o.Indexing == nil {
+ return nil, false
+ }
+ return o.Indexing, true
+}
+
+// HasIndexing returns a boolean if a field has been set.
+func (o *IndexingMetric) HasIndexing() bool {
+ if o != nil && o.Indexing != nil {
+ return true
+ }
+
+ return false
+}
+
+// SetIndexing gets a reference to the given map[string][]TimeEntry and assigns it to the Indexing field.
+func (o *IndexingMetric) SetIndexing(v map[string][]TimeEntry) *IndexingMetric {
+ o.Indexing = &v
+ return o
+}
+
+func (o IndexingMetric) MarshalJSON() ([]byte, error) {
+ toSerialize := map[string]any{}
+ if o.Indexing != nil {
+ toSerialize["indexing"] = o.Indexing
+ }
+ serialized, err := json.Marshal(toSerialize)
+ if err != nil {
+ return nil, fmt.Errorf("failed to marshal IndexingMetric: %w", err)
+ }
+
+ return serialized, nil
+}
+
+func (o IndexingMetric) String() string {
+ out := ""
+ out += fmt.Sprintf(" indexing=%v\n", o.Indexing)
+ return fmt.Sprintf("IndexingMetric {\n%s}", out)
+}
diff --git a/clients/algoliasearch-client-go/algolia/monitoring/model_indexing_time_response.go b/clients/algoliasearch-client-go/algolia/monitoring/model_indexing_time_response.go
index cbbfc595d6..dbae1cd791 100644
--- a/clients/algoliasearch-client-go/algolia/monitoring/model_indexing_time_response.go
+++ b/clients/algoliasearch-client-go/algolia/monitoring/model_indexing_time_response.go
@@ -8,12 +8,12 @@ import (
// IndexingTimeResponse struct for IndexingTimeResponse.
type IndexingTimeResponse struct {
- Metrics *IndexingTimeResponseMetrics `json:"metrics,omitempty"`
+ Metrics *IndexingMetric `json:"metrics,omitempty"`
}
type IndexingTimeResponseOption func(f *IndexingTimeResponse)
-func WithIndexingTimeResponseMetrics(val IndexingTimeResponseMetrics) IndexingTimeResponseOption {
+func WithIndexingTimeResponseMetrics(val IndexingMetric) IndexingTimeResponseOption {
return func(f *IndexingTimeResponse) {
f.Metrics = &val
}
@@ -37,9 +37,9 @@ func NewEmptyIndexingTimeResponse() *IndexingTimeResponse {
}
// GetMetrics returns the Metrics field value if set, zero value otherwise.
-func (o *IndexingTimeResponse) GetMetrics() IndexingTimeResponseMetrics {
+func (o *IndexingTimeResponse) GetMetrics() IndexingMetric {
if o == nil || o.Metrics == nil {
- var ret IndexingTimeResponseMetrics
+ var ret IndexingMetric
return ret
}
return *o.Metrics
@@ -47,7 +47,7 @@ func (o *IndexingTimeResponse) GetMetrics() IndexingTimeResponseMetrics {
// GetMetricsOk returns a tuple with the Metrics field value if set, nil otherwise
// and a boolean to check if the value has been set.
-func (o *IndexingTimeResponse) GetMetricsOk() (*IndexingTimeResponseMetrics, bool) {
+func (o *IndexingTimeResponse) GetMetricsOk() (*IndexingMetric, bool) {
if o == nil || o.Metrics == nil {
return nil, false
}
@@ -63,8 +63,8 @@ func (o *IndexingTimeResponse) HasMetrics() bool {
return false
}
-// SetMetrics gets a reference to the given IndexingTimeResponseMetrics and assigns it to the Metrics field.
-func (o *IndexingTimeResponse) SetMetrics(v *IndexingTimeResponseMetrics) *IndexingTimeResponse {
+// SetMetrics gets a reference to the given IndexingMetric and assigns it to the Metrics field.
+func (o *IndexingTimeResponse) SetMetrics(v *IndexingMetric) *IndexingTimeResponse {
o.Metrics = v
return o
}
diff --git a/clients/algoliasearch-client-go/algolia/monitoring/model_indexing_time_response_metrics.go b/clients/algoliasearch-client-go/algolia/monitoring/model_indexing_time_response_metrics.go
deleted file mode 100644
index da7be54790..0000000000
--- a/clients/algoliasearch-client-go/algolia/monitoring/model_indexing_time_response_metrics.go
+++ /dev/null
@@ -1,89 +0,0 @@
-// 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.
-package monitoring
-
-import (
- "encoding/json"
- "fmt"
-)
-
-// IndexingTimeResponseMetrics struct for IndexingTimeResponseMetrics.
-type IndexingTimeResponseMetrics struct {
- Indexing *map[string][]TimeInner `json:"indexing,omitempty"`
-}
-
-type IndexingTimeResponseMetricsOption func(f *IndexingTimeResponseMetrics)
-
-func WithIndexingTimeResponseMetricsIndexing(val map[string][]TimeInner) IndexingTimeResponseMetricsOption {
- return func(f *IndexingTimeResponseMetrics) {
- f.Indexing = &val
- }
-}
-
-// NewIndexingTimeResponseMetrics instantiates a new IndexingTimeResponseMetrics object
-// This constructor will assign default values to properties that have it defined,
-// and makes sure properties required by API are set, but the set of arguments
-// will change when the set of required properties is changed.
-func NewIndexingTimeResponseMetrics(opts ...IndexingTimeResponseMetricsOption) *IndexingTimeResponseMetrics {
- this := &IndexingTimeResponseMetrics{}
- for _, opt := range opts {
- opt(this)
- }
- return this
-}
-
-// NewEmptyIndexingTimeResponseMetrics return a pointer to an empty IndexingTimeResponseMetrics object.
-func NewEmptyIndexingTimeResponseMetrics() *IndexingTimeResponseMetrics {
- return &IndexingTimeResponseMetrics{}
-}
-
-// GetIndexing returns the Indexing field value if set, zero value otherwise.
-func (o *IndexingTimeResponseMetrics) GetIndexing() map[string][]TimeInner {
- if o == nil || o.Indexing == nil {
- var ret map[string][]TimeInner
- return ret
- }
- return *o.Indexing
-}
-
-// GetIndexingOk returns a tuple with the Indexing field value if set, nil otherwise
-// and a boolean to check if the value has been set.
-func (o *IndexingTimeResponseMetrics) GetIndexingOk() (*map[string][]TimeInner, bool) {
- if o == nil || o.Indexing == nil {
- return nil, false
- }
- return o.Indexing, true
-}
-
-// HasIndexing returns a boolean if a field has been set.
-func (o *IndexingTimeResponseMetrics) HasIndexing() bool {
- if o != nil && o.Indexing != nil {
- return true
- }
-
- return false
-}
-
-// SetIndexing gets a reference to the given map[string][]TimeInner and assigns it to the Indexing field.
-func (o *IndexingTimeResponseMetrics) SetIndexing(v map[string][]TimeInner) *IndexingTimeResponseMetrics {
- o.Indexing = &v
- return o
-}
-
-func (o IndexingTimeResponseMetrics) MarshalJSON() ([]byte, error) {
- toSerialize := map[string]any{}
- if o.Indexing != nil {
- toSerialize["indexing"] = o.Indexing
- }
- serialized, err := json.Marshal(toSerialize)
- if err != nil {
- return nil, fmt.Errorf("failed to marshal IndexingTimeResponseMetrics: %w", err)
- }
-
- return serialized, nil
-}
-
-func (o IndexingTimeResponseMetrics) String() string {
- out := ""
- out += fmt.Sprintf(" indexing=%v\n", o.Indexing)
- return fmt.Sprintf("IndexingTimeResponseMetrics {\n%s}", out)
-}
diff --git a/clients/algoliasearch-client-go/algolia/monitoring/model_infrastructure_response.go b/clients/algoliasearch-client-go/algolia/monitoring/model_infrastructure_response.go
index a8f7be25df..04cc61b145 100644
--- a/clients/algoliasearch-client-go/algolia/monitoring/model_infrastructure_response.go
+++ b/clients/algoliasearch-client-go/algolia/monitoring/model_infrastructure_response.go
@@ -8,12 +8,12 @@ import (
// InfrastructureResponse struct for InfrastructureResponse.
type InfrastructureResponse struct {
- Metrics *InfrastructureResponseMetrics `json:"metrics,omitempty"`
+ Metrics *Metrics `json:"metrics,omitempty"`
}
type InfrastructureResponseOption func(f *InfrastructureResponse)
-func WithInfrastructureResponseMetrics(val InfrastructureResponseMetrics) InfrastructureResponseOption {
+func WithInfrastructureResponseMetrics(val Metrics) InfrastructureResponseOption {
return func(f *InfrastructureResponse) {
f.Metrics = &val
}
@@ -37,9 +37,9 @@ func NewEmptyInfrastructureResponse() *InfrastructureResponse {
}
// GetMetrics returns the Metrics field value if set, zero value otherwise.
-func (o *InfrastructureResponse) GetMetrics() InfrastructureResponseMetrics {
+func (o *InfrastructureResponse) GetMetrics() Metrics {
if o == nil || o.Metrics == nil {
- var ret InfrastructureResponseMetrics
+ var ret Metrics
return ret
}
return *o.Metrics
@@ -47,7 +47,7 @@ func (o *InfrastructureResponse) GetMetrics() InfrastructureResponseMetrics {
// GetMetricsOk returns a tuple with the Metrics field value if set, nil otherwise
// and a boolean to check if the value has been set.
-func (o *InfrastructureResponse) GetMetricsOk() (*InfrastructureResponseMetrics, bool) {
+func (o *InfrastructureResponse) GetMetricsOk() (*Metrics, bool) {
if o == nil || o.Metrics == nil {
return nil, false
}
@@ -63,8 +63,8 @@ func (o *InfrastructureResponse) HasMetrics() bool {
return false
}
-// SetMetrics gets a reference to the given InfrastructureResponseMetrics and assigns it to the Metrics field.
-func (o *InfrastructureResponse) SetMetrics(v *InfrastructureResponseMetrics) *InfrastructureResponse {
+// SetMetrics gets a reference to the given Metrics and assigns it to the Metrics field.
+func (o *InfrastructureResponse) SetMetrics(v *Metrics) *InfrastructureResponse {
o.Metrics = v
return o
}
diff --git a/clients/algoliasearch-client-go/algolia/monitoring/model_latency_metric.go b/clients/algoliasearch-client-go/algolia/monitoring/model_latency_metric.go
new file mode 100644
index 0000000000..551a437d2e
--- /dev/null
+++ b/clients/algoliasearch-client-go/algolia/monitoring/model_latency_metric.go
@@ -0,0 +1,89 @@
+// 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.
+package monitoring
+
+import (
+ "encoding/json"
+ "fmt"
+)
+
+// LatencyMetric struct for LatencyMetric.
+type LatencyMetric struct {
+ Latency *map[string][]TimeEntry `json:"latency,omitempty"`
+}
+
+type LatencyMetricOption func(f *LatencyMetric)
+
+func WithLatencyMetricLatency(val map[string][]TimeEntry) LatencyMetricOption {
+ return func(f *LatencyMetric) {
+ f.Latency = &val
+ }
+}
+
+// NewLatencyMetric instantiates a new LatencyMetric object
+// This constructor will assign default values to properties that have it defined,
+// and makes sure properties required by API are set, but the set of arguments
+// will change when the set of required properties is changed.
+func NewLatencyMetric(opts ...LatencyMetricOption) *LatencyMetric {
+ this := &LatencyMetric{}
+ for _, opt := range opts {
+ opt(this)
+ }
+ return this
+}
+
+// NewEmptyLatencyMetric return a pointer to an empty LatencyMetric object.
+func NewEmptyLatencyMetric() *LatencyMetric {
+ return &LatencyMetric{}
+}
+
+// GetLatency returns the Latency field value if set, zero value otherwise.
+func (o *LatencyMetric) GetLatency() map[string][]TimeEntry {
+ if o == nil || o.Latency == nil {
+ var ret map[string][]TimeEntry
+ return ret
+ }
+ return *o.Latency
+}
+
+// GetLatencyOk returns a tuple with the Latency field value if set, nil otherwise
+// and a boolean to check if the value has been set.
+func (o *LatencyMetric) GetLatencyOk() (*map[string][]TimeEntry, bool) {
+ if o == nil || o.Latency == nil {
+ return nil, false
+ }
+ return o.Latency, true
+}
+
+// HasLatency returns a boolean if a field has been set.
+func (o *LatencyMetric) HasLatency() bool {
+ if o != nil && o.Latency != nil {
+ return true
+ }
+
+ return false
+}
+
+// SetLatency gets a reference to the given map[string][]TimeEntry and assigns it to the Latency field.
+func (o *LatencyMetric) SetLatency(v map[string][]TimeEntry) *LatencyMetric {
+ o.Latency = &v
+ return o
+}
+
+func (o LatencyMetric) MarshalJSON() ([]byte, error) {
+ toSerialize := map[string]any{}
+ if o.Latency != nil {
+ toSerialize["latency"] = o.Latency
+ }
+ serialized, err := json.Marshal(toSerialize)
+ if err != nil {
+ return nil, fmt.Errorf("failed to marshal LatencyMetric: %w", err)
+ }
+
+ return serialized, nil
+}
+
+func (o LatencyMetric) String() string {
+ out := ""
+ out += fmt.Sprintf(" latency=%v\n", o.Latency)
+ return fmt.Sprintf("LatencyMetric {\n%s}", out)
+}
diff --git a/clients/algoliasearch-client-go/algolia/monitoring/model_latency_response.go b/clients/algoliasearch-client-go/algolia/monitoring/model_latency_response.go
index b46ef1fea6..955e2b5e59 100644
--- a/clients/algoliasearch-client-go/algolia/monitoring/model_latency_response.go
+++ b/clients/algoliasearch-client-go/algolia/monitoring/model_latency_response.go
@@ -8,12 +8,12 @@ import (
// LatencyResponse struct for LatencyResponse.
type LatencyResponse struct {
- Metrics *LatencyResponseMetrics `json:"metrics,omitempty"`
+ Metrics *LatencyMetric `json:"metrics,omitempty"`
}
type LatencyResponseOption func(f *LatencyResponse)
-func WithLatencyResponseMetrics(val LatencyResponseMetrics) LatencyResponseOption {
+func WithLatencyResponseMetrics(val LatencyMetric) LatencyResponseOption {
return func(f *LatencyResponse) {
f.Metrics = &val
}
@@ -37,9 +37,9 @@ func NewEmptyLatencyResponse() *LatencyResponse {
}
// GetMetrics returns the Metrics field value if set, zero value otherwise.
-func (o *LatencyResponse) GetMetrics() LatencyResponseMetrics {
+func (o *LatencyResponse) GetMetrics() LatencyMetric {
if o == nil || o.Metrics == nil {
- var ret LatencyResponseMetrics
+ var ret LatencyMetric
return ret
}
return *o.Metrics
@@ -47,7 +47,7 @@ func (o *LatencyResponse) GetMetrics() LatencyResponseMetrics {
// GetMetricsOk returns a tuple with the Metrics field value if set, nil otherwise
// and a boolean to check if the value has been set.
-func (o *LatencyResponse) GetMetricsOk() (*LatencyResponseMetrics, bool) {
+func (o *LatencyResponse) GetMetricsOk() (*LatencyMetric, bool) {
if o == nil || o.Metrics == nil {
return nil, false
}
@@ -63,8 +63,8 @@ func (o *LatencyResponse) HasMetrics() bool {
return false
}
-// SetMetrics gets a reference to the given LatencyResponseMetrics and assigns it to the Metrics field.
-func (o *LatencyResponse) SetMetrics(v *LatencyResponseMetrics) *LatencyResponse {
+// SetMetrics gets a reference to the given LatencyMetric and assigns it to the Metrics field.
+func (o *LatencyResponse) SetMetrics(v *LatencyMetric) *LatencyResponse {
o.Metrics = v
return o
}
diff --git a/clients/algoliasearch-client-go/algolia/monitoring/model_latency_response_metrics.go b/clients/algoliasearch-client-go/algolia/monitoring/model_latency_response_metrics.go
deleted file mode 100644
index 3cb60e8601..0000000000
--- a/clients/algoliasearch-client-go/algolia/monitoring/model_latency_response_metrics.go
+++ /dev/null
@@ -1,89 +0,0 @@
-// 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.
-package monitoring
-
-import (
- "encoding/json"
- "fmt"
-)
-
-// LatencyResponseMetrics struct for LatencyResponseMetrics.
-type LatencyResponseMetrics struct {
- Latency *map[string][]TimeInner `json:"latency,omitempty"`
-}
-
-type LatencyResponseMetricsOption func(f *LatencyResponseMetrics)
-
-func WithLatencyResponseMetricsLatency(val map[string][]TimeInner) LatencyResponseMetricsOption {
- return func(f *LatencyResponseMetrics) {
- f.Latency = &val
- }
-}
-
-// NewLatencyResponseMetrics instantiates a new LatencyResponseMetrics object
-// This constructor will assign default values to properties that have it defined,
-// and makes sure properties required by API are set, but the set of arguments
-// will change when the set of required properties is changed.
-func NewLatencyResponseMetrics(opts ...LatencyResponseMetricsOption) *LatencyResponseMetrics {
- this := &LatencyResponseMetrics{}
- for _, opt := range opts {
- opt(this)
- }
- return this
-}
-
-// NewEmptyLatencyResponseMetrics return a pointer to an empty LatencyResponseMetrics object.
-func NewEmptyLatencyResponseMetrics() *LatencyResponseMetrics {
- return &LatencyResponseMetrics{}
-}
-
-// GetLatency returns the Latency field value if set, zero value otherwise.
-func (o *LatencyResponseMetrics) GetLatency() map[string][]TimeInner {
- if o == nil || o.Latency == nil {
- var ret map[string][]TimeInner
- return ret
- }
- return *o.Latency
-}
-
-// GetLatencyOk returns a tuple with the Latency field value if set, nil otherwise
-// and a boolean to check if the value has been set.
-func (o *LatencyResponseMetrics) GetLatencyOk() (*map[string][]TimeInner, bool) {
- if o == nil || o.Latency == nil {
- return nil, false
- }
- return o.Latency, true
-}
-
-// HasLatency returns a boolean if a field has been set.
-func (o *LatencyResponseMetrics) HasLatency() bool {
- if o != nil && o.Latency != nil {
- return true
- }
-
- return false
-}
-
-// SetLatency gets a reference to the given map[string][]TimeInner and assigns it to the Latency field.
-func (o *LatencyResponseMetrics) SetLatency(v map[string][]TimeInner) *LatencyResponseMetrics {
- o.Latency = &v
- return o
-}
-
-func (o LatencyResponseMetrics) MarshalJSON() ([]byte, error) {
- toSerialize := map[string]any{}
- if o.Latency != nil {
- toSerialize["latency"] = o.Latency
- }
- serialized, err := json.Marshal(toSerialize)
- if err != nil {
- return nil, fmt.Errorf("failed to marshal LatencyResponseMetrics: %w", err)
- }
-
- return serialized, nil
-}
-
-func (o LatencyResponseMetrics) String() string {
- out := ""
- out += fmt.Sprintf(" latency=%v\n", o.Latency)
- return fmt.Sprintf("LatencyResponseMetrics {\n%s}", out)
-}
diff --git a/clients/algoliasearch-client-go/algolia/monitoring/model_infrastructure_response_metrics.go b/clients/algoliasearch-client-go/algolia/monitoring/model_metrics.go
similarity index 61%
rename from clients/algoliasearch-client-go/algolia/monitoring/model_infrastructure_response_metrics.go
rename to clients/algoliasearch-client-go/algolia/monitoring/model_metrics.go
index 8ef5630924..212b7ad1d3 100644
--- a/clients/algoliasearch-client-go/algolia/monitoring/model_infrastructure_response_metrics.go
+++ b/clients/algoliasearch-client-go/algolia/monitoring/model_metrics.go
@@ -6,8 +6,8 @@ import (
"fmt"
)
-// InfrastructureResponseMetrics struct for InfrastructureResponseMetrics.
-type InfrastructureResponseMetrics struct {
+// Metrics struct for Metrics.
+type Metrics struct {
// CPU idleness in %.
CpuUsage *map[string][]ProbesMetric `json:"cpu_usage,omitempty"`
// RAM used for indexing in MB.
@@ -20,57 +20,57 @@ type InfrastructureResponseMetrics struct {
AvgBuildTime *map[string][]ProbesMetric `json:"avg_build_time,omitempty"`
}
-type InfrastructureResponseMetricsOption func(f *InfrastructureResponseMetrics)
+type MetricsOption func(f *Metrics)
-func WithInfrastructureResponseMetricsCpuUsage(val map[string][]ProbesMetric) InfrastructureResponseMetricsOption {
- return func(f *InfrastructureResponseMetrics) {
+func WithMetricsCpuUsage(val map[string][]ProbesMetric) MetricsOption {
+ return func(f *Metrics) {
f.CpuUsage = &val
}
}
-func WithInfrastructureResponseMetricsRamIndexingUsage(val map[string][]ProbesMetric) InfrastructureResponseMetricsOption {
- return func(f *InfrastructureResponseMetrics) {
+func WithMetricsRamIndexingUsage(val map[string][]ProbesMetric) MetricsOption {
+ return func(f *Metrics) {
f.RamIndexingUsage = &val
}
}
-func WithInfrastructureResponseMetricsRamSearchUsage(val map[string][]ProbesMetric) InfrastructureResponseMetricsOption {
- return func(f *InfrastructureResponseMetrics) {
+func WithMetricsRamSearchUsage(val map[string][]ProbesMetric) MetricsOption {
+ return func(f *Metrics) {
f.RamSearchUsage = &val
}
}
-func WithInfrastructureResponseMetricsSsdUsage(val map[string][]ProbesMetric) InfrastructureResponseMetricsOption {
- return func(f *InfrastructureResponseMetrics) {
+func WithMetricsSsdUsage(val map[string][]ProbesMetric) MetricsOption {
+ return func(f *Metrics) {
f.SsdUsage = &val
}
}
-func WithInfrastructureResponseMetricsAvgBuildTime(val map[string][]ProbesMetric) InfrastructureResponseMetricsOption {
- return func(f *InfrastructureResponseMetrics) {
+func WithMetricsAvgBuildTime(val map[string][]ProbesMetric) MetricsOption {
+ return func(f *Metrics) {
f.AvgBuildTime = &val
}
}
-// NewInfrastructureResponseMetrics instantiates a new InfrastructureResponseMetrics object
+// NewMetrics instantiates a new Metrics object
// This constructor will assign default values to properties that have it defined,
// and makes sure properties required by API are set, but the set of arguments
// will change when the set of required properties is changed.
-func NewInfrastructureResponseMetrics(opts ...InfrastructureResponseMetricsOption) *InfrastructureResponseMetrics {
- this := &InfrastructureResponseMetrics{}
+func NewMetrics(opts ...MetricsOption) *Metrics {
+ this := &Metrics{}
for _, opt := range opts {
opt(this)
}
return this
}
-// NewEmptyInfrastructureResponseMetrics return a pointer to an empty InfrastructureResponseMetrics object.
-func NewEmptyInfrastructureResponseMetrics() *InfrastructureResponseMetrics {
- return &InfrastructureResponseMetrics{}
+// NewEmptyMetrics return a pointer to an empty Metrics object.
+func NewEmptyMetrics() *Metrics {
+ return &Metrics{}
}
// GetCpuUsage returns the CpuUsage field value if set, zero value otherwise.
-func (o *InfrastructureResponseMetrics) GetCpuUsage() map[string][]ProbesMetric {
+func (o *Metrics) GetCpuUsage() map[string][]ProbesMetric {
if o == nil || o.CpuUsage == nil {
var ret map[string][]ProbesMetric
return ret
@@ -80,7 +80,7 @@ func (o *InfrastructureResponseMetrics) GetCpuUsage() map[string][]ProbesMetric
// GetCpuUsageOk returns a tuple with the CpuUsage field value if set, nil otherwise
// and a boolean to check if the value has been set.
-func (o *InfrastructureResponseMetrics) GetCpuUsageOk() (*map[string][]ProbesMetric, bool) {
+func (o *Metrics) GetCpuUsageOk() (*map[string][]ProbesMetric, bool) {
if o == nil || o.CpuUsage == nil {
return nil, false
}
@@ -88,7 +88,7 @@ func (o *InfrastructureResponseMetrics) GetCpuUsageOk() (*map[string][]ProbesMet
}
// HasCpuUsage returns a boolean if a field has been set.
-func (o *InfrastructureResponseMetrics) HasCpuUsage() bool {
+func (o *Metrics) HasCpuUsage() bool {
if o != nil && o.CpuUsage != nil {
return true
}
@@ -97,13 +97,13 @@ func (o *InfrastructureResponseMetrics) HasCpuUsage() bool {
}
// SetCpuUsage gets a reference to the given map[string][]ProbesMetric and assigns it to the CpuUsage field.
-func (o *InfrastructureResponseMetrics) SetCpuUsage(v map[string][]ProbesMetric) *InfrastructureResponseMetrics {
+func (o *Metrics) SetCpuUsage(v map[string][]ProbesMetric) *Metrics {
o.CpuUsage = &v
return o
}
// GetRamIndexingUsage returns the RamIndexingUsage field value if set, zero value otherwise.
-func (o *InfrastructureResponseMetrics) GetRamIndexingUsage() map[string][]ProbesMetric {
+func (o *Metrics) GetRamIndexingUsage() map[string][]ProbesMetric {
if o == nil || o.RamIndexingUsage == nil {
var ret map[string][]ProbesMetric
return ret
@@ -113,7 +113,7 @@ func (o *InfrastructureResponseMetrics) GetRamIndexingUsage() map[string][]Probe
// GetRamIndexingUsageOk returns a tuple with the RamIndexingUsage field value if set, nil otherwise
// and a boolean to check if the value has been set.
-func (o *InfrastructureResponseMetrics) GetRamIndexingUsageOk() (*map[string][]ProbesMetric, bool) {
+func (o *Metrics) GetRamIndexingUsageOk() (*map[string][]ProbesMetric, bool) {
if o == nil || o.RamIndexingUsage == nil {
return nil, false
}
@@ -121,7 +121,7 @@ func (o *InfrastructureResponseMetrics) GetRamIndexingUsageOk() (*map[string][]P
}
// HasRamIndexingUsage returns a boolean if a field has been set.
-func (o *InfrastructureResponseMetrics) HasRamIndexingUsage() bool {
+func (o *Metrics) HasRamIndexingUsage() bool {
if o != nil && o.RamIndexingUsage != nil {
return true
}
@@ -130,13 +130,13 @@ func (o *InfrastructureResponseMetrics) HasRamIndexingUsage() bool {
}
// SetRamIndexingUsage gets a reference to the given map[string][]ProbesMetric and assigns it to the RamIndexingUsage field.
-func (o *InfrastructureResponseMetrics) SetRamIndexingUsage(v map[string][]ProbesMetric) *InfrastructureResponseMetrics {
+func (o *Metrics) SetRamIndexingUsage(v map[string][]ProbesMetric) *Metrics {
o.RamIndexingUsage = &v
return o
}
// GetRamSearchUsage returns the RamSearchUsage field value if set, zero value otherwise.
-func (o *InfrastructureResponseMetrics) GetRamSearchUsage() map[string][]ProbesMetric {
+func (o *Metrics) GetRamSearchUsage() map[string][]ProbesMetric {
if o == nil || o.RamSearchUsage == nil {
var ret map[string][]ProbesMetric
return ret
@@ -146,7 +146,7 @@ func (o *InfrastructureResponseMetrics) GetRamSearchUsage() map[string][]ProbesM
// GetRamSearchUsageOk returns a tuple with the RamSearchUsage field value if set, nil otherwise
// and a boolean to check if the value has been set.
-func (o *InfrastructureResponseMetrics) GetRamSearchUsageOk() (*map[string][]ProbesMetric, bool) {
+func (o *Metrics) GetRamSearchUsageOk() (*map[string][]ProbesMetric, bool) {
if o == nil || o.RamSearchUsage == nil {
return nil, false
}
@@ -154,7 +154,7 @@ func (o *InfrastructureResponseMetrics) GetRamSearchUsageOk() (*map[string][]Pro
}
// HasRamSearchUsage returns a boolean if a field has been set.
-func (o *InfrastructureResponseMetrics) HasRamSearchUsage() bool {
+func (o *Metrics) HasRamSearchUsage() bool {
if o != nil && o.RamSearchUsage != nil {
return true
}
@@ -163,13 +163,13 @@ func (o *InfrastructureResponseMetrics) HasRamSearchUsage() bool {
}
// SetRamSearchUsage gets a reference to the given map[string][]ProbesMetric and assigns it to the RamSearchUsage field.
-func (o *InfrastructureResponseMetrics) SetRamSearchUsage(v map[string][]ProbesMetric) *InfrastructureResponseMetrics {
+func (o *Metrics) SetRamSearchUsage(v map[string][]ProbesMetric) *Metrics {
o.RamSearchUsage = &v
return o
}
// GetSsdUsage returns the SsdUsage field value if set, zero value otherwise.
-func (o *InfrastructureResponseMetrics) GetSsdUsage() map[string][]ProbesMetric {
+func (o *Metrics) GetSsdUsage() map[string][]ProbesMetric {
if o == nil || o.SsdUsage == nil {
var ret map[string][]ProbesMetric
return ret
@@ -179,7 +179,7 @@ func (o *InfrastructureResponseMetrics) GetSsdUsage() map[string][]ProbesMetric
// GetSsdUsageOk returns a tuple with the SsdUsage field value if set, nil otherwise
// and a boolean to check if the value has been set.
-func (o *InfrastructureResponseMetrics) GetSsdUsageOk() (*map[string][]ProbesMetric, bool) {
+func (o *Metrics) GetSsdUsageOk() (*map[string][]ProbesMetric, bool) {
if o == nil || o.SsdUsage == nil {
return nil, false
}
@@ -187,7 +187,7 @@ func (o *InfrastructureResponseMetrics) GetSsdUsageOk() (*map[string][]ProbesMet
}
// HasSsdUsage returns a boolean if a field has been set.
-func (o *InfrastructureResponseMetrics) HasSsdUsage() bool {
+func (o *Metrics) HasSsdUsage() bool {
if o != nil && o.SsdUsage != nil {
return true
}
@@ -196,13 +196,13 @@ func (o *InfrastructureResponseMetrics) HasSsdUsage() bool {
}
// SetSsdUsage gets a reference to the given map[string][]ProbesMetric and assigns it to the SsdUsage field.
-func (o *InfrastructureResponseMetrics) SetSsdUsage(v map[string][]ProbesMetric) *InfrastructureResponseMetrics {
+func (o *Metrics) SetSsdUsage(v map[string][]ProbesMetric) *Metrics {
o.SsdUsage = &v
return o
}
// GetAvgBuildTime returns the AvgBuildTime field value if set, zero value otherwise.
-func (o *InfrastructureResponseMetrics) GetAvgBuildTime() map[string][]ProbesMetric {
+func (o *Metrics) GetAvgBuildTime() map[string][]ProbesMetric {
if o == nil || o.AvgBuildTime == nil {
var ret map[string][]ProbesMetric
return ret
@@ -212,7 +212,7 @@ func (o *InfrastructureResponseMetrics) GetAvgBuildTime() map[string][]ProbesMet
// GetAvgBuildTimeOk returns a tuple with the AvgBuildTime field value if set, nil otherwise
// and a boolean to check if the value has been set.
-func (o *InfrastructureResponseMetrics) GetAvgBuildTimeOk() (*map[string][]ProbesMetric, bool) {
+func (o *Metrics) GetAvgBuildTimeOk() (*map[string][]ProbesMetric, bool) {
if o == nil || o.AvgBuildTime == nil {
return nil, false
}
@@ -220,7 +220,7 @@ func (o *InfrastructureResponseMetrics) GetAvgBuildTimeOk() (*map[string][]Probe
}
// HasAvgBuildTime returns a boolean if a field has been set.
-func (o *InfrastructureResponseMetrics) HasAvgBuildTime() bool {
+func (o *Metrics) HasAvgBuildTime() bool {
if o != nil && o.AvgBuildTime != nil {
return true
}
@@ -229,12 +229,12 @@ func (o *InfrastructureResponseMetrics) HasAvgBuildTime() bool {
}
// SetAvgBuildTime gets a reference to the given map[string][]ProbesMetric and assigns it to the AvgBuildTime field.
-func (o *InfrastructureResponseMetrics) SetAvgBuildTime(v map[string][]ProbesMetric) *InfrastructureResponseMetrics {
+func (o *Metrics) SetAvgBuildTime(v map[string][]ProbesMetric) *Metrics {
o.AvgBuildTime = &v
return o
}
-func (o InfrastructureResponseMetrics) MarshalJSON() ([]byte, error) {
+func (o Metrics) MarshalJSON() ([]byte, error) {
toSerialize := map[string]any{}
if o.CpuUsage != nil {
toSerialize["cpu_usage"] = o.CpuUsage
@@ -253,18 +253,18 @@ func (o InfrastructureResponseMetrics) MarshalJSON() ([]byte, error) {
}
serialized, err := json.Marshal(toSerialize)
if err != nil {
- return nil, fmt.Errorf("failed to marshal InfrastructureResponseMetrics: %w", err)
+ return nil, fmt.Errorf("failed to marshal Metrics: %w", err)
}
return serialized, nil
}
-func (o InfrastructureResponseMetrics) String() string {
+func (o Metrics) String() string {
out := ""
out += fmt.Sprintf(" cpu_usage=%v\n", o.CpuUsage)
out += fmt.Sprintf(" ram_indexing_usage=%v\n", o.RamIndexingUsage)
out += fmt.Sprintf(" ram_search_usage=%v\n", o.RamSearchUsage)
out += fmt.Sprintf(" ssd_usage=%v\n", o.SsdUsage)
out += fmt.Sprintf(" avg_build_time=%v\n", o.AvgBuildTime)
- return fmt.Sprintf("InfrastructureResponseMetrics {\n%s}", out)
+ return fmt.Sprintf("Metrics {\n%s}", out)
}
diff --git a/clients/algoliasearch-client-go/algolia/monitoring/model_time_inner.go b/clients/algoliasearch-client-go/algolia/monitoring/model_time_entry.go
similarity index 67%
rename from clients/algoliasearch-client-go/algolia/monitoring/model_time_inner.go
rename to clients/algoliasearch-client-go/algolia/monitoring/model_time_entry.go
index 5eefc38494..0a8fa68f84 100644
--- a/clients/algoliasearch-client-go/algolia/monitoring/model_time_inner.go
+++ b/clients/algoliasearch-client-go/algolia/monitoring/model_time_entry.go
@@ -6,47 +6,47 @@ import (
"fmt"
)
-// TimeInner struct for TimeInner.
-type TimeInner struct {
+// TimeEntry struct for TimeEntry.
+type TimeEntry struct {
// Timestamp, measured in milliseconds since the Unix epoch.
T *int64 `json:"t,omitempty"`
// Time in ms.
V *int32 `json:"v,omitempty"`
}
-type TimeInnerOption func(f *TimeInner)
+type TimeEntryOption func(f *TimeEntry)
-func WithTimeInnerT(val int64) TimeInnerOption {
- return func(f *TimeInner) {
+func WithTimeEntryT(val int64) TimeEntryOption {
+ return func(f *TimeEntry) {
f.T = &val
}
}
-func WithTimeInnerV(val int32) TimeInnerOption {
- return func(f *TimeInner) {
+func WithTimeEntryV(val int32) TimeEntryOption {
+ return func(f *TimeEntry) {
f.V = &val
}
}
-// NewTimeInner instantiates a new TimeInner object
+// NewTimeEntry instantiates a new TimeEntry object
// This constructor will assign default values to properties that have it defined,
// and makes sure properties required by API are set, but the set of arguments
// will change when the set of required properties is changed.
-func NewTimeInner(opts ...TimeInnerOption) *TimeInner {
- this := &TimeInner{}
+func NewTimeEntry(opts ...TimeEntryOption) *TimeEntry {
+ this := &TimeEntry{}
for _, opt := range opts {
opt(this)
}
return this
}
-// NewEmptyTimeInner return a pointer to an empty TimeInner object.
-func NewEmptyTimeInner() *TimeInner {
- return &TimeInner{}
+// NewEmptyTimeEntry return a pointer to an empty TimeEntry object.
+func NewEmptyTimeEntry() *TimeEntry {
+ return &TimeEntry{}
}
// GetT returns the T field value if set, zero value otherwise.
-func (o *TimeInner) GetT() int64 {
+func (o *TimeEntry) GetT() int64 {
if o == nil || o.T == nil {
var ret int64
return ret
@@ -56,7 +56,7 @@ func (o *TimeInner) GetT() int64 {
// GetTOk returns a tuple with the T field value if set, nil otherwise
// and a boolean to check if the value has been set.
-func (o *TimeInner) GetTOk() (*int64, bool) {
+func (o *TimeEntry) GetTOk() (*int64, bool) {
if o == nil || o.T == nil {
return nil, false
}
@@ -64,7 +64,7 @@ func (o *TimeInner) GetTOk() (*int64, bool) {
}
// HasT returns a boolean if a field has been set.
-func (o *TimeInner) HasT() bool {
+func (o *TimeEntry) HasT() bool {
if o != nil && o.T != nil {
return true
}
@@ -73,13 +73,13 @@ func (o *TimeInner) HasT() bool {
}
// SetT gets a reference to the given int64 and assigns it to the T field.
-func (o *TimeInner) SetT(v int64) *TimeInner {
+func (o *TimeEntry) SetT(v int64) *TimeEntry {
o.T = &v
return o
}
// GetV returns the V field value if set, zero value otherwise.
-func (o *TimeInner) GetV() int32 {
+func (o *TimeEntry) GetV() int32 {
if o == nil || o.V == nil {
var ret int32
return ret
@@ -89,7 +89,7 @@ func (o *TimeInner) GetV() int32 {
// GetVOk returns a tuple with the V field value if set, nil otherwise
// and a boolean to check if the value has been set.
-func (o *TimeInner) GetVOk() (*int32, bool) {
+func (o *TimeEntry) GetVOk() (*int32, bool) {
if o == nil || o.V == nil {
return nil, false
}
@@ -97,7 +97,7 @@ func (o *TimeInner) GetVOk() (*int32, bool) {
}
// HasV returns a boolean if a field has been set.
-func (o *TimeInner) HasV() bool {
+func (o *TimeEntry) HasV() bool {
if o != nil && o.V != nil {
return true
}
@@ -106,12 +106,12 @@ func (o *TimeInner) HasV() bool {
}
// SetV gets a reference to the given int32 and assigns it to the V field.
-func (o *TimeInner) SetV(v int32) *TimeInner {
+func (o *TimeEntry) SetV(v int32) *TimeEntry {
o.V = &v
return o
}
-func (o TimeInner) MarshalJSON() ([]byte, error) {
+func (o TimeEntry) MarshalJSON() ([]byte, error) {
toSerialize := map[string]any{}
if o.T != nil {
toSerialize["t"] = o.T
@@ -121,15 +121,15 @@ func (o TimeInner) MarshalJSON() ([]byte, error) {
}
serialized, err := json.Marshal(toSerialize)
if err != nil {
- return nil, fmt.Errorf("failed to marshal TimeInner: %w", err)
+ return nil, fmt.Errorf("failed to marshal TimeEntry: %w", err)
}
return serialized, nil
}
-func (o TimeInner) String() string {
+func (o TimeEntry) String() string {
out := ""
out += fmt.Sprintf(" t=%v\n", o.T)
out += fmt.Sprintf(" v=%v\n", o.V)
- return fmt.Sprintf("TimeInner {\n%s}", out)
+ return fmt.Sprintf("TimeEntry {\n%s}", out)
}
diff --git a/clients/algoliasearch-client-go/algolia/monitoring/model_unauthorized.go b/clients/algoliasearch-client-go/algolia/monitoring/model_unauthorized.go
new file mode 100644
index 0000000000..f910fe1e3a
--- /dev/null
+++ b/clients/algoliasearch-client-go/algolia/monitoring/model_unauthorized.go
@@ -0,0 +1,89 @@
+// 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.
+package monitoring
+
+import (
+ "encoding/json"
+ "fmt"
+)
+
+// Unauthorized struct for Unauthorized.
+type Unauthorized struct {
+ Reason *string `json:"reason,omitempty"`
+}
+
+type UnauthorizedOption func(f *Unauthorized)
+
+func WithUnauthorizedReason(val string) UnauthorizedOption {
+ return func(f *Unauthorized) {
+ f.Reason = &val
+ }
+}
+
+// NewUnauthorized instantiates a new Unauthorized object
+// This constructor will assign default values to properties that have it defined,
+// and makes sure properties required by API are set, but the set of arguments
+// will change when the set of required properties is changed.
+func NewUnauthorized(opts ...UnauthorizedOption) *Unauthorized {
+ this := &Unauthorized{}
+ for _, opt := range opts {
+ opt(this)
+ }
+ return this
+}
+
+// NewEmptyUnauthorized return a pointer to an empty Unauthorized object.
+func NewEmptyUnauthorized() *Unauthorized {
+ return &Unauthorized{}
+}
+
+// GetReason returns the Reason field value if set, zero value otherwise.
+func (o *Unauthorized) GetReason() string {
+ if o == nil || o.Reason == nil {
+ var ret string
+ return ret
+ }
+ return *o.Reason
+}
+
+// GetReasonOk returns a tuple with the Reason field value if set, nil otherwise
+// and a boolean to check if the value has been set.
+func (o *Unauthorized) GetReasonOk() (*string, bool) {
+ if o == nil || o.Reason == nil {
+ return nil, false
+ }
+ return o.Reason, true
+}
+
+// HasReason returns a boolean if a field has been set.
+func (o *Unauthorized) HasReason() bool {
+ if o != nil && o.Reason != nil {
+ return true
+ }
+
+ return false
+}
+
+// SetReason gets a reference to the given string and assigns it to the Reason field.
+func (o *Unauthorized) SetReason(v string) *Unauthorized {
+ o.Reason = &v
+ return o
+}
+
+func (o Unauthorized) MarshalJSON() ([]byte, error) {
+ toSerialize := map[string]any{}
+ if o.Reason != nil {
+ toSerialize["reason"] = o.Reason
+ }
+ serialized, err := json.Marshal(toSerialize)
+ if err != nil {
+ return nil, fmt.Errorf("failed to marshal Unauthorized: %w", err)
+ }
+
+ return serialized, nil
+}
+
+func (o Unauthorized) String() string {
+ out := ""
+ out += fmt.Sprintf(" reason=%v\n", o.Reason)
+ return fmt.Sprintf("Unauthorized {\n%s}", out)
+}
diff --git a/clients/algoliasearch-client-go/algolia/query-suggestions/api_query_suggestions.go b/clients/algoliasearch-client-go/algolia/query-suggestions/api_query_suggestions.go
index f8ba3ae04a..d0ce63c6d3 100644
--- a/clients/algoliasearch-client-go/algolia/query-suggestions/api_query_suggestions.go
+++ b/clients/algoliasearch-client-go/algolia/query-suggestions/api_query_suggestions.go
@@ -1219,10 +1219,10 @@ Required API Key ACLs:
Request can be constructed by NewApiGetConfigStatusRequest with parameters below.
@param indexName string - Query Suggestions index name.
- @return GetConfigStatus200Response
+ @return ConfigStatus
*/
-func (c *APIClient) GetConfigStatus(r ApiGetConfigStatusRequest, opts ...RequestOption) (*GetConfigStatus200Response, error) {
- var returnValue *GetConfigStatus200Response
+func (c *APIClient) GetConfigStatus(r ApiGetConfigStatusRequest, opts ...RequestOption) (*ConfigStatus, error) {
+ var returnValue *ConfigStatus
res, resBody, err := c.GetConfigStatusWithHTTPInfo(r, opts...)
if err != nil {
@@ -1342,10 +1342,10 @@ Required API Key ACLs:
Request can be constructed by NewApiGetLogFileRequest with parameters below.
@param indexName string - Query Suggestions index name.
- @return GetLogFile200Response
+ @return LogFile
*/
-func (c *APIClient) GetLogFile(r ApiGetLogFileRequest, opts ...RequestOption) (*GetLogFile200Response, error) {
- var returnValue *GetLogFile200Response
+func (c *APIClient) GetLogFile(r ApiGetLogFileRequest, opts ...RequestOption) (*LogFile, error) {
+ var returnValue *LogFile
res, resBody, err := c.GetLogFileWithHTTPInfo(r, opts...)
if err != nil {
diff --git a/clients/algoliasearch-client-go/algolia/query-suggestions/model_get_config_status_200_response.go b/clients/algoliasearch-client-go/algolia/query-suggestions/model_config_status.go
similarity index 65%
rename from clients/algoliasearch-client-go/algolia/query-suggestions/model_get_config_status_200_response.go
rename to clients/algoliasearch-client-go/algolia/query-suggestions/model_config_status.go
index fcc4bbbf41..dfd6d161af 100644
--- a/clients/algoliasearch-client-go/algolia/query-suggestions/model_get_config_status_200_response.go
+++ b/clients/algoliasearch-client-go/algolia/query-suggestions/model_config_status.go
@@ -6,8 +6,8 @@ import (
"fmt"
)
-// GetConfigStatus200Response struct for GetConfigStatus200Response.
-type GetConfigStatus200Response struct {
+// ConfigStatus struct for ConfigStatus.
+type ConfigStatus struct {
// Name of the Query Suggestions index (case-sensitive).
IndexName *string `json:"indexName,omitempty"`
// Whether the creation or update of the Query Suggestions index is in progress.
@@ -20,57 +20,57 @@ type GetConfigStatus200Response struct {
LastSuccessfulBuildDuration *string `json:"lastSuccessfulBuildDuration,omitempty"`
}
-type GetConfigStatus200ResponseOption func(f *GetConfigStatus200Response)
+type ConfigStatusOption func(f *ConfigStatus)
-func WithGetConfigStatus200ResponseIndexName(val string) GetConfigStatus200ResponseOption {
- return func(f *GetConfigStatus200Response) {
+func WithConfigStatusIndexName(val string) ConfigStatusOption {
+ return func(f *ConfigStatus) {
f.IndexName = &val
}
}
-func WithGetConfigStatus200ResponseIsRunning(val bool) GetConfigStatus200ResponseOption {
- return func(f *GetConfigStatus200Response) {
+func WithConfigStatusIsRunning(val bool) ConfigStatusOption {
+ return func(f *ConfigStatus) {
f.IsRunning = &val
}
}
-func WithGetConfigStatus200ResponseLastBuiltAt(val string) GetConfigStatus200ResponseOption {
- return func(f *GetConfigStatus200Response) {
+func WithConfigStatusLastBuiltAt(val string) ConfigStatusOption {
+ return func(f *ConfigStatus) {
f.LastBuiltAt = &val
}
}
-func WithGetConfigStatus200ResponseLastSuccessfulBuiltAt(val string) GetConfigStatus200ResponseOption {
- return func(f *GetConfigStatus200Response) {
+func WithConfigStatusLastSuccessfulBuiltAt(val string) ConfigStatusOption {
+ return func(f *ConfigStatus) {
f.LastSuccessfulBuiltAt = &val
}
}
-func WithGetConfigStatus200ResponseLastSuccessfulBuildDuration(val string) GetConfigStatus200ResponseOption {
- return func(f *GetConfigStatus200Response) {
+func WithConfigStatusLastSuccessfulBuildDuration(val string) ConfigStatusOption {
+ return func(f *ConfigStatus) {
f.LastSuccessfulBuildDuration = &val
}
}
-// NewGetConfigStatus200Response instantiates a new GetConfigStatus200Response object
+// NewConfigStatus instantiates a new ConfigStatus object
// This constructor will assign default values to properties that have it defined,
// and makes sure properties required by API are set, but the set of arguments
// will change when the set of required properties is changed.
-func NewGetConfigStatus200Response(opts ...GetConfigStatus200ResponseOption) *GetConfigStatus200Response {
- this := &GetConfigStatus200Response{}
+func NewConfigStatus(opts ...ConfigStatusOption) *ConfigStatus {
+ this := &ConfigStatus{}
for _, opt := range opts {
opt(this)
}
return this
}
-// NewEmptyGetConfigStatus200Response return a pointer to an empty GetConfigStatus200Response object.
-func NewEmptyGetConfigStatus200Response() *GetConfigStatus200Response {
- return &GetConfigStatus200Response{}
+// NewEmptyConfigStatus return a pointer to an empty ConfigStatus object.
+func NewEmptyConfigStatus() *ConfigStatus {
+ return &ConfigStatus{}
}
// GetIndexName returns the IndexName field value if set, zero value otherwise.
-func (o *GetConfigStatus200Response) GetIndexName() string {
+func (o *ConfigStatus) GetIndexName() string {
if o == nil || o.IndexName == nil {
var ret string
return ret
@@ -80,7 +80,7 @@ func (o *GetConfigStatus200Response) GetIndexName() string {
// GetIndexNameOk returns a tuple with the IndexName field value if set, nil otherwise
// and a boolean to check if the value has been set.
-func (o *GetConfigStatus200Response) GetIndexNameOk() (*string, bool) {
+func (o *ConfigStatus) GetIndexNameOk() (*string, bool) {
if o == nil || o.IndexName == nil {
return nil, false
}
@@ -88,7 +88,7 @@ func (o *GetConfigStatus200Response) GetIndexNameOk() (*string, bool) {
}
// HasIndexName returns a boolean if a field has been set.
-func (o *GetConfigStatus200Response) HasIndexName() bool {
+func (o *ConfigStatus) HasIndexName() bool {
if o != nil && o.IndexName != nil {
return true
}
@@ -97,13 +97,13 @@ func (o *GetConfigStatus200Response) HasIndexName() bool {
}
// SetIndexName gets a reference to the given string and assigns it to the IndexName field.
-func (o *GetConfigStatus200Response) SetIndexName(v string) *GetConfigStatus200Response {
+func (o *ConfigStatus) SetIndexName(v string) *ConfigStatus {
o.IndexName = &v
return o
}
// GetIsRunning returns the IsRunning field value if set, zero value otherwise.
-func (o *GetConfigStatus200Response) GetIsRunning() bool {
+func (o *ConfigStatus) GetIsRunning() bool {
if o == nil || o.IsRunning == nil {
var ret bool
return ret
@@ -113,7 +113,7 @@ func (o *GetConfigStatus200Response) GetIsRunning() bool {
// GetIsRunningOk returns a tuple with the IsRunning field value if set, nil otherwise
// and a boolean to check if the value has been set.
-func (o *GetConfigStatus200Response) GetIsRunningOk() (*bool, bool) {
+func (o *ConfigStatus) GetIsRunningOk() (*bool, bool) {
if o == nil || o.IsRunning == nil {
return nil, false
}
@@ -121,7 +121,7 @@ func (o *GetConfigStatus200Response) GetIsRunningOk() (*bool, bool) {
}
// HasIsRunning returns a boolean if a field has been set.
-func (o *GetConfigStatus200Response) HasIsRunning() bool {
+func (o *ConfigStatus) HasIsRunning() bool {
if o != nil && o.IsRunning != nil {
return true
}
@@ -130,13 +130,13 @@ func (o *GetConfigStatus200Response) HasIsRunning() bool {
}
// SetIsRunning gets a reference to the given bool and assigns it to the IsRunning field.
-func (o *GetConfigStatus200Response) SetIsRunning(v bool) *GetConfigStatus200Response {
+func (o *ConfigStatus) SetIsRunning(v bool) *ConfigStatus {
o.IsRunning = &v
return o
}
// GetLastBuiltAt returns the LastBuiltAt field value if set, zero value otherwise.
-func (o *GetConfigStatus200Response) GetLastBuiltAt() string {
+func (o *ConfigStatus) GetLastBuiltAt() string {
if o == nil || o.LastBuiltAt == nil {
var ret string
return ret
@@ -146,7 +146,7 @@ func (o *GetConfigStatus200Response) GetLastBuiltAt() string {
// GetLastBuiltAtOk returns a tuple with the LastBuiltAt field value if set, nil otherwise
// and a boolean to check if the value has been set.
-func (o *GetConfigStatus200Response) GetLastBuiltAtOk() (*string, bool) {
+func (o *ConfigStatus) GetLastBuiltAtOk() (*string, bool) {
if o == nil || o.LastBuiltAt == nil {
return nil, false
}
@@ -154,7 +154,7 @@ func (o *GetConfigStatus200Response) GetLastBuiltAtOk() (*string, bool) {
}
// HasLastBuiltAt returns a boolean if a field has been set.
-func (o *GetConfigStatus200Response) HasLastBuiltAt() bool {
+func (o *ConfigStatus) HasLastBuiltAt() bool {
if o != nil && o.LastBuiltAt != nil {
return true
}
@@ -163,13 +163,13 @@ func (o *GetConfigStatus200Response) HasLastBuiltAt() bool {
}
// SetLastBuiltAt gets a reference to the given string and assigns it to the LastBuiltAt field.
-func (o *GetConfigStatus200Response) SetLastBuiltAt(v string) *GetConfigStatus200Response {
+func (o *ConfigStatus) SetLastBuiltAt(v string) *ConfigStatus {
o.LastBuiltAt = &v
return o
}
// GetLastSuccessfulBuiltAt returns the LastSuccessfulBuiltAt field value if set, zero value otherwise.
-func (o *GetConfigStatus200Response) GetLastSuccessfulBuiltAt() string {
+func (o *ConfigStatus) GetLastSuccessfulBuiltAt() string {
if o == nil || o.LastSuccessfulBuiltAt == nil {
var ret string
return ret
@@ -179,7 +179,7 @@ func (o *GetConfigStatus200Response) GetLastSuccessfulBuiltAt() string {
// GetLastSuccessfulBuiltAtOk returns a tuple with the LastSuccessfulBuiltAt field value if set, nil otherwise
// and a boolean to check if the value has been set.
-func (o *GetConfigStatus200Response) GetLastSuccessfulBuiltAtOk() (*string, bool) {
+func (o *ConfigStatus) GetLastSuccessfulBuiltAtOk() (*string, bool) {
if o == nil || o.LastSuccessfulBuiltAt == nil {
return nil, false
}
@@ -187,7 +187,7 @@ func (o *GetConfigStatus200Response) GetLastSuccessfulBuiltAtOk() (*string, bool
}
// HasLastSuccessfulBuiltAt returns a boolean if a field has been set.
-func (o *GetConfigStatus200Response) HasLastSuccessfulBuiltAt() bool {
+func (o *ConfigStatus) HasLastSuccessfulBuiltAt() bool {
if o != nil && o.LastSuccessfulBuiltAt != nil {
return true
}
@@ -196,13 +196,13 @@ func (o *GetConfigStatus200Response) HasLastSuccessfulBuiltAt() bool {
}
// SetLastSuccessfulBuiltAt gets a reference to the given string and assigns it to the LastSuccessfulBuiltAt field.
-func (o *GetConfigStatus200Response) SetLastSuccessfulBuiltAt(v string) *GetConfigStatus200Response {
+func (o *ConfigStatus) SetLastSuccessfulBuiltAt(v string) *ConfigStatus {
o.LastSuccessfulBuiltAt = &v
return o
}
// GetLastSuccessfulBuildDuration returns the LastSuccessfulBuildDuration field value if set, zero value otherwise.
-func (o *GetConfigStatus200Response) GetLastSuccessfulBuildDuration() string {
+func (o *ConfigStatus) GetLastSuccessfulBuildDuration() string {
if o == nil || o.LastSuccessfulBuildDuration == nil {
var ret string
return ret
@@ -212,7 +212,7 @@ func (o *GetConfigStatus200Response) GetLastSuccessfulBuildDuration() string {
// GetLastSuccessfulBuildDurationOk returns a tuple with the LastSuccessfulBuildDuration field value if set, nil otherwise
// and a boolean to check if the value has been set.
-func (o *GetConfigStatus200Response) GetLastSuccessfulBuildDurationOk() (*string, bool) {
+func (o *ConfigStatus) GetLastSuccessfulBuildDurationOk() (*string, bool) {
if o == nil || o.LastSuccessfulBuildDuration == nil {
return nil, false
}
@@ -220,7 +220,7 @@ func (o *GetConfigStatus200Response) GetLastSuccessfulBuildDurationOk() (*string
}
// HasLastSuccessfulBuildDuration returns a boolean if a field has been set.
-func (o *GetConfigStatus200Response) HasLastSuccessfulBuildDuration() bool {
+func (o *ConfigStatus) HasLastSuccessfulBuildDuration() bool {
if o != nil && o.LastSuccessfulBuildDuration != nil {
return true
}
@@ -229,12 +229,12 @@ func (o *GetConfigStatus200Response) HasLastSuccessfulBuildDuration() bool {
}
// SetLastSuccessfulBuildDuration gets a reference to the given string and assigns it to the LastSuccessfulBuildDuration field.
-func (o *GetConfigStatus200Response) SetLastSuccessfulBuildDuration(v string) *GetConfigStatus200Response {
+func (o *ConfigStatus) SetLastSuccessfulBuildDuration(v string) *ConfigStatus {
o.LastSuccessfulBuildDuration = &v
return o
}
-func (o GetConfigStatus200Response) MarshalJSON() ([]byte, error) {
+func (o ConfigStatus) MarshalJSON() ([]byte, error) {
toSerialize := map[string]any{}
if o.IndexName != nil {
toSerialize["indexName"] = o.IndexName
@@ -253,18 +253,18 @@ func (o GetConfigStatus200Response) MarshalJSON() ([]byte, error) {
}
serialized, err := json.Marshal(toSerialize)
if err != nil {
- return nil, fmt.Errorf("failed to marshal GetConfigStatus200Response: %w", err)
+ return nil, fmt.Errorf("failed to marshal ConfigStatus: %w", err)
}
return serialized, nil
}
-func (o GetConfigStatus200Response) String() string {
+func (o ConfigStatus) String() string {
out := ""
out += fmt.Sprintf(" indexName=%v\n", o.IndexName)
out += fmt.Sprintf(" isRunning=%v\n", o.IsRunning)
out += fmt.Sprintf(" lastBuiltAt=%v\n", o.LastBuiltAt)
out += fmt.Sprintf(" lastSuccessfulBuiltAt=%v\n", o.LastSuccessfulBuiltAt)
out += fmt.Sprintf(" lastSuccessfulBuildDuration=%v\n", o.LastSuccessfulBuildDuration)
- return fmt.Sprintf("GetConfigStatus200Response {\n%s}", out)
+ return fmt.Sprintf("ConfigStatus {\n%s}", out)
}
diff --git a/clients/algoliasearch-client-go/algolia/query-suggestions/model_get_log_file_200_response.go b/clients/algoliasearch-client-go/algolia/query-suggestions/model_log_file.go
similarity index 65%
rename from clients/algoliasearch-client-go/algolia/query-suggestions/model_get_log_file_200_response.go
rename to clients/algoliasearch-client-go/algolia/query-suggestions/model_log_file.go
index 64503ed9f0..e7790c4d18 100644
--- a/clients/algoliasearch-client-go/algolia/query-suggestions/model_get_log_file_200_response.go
+++ b/clients/algoliasearch-client-go/algolia/query-suggestions/model_log_file.go
@@ -6,8 +6,8 @@ import (
"fmt"
)
-// GetLogFile200Response struct for GetLogFile200Response.
-type GetLogFile200Response struct {
+// LogFile struct for LogFile.
+type LogFile struct {
// Date and time of the log entry, in RFC 3339 format.
Timestamp *string `json:"timestamp,omitempty"`
Level *LogLevel `json:"level,omitempty"`
@@ -17,51 +17,51 @@ type GetLogFile200Response struct {
ContextLevel *int32 `json:"contextLevel,omitempty"`
}
-type GetLogFile200ResponseOption func(f *GetLogFile200Response)
+type LogFileOption func(f *LogFile)
-func WithGetLogFile200ResponseTimestamp(val string) GetLogFile200ResponseOption {
- return func(f *GetLogFile200Response) {
+func WithLogFileTimestamp(val string) LogFileOption {
+ return func(f *LogFile) {
f.Timestamp = &val
}
}
-func WithGetLogFile200ResponseLevel(val LogLevel) GetLogFile200ResponseOption {
- return func(f *GetLogFile200Response) {
+func WithLogFileLevel(val LogLevel) LogFileOption {
+ return func(f *LogFile) {
f.Level = &val
}
}
-func WithGetLogFile200ResponseMessage(val string) GetLogFile200ResponseOption {
- return func(f *GetLogFile200Response) {
+func WithLogFileMessage(val string) LogFileOption {
+ return func(f *LogFile) {
f.Message = &val
}
}
-func WithGetLogFile200ResponseContextLevel(val int32) GetLogFile200ResponseOption {
- return func(f *GetLogFile200Response) {
+func WithLogFileContextLevel(val int32) LogFileOption {
+ return func(f *LogFile) {
f.ContextLevel = &val
}
}
-// NewGetLogFile200Response instantiates a new GetLogFile200Response object
+// NewLogFile instantiates a new LogFile object
// This constructor will assign default values to properties that have it defined,
// and makes sure properties required by API are set, but the set of arguments
// will change when the set of required properties is changed.
-func NewGetLogFile200Response(opts ...GetLogFile200ResponseOption) *GetLogFile200Response {
- this := &GetLogFile200Response{}
+func NewLogFile(opts ...LogFileOption) *LogFile {
+ this := &LogFile{}
for _, opt := range opts {
opt(this)
}
return this
}
-// NewEmptyGetLogFile200Response return a pointer to an empty GetLogFile200Response object.
-func NewEmptyGetLogFile200Response() *GetLogFile200Response {
- return &GetLogFile200Response{}
+// NewEmptyLogFile return a pointer to an empty LogFile object.
+func NewEmptyLogFile() *LogFile {
+ return &LogFile{}
}
// GetTimestamp returns the Timestamp field value if set, zero value otherwise.
-func (o *GetLogFile200Response) GetTimestamp() string {
+func (o *LogFile) GetTimestamp() string {
if o == nil || o.Timestamp == nil {
var ret string
return ret
@@ -71,7 +71,7 @@ func (o *GetLogFile200Response) GetTimestamp() string {
// GetTimestampOk returns a tuple with the Timestamp field value if set, nil otherwise
// and a boolean to check if the value has been set.
-func (o *GetLogFile200Response) GetTimestampOk() (*string, bool) {
+func (o *LogFile) GetTimestampOk() (*string, bool) {
if o == nil || o.Timestamp == nil {
return nil, false
}
@@ -79,7 +79,7 @@ func (o *GetLogFile200Response) GetTimestampOk() (*string, bool) {
}
// HasTimestamp returns a boolean if a field has been set.
-func (o *GetLogFile200Response) HasTimestamp() bool {
+func (o *LogFile) HasTimestamp() bool {
if o != nil && o.Timestamp != nil {
return true
}
@@ -88,13 +88,13 @@ func (o *GetLogFile200Response) HasTimestamp() bool {
}
// SetTimestamp gets a reference to the given string and assigns it to the Timestamp field.
-func (o *GetLogFile200Response) SetTimestamp(v string) *GetLogFile200Response {
+func (o *LogFile) SetTimestamp(v string) *LogFile {
o.Timestamp = &v
return o
}
// GetLevel returns the Level field value if set, zero value otherwise.
-func (o *GetLogFile200Response) GetLevel() LogLevel {
+func (o *LogFile) GetLevel() LogLevel {
if o == nil || o.Level == nil {
var ret LogLevel
return ret
@@ -104,7 +104,7 @@ func (o *GetLogFile200Response) GetLevel() LogLevel {
// GetLevelOk returns a tuple with the Level field value if set, nil otherwise
// and a boolean to check if the value has been set.
-func (o *GetLogFile200Response) GetLevelOk() (*LogLevel, bool) {
+func (o *LogFile) GetLevelOk() (*LogLevel, bool) {
if o == nil || o.Level == nil {
return nil, false
}
@@ -112,7 +112,7 @@ func (o *GetLogFile200Response) GetLevelOk() (*LogLevel, bool) {
}
// HasLevel returns a boolean if a field has been set.
-func (o *GetLogFile200Response) HasLevel() bool {
+func (o *LogFile) HasLevel() bool {
if o != nil && o.Level != nil {
return true
}
@@ -121,13 +121,13 @@ func (o *GetLogFile200Response) HasLevel() bool {
}
// SetLevel gets a reference to the given LogLevel and assigns it to the Level field.
-func (o *GetLogFile200Response) SetLevel(v LogLevel) *GetLogFile200Response {
+func (o *LogFile) SetLevel(v LogLevel) *LogFile {
o.Level = &v
return o
}
// GetMessage returns the Message field value if set, zero value otherwise.
-func (o *GetLogFile200Response) GetMessage() string {
+func (o *LogFile) GetMessage() string {
if o == nil || o.Message == nil {
var ret string
return ret
@@ -137,7 +137,7 @@ func (o *GetLogFile200Response) GetMessage() string {
// GetMessageOk returns a tuple with the Message field value if set, nil otherwise
// and a boolean to check if the value has been set.
-func (o *GetLogFile200Response) GetMessageOk() (*string, bool) {
+func (o *LogFile) GetMessageOk() (*string, bool) {
if o == nil || o.Message == nil {
return nil, false
}
@@ -145,7 +145,7 @@ func (o *GetLogFile200Response) GetMessageOk() (*string, bool) {
}
// HasMessage returns a boolean if a field has been set.
-func (o *GetLogFile200Response) HasMessage() bool {
+func (o *LogFile) HasMessage() bool {
if o != nil && o.Message != nil {
return true
}
@@ -154,13 +154,13 @@ func (o *GetLogFile200Response) HasMessage() bool {
}
// SetMessage gets a reference to the given string and assigns it to the Message field.
-func (o *GetLogFile200Response) SetMessage(v string) *GetLogFile200Response {
+func (o *LogFile) SetMessage(v string) *LogFile {
o.Message = &v
return o
}
// GetContextLevel returns the ContextLevel field value if set, zero value otherwise.
-func (o *GetLogFile200Response) GetContextLevel() int32 {
+func (o *LogFile) GetContextLevel() int32 {
if o == nil || o.ContextLevel == nil {
var ret int32
return ret
@@ -170,7 +170,7 @@ func (o *GetLogFile200Response) GetContextLevel() int32 {
// GetContextLevelOk returns a tuple with the ContextLevel field value if set, nil otherwise
// and a boolean to check if the value has been set.
-func (o *GetLogFile200Response) GetContextLevelOk() (*int32, bool) {
+func (o *LogFile) GetContextLevelOk() (*int32, bool) {
if o == nil || o.ContextLevel == nil {
return nil, false
}
@@ -178,7 +178,7 @@ func (o *GetLogFile200Response) GetContextLevelOk() (*int32, bool) {
}
// HasContextLevel returns a boolean if a field has been set.
-func (o *GetLogFile200Response) HasContextLevel() bool {
+func (o *LogFile) HasContextLevel() bool {
if o != nil && o.ContextLevel != nil {
return true
}
@@ -187,12 +187,12 @@ func (o *GetLogFile200Response) HasContextLevel() bool {
}
// SetContextLevel gets a reference to the given int32 and assigns it to the ContextLevel field.
-func (o *GetLogFile200Response) SetContextLevel(v int32) *GetLogFile200Response {
+func (o *LogFile) SetContextLevel(v int32) *LogFile {
o.ContextLevel = &v
return o
}
-func (o GetLogFile200Response) MarshalJSON() ([]byte, error) {
+func (o LogFile) MarshalJSON() ([]byte, error) {
toSerialize := map[string]any{}
if o.Timestamp != nil {
toSerialize["timestamp"] = o.Timestamp
@@ -208,17 +208,17 @@ func (o GetLogFile200Response) MarshalJSON() ([]byte, error) {
}
serialized, err := json.Marshal(toSerialize)
if err != nil {
- return nil, fmt.Errorf("failed to marshal GetLogFile200Response: %w", err)
+ return nil, fmt.Errorf("failed to marshal LogFile: %w", err)
}
return serialized, nil
}
-func (o GetLogFile200Response) String() string {
+func (o LogFile) String() string {
out := ""
out += fmt.Sprintf(" timestamp=%v\n", o.Timestamp)
out += fmt.Sprintf(" level=%v\n", o.Level)
out += fmt.Sprintf(" message=%v\n", o.Message)
out += fmt.Sprintf(" contextLevel=%v\n", o.ContextLevel)
- return fmt.Sprintf("GetLogFile200Response {\n%s}", out)
+ return fmt.Sprintf("LogFile {\n%s}", out)
}
diff --git a/clients/algoliasearch-client-go/algolia/recommend/model_around_precision.go b/clients/algoliasearch-client-go/algolia/recommend/model_around_precision.go
index 505d693b83..9398b5d5d7 100644
--- a/clients/algoliasearch-client-go/algolia/recommend/model_around_precision.go
+++ b/clients/algoliasearch-client-go/algolia/recommend/model_around_precision.go
@@ -8,8 +8,8 @@ import (
// AroundPrecision - Precision of a coordinate-based search in meters to group results with similar distances. The Geo ranking criterion considers all matches within the same range of distances to be equal.
type AroundPrecision struct {
- ArrayOfAroundPrecisionFromValueInner *[]AroundPrecisionFromValueInner
- Int32 *int32
+ ArrayOfModelRange *[]ModelRange
+ Int32 *int32
}
// int32AsAroundPrecision is a convenience function that returns int32 wrapped in AroundPrecision.
@@ -19,27 +19,27 @@ func Int32AsAroundPrecision(v int32) *AroundPrecision {
}
}
-// []AroundPrecisionFromValueInnerAsAroundPrecision is a convenience function that returns []AroundPrecisionFromValueInner wrapped in AroundPrecision.
-func ArrayOfAroundPrecisionFromValueInnerAsAroundPrecision(v []AroundPrecisionFromValueInner) *AroundPrecision {
+// []ModelRangeAsAroundPrecision is a convenience function that returns []ModelRange wrapped in AroundPrecision.
+func ArrayOfModelRangeAsAroundPrecision(v []ModelRange) *AroundPrecision {
return &AroundPrecision{
- ArrayOfAroundPrecisionFromValueInner: &v,
+ ArrayOfModelRange: &v,
}
}
// Unmarshal JSON data into one of the pointers in the struct.
func (dst *AroundPrecision) UnmarshalJSON(data []byte) error {
var err error
- // try to unmarshal data into ArrayOfAroundPrecisionFromValueInner
- err = newStrictDecoder(data).Decode(&dst.ArrayOfAroundPrecisionFromValueInner)
- if err == nil && validateStruct(dst.ArrayOfAroundPrecisionFromValueInner) == nil {
- jsonArrayOfAroundPrecisionFromValueInner, _ := json.Marshal(dst.ArrayOfAroundPrecisionFromValueInner)
- if string(jsonArrayOfAroundPrecisionFromValueInner) == "{}" { // empty struct
- dst.ArrayOfAroundPrecisionFromValueInner = nil
+ // try to unmarshal data into ArrayOfModelRange
+ err = newStrictDecoder(data).Decode(&dst.ArrayOfModelRange)
+ if err == nil && validateStruct(dst.ArrayOfModelRange) == nil {
+ jsonArrayOfModelRange, _ := json.Marshal(dst.ArrayOfModelRange)
+ if string(jsonArrayOfModelRange) == "{}" { // empty struct
+ dst.ArrayOfModelRange = nil
} else {
return nil
}
} else {
- dst.ArrayOfAroundPrecisionFromValueInner = nil
+ dst.ArrayOfModelRange = nil
}
// try to unmarshal data into Int32
@@ -60,10 +60,10 @@ func (dst *AroundPrecision) UnmarshalJSON(data []byte) error {
// Marshal data from the first non-nil pointers in the struct to JSON.
func (src AroundPrecision) MarshalJSON() ([]byte, error) {
- if src.ArrayOfAroundPrecisionFromValueInner != nil {
- serialized, err := json.Marshal(&src.ArrayOfAroundPrecisionFromValueInner)
+ if src.ArrayOfModelRange != nil {
+ serialized, err := json.Marshal(&src.ArrayOfModelRange)
if err != nil {
- return nil, fmt.Errorf("failed to unmarshal one of ArrayOfAroundPrecisionFromValueInner of AroundPrecision: %w", err)
+ return nil, fmt.Errorf("failed to unmarshal one of ArrayOfModelRange of AroundPrecision: %w", err)
}
return serialized, nil
@@ -83,8 +83,8 @@ func (src AroundPrecision) MarshalJSON() ([]byte, error) {
// Get the actual instance.
func (obj AroundPrecision) GetActualInstance() any {
- if obj.ArrayOfAroundPrecisionFromValueInner != nil {
- return *obj.ArrayOfAroundPrecisionFromValueInner
+ if obj.ArrayOfModelRange != nil {
+ return *obj.ArrayOfModelRange
}
if obj.Int32 != nil {
diff --git a/clients/algoliasearch-client-go/algolia/recommend/model_around_precision_from_value_inner.go b/clients/algoliasearch-client-go/algolia/recommend/model_range.go
similarity index 57%
rename from clients/algoliasearch-client-go/algolia/recommend/model_around_precision_from_value_inner.go
rename to clients/algoliasearch-client-go/algolia/recommend/model_range.go
index 09e0c473df..7e8242c493 100644
--- a/clients/algoliasearch-client-go/algolia/recommend/model_around_precision_from_value_inner.go
+++ b/clients/algoliasearch-client-go/algolia/recommend/model_range.go
@@ -6,47 +6,47 @@ import (
"fmt"
)
-// AroundPrecisionFromValueInner Range object with lower and upper values in meters to define custom ranges.
-type AroundPrecisionFromValueInner struct {
+// ModelRange Range object with lower and upper values in meters to define custom ranges.
+type ModelRange struct {
// Lower boundary of a range in meters. The Geo ranking criterion considers all records within the range to be equal.
From *int32 `json:"from,omitempty"`
// Upper boundary of a range in meters. The Geo ranking criterion considers all records within the range to be equal.
Value *int32 `json:"value,omitempty"`
}
-type AroundPrecisionFromValueInnerOption func(f *AroundPrecisionFromValueInner)
+type ModelRangeOption func(f *ModelRange)
-func WithAroundPrecisionFromValueInnerFrom(val int32) AroundPrecisionFromValueInnerOption {
- return func(f *AroundPrecisionFromValueInner) {
+func WithModelRangeFrom(val int32) ModelRangeOption {
+ return func(f *ModelRange) {
f.From = &val
}
}
-func WithAroundPrecisionFromValueInnerValue(val int32) AroundPrecisionFromValueInnerOption {
- return func(f *AroundPrecisionFromValueInner) {
+func WithModelRangeValue(val int32) ModelRangeOption {
+ return func(f *ModelRange) {
f.Value = &val
}
}
-// NewAroundPrecisionFromValueInner instantiates a new AroundPrecisionFromValueInner object
+// NewModelRange instantiates a new ModelRange object
// This constructor will assign default values to properties that have it defined,
// and makes sure properties required by API are set, but the set of arguments
// will change when the set of required properties is changed.
-func NewAroundPrecisionFromValueInner(opts ...AroundPrecisionFromValueInnerOption) *AroundPrecisionFromValueInner {
- this := &AroundPrecisionFromValueInner{}
+func NewModelRange(opts ...ModelRangeOption) *ModelRange {
+ this := &ModelRange{}
for _, opt := range opts {
opt(this)
}
return this
}
-// NewEmptyAroundPrecisionFromValueInner return a pointer to an empty AroundPrecisionFromValueInner object.
-func NewEmptyAroundPrecisionFromValueInner() *AroundPrecisionFromValueInner {
- return &AroundPrecisionFromValueInner{}
+// NewEmptyModelRange return a pointer to an empty ModelRange object.
+func NewEmptyModelRange() *ModelRange {
+ return &ModelRange{}
}
// GetFrom returns the From field value if set, zero value otherwise.
-func (o *AroundPrecisionFromValueInner) GetFrom() int32 {
+func (o *ModelRange) GetFrom() int32 {
if o == nil || o.From == nil {
var ret int32
return ret
@@ -56,7 +56,7 @@ func (o *AroundPrecisionFromValueInner) GetFrom() int32 {
// GetFromOk returns a tuple with the From field value if set, nil otherwise
// and a boolean to check if the value has been set.
-func (o *AroundPrecisionFromValueInner) GetFromOk() (*int32, bool) {
+func (o *ModelRange) GetFromOk() (*int32, bool) {
if o == nil || o.From == nil {
return nil, false
}
@@ -64,7 +64,7 @@ func (o *AroundPrecisionFromValueInner) GetFromOk() (*int32, bool) {
}
// HasFrom returns a boolean if a field has been set.
-func (o *AroundPrecisionFromValueInner) HasFrom() bool {
+func (o *ModelRange) HasFrom() bool {
if o != nil && o.From != nil {
return true
}
@@ -73,13 +73,13 @@ func (o *AroundPrecisionFromValueInner) HasFrom() bool {
}
// SetFrom gets a reference to the given int32 and assigns it to the From field.
-func (o *AroundPrecisionFromValueInner) SetFrom(v int32) *AroundPrecisionFromValueInner {
+func (o *ModelRange) SetFrom(v int32) *ModelRange {
o.From = &v
return o
}
// GetValue returns the Value field value if set, zero value otherwise.
-func (o *AroundPrecisionFromValueInner) GetValue() int32 {
+func (o *ModelRange) GetValue() int32 {
if o == nil || o.Value == nil {
var ret int32
return ret
@@ -89,7 +89,7 @@ func (o *AroundPrecisionFromValueInner) GetValue() int32 {
// GetValueOk returns a tuple with the Value field value if set, nil otherwise
// and a boolean to check if the value has been set.
-func (o *AroundPrecisionFromValueInner) GetValueOk() (*int32, bool) {
+func (o *ModelRange) GetValueOk() (*int32, bool) {
if o == nil || o.Value == nil {
return nil, false
}
@@ -97,7 +97,7 @@ func (o *AroundPrecisionFromValueInner) GetValueOk() (*int32, bool) {
}
// HasValue returns a boolean if a field has been set.
-func (o *AroundPrecisionFromValueInner) HasValue() bool {
+func (o *ModelRange) HasValue() bool {
if o != nil && o.Value != nil {
return true
}
@@ -106,12 +106,12 @@ func (o *AroundPrecisionFromValueInner) HasValue() bool {
}
// SetValue gets a reference to the given int32 and assigns it to the Value field.
-func (o *AroundPrecisionFromValueInner) SetValue(v int32) *AroundPrecisionFromValueInner {
+func (o *ModelRange) SetValue(v int32) *ModelRange {
o.Value = &v
return o
}
-func (o AroundPrecisionFromValueInner) MarshalJSON() ([]byte, error) {
+func (o ModelRange) MarshalJSON() ([]byte, error) {
toSerialize := map[string]any{}
if o.From != nil {
toSerialize["from"] = o.From
@@ -121,15 +121,15 @@ func (o AroundPrecisionFromValueInner) MarshalJSON() ([]byte, error) {
}
serialized, err := json.Marshal(toSerialize)
if err != nil {
- return nil, fmt.Errorf("failed to marshal AroundPrecisionFromValueInner: %w", err)
+ return nil, fmt.Errorf("failed to marshal ModelRange: %w", err)
}
return serialized, nil
}
-func (o AroundPrecisionFromValueInner) String() string {
+func (o ModelRange) String() string {
out := ""
out += fmt.Sprintf(" from=%v\n", o.From)
out += fmt.Sprintf(" value=%v\n", o.Value)
- return fmt.Sprintf("AroundPrecisionFromValueInner {\n%s}", out)
+ return fmt.Sprintf("ModelRange {\n%s}", out)
}
diff --git a/clients/algoliasearch-client-go/algolia/recommend/model_recommend_rule.go b/clients/algoliasearch-client-go/algolia/recommend/model_recommend_rule.go
index 901821eaaf..7d78f65ab6 100644
--- a/clients/algoliasearch-client-go/algolia/recommend/model_recommend_rule.go
+++ b/clients/algoliasearch-client-go/algolia/recommend/model_recommend_rule.go
@@ -8,7 +8,7 @@ import (
// RecommendRule Recommend rule.
type RecommendRule struct {
- Metadata *RecommendRuleMetadata `json:"_metadata,omitempty"`
+ Metadata *RuleMetadata `json:"_metadata,omitempty"`
// Unique identifier of a rule object.
ObjectID *string `json:"objectID,omitempty"`
Condition *Condition `json:"condition,omitempty"`
@@ -21,7 +21,7 @@ type RecommendRule struct {
type RecommendRuleOption func(f *RecommendRule)
-func WithRecommendRuleMetadata(val RecommendRuleMetadata) RecommendRuleOption {
+func WithRecommendRuleMetadata(val RuleMetadata) RecommendRuleOption {
return func(f *RecommendRule) {
f.Metadata = &val
}
@@ -75,9 +75,9 @@ func NewEmptyRecommendRule() *RecommendRule {
}
// GetMetadata returns the Metadata field value if set, zero value otherwise.
-func (o *RecommendRule) GetMetadata() RecommendRuleMetadata {
+func (o *RecommendRule) GetMetadata() RuleMetadata {
if o == nil || o.Metadata == nil {
- var ret RecommendRuleMetadata
+ var ret RuleMetadata
return ret
}
return *o.Metadata
@@ -85,7 +85,7 @@ func (o *RecommendRule) GetMetadata() RecommendRuleMetadata {
// GetMetadataOk returns a tuple with the Metadata field value if set, nil otherwise
// and a boolean to check if the value has been set.
-func (o *RecommendRule) GetMetadataOk() (*RecommendRuleMetadata, bool) {
+func (o *RecommendRule) GetMetadataOk() (*RuleMetadata, bool) {
if o == nil || o.Metadata == nil {
return nil, false
}
@@ -101,8 +101,8 @@ func (o *RecommendRule) HasMetadata() bool {
return false
}
-// SetMetadata gets a reference to the given RecommendRuleMetadata and assigns it to the Metadata field.
-func (o *RecommendRule) SetMetadata(v *RecommendRuleMetadata) *RecommendRule {
+// SetMetadata gets a reference to the given RuleMetadata and assigns it to the Metadata field.
+func (o *RecommendRule) SetMetadata(v *RuleMetadata) *RecommendRule {
o.Metadata = v
return o
}
diff --git a/clients/algoliasearch-client-go/algolia/recommend/model_redirect_rule_index_metadata_data.go b/clients/algoliasearch-client-go/algolia/recommend/model_redirect_rule_index_data.go
similarity index 53%
rename from clients/algoliasearch-client-go/algolia/recommend/model_redirect_rule_index_metadata_data.go
rename to clients/algoliasearch-client-go/algolia/recommend/model_redirect_rule_index_data.go
index 78653b2e4f..70fcb68b51 100644
--- a/clients/algoliasearch-client-go/algolia/recommend/model_redirect_rule_index_metadata_data.go
+++ b/clients/algoliasearch-client-go/algolia/recommend/model_redirect_rule_index_data.go
@@ -6,28 +6,28 @@ import (
"fmt"
)
-// RedirectRuleIndexMetadataData Redirect rule data.
-type RedirectRuleIndexMetadataData struct {
+// RedirectRuleIndexData Redirect rule data.
+type RedirectRuleIndexData struct {
RuleObjectID string `json:"ruleObjectID"`
}
-// NewRedirectRuleIndexMetadataData instantiates a new RedirectRuleIndexMetadataData object
+// NewRedirectRuleIndexData instantiates a new RedirectRuleIndexData object
// This constructor will assign default values to properties that have it defined,
// and makes sure properties required by API are set, but the set of arguments
// will change when the set of required properties is changed.
-func NewRedirectRuleIndexMetadataData(ruleObjectID string) *RedirectRuleIndexMetadataData {
- this := &RedirectRuleIndexMetadataData{}
+func NewRedirectRuleIndexData(ruleObjectID string) *RedirectRuleIndexData {
+ this := &RedirectRuleIndexData{}
this.RuleObjectID = ruleObjectID
return this
}
-// NewEmptyRedirectRuleIndexMetadataData return a pointer to an empty RedirectRuleIndexMetadataData object.
-func NewEmptyRedirectRuleIndexMetadataData() *RedirectRuleIndexMetadataData {
- return &RedirectRuleIndexMetadataData{}
+// NewEmptyRedirectRuleIndexData return a pointer to an empty RedirectRuleIndexData object.
+func NewEmptyRedirectRuleIndexData() *RedirectRuleIndexData {
+ return &RedirectRuleIndexData{}
}
// GetRuleObjectID returns the RuleObjectID field value.
-func (o *RedirectRuleIndexMetadataData) GetRuleObjectID() string {
+func (o *RedirectRuleIndexData) GetRuleObjectID() string {
if o == nil {
var ret string
return ret
@@ -38,7 +38,7 @@ func (o *RedirectRuleIndexMetadataData) GetRuleObjectID() string {
// GetRuleObjectIDOk returns a tuple with the RuleObjectID field value
// and a boolean to check if the value has been set.
-func (o *RedirectRuleIndexMetadataData) GetRuleObjectIDOk() (*string, bool) {
+func (o *RedirectRuleIndexData) GetRuleObjectIDOk() (*string, bool) {
if o == nil {
return nil, false
}
@@ -46,26 +46,26 @@ func (o *RedirectRuleIndexMetadataData) GetRuleObjectIDOk() (*string, bool) {
}
// SetRuleObjectID sets field value.
-func (o *RedirectRuleIndexMetadataData) SetRuleObjectID(v string) *RedirectRuleIndexMetadataData {
+func (o *RedirectRuleIndexData) SetRuleObjectID(v string) *RedirectRuleIndexData {
o.RuleObjectID = v
return o
}
-func (o RedirectRuleIndexMetadataData) MarshalJSON() ([]byte, error) {
+func (o RedirectRuleIndexData) MarshalJSON() ([]byte, error) {
toSerialize := map[string]any{}
if true {
toSerialize["ruleObjectID"] = o.RuleObjectID
}
serialized, err := json.Marshal(toSerialize)
if err != nil {
- return nil, fmt.Errorf("failed to marshal RedirectRuleIndexMetadataData: %w", err)
+ return nil, fmt.Errorf("failed to marshal RedirectRuleIndexData: %w", err)
}
return serialized, nil
}
-func (o RedirectRuleIndexMetadataData) String() string {
+func (o RedirectRuleIndexData) String() string {
out := ""
out += fmt.Sprintf(" ruleObjectID=%v\n", o.RuleObjectID)
- return fmt.Sprintf("RedirectRuleIndexMetadataData {\n%s}", out)
+ return fmt.Sprintf("RedirectRuleIndexData {\n%s}", out)
}
diff --git a/clients/algoliasearch-client-go/algolia/recommend/model_redirect_rule_index_metadata.go b/clients/algoliasearch-client-go/algolia/recommend/model_redirect_rule_index_metadata.go
index 5478e4b18e..4bf342d060 100644
--- a/clients/algoliasearch-client-go/algolia/recommend/model_redirect_rule_index_metadata.go
+++ b/clients/algoliasearch-client-go/algolia/recommend/model_redirect_rule_index_metadata.go
@@ -15,15 +15,15 @@ type RedirectRuleIndexMetadata struct {
// Reason for the redirect rule.
Reason string `json:"reason"`
// Redirect rule status.
- Succeed bool `json:"succeed"`
- Data RedirectRuleIndexMetadataData `json:"data"`
+ Succeed bool `json:"succeed"`
+ Data RedirectRuleIndexData `json:"data"`
}
// NewRedirectRuleIndexMetadata instantiates a new RedirectRuleIndexMetadata object
// This constructor will assign default values to properties that have it defined,
// and makes sure properties required by API are set, but the set of arguments
// will change when the set of required properties is changed.
-func NewRedirectRuleIndexMetadata(source string, dest string, reason string, succeed bool, data RedirectRuleIndexMetadataData) *RedirectRuleIndexMetadata {
+func NewRedirectRuleIndexMetadata(source string, dest string, reason string, succeed bool, data RedirectRuleIndexData) *RedirectRuleIndexMetadata {
this := &RedirectRuleIndexMetadata{}
this.Source = source
this.Dest = dest
@@ -139,9 +139,9 @@ func (o *RedirectRuleIndexMetadata) SetSucceed(v bool) *RedirectRuleIndexMetadat
}
// GetData returns the Data field value.
-func (o *RedirectRuleIndexMetadata) GetData() RedirectRuleIndexMetadataData {
+func (o *RedirectRuleIndexMetadata) GetData() RedirectRuleIndexData {
if o == nil {
- var ret RedirectRuleIndexMetadataData
+ var ret RedirectRuleIndexData
return ret
}
@@ -150,7 +150,7 @@ func (o *RedirectRuleIndexMetadata) GetData() RedirectRuleIndexMetadataData {
// GetDataOk returns a tuple with the Data field value
// and a boolean to check if the value has been set.
-func (o *RedirectRuleIndexMetadata) GetDataOk() (*RedirectRuleIndexMetadataData, bool) {
+func (o *RedirectRuleIndexMetadata) GetDataOk() (*RedirectRuleIndexData, bool) {
if o == nil {
return nil, false
}
@@ -158,7 +158,7 @@ func (o *RedirectRuleIndexMetadata) GetDataOk() (*RedirectRuleIndexMetadataData,
}
// SetData sets field value.
-func (o *RedirectRuleIndexMetadata) SetData(v *RedirectRuleIndexMetadataData) *RedirectRuleIndexMetadata {
+func (o *RedirectRuleIndexMetadata) SetData(v *RedirectRuleIndexData) *RedirectRuleIndexMetadata {
o.Data = *v
return o
}
diff --git a/clients/algoliasearch-client-go/algolia/recommend/model_recommend_rule__metadata.go b/clients/algoliasearch-client-go/algolia/recommend/model_rule_metadata.go
similarity index 58%
rename from clients/algoliasearch-client-go/algolia/recommend/model_recommend_rule__metadata.go
rename to clients/algoliasearch-client-go/algolia/recommend/model_rule_metadata.go
index 8bb2c5f362..0543137900 100644
--- a/clients/algoliasearch-client-go/algolia/recommend/model_recommend_rule__metadata.go
+++ b/clients/algoliasearch-client-go/algolia/recommend/model_rule_metadata.go
@@ -6,39 +6,39 @@ import (
"fmt"
)
-// RecommendRuleMetadata Rule metadata.
-type RecommendRuleMetadata struct {
+// RuleMetadata Rule metadata.
+type RuleMetadata struct {
// Date and time when the object was updated, in RFC 3339 format.
LastUpdate *string `json:"lastUpdate,omitempty"`
}
-type RecommendRuleMetadataOption func(f *RecommendRuleMetadata)
+type RuleMetadataOption func(f *RuleMetadata)
-func WithRecommendRuleMetadataLastUpdate(val string) RecommendRuleMetadataOption {
- return func(f *RecommendRuleMetadata) {
+func WithRuleMetadataLastUpdate(val string) RuleMetadataOption {
+ return func(f *RuleMetadata) {
f.LastUpdate = &val
}
}
-// NewRecommendRuleMetadata instantiates a new RecommendRuleMetadata object
+// NewRuleMetadata instantiates a new RuleMetadata object
// This constructor will assign default values to properties that have it defined,
// and makes sure properties required by API are set, but the set of arguments
// will change when the set of required properties is changed.
-func NewRecommendRuleMetadata(opts ...RecommendRuleMetadataOption) *RecommendRuleMetadata {
- this := &RecommendRuleMetadata{}
+func NewRuleMetadata(opts ...RuleMetadataOption) *RuleMetadata {
+ this := &RuleMetadata{}
for _, opt := range opts {
opt(this)
}
return this
}
-// NewEmptyRecommendRuleMetadata return a pointer to an empty RecommendRuleMetadata object.
-func NewEmptyRecommendRuleMetadata() *RecommendRuleMetadata {
- return &RecommendRuleMetadata{}
+// NewEmptyRuleMetadata return a pointer to an empty RuleMetadata object.
+func NewEmptyRuleMetadata() *RuleMetadata {
+ return &RuleMetadata{}
}
// GetLastUpdate returns the LastUpdate field value if set, zero value otherwise.
-func (o *RecommendRuleMetadata) GetLastUpdate() string {
+func (o *RuleMetadata) GetLastUpdate() string {
if o == nil || o.LastUpdate == nil {
var ret string
return ret
@@ -48,7 +48,7 @@ func (o *RecommendRuleMetadata) GetLastUpdate() string {
// GetLastUpdateOk returns a tuple with the LastUpdate field value if set, nil otherwise
// and a boolean to check if the value has been set.
-func (o *RecommendRuleMetadata) GetLastUpdateOk() (*string, bool) {
+func (o *RuleMetadata) GetLastUpdateOk() (*string, bool) {
if o == nil || o.LastUpdate == nil {
return nil, false
}
@@ -56,7 +56,7 @@ func (o *RecommendRuleMetadata) GetLastUpdateOk() (*string, bool) {
}
// HasLastUpdate returns a boolean if a field has been set.
-func (o *RecommendRuleMetadata) HasLastUpdate() bool {
+func (o *RuleMetadata) HasLastUpdate() bool {
if o != nil && o.LastUpdate != nil {
return true
}
@@ -65,26 +65,26 @@ func (o *RecommendRuleMetadata) HasLastUpdate() bool {
}
// SetLastUpdate gets a reference to the given string and assigns it to the LastUpdate field.
-func (o *RecommendRuleMetadata) SetLastUpdate(v string) *RecommendRuleMetadata {
+func (o *RuleMetadata) SetLastUpdate(v string) *RuleMetadata {
o.LastUpdate = &v
return o
}
-func (o RecommendRuleMetadata) MarshalJSON() ([]byte, error) {
+func (o RuleMetadata) MarshalJSON() ([]byte, error) {
toSerialize := map[string]any{}
if o.LastUpdate != nil {
toSerialize["lastUpdate"] = o.LastUpdate
}
serialized, err := json.Marshal(toSerialize)
if err != nil {
- return nil, fmt.Errorf("failed to marshal RecommendRuleMetadata: %w", err)
+ return nil, fmt.Errorf("failed to marshal RuleMetadata: %w", err)
}
return serialized, nil
}
-func (o RecommendRuleMetadata) String() string {
+func (o RuleMetadata) String() string {
out := ""
out += fmt.Sprintf(" lastUpdate=%v\n", o.LastUpdate)
- return fmt.Sprintf("RecommendRuleMetadata {\n%s}", out)
+ return fmt.Sprintf("RuleMetadata {\n%s}", out)
}
diff --git a/clients/algoliasearch-client-go/algolia/search/model_around_precision.go b/clients/algoliasearch-client-go/algolia/search/model_around_precision.go
index cbd2a081b3..2ad97c2510 100644
--- a/clients/algoliasearch-client-go/algolia/search/model_around_precision.go
+++ b/clients/algoliasearch-client-go/algolia/search/model_around_precision.go
@@ -8,8 +8,8 @@ import (
// AroundPrecision - Precision of a coordinate-based search in meters to group results with similar distances. The Geo ranking criterion considers all matches within the same range of distances to be equal.
type AroundPrecision struct {
- ArrayOfAroundPrecisionFromValueInner *[]AroundPrecisionFromValueInner
- Int32 *int32
+ ArrayOfModelRange *[]ModelRange
+ Int32 *int32
}
// int32AsAroundPrecision is a convenience function that returns int32 wrapped in AroundPrecision.
@@ -19,27 +19,27 @@ func Int32AsAroundPrecision(v int32) *AroundPrecision {
}
}
-// []AroundPrecisionFromValueInnerAsAroundPrecision is a convenience function that returns []AroundPrecisionFromValueInner wrapped in AroundPrecision.
-func ArrayOfAroundPrecisionFromValueInnerAsAroundPrecision(v []AroundPrecisionFromValueInner) *AroundPrecision {
+// []ModelRangeAsAroundPrecision is a convenience function that returns []ModelRange wrapped in AroundPrecision.
+func ArrayOfModelRangeAsAroundPrecision(v []ModelRange) *AroundPrecision {
return &AroundPrecision{
- ArrayOfAroundPrecisionFromValueInner: &v,
+ ArrayOfModelRange: &v,
}
}
// Unmarshal JSON data into one of the pointers in the struct.
func (dst *AroundPrecision) UnmarshalJSON(data []byte) error {
var err error
- // try to unmarshal data into ArrayOfAroundPrecisionFromValueInner
- err = newStrictDecoder(data).Decode(&dst.ArrayOfAroundPrecisionFromValueInner)
- if err == nil && validateStruct(dst.ArrayOfAroundPrecisionFromValueInner) == nil {
- jsonArrayOfAroundPrecisionFromValueInner, _ := json.Marshal(dst.ArrayOfAroundPrecisionFromValueInner)
- if string(jsonArrayOfAroundPrecisionFromValueInner) == "{}" { // empty struct
- dst.ArrayOfAroundPrecisionFromValueInner = nil
+ // try to unmarshal data into ArrayOfModelRange
+ err = newStrictDecoder(data).Decode(&dst.ArrayOfModelRange)
+ if err == nil && validateStruct(dst.ArrayOfModelRange) == nil {
+ jsonArrayOfModelRange, _ := json.Marshal(dst.ArrayOfModelRange)
+ if string(jsonArrayOfModelRange) == "{}" { // empty struct
+ dst.ArrayOfModelRange = nil
} else {
return nil
}
} else {
- dst.ArrayOfAroundPrecisionFromValueInner = nil
+ dst.ArrayOfModelRange = nil
}
// try to unmarshal data into Int32
@@ -60,10 +60,10 @@ func (dst *AroundPrecision) UnmarshalJSON(data []byte) error {
// Marshal data from the first non-nil pointers in the struct to JSON.
func (src AroundPrecision) MarshalJSON() ([]byte, error) {
- if src.ArrayOfAroundPrecisionFromValueInner != nil {
- serialized, err := json.Marshal(&src.ArrayOfAroundPrecisionFromValueInner)
+ if src.ArrayOfModelRange != nil {
+ serialized, err := json.Marshal(&src.ArrayOfModelRange)
if err != nil {
- return nil, fmt.Errorf("failed to unmarshal one of ArrayOfAroundPrecisionFromValueInner of AroundPrecision: %w", err)
+ return nil, fmt.Errorf("failed to unmarshal one of ArrayOfModelRange of AroundPrecision: %w", err)
}
return serialized, nil
@@ -83,8 +83,8 @@ func (src AroundPrecision) MarshalJSON() ([]byte, error) {
// Get the actual instance.
func (obj AroundPrecision) GetActualInstance() any {
- if obj.ArrayOfAroundPrecisionFromValueInner != nil {
- return *obj.ArrayOfAroundPrecisionFromValueInner
+ if obj.ArrayOfModelRange != nil {
+ return *obj.ArrayOfModelRange
}
if obj.Int32 != nil {
diff --git a/clients/algoliasearch-client-go/algolia/search/model_around_precision_from_value_inner.go b/clients/algoliasearch-client-go/algolia/search/model_range.go
similarity index 56%
rename from clients/algoliasearch-client-go/algolia/search/model_around_precision_from_value_inner.go
rename to clients/algoliasearch-client-go/algolia/search/model_range.go
index 634e3ff205..0aa6978cca 100644
--- a/clients/algoliasearch-client-go/algolia/search/model_around_precision_from_value_inner.go
+++ b/clients/algoliasearch-client-go/algolia/search/model_range.go
@@ -6,47 +6,47 @@ import (
"fmt"
)
-// AroundPrecisionFromValueInner Range object with lower and upper values in meters to define custom ranges.
-type AroundPrecisionFromValueInner struct {
+// ModelRange Range object with lower and upper values in meters to define custom ranges.
+type ModelRange struct {
// Lower boundary of a range in meters. The Geo ranking criterion considers all records within the range to be equal.
From *int32 `json:"from,omitempty"`
// Upper boundary of a range in meters. The Geo ranking criterion considers all records within the range to be equal.
Value *int32 `json:"value,omitempty"`
}
-type AroundPrecisionFromValueInnerOption func(f *AroundPrecisionFromValueInner)
+type ModelRangeOption func(f *ModelRange)
-func WithAroundPrecisionFromValueInnerFrom(val int32) AroundPrecisionFromValueInnerOption {
- return func(f *AroundPrecisionFromValueInner) {
+func WithModelRangeFrom(val int32) ModelRangeOption {
+ return func(f *ModelRange) {
f.From = &val
}
}
-func WithAroundPrecisionFromValueInnerValue(val int32) AroundPrecisionFromValueInnerOption {
- return func(f *AroundPrecisionFromValueInner) {
+func WithModelRangeValue(val int32) ModelRangeOption {
+ return func(f *ModelRange) {
f.Value = &val
}
}
-// NewAroundPrecisionFromValueInner instantiates a new AroundPrecisionFromValueInner object
+// NewModelRange instantiates a new ModelRange object
// This constructor will assign default values to properties that have it defined,
// and makes sure properties required by API are set, but the set of arguments
// will change when the set of required properties is changed.
-func NewAroundPrecisionFromValueInner(opts ...AroundPrecisionFromValueInnerOption) *AroundPrecisionFromValueInner {
- this := &AroundPrecisionFromValueInner{}
+func NewModelRange(opts ...ModelRangeOption) *ModelRange {
+ this := &ModelRange{}
for _, opt := range opts {
opt(this)
}
return this
}
-// NewEmptyAroundPrecisionFromValueInner return a pointer to an empty AroundPrecisionFromValueInner object.
-func NewEmptyAroundPrecisionFromValueInner() *AroundPrecisionFromValueInner {
- return &AroundPrecisionFromValueInner{}
+// NewEmptyModelRange return a pointer to an empty ModelRange object.
+func NewEmptyModelRange() *ModelRange {
+ return &ModelRange{}
}
// GetFrom returns the From field value if set, zero value otherwise.
-func (o *AroundPrecisionFromValueInner) GetFrom() int32 {
+func (o *ModelRange) GetFrom() int32 {
if o == nil || o.From == nil {
var ret int32
return ret
@@ -56,7 +56,7 @@ func (o *AroundPrecisionFromValueInner) GetFrom() int32 {
// GetFromOk returns a tuple with the From field value if set, nil otherwise
// and a boolean to check if the value has been set.
-func (o *AroundPrecisionFromValueInner) GetFromOk() (*int32, bool) {
+func (o *ModelRange) GetFromOk() (*int32, bool) {
if o == nil || o.From == nil {
return nil, false
}
@@ -64,7 +64,7 @@ func (o *AroundPrecisionFromValueInner) GetFromOk() (*int32, bool) {
}
// HasFrom returns a boolean if a field has been set.
-func (o *AroundPrecisionFromValueInner) HasFrom() bool {
+func (o *ModelRange) HasFrom() bool {
if o != nil && o.From != nil {
return true
}
@@ -73,13 +73,13 @@ func (o *AroundPrecisionFromValueInner) HasFrom() bool {
}
// SetFrom gets a reference to the given int32 and assigns it to the From field.
-func (o *AroundPrecisionFromValueInner) SetFrom(v int32) *AroundPrecisionFromValueInner {
+func (o *ModelRange) SetFrom(v int32) *ModelRange {
o.From = &v
return o
}
// GetValue returns the Value field value if set, zero value otherwise.
-func (o *AroundPrecisionFromValueInner) GetValue() int32 {
+func (o *ModelRange) GetValue() int32 {
if o == nil || o.Value == nil {
var ret int32
return ret
@@ -89,7 +89,7 @@ func (o *AroundPrecisionFromValueInner) GetValue() int32 {
// GetValueOk returns a tuple with the Value field value if set, nil otherwise
// and a boolean to check if the value has been set.
-func (o *AroundPrecisionFromValueInner) GetValueOk() (*int32, bool) {
+func (o *ModelRange) GetValueOk() (*int32, bool) {
if o == nil || o.Value == nil {
return nil, false
}
@@ -97,7 +97,7 @@ func (o *AroundPrecisionFromValueInner) GetValueOk() (*int32, bool) {
}
// HasValue returns a boolean if a field has been set.
-func (o *AroundPrecisionFromValueInner) HasValue() bool {
+func (o *ModelRange) HasValue() bool {
if o != nil && o.Value != nil {
return true
}
@@ -106,12 +106,12 @@ func (o *AroundPrecisionFromValueInner) HasValue() bool {
}
// SetValue gets a reference to the given int32 and assigns it to the Value field.
-func (o *AroundPrecisionFromValueInner) SetValue(v int32) *AroundPrecisionFromValueInner {
+func (o *ModelRange) SetValue(v int32) *ModelRange {
o.Value = &v
return o
}
-func (o AroundPrecisionFromValueInner) MarshalJSON() ([]byte, error) {
+func (o ModelRange) MarshalJSON() ([]byte, error) {
toSerialize := map[string]any{}
if o.From != nil {
toSerialize["from"] = o.From
@@ -121,15 +121,15 @@ func (o AroundPrecisionFromValueInner) MarshalJSON() ([]byte, error) {
}
serialized, err := json.Marshal(toSerialize)
if err != nil {
- return nil, fmt.Errorf("failed to marshal AroundPrecisionFromValueInner: %w", err)
+ return nil, fmt.Errorf("failed to marshal ModelRange: %w", err)
}
return serialized, nil
}
-func (o AroundPrecisionFromValueInner) String() string {
+func (o ModelRange) String() string {
out := ""
out += fmt.Sprintf(" from=%v\n", o.From)
out += fmt.Sprintf(" value=%v\n", o.Value)
- return fmt.Sprintf("AroundPrecisionFromValueInner {\n%s}", out)
+ return fmt.Sprintf("ModelRange {\n%s}", out)
}
diff --git a/clients/algoliasearch-client-go/algolia/search/model_redirect_rule_index_metadata_data.go b/clients/algoliasearch-client-go/algolia/search/model_redirect_rule_index_data.go
similarity index 53%
rename from clients/algoliasearch-client-go/algolia/search/model_redirect_rule_index_metadata_data.go
rename to clients/algoliasearch-client-go/algolia/search/model_redirect_rule_index_data.go
index 8f31322ac6..99859fbc8c 100644
--- a/clients/algoliasearch-client-go/algolia/search/model_redirect_rule_index_metadata_data.go
+++ b/clients/algoliasearch-client-go/algolia/search/model_redirect_rule_index_data.go
@@ -6,28 +6,28 @@ import (
"fmt"
)
-// RedirectRuleIndexMetadataData Redirect rule data.
-type RedirectRuleIndexMetadataData struct {
+// RedirectRuleIndexData Redirect rule data.
+type RedirectRuleIndexData struct {
RuleObjectID string `json:"ruleObjectID"`
}
-// NewRedirectRuleIndexMetadataData instantiates a new RedirectRuleIndexMetadataData object
+// NewRedirectRuleIndexData instantiates a new RedirectRuleIndexData object
// This constructor will assign default values to properties that have it defined,
// and makes sure properties required by API are set, but the set of arguments
// will change when the set of required properties is changed.
-func NewRedirectRuleIndexMetadataData(ruleObjectID string) *RedirectRuleIndexMetadataData {
- this := &RedirectRuleIndexMetadataData{}
+func NewRedirectRuleIndexData(ruleObjectID string) *RedirectRuleIndexData {
+ this := &RedirectRuleIndexData{}
this.RuleObjectID = ruleObjectID
return this
}
-// NewEmptyRedirectRuleIndexMetadataData return a pointer to an empty RedirectRuleIndexMetadataData object.
-func NewEmptyRedirectRuleIndexMetadataData() *RedirectRuleIndexMetadataData {
- return &RedirectRuleIndexMetadataData{}
+// NewEmptyRedirectRuleIndexData return a pointer to an empty RedirectRuleIndexData object.
+func NewEmptyRedirectRuleIndexData() *RedirectRuleIndexData {
+ return &RedirectRuleIndexData{}
}
// GetRuleObjectID returns the RuleObjectID field value.
-func (o *RedirectRuleIndexMetadataData) GetRuleObjectID() string {
+func (o *RedirectRuleIndexData) GetRuleObjectID() string {
if o == nil {
var ret string
return ret
@@ -38,7 +38,7 @@ func (o *RedirectRuleIndexMetadataData) GetRuleObjectID() string {
// GetRuleObjectIDOk returns a tuple with the RuleObjectID field value
// and a boolean to check if the value has been set.
-func (o *RedirectRuleIndexMetadataData) GetRuleObjectIDOk() (*string, bool) {
+func (o *RedirectRuleIndexData) GetRuleObjectIDOk() (*string, bool) {
if o == nil {
return nil, false
}
@@ -46,26 +46,26 @@ func (o *RedirectRuleIndexMetadataData) GetRuleObjectIDOk() (*string, bool) {
}
// SetRuleObjectID sets field value.
-func (o *RedirectRuleIndexMetadataData) SetRuleObjectID(v string) *RedirectRuleIndexMetadataData {
+func (o *RedirectRuleIndexData) SetRuleObjectID(v string) *RedirectRuleIndexData {
o.RuleObjectID = v
return o
}
-func (o RedirectRuleIndexMetadataData) MarshalJSON() ([]byte, error) {
+func (o RedirectRuleIndexData) MarshalJSON() ([]byte, error) {
toSerialize := map[string]any{}
if true {
toSerialize["ruleObjectID"] = o.RuleObjectID
}
serialized, err := json.Marshal(toSerialize)
if err != nil {
- return nil, fmt.Errorf("failed to marshal RedirectRuleIndexMetadataData: %w", err)
+ return nil, fmt.Errorf("failed to marshal RedirectRuleIndexData: %w", err)
}
return serialized, nil
}
-func (o RedirectRuleIndexMetadataData) String() string {
+func (o RedirectRuleIndexData) String() string {
out := ""
out += fmt.Sprintf(" ruleObjectID=%v\n", o.RuleObjectID)
- return fmt.Sprintf("RedirectRuleIndexMetadataData {\n%s}", out)
+ return fmt.Sprintf("RedirectRuleIndexData {\n%s}", out)
}
diff --git a/clients/algoliasearch-client-go/algolia/search/model_redirect_rule_index_metadata.go b/clients/algoliasearch-client-go/algolia/search/model_redirect_rule_index_metadata.go
index 9b79ead396..b5b5c410a0 100644
--- a/clients/algoliasearch-client-go/algolia/search/model_redirect_rule_index_metadata.go
+++ b/clients/algoliasearch-client-go/algolia/search/model_redirect_rule_index_metadata.go
@@ -15,15 +15,15 @@ type RedirectRuleIndexMetadata struct {
// Reason for the redirect rule.
Reason string `json:"reason"`
// Redirect rule status.
- Succeed bool `json:"succeed"`
- Data RedirectRuleIndexMetadataData `json:"data"`
+ Succeed bool `json:"succeed"`
+ Data RedirectRuleIndexData `json:"data"`
}
// NewRedirectRuleIndexMetadata instantiates a new RedirectRuleIndexMetadata object
// This constructor will assign default values to properties that have it defined,
// and makes sure properties required by API are set, but the set of arguments
// will change when the set of required properties is changed.
-func NewRedirectRuleIndexMetadata(source string, dest string, reason string, succeed bool, data RedirectRuleIndexMetadataData) *RedirectRuleIndexMetadata {
+func NewRedirectRuleIndexMetadata(source string, dest string, reason string, succeed bool, data RedirectRuleIndexData) *RedirectRuleIndexMetadata {
this := &RedirectRuleIndexMetadata{}
this.Source = source
this.Dest = dest
@@ -139,9 +139,9 @@ func (o *RedirectRuleIndexMetadata) SetSucceed(v bool) *RedirectRuleIndexMetadat
}
// GetData returns the Data field value.
-func (o *RedirectRuleIndexMetadata) GetData() RedirectRuleIndexMetadataData {
+func (o *RedirectRuleIndexMetadata) GetData() RedirectRuleIndexData {
if o == nil {
- var ret RedirectRuleIndexMetadataData
+ var ret RedirectRuleIndexData
return ret
}
@@ -150,7 +150,7 @@ func (o *RedirectRuleIndexMetadata) GetData() RedirectRuleIndexMetadataData {
// GetDataOk returns a tuple with the Data field value
// and a boolean to check if the value has been set.
-func (o *RedirectRuleIndexMetadata) GetDataOk() (*RedirectRuleIndexMetadataData, bool) {
+func (o *RedirectRuleIndexMetadata) GetDataOk() (*RedirectRuleIndexData, bool) {
if o == nil {
return nil, false
}
@@ -158,7 +158,7 @@ func (o *RedirectRuleIndexMetadata) GetDataOk() (*RedirectRuleIndexMetadataData,
}
// SetData sets field value.
-func (o *RedirectRuleIndexMetadata) SetData(v *RedirectRuleIndexMetadataData) *RedirectRuleIndexMetadata {
+func (o *RedirectRuleIndexMetadata) SetData(v *RedirectRuleIndexData) *RedirectRuleIndexMetadata {
o.Data = *v
return o
}
diff --git a/clients/algoliasearch-client-go/algolia/search/model_search_params_string.go b/clients/algoliasearch-client-go/algolia/search/model_search_params_string.go
index 0d560528f3..88a1c08dd9 100644
--- a/clients/algoliasearch-client-go/algolia/search/model_search_params_string.go
+++ b/clients/algoliasearch-client-go/algolia/search/model_search_params_string.go
@@ -6,7 +6,7 @@ import (
"fmt"
)
-// SearchParamsString struct for SearchParamsString.
+// SearchParamsString Search parameters as query string.
type SearchParamsString struct {
// Search parameters as a URL-encoded query string.
Params *string `json:"params,omitempty"`
diff --git a/clients/algoliasearch-client-go/algolia/usage/api_usage.go b/clients/algoliasearch-client-go/algolia/usage/api_usage.go
index 60a26b163c..abc8a3ffe6 100644
--- a/clients/algoliasearch-client-go/algolia/usage/api_usage.go
+++ b/clients/algoliasearch-client-go/algolia/usage/api_usage.go
@@ -815,10 +815,10 @@ Request can be constructed by NewApiGetIndexUsageRequest with parameters below.
@param startDate string - Start date of the period to analyze, in `YYYY-MM-DD` format.
@param endDate string - End date of the period to analyze, in `YYYY-MM-DD` format.
@param granularity Granularity - Granularity of the aggregated metrics. - `hourly`: the maximum time range for hourly metrics is 7 days. - `daily`: the maximum time range for daily metrics is 365 days.
- @return GetUsage200Response
+ @return IndexUsage
*/
-func (c *APIClient) GetIndexUsage(r ApiGetIndexUsageRequest, opts ...RequestOption) (*GetUsage200Response, error) {
- var returnValue *GetUsage200Response
+func (c *APIClient) GetIndexUsage(r ApiGetIndexUsageRequest, opts ...RequestOption) (*IndexUsage, error) {
+ var returnValue *IndexUsage
res, resBody, err := c.GetIndexUsageWithHTTPInfo(r, opts...)
if err != nil {
@@ -987,10 +987,10 @@ Request can be constructed by NewApiGetUsageRequest with parameters below.
@param startDate string - Start date of the period to analyze, in `YYYY-MM-DD` format.
@param endDate string - End date of the period to analyze, in `YYYY-MM-DD` format.
@param granularity Granularity - Granularity of the aggregated metrics. - `hourly`: the maximum time range for hourly metrics is 7 days. - `daily`: the maximum time range for daily metrics is 365 days.
- @return GetUsage200Response
+ @return IndexUsage
*/
-func (c *APIClient) GetUsage(r ApiGetUsageRequest, opts ...RequestOption) (*GetUsage200Response, error) {
- var returnValue *GetUsage200Response
+func (c *APIClient) GetUsage(r ApiGetUsageRequest, opts ...RequestOption) (*IndexUsage, error) {
+ var returnValue *IndexUsage
res, resBody, err := c.GetUsageWithHTTPInfo(r, opts...)
if err != nil {
diff --git a/clients/algoliasearch-client-go/algolia/usage/model_get_usage_400_response_error_errors_inner.go b/clients/algoliasearch-client-go/algolia/usage/model_error_item.go
similarity index 56%
rename from clients/algoliasearch-client-go/algolia/usage/model_get_usage_400_response_error_errors_inner.go
rename to clients/algoliasearch-client-go/algolia/usage/model_error_item.go
index c262cafc3a..be4db45fae 100644
--- a/clients/algoliasearch-client-go/algolia/usage/model_get_usage_400_response_error_errors_inner.go
+++ b/clients/algoliasearch-client-go/algolia/usage/model_error_item.go
@@ -6,40 +6,40 @@ import (
"fmt"
)
-// GetUsage400ResponseErrorErrorsInner struct for GetUsage400ResponseErrorErrorsInner.
-type GetUsage400ResponseErrorErrorsInner struct {
+// ErrorItem struct for ErrorItem.
+type ErrorItem struct {
Code *string `json:"code,omitempty"`
Message string `json:"message"`
Line *int32 `json:"line,omitempty"`
Position *int32 `json:"position,omitempty"`
}
-type GetUsage400ResponseErrorErrorsInnerOption func(f *GetUsage400ResponseErrorErrorsInner)
+type ErrorItemOption func(f *ErrorItem)
-func WithGetUsage400ResponseErrorErrorsInnerCode(val string) GetUsage400ResponseErrorErrorsInnerOption {
- return func(f *GetUsage400ResponseErrorErrorsInner) {
+func WithErrorItemCode(val string) ErrorItemOption {
+ return func(f *ErrorItem) {
f.Code = &val
}
}
-func WithGetUsage400ResponseErrorErrorsInnerLine(val int32) GetUsage400ResponseErrorErrorsInnerOption {
- return func(f *GetUsage400ResponseErrorErrorsInner) {
+func WithErrorItemLine(val int32) ErrorItemOption {
+ return func(f *ErrorItem) {
f.Line = &val
}
}
-func WithGetUsage400ResponseErrorErrorsInnerPosition(val int32) GetUsage400ResponseErrorErrorsInnerOption {
- return func(f *GetUsage400ResponseErrorErrorsInner) {
+func WithErrorItemPosition(val int32) ErrorItemOption {
+ return func(f *ErrorItem) {
f.Position = &val
}
}
-// NewGetUsage400ResponseErrorErrorsInner instantiates a new GetUsage400ResponseErrorErrorsInner object
+// NewErrorItem instantiates a new ErrorItem object
// This constructor will assign default values to properties that have it defined,
// and makes sure properties required by API are set, but the set of arguments
// will change when the set of required properties is changed.
-func NewGetUsage400ResponseErrorErrorsInner(message string, opts ...GetUsage400ResponseErrorErrorsInnerOption) *GetUsage400ResponseErrorErrorsInner {
- this := &GetUsage400ResponseErrorErrorsInner{}
+func NewErrorItem(message string, opts ...ErrorItemOption) *ErrorItem {
+ this := &ErrorItem{}
this.Message = message
for _, opt := range opts {
opt(this)
@@ -47,13 +47,13 @@ func NewGetUsage400ResponseErrorErrorsInner(message string, opts ...GetUsage400R
return this
}
-// NewEmptyGetUsage400ResponseErrorErrorsInner return a pointer to an empty GetUsage400ResponseErrorErrorsInner object.
-func NewEmptyGetUsage400ResponseErrorErrorsInner() *GetUsage400ResponseErrorErrorsInner {
- return &GetUsage400ResponseErrorErrorsInner{}
+// NewEmptyErrorItem return a pointer to an empty ErrorItem object.
+func NewEmptyErrorItem() *ErrorItem {
+ return &ErrorItem{}
}
// GetCode returns the Code field value if set, zero value otherwise.
-func (o *GetUsage400ResponseErrorErrorsInner) GetCode() string {
+func (o *ErrorItem) GetCode() string {
if o == nil || o.Code == nil {
var ret string
return ret
@@ -63,7 +63,7 @@ func (o *GetUsage400ResponseErrorErrorsInner) GetCode() string {
// GetCodeOk returns a tuple with the Code field value if set, nil otherwise
// and a boolean to check if the value has been set.
-func (o *GetUsage400ResponseErrorErrorsInner) GetCodeOk() (*string, bool) {
+func (o *ErrorItem) GetCodeOk() (*string, bool) {
if o == nil || o.Code == nil {
return nil, false
}
@@ -71,7 +71,7 @@ func (o *GetUsage400ResponseErrorErrorsInner) GetCodeOk() (*string, bool) {
}
// HasCode returns a boolean if a field has been set.
-func (o *GetUsage400ResponseErrorErrorsInner) HasCode() bool {
+func (o *ErrorItem) HasCode() bool {
if o != nil && o.Code != nil {
return true
}
@@ -80,13 +80,13 @@ func (o *GetUsage400ResponseErrorErrorsInner) HasCode() bool {
}
// SetCode gets a reference to the given string and assigns it to the Code field.
-func (o *GetUsage400ResponseErrorErrorsInner) SetCode(v string) *GetUsage400ResponseErrorErrorsInner {
+func (o *ErrorItem) SetCode(v string) *ErrorItem {
o.Code = &v
return o
}
// GetMessage returns the Message field value.
-func (o *GetUsage400ResponseErrorErrorsInner) GetMessage() string {
+func (o *ErrorItem) GetMessage() string {
if o == nil {
var ret string
return ret
@@ -97,7 +97,7 @@ func (o *GetUsage400ResponseErrorErrorsInner) GetMessage() string {
// GetMessageOk returns a tuple with the Message field value
// and a boolean to check if the value has been set.
-func (o *GetUsage400ResponseErrorErrorsInner) GetMessageOk() (*string, bool) {
+func (o *ErrorItem) GetMessageOk() (*string, bool) {
if o == nil {
return nil, false
}
@@ -105,13 +105,13 @@ func (o *GetUsage400ResponseErrorErrorsInner) GetMessageOk() (*string, bool) {
}
// SetMessage sets field value.
-func (o *GetUsage400ResponseErrorErrorsInner) SetMessage(v string) *GetUsage400ResponseErrorErrorsInner {
+func (o *ErrorItem) SetMessage(v string) *ErrorItem {
o.Message = v
return o
}
// GetLine returns the Line field value if set, zero value otherwise.
-func (o *GetUsage400ResponseErrorErrorsInner) GetLine() int32 {
+func (o *ErrorItem) GetLine() int32 {
if o == nil || o.Line == nil {
var ret int32
return ret
@@ -121,7 +121,7 @@ func (o *GetUsage400ResponseErrorErrorsInner) GetLine() int32 {
// GetLineOk returns a tuple with the Line field value if set, nil otherwise
// and a boolean to check if the value has been set.
-func (o *GetUsage400ResponseErrorErrorsInner) GetLineOk() (*int32, bool) {
+func (o *ErrorItem) GetLineOk() (*int32, bool) {
if o == nil || o.Line == nil {
return nil, false
}
@@ -129,7 +129,7 @@ func (o *GetUsage400ResponseErrorErrorsInner) GetLineOk() (*int32, bool) {
}
// HasLine returns a boolean if a field has been set.
-func (o *GetUsage400ResponseErrorErrorsInner) HasLine() bool {
+func (o *ErrorItem) HasLine() bool {
if o != nil && o.Line != nil {
return true
}
@@ -138,13 +138,13 @@ func (o *GetUsage400ResponseErrorErrorsInner) HasLine() bool {
}
// SetLine gets a reference to the given int32 and assigns it to the Line field.
-func (o *GetUsage400ResponseErrorErrorsInner) SetLine(v int32) *GetUsage400ResponseErrorErrorsInner {
+func (o *ErrorItem) SetLine(v int32) *ErrorItem {
o.Line = &v
return o
}
// GetPosition returns the Position field value if set, zero value otherwise.
-func (o *GetUsage400ResponseErrorErrorsInner) GetPosition() int32 {
+func (o *ErrorItem) GetPosition() int32 {
if o == nil || o.Position == nil {
var ret int32
return ret
@@ -154,7 +154,7 @@ func (o *GetUsage400ResponseErrorErrorsInner) GetPosition() int32 {
// GetPositionOk returns a tuple with the Position field value if set, nil otherwise
// and a boolean to check if the value has been set.
-func (o *GetUsage400ResponseErrorErrorsInner) GetPositionOk() (*int32, bool) {
+func (o *ErrorItem) GetPositionOk() (*int32, bool) {
if o == nil || o.Position == nil {
return nil, false
}
@@ -162,7 +162,7 @@ func (o *GetUsage400ResponseErrorErrorsInner) GetPositionOk() (*int32, bool) {
}
// HasPosition returns a boolean if a field has been set.
-func (o *GetUsage400ResponseErrorErrorsInner) HasPosition() bool {
+func (o *ErrorItem) HasPosition() bool {
if o != nil && o.Position != nil {
return true
}
@@ -171,12 +171,12 @@ func (o *GetUsage400ResponseErrorErrorsInner) HasPosition() bool {
}
// SetPosition gets a reference to the given int32 and assigns it to the Position field.
-func (o *GetUsage400ResponseErrorErrorsInner) SetPosition(v int32) *GetUsage400ResponseErrorErrorsInner {
+func (o *ErrorItem) SetPosition(v int32) *ErrorItem {
o.Position = &v
return o
}
-func (o GetUsage400ResponseErrorErrorsInner) MarshalJSON() ([]byte, error) {
+func (o ErrorItem) MarshalJSON() ([]byte, error) {
toSerialize := map[string]any{}
if o.Code != nil {
toSerialize["code"] = o.Code
@@ -192,17 +192,17 @@ func (o GetUsage400ResponseErrorErrorsInner) MarshalJSON() ([]byte, error) {
}
serialized, err := json.Marshal(toSerialize)
if err != nil {
- return nil, fmt.Errorf("failed to marshal GetUsage400ResponseErrorErrorsInner: %w", err)
+ return nil, fmt.Errorf("failed to marshal ErrorItem: %w", err)
}
return serialized, nil
}
-func (o GetUsage400ResponseErrorErrorsInner) String() string {
+func (o ErrorItem) String() string {
out := ""
out += fmt.Sprintf(" code=%v\n", o.Code)
out += fmt.Sprintf(" message=%v\n", o.Message)
out += fmt.Sprintf(" line=%v\n", o.Line)
out += fmt.Sprintf(" position=%v\n", o.Position)
- return fmt.Sprintf("GetUsage400ResponseErrorErrorsInner {\n%s}", out)
+ return fmt.Sprintf("ErrorItem {\n%s}", out)
}
diff --git a/clients/algoliasearch-client-go/algolia/usage/model_get_usage_400_response.go b/clients/algoliasearch-client-go/algolia/usage/model_forbidden.go
similarity index 51%
rename from clients/algoliasearch-client-go/algolia/usage/model_get_usage_400_response.go
rename to clients/algoliasearch-client-go/algolia/usage/model_forbidden.go
index 00aeb36b76..ad02d80d23 100644
--- a/clients/algoliasearch-client-go/algolia/usage/model_get_usage_400_response.go
+++ b/clients/algoliasearch-client-go/algolia/usage/model_forbidden.go
@@ -6,30 +6,30 @@ import (
"fmt"
)
-// GetUsage400Response struct for GetUsage400Response.
-type GetUsage400Response struct {
- Error GetUsage400ResponseError `json:"error"`
+// Forbidden struct for Forbidden.
+type Forbidden struct {
+ Error ForbiddenError `json:"error"`
}
-// NewGetUsage400Response instantiates a new GetUsage400Response object
+// NewForbidden instantiates a new Forbidden object
// This constructor will assign default values to properties that have it defined,
// and makes sure properties required by API are set, but the set of arguments
// will change when the set of required properties is changed.
-func NewGetUsage400Response(error_ GetUsage400ResponseError) *GetUsage400Response {
- this := &GetUsage400Response{}
+func NewForbidden(error_ ForbiddenError) *Forbidden {
+ this := &Forbidden{}
this.Error = error_
return this
}
-// NewEmptyGetUsage400Response return a pointer to an empty GetUsage400Response object.
-func NewEmptyGetUsage400Response() *GetUsage400Response {
- return &GetUsage400Response{}
+// NewEmptyForbidden return a pointer to an empty Forbidden object.
+func NewEmptyForbidden() *Forbidden {
+ return &Forbidden{}
}
// GetError returns the Error field value.
-func (o *GetUsage400Response) GetError() GetUsage400ResponseError {
+func (o *Forbidden) GetError() ForbiddenError {
if o == nil {
- var ret GetUsage400ResponseError
+ var ret ForbiddenError
return ret
}
@@ -38,7 +38,7 @@ func (o *GetUsage400Response) GetError() GetUsage400ResponseError {
// GetErrorOk returns a tuple with the Error field value
// and a boolean to check if the value has been set.
-func (o *GetUsage400Response) GetErrorOk() (*GetUsage400ResponseError, bool) {
+func (o *Forbidden) GetErrorOk() (*ForbiddenError, bool) {
if o == nil {
return nil, false
}
@@ -46,26 +46,26 @@ func (o *GetUsage400Response) GetErrorOk() (*GetUsage400ResponseError, bool) {
}
// SetError sets field value.
-func (o *GetUsage400Response) SetError(v *GetUsage400ResponseError) *GetUsage400Response {
+func (o *Forbidden) SetError(v *ForbiddenError) *Forbidden {
o.Error = *v
return o
}
-func (o GetUsage400Response) MarshalJSON() ([]byte, error) {
+func (o Forbidden) MarshalJSON() ([]byte, error) {
toSerialize := map[string]any{}
if true {
toSerialize["error"] = o.Error
}
serialized, err := json.Marshal(toSerialize)
if err != nil {
- return nil, fmt.Errorf("failed to marshal GetUsage400Response: %w", err)
+ return nil, fmt.Errorf("failed to marshal Forbidden: %w", err)
}
return serialized, nil
}
-func (o GetUsage400Response) String() string {
+func (o Forbidden) String() string {
out := ""
out += fmt.Sprintf(" error=%v\n", o.Error)
- return fmt.Sprintf("GetUsage400Response {\n%s}", out)
+ return fmt.Sprintf("Forbidden {\n%s}", out)
}
diff --git a/clients/algoliasearch-client-go/algolia/usage/model_get_usage_400_response_error.go b/clients/algoliasearch-client-go/algolia/usage/model_forbidden_error.go
similarity index 52%
rename from clients/algoliasearch-client-go/algolia/usage/model_get_usage_400_response_error.go
rename to clients/algoliasearch-client-go/algolia/usage/model_forbidden_error.go
index 05678bdfb9..b1c3a8aa3b 100644
--- a/clients/algoliasearch-client-go/algolia/usage/model_get_usage_400_response_error.go
+++ b/clients/algoliasearch-client-go/algolia/usage/model_forbidden_error.go
@@ -6,52 +6,52 @@ import (
"fmt"
)
-// GetUsage400ResponseError struct for GetUsage400ResponseError.
-type GetUsage400ResponseError struct {
- Code *string `json:"code,omitempty"`
- Message *string `json:"message,omitempty"`
- Errors []GetUsage400ResponseErrorErrorsInner `json:"errors,omitempty"`
+// ForbiddenError struct for ForbiddenError.
+type ForbiddenError struct {
+ Code *string `json:"code,omitempty"`
+ Message *string `json:"message,omitempty"`
+ Errors []ErrorItem `json:"errors,omitempty"`
}
-type GetUsage400ResponseErrorOption func(f *GetUsage400ResponseError)
+type ForbiddenErrorOption func(f *ForbiddenError)
-func WithGetUsage400ResponseErrorCode(val string) GetUsage400ResponseErrorOption {
- return func(f *GetUsage400ResponseError) {
+func WithForbiddenErrorCode(val string) ForbiddenErrorOption {
+ return func(f *ForbiddenError) {
f.Code = &val
}
}
-func WithGetUsage400ResponseErrorMessage(val string) GetUsage400ResponseErrorOption {
- return func(f *GetUsage400ResponseError) {
+func WithForbiddenErrorMessage(val string) ForbiddenErrorOption {
+ return func(f *ForbiddenError) {
f.Message = &val
}
}
-func WithGetUsage400ResponseErrorErrors(val []GetUsage400ResponseErrorErrorsInner) GetUsage400ResponseErrorOption {
- return func(f *GetUsage400ResponseError) {
+func WithForbiddenErrorErrors(val []ErrorItem) ForbiddenErrorOption {
+ return func(f *ForbiddenError) {
f.Errors = val
}
}
-// NewGetUsage400ResponseError instantiates a new GetUsage400ResponseError object
+// NewForbiddenError instantiates a new ForbiddenError object
// This constructor will assign default values to properties that have it defined,
// and makes sure properties required by API are set, but the set of arguments
// will change when the set of required properties is changed.
-func NewGetUsage400ResponseError(opts ...GetUsage400ResponseErrorOption) *GetUsage400ResponseError {
- this := &GetUsage400ResponseError{}
+func NewForbiddenError(opts ...ForbiddenErrorOption) *ForbiddenError {
+ this := &ForbiddenError{}
for _, opt := range opts {
opt(this)
}
return this
}
-// NewEmptyGetUsage400ResponseError return a pointer to an empty GetUsage400ResponseError object.
-func NewEmptyGetUsage400ResponseError() *GetUsage400ResponseError {
- return &GetUsage400ResponseError{}
+// NewEmptyForbiddenError return a pointer to an empty ForbiddenError object.
+func NewEmptyForbiddenError() *ForbiddenError {
+ return &ForbiddenError{}
}
// GetCode returns the Code field value if set, zero value otherwise.
-func (o *GetUsage400ResponseError) GetCode() string {
+func (o *ForbiddenError) GetCode() string {
if o == nil || o.Code == nil {
var ret string
return ret
@@ -61,7 +61,7 @@ func (o *GetUsage400ResponseError) GetCode() string {
// GetCodeOk returns a tuple with the Code field value if set, nil otherwise
// and a boolean to check if the value has been set.
-func (o *GetUsage400ResponseError) GetCodeOk() (*string, bool) {
+func (o *ForbiddenError) GetCodeOk() (*string, bool) {
if o == nil || o.Code == nil {
return nil, false
}
@@ -69,7 +69,7 @@ func (o *GetUsage400ResponseError) GetCodeOk() (*string, bool) {
}
// HasCode returns a boolean if a field has been set.
-func (o *GetUsage400ResponseError) HasCode() bool {
+func (o *ForbiddenError) HasCode() bool {
if o != nil && o.Code != nil {
return true
}
@@ -78,13 +78,13 @@ func (o *GetUsage400ResponseError) HasCode() bool {
}
// SetCode gets a reference to the given string and assigns it to the Code field.
-func (o *GetUsage400ResponseError) SetCode(v string) *GetUsage400ResponseError {
+func (o *ForbiddenError) SetCode(v string) *ForbiddenError {
o.Code = &v
return o
}
// GetMessage returns the Message field value if set, zero value otherwise.
-func (o *GetUsage400ResponseError) GetMessage() string {
+func (o *ForbiddenError) GetMessage() string {
if o == nil || o.Message == nil {
var ret string
return ret
@@ -94,7 +94,7 @@ func (o *GetUsage400ResponseError) GetMessage() string {
// GetMessageOk returns a tuple with the Message field value if set, nil otherwise
// and a boolean to check if the value has been set.
-func (o *GetUsage400ResponseError) GetMessageOk() (*string, bool) {
+func (o *ForbiddenError) GetMessageOk() (*string, bool) {
if o == nil || o.Message == nil {
return nil, false
}
@@ -102,7 +102,7 @@ func (o *GetUsage400ResponseError) GetMessageOk() (*string, bool) {
}
// HasMessage returns a boolean if a field has been set.
-func (o *GetUsage400ResponseError) HasMessage() bool {
+func (o *ForbiddenError) HasMessage() bool {
if o != nil && o.Message != nil {
return true
}
@@ -111,15 +111,15 @@ func (o *GetUsage400ResponseError) HasMessage() bool {
}
// SetMessage gets a reference to the given string and assigns it to the Message field.
-func (o *GetUsage400ResponseError) SetMessage(v string) *GetUsage400ResponseError {
+func (o *ForbiddenError) SetMessage(v string) *ForbiddenError {
o.Message = &v
return o
}
// GetErrors returns the Errors field value if set, zero value otherwise.
-func (o *GetUsage400ResponseError) GetErrors() []GetUsage400ResponseErrorErrorsInner {
+func (o *ForbiddenError) GetErrors() []ErrorItem {
if o == nil || o.Errors == nil {
- var ret []GetUsage400ResponseErrorErrorsInner
+ var ret []ErrorItem
return ret
}
return o.Errors
@@ -127,7 +127,7 @@ func (o *GetUsage400ResponseError) GetErrors() []GetUsage400ResponseErrorErrorsI
// GetErrorsOk returns a tuple with the Errors field value if set, nil otherwise
// and a boolean to check if the value has been set.
-func (o *GetUsage400ResponseError) GetErrorsOk() ([]GetUsage400ResponseErrorErrorsInner, bool) {
+func (o *ForbiddenError) GetErrorsOk() ([]ErrorItem, bool) {
if o == nil || o.Errors == nil {
return nil, false
}
@@ -135,7 +135,7 @@ func (o *GetUsage400ResponseError) GetErrorsOk() ([]GetUsage400ResponseErrorErro
}
// HasErrors returns a boolean if a field has been set.
-func (o *GetUsage400ResponseError) HasErrors() bool {
+func (o *ForbiddenError) HasErrors() bool {
if o != nil && o.Errors != nil {
return true
}
@@ -143,13 +143,13 @@ func (o *GetUsage400ResponseError) HasErrors() bool {
return false
}
-// SetErrors gets a reference to the given []GetUsage400ResponseErrorErrorsInner and assigns it to the Errors field.
-func (o *GetUsage400ResponseError) SetErrors(v []GetUsage400ResponseErrorErrorsInner) *GetUsage400ResponseError {
+// SetErrors gets a reference to the given []ErrorItem and assigns it to the Errors field.
+func (o *ForbiddenError) SetErrors(v []ErrorItem) *ForbiddenError {
o.Errors = v
return o
}
-func (o GetUsage400ResponseError) MarshalJSON() ([]byte, error) {
+func (o ForbiddenError) MarshalJSON() ([]byte, error) {
toSerialize := map[string]any{}
if o.Code != nil {
toSerialize["code"] = o.Code
@@ -162,16 +162,16 @@ func (o GetUsage400ResponseError) MarshalJSON() ([]byte, error) {
}
serialized, err := json.Marshal(toSerialize)
if err != nil {
- return nil, fmt.Errorf("failed to marshal GetUsage400ResponseError: %w", err)
+ return nil, fmt.Errorf("failed to marshal ForbiddenError: %w", err)
}
return serialized, nil
}
-func (o GetUsage400ResponseError) String() string {
+func (o ForbiddenError) String() string {
out := ""
out += fmt.Sprintf(" code=%v\n", o.Code)
out += fmt.Sprintf(" message=%v\n", o.Message)
out += fmt.Sprintf(" errors=%v\n", o.Errors)
- return fmt.Sprintf("GetUsage400ResponseError {\n%s}", out)
+ return fmt.Sprintf("ForbiddenError {\n%s}", out)
}
diff --git a/clients/algoliasearch-client-go/algolia/usage/model_get_usage_200_response.go b/clients/algoliasearch-client-go/algolia/usage/model_get_usage_200_response.go
deleted file mode 100644
index a9b3b72d57..0000000000
--- a/clients/algoliasearch-client-go/algolia/usage/model_get_usage_200_response.go
+++ /dev/null
@@ -1,89 +0,0 @@
-// 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.
-package usage
-
-import (
- "encoding/json"
- "fmt"
-)
-
-// GetUsage200Response struct for GetUsage200Response.
-type GetUsage200Response struct {
- Statistics []GetUsage200ResponseStatisticsInner `json:"statistics,omitempty"`
-}
-
-type GetUsage200ResponseOption func(f *GetUsage200Response)
-
-func WithGetUsage200ResponseStatistics(val []GetUsage200ResponseStatisticsInner) GetUsage200ResponseOption {
- return func(f *GetUsage200Response) {
- f.Statistics = val
- }
-}
-
-// NewGetUsage200Response instantiates a new GetUsage200Response object
-// This constructor will assign default values to properties that have it defined,
-// and makes sure properties required by API are set, but the set of arguments
-// will change when the set of required properties is changed.
-func NewGetUsage200Response(opts ...GetUsage200ResponseOption) *GetUsage200Response {
- this := &GetUsage200Response{}
- for _, opt := range opts {
- opt(this)
- }
- return this
-}
-
-// NewEmptyGetUsage200Response return a pointer to an empty GetUsage200Response object.
-func NewEmptyGetUsage200Response() *GetUsage200Response {
- return &GetUsage200Response{}
-}
-
-// GetStatistics returns the Statistics field value if set, zero value otherwise.
-func (o *GetUsage200Response) GetStatistics() []GetUsage200ResponseStatisticsInner {
- if o == nil || o.Statistics == nil {
- var ret []GetUsage200ResponseStatisticsInner
- return ret
- }
- return o.Statistics
-}
-
-// GetStatisticsOk returns a tuple with the Statistics field value if set, nil otherwise
-// and a boolean to check if the value has been set.
-func (o *GetUsage200Response) GetStatisticsOk() ([]GetUsage200ResponseStatisticsInner, bool) {
- if o == nil || o.Statistics == nil {
- return nil, false
- }
- return o.Statistics, true
-}
-
-// HasStatistics returns a boolean if a field has been set.
-func (o *GetUsage200Response) HasStatistics() bool {
- if o != nil && o.Statistics != nil {
- return true
- }
-
- return false
-}
-
-// SetStatistics gets a reference to the given []GetUsage200ResponseStatisticsInner and assigns it to the Statistics field.
-func (o *GetUsage200Response) SetStatistics(v []GetUsage200ResponseStatisticsInner) *GetUsage200Response {
- o.Statistics = v
- return o
-}
-
-func (o GetUsage200Response) MarshalJSON() ([]byte, error) {
- toSerialize := map[string]any{}
- if o.Statistics != nil {
- toSerialize["statistics"] = o.Statistics
- }
- serialized, err := json.Marshal(toSerialize)
- if err != nil {
- return nil, fmt.Errorf("failed to marshal GetUsage200Response: %w", err)
- }
-
- return serialized, nil
-}
-
-func (o GetUsage200Response) String() string {
- out := ""
- out += fmt.Sprintf(" statistics=%v\n", o.Statistics)
- return fmt.Sprintf("GetUsage200Response {\n%s}", out)
-}
diff --git a/clients/algoliasearch-client-go/algolia/usage/model_index_usage.go b/clients/algoliasearch-client-go/algolia/usage/model_index_usage.go
new file mode 100644
index 0000000000..19fe1b7e46
--- /dev/null
+++ b/clients/algoliasearch-client-go/algolia/usage/model_index_usage.go
@@ -0,0 +1,89 @@
+// 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.
+package usage
+
+import (
+ "encoding/json"
+ "fmt"
+)
+
+// IndexUsage struct for IndexUsage.
+type IndexUsage struct {
+ Statistics []StatisticEntry `json:"statistics,omitempty"`
+}
+
+type IndexUsageOption func(f *IndexUsage)
+
+func WithIndexUsageStatistics(val []StatisticEntry) IndexUsageOption {
+ return func(f *IndexUsage) {
+ f.Statistics = val
+ }
+}
+
+// NewIndexUsage instantiates a new IndexUsage object
+// This constructor will assign default values to properties that have it defined,
+// and makes sure properties required by API are set, but the set of arguments
+// will change when the set of required properties is changed.
+func NewIndexUsage(opts ...IndexUsageOption) *IndexUsage {
+ this := &IndexUsage{}
+ for _, opt := range opts {
+ opt(this)
+ }
+ return this
+}
+
+// NewEmptyIndexUsage return a pointer to an empty IndexUsage object.
+func NewEmptyIndexUsage() *IndexUsage {
+ return &IndexUsage{}
+}
+
+// GetStatistics returns the Statistics field value if set, zero value otherwise.
+func (o *IndexUsage) GetStatistics() []StatisticEntry {
+ if o == nil || o.Statistics == nil {
+ var ret []StatisticEntry
+ return ret
+ }
+ return o.Statistics
+}
+
+// GetStatisticsOk returns a tuple with the Statistics field value if set, nil otherwise
+// and a boolean to check if the value has been set.
+func (o *IndexUsage) GetStatisticsOk() ([]StatisticEntry, bool) {
+ if o == nil || o.Statistics == nil {
+ return nil, false
+ }
+ return o.Statistics, true
+}
+
+// HasStatistics returns a boolean if a field has been set.
+func (o *IndexUsage) HasStatistics() bool {
+ if o != nil && o.Statistics != nil {
+ return true
+ }
+
+ return false
+}
+
+// SetStatistics gets a reference to the given []StatisticEntry and assigns it to the Statistics field.
+func (o *IndexUsage) SetStatistics(v []StatisticEntry) *IndexUsage {
+ o.Statistics = v
+ return o
+}
+
+func (o IndexUsage) MarshalJSON() ([]byte, error) {
+ toSerialize := map[string]any{}
+ if o.Statistics != nil {
+ toSerialize["statistics"] = o.Statistics
+ }
+ serialized, err := json.Marshal(toSerialize)
+ if err != nil {
+ return nil, fmt.Errorf("failed to marshal IndexUsage: %w", err)
+ }
+
+ return serialized, nil
+}
+
+func (o IndexUsage) String() string {
+ out := ""
+ out += fmt.Sprintf(" statistics=%v\n", o.Statistics)
+ return fmt.Sprintf("IndexUsage {\n%s}", out)
+}
diff --git a/clients/algoliasearch-client-go/algolia/usage/model_invalid_request.go b/clients/algoliasearch-client-go/algolia/usage/model_invalid_request.go
new file mode 100644
index 0000000000..41794dec85
--- /dev/null
+++ b/clients/algoliasearch-client-go/algolia/usage/model_invalid_request.go
@@ -0,0 +1,71 @@
+// 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.
+package usage
+
+import (
+ "encoding/json"
+ "fmt"
+)
+
+// InvalidRequest struct for InvalidRequest.
+type InvalidRequest struct {
+ Error InvalidRequestError `json:"error"`
+}
+
+// NewInvalidRequest instantiates a new InvalidRequest object
+// This constructor will assign default values to properties that have it defined,
+// and makes sure properties required by API are set, but the set of arguments
+// will change when the set of required properties is changed.
+func NewInvalidRequest(error_ InvalidRequestError) *InvalidRequest {
+ this := &InvalidRequest{}
+ this.Error = error_
+ return this
+}
+
+// NewEmptyInvalidRequest return a pointer to an empty InvalidRequest object.
+func NewEmptyInvalidRequest() *InvalidRequest {
+ return &InvalidRequest{}
+}
+
+// GetError returns the Error field value.
+func (o *InvalidRequest) GetError() InvalidRequestError {
+ if o == nil {
+ var ret InvalidRequestError
+ return ret
+ }
+
+ return o.Error
+}
+
+// GetErrorOk returns a tuple with the Error field value
+// and a boolean to check if the value has been set.
+func (o *InvalidRequest) GetErrorOk() (*InvalidRequestError, bool) {
+ if o == nil {
+ return nil, false
+ }
+ return &o.Error, true
+}
+
+// SetError sets field value.
+func (o *InvalidRequest) SetError(v *InvalidRequestError) *InvalidRequest {
+ o.Error = *v
+ return o
+}
+
+func (o InvalidRequest) MarshalJSON() ([]byte, error) {
+ toSerialize := map[string]any{}
+ if true {
+ toSerialize["error"] = o.Error
+ }
+ serialized, err := json.Marshal(toSerialize)
+ if err != nil {
+ return nil, fmt.Errorf("failed to marshal InvalidRequest: %w", err)
+ }
+
+ return serialized, nil
+}
+
+func (o InvalidRequest) String() string {
+ out := ""
+ out += fmt.Sprintf(" error=%v\n", o.Error)
+ return fmt.Sprintf("InvalidRequest {\n%s}", out)
+}
diff --git a/clients/algoliasearch-client-go/algolia/usage/model_invalid_request_error.go b/clients/algoliasearch-client-go/algolia/usage/model_invalid_request_error.go
new file mode 100644
index 0000000000..5c6a335334
--- /dev/null
+++ b/clients/algoliasearch-client-go/algolia/usage/model_invalid_request_error.go
@@ -0,0 +1,177 @@
+// 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.
+package usage
+
+import (
+ "encoding/json"
+ "fmt"
+)
+
+// InvalidRequestError struct for InvalidRequestError.
+type InvalidRequestError struct {
+ Code *string `json:"code,omitempty"`
+ Message *string `json:"message,omitempty"`
+ Errors []ErrorItem `json:"errors,omitempty"`
+}
+
+type InvalidRequestErrorOption func(f *InvalidRequestError)
+
+func WithInvalidRequestErrorCode(val string) InvalidRequestErrorOption {
+ return func(f *InvalidRequestError) {
+ f.Code = &val
+ }
+}
+
+func WithInvalidRequestErrorMessage(val string) InvalidRequestErrorOption {
+ return func(f *InvalidRequestError) {
+ f.Message = &val
+ }
+}
+
+func WithInvalidRequestErrorErrors(val []ErrorItem) InvalidRequestErrorOption {
+ return func(f *InvalidRequestError) {
+ f.Errors = val
+ }
+}
+
+// NewInvalidRequestError instantiates a new InvalidRequestError object
+// This constructor will assign default values to properties that have it defined,
+// and makes sure properties required by API are set, but the set of arguments
+// will change when the set of required properties is changed.
+func NewInvalidRequestError(opts ...InvalidRequestErrorOption) *InvalidRequestError {
+ this := &InvalidRequestError{}
+ for _, opt := range opts {
+ opt(this)
+ }
+ return this
+}
+
+// NewEmptyInvalidRequestError return a pointer to an empty InvalidRequestError object.
+func NewEmptyInvalidRequestError() *InvalidRequestError {
+ return &InvalidRequestError{}
+}
+
+// GetCode returns the Code field value if set, zero value otherwise.
+func (o *InvalidRequestError) GetCode() string {
+ if o == nil || o.Code == nil {
+ var ret string
+ return ret
+ }
+ return *o.Code
+}
+
+// GetCodeOk returns a tuple with the Code field value if set, nil otherwise
+// and a boolean to check if the value has been set.
+func (o *InvalidRequestError) GetCodeOk() (*string, bool) {
+ if o == nil || o.Code == nil {
+ return nil, false
+ }
+ return o.Code, true
+}
+
+// HasCode returns a boolean if a field has been set.
+func (o *InvalidRequestError) HasCode() bool {
+ if o != nil && o.Code != nil {
+ return true
+ }
+
+ return false
+}
+
+// SetCode gets a reference to the given string and assigns it to the Code field.
+func (o *InvalidRequestError) SetCode(v string) *InvalidRequestError {
+ o.Code = &v
+ return o
+}
+
+// GetMessage returns the Message field value if set, zero value otherwise.
+func (o *InvalidRequestError) GetMessage() string {
+ if o == nil || o.Message == nil {
+ var ret string
+ return ret
+ }
+ return *o.Message
+}
+
+// GetMessageOk returns a tuple with the Message field value if set, nil otherwise
+// and a boolean to check if the value has been set.
+func (o *InvalidRequestError) GetMessageOk() (*string, bool) {
+ if o == nil || o.Message == nil {
+ return nil, false
+ }
+ return o.Message, true
+}
+
+// HasMessage returns a boolean if a field has been set.
+func (o *InvalidRequestError) HasMessage() bool {
+ if o != nil && o.Message != nil {
+ return true
+ }
+
+ return false
+}
+
+// SetMessage gets a reference to the given string and assigns it to the Message field.
+func (o *InvalidRequestError) SetMessage(v string) *InvalidRequestError {
+ o.Message = &v
+ return o
+}
+
+// GetErrors returns the Errors field value if set, zero value otherwise.
+func (o *InvalidRequestError) GetErrors() []ErrorItem {
+ if o == nil || o.Errors == nil {
+ var ret []ErrorItem
+ return ret
+ }
+ return o.Errors
+}
+
+// GetErrorsOk returns a tuple with the Errors field value if set, nil otherwise
+// and a boolean to check if the value has been set.
+func (o *InvalidRequestError) GetErrorsOk() ([]ErrorItem, bool) {
+ if o == nil || o.Errors == nil {
+ return nil, false
+ }
+ return o.Errors, true
+}
+
+// HasErrors returns a boolean if a field has been set.
+func (o *InvalidRequestError) HasErrors() bool {
+ if o != nil && o.Errors != nil {
+ return true
+ }
+
+ return false
+}
+
+// SetErrors gets a reference to the given []ErrorItem and assigns it to the Errors field.
+func (o *InvalidRequestError) SetErrors(v []ErrorItem) *InvalidRequestError {
+ o.Errors = v
+ return o
+}
+
+func (o InvalidRequestError) MarshalJSON() ([]byte, error) {
+ toSerialize := map[string]any{}
+ if o.Code != nil {
+ toSerialize["code"] = o.Code
+ }
+ if o.Message != nil {
+ toSerialize["message"] = o.Message
+ }
+ if o.Errors != nil {
+ toSerialize["errors"] = o.Errors
+ }
+ serialized, err := json.Marshal(toSerialize)
+ if err != nil {
+ return nil, fmt.Errorf("failed to marshal InvalidRequestError: %w", err)
+ }
+
+ return serialized, nil
+}
+
+func (o InvalidRequestError) String() string {
+ out := ""
+ out += fmt.Sprintf(" code=%v\n", o.Code)
+ out += fmt.Sprintf(" message=%v\n", o.Message)
+ out += fmt.Sprintf(" errors=%v\n", o.Errors)
+ return fmt.Sprintf("InvalidRequestError {\n%s}", out)
+}
diff --git a/clients/algoliasearch-client-go/algolia/usage/model_get_usage_200_response_statistics_inner.go b/clients/algoliasearch-client-go/algolia/usage/model_statistic_entry.go
similarity index 51%
rename from clients/algoliasearch-client-go/algolia/usage/model_get_usage_200_response_statistics_inner.go
rename to clients/algoliasearch-client-go/algolia/usage/model_statistic_entry.go
index ca47230bea..ff536f4ea5 100644
--- a/clients/algoliasearch-client-go/algolia/usage/model_get_usage_200_response_statistics_inner.go
+++ b/clients/algoliasearch-client-go/algolia/usage/model_statistic_entry.go
@@ -6,46 +6,46 @@ import (
"fmt"
)
-// GetUsage200ResponseStatisticsInner struct for GetUsage200ResponseStatisticsInner.
-type GetUsage200ResponseStatisticsInner struct {
+// StatisticEntry struct for StatisticEntry.
+type StatisticEntry struct {
// Timestamp, measured in milliseconds since the Unix epoch.
T *int32 `json:"t,omitempty"`
V *StatisticValue `json:"v,omitempty"`
}
-type GetUsage200ResponseStatisticsInnerOption func(f *GetUsage200ResponseStatisticsInner)
+type StatisticEntryOption func(f *StatisticEntry)
-func WithGetUsage200ResponseStatisticsInnerT(val int32) GetUsage200ResponseStatisticsInnerOption {
- return func(f *GetUsage200ResponseStatisticsInner) {
+func WithStatisticEntryT(val int32) StatisticEntryOption {
+ return func(f *StatisticEntry) {
f.T = &val
}
}
-func WithGetUsage200ResponseStatisticsInnerV(val StatisticValue) GetUsage200ResponseStatisticsInnerOption {
- return func(f *GetUsage200ResponseStatisticsInner) {
+func WithStatisticEntryV(val StatisticValue) StatisticEntryOption {
+ return func(f *StatisticEntry) {
f.V = &val
}
}
-// NewGetUsage200ResponseStatisticsInner instantiates a new GetUsage200ResponseStatisticsInner object
+// NewStatisticEntry instantiates a new StatisticEntry object
// This constructor will assign default values to properties that have it defined,
// and makes sure properties required by API are set, but the set of arguments
// will change when the set of required properties is changed.
-func NewGetUsage200ResponseStatisticsInner(opts ...GetUsage200ResponseStatisticsInnerOption) *GetUsage200ResponseStatisticsInner {
- this := &GetUsage200ResponseStatisticsInner{}
+func NewStatisticEntry(opts ...StatisticEntryOption) *StatisticEntry {
+ this := &StatisticEntry{}
for _, opt := range opts {
opt(this)
}
return this
}
-// NewEmptyGetUsage200ResponseStatisticsInner return a pointer to an empty GetUsage200ResponseStatisticsInner object.
-func NewEmptyGetUsage200ResponseStatisticsInner() *GetUsage200ResponseStatisticsInner {
- return &GetUsage200ResponseStatisticsInner{}
+// NewEmptyStatisticEntry return a pointer to an empty StatisticEntry object.
+func NewEmptyStatisticEntry() *StatisticEntry {
+ return &StatisticEntry{}
}
// GetT returns the T field value if set, zero value otherwise.
-func (o *GetUsage200ResponseStatisticsInner) GetT() int32 {
+func (o *StatisticEntry) GetT() int32 {
if o == nil || o.T == nil {
var ret int32
return ret
@@ -55,7 +55,7 @@ func (o *GetUsage200ResponseStatisticsInner) GetT() int32 {
// GetTOk returns a tuple with the T field value if set, nil otherwise
// and a boolean to check if the value has been set.
-func (o *GetUsage200ResponseStatisticsInner) GetTOk() (*int32, bool) {
+func (o *StatisticEntry) GetTOk() (*int32, bool) {
if o == nil || o.T == nil {
return nil, false
}
@@ -63,7 +63,7 @@ func (o *GetUsage200ResponseStatisticsInner) GetTOk() (*int32, bool) {
}
// HasT returns a boolean if a field has been set.
-func (o *GetUsage200ResponseStatisticsInner) HasT() bool {
+func (o *StatisticEntry) HasT() bool {
if o != nil && o.T != nil {
return true
}
@@ -72,13 +72,13 @@ func (o *GetUsage200ResponseStatisticsInner) HasT() bool {
}
// SetT gets a reference to the given int32 and assigns it to the T field.
-func (o *GetUsage200ResponseStatisticsInner) SetT(v int32) *GetUsage200ResponseStatisticsInner {
+func (o *StatisticEntry) SetT(v int32) *StatisticEntry {
o.T = &v
return o
}
// GetV returns the V field value if set, zero value otherwise.
-func (o *GetUsage200ResponseStatisticsInner) GetV() StatisticValue {
+func (o *StatisticEntry) GetV() StatisticValue {
if o == nil || o.V == nil {
var ret StatisticValue
return ret
@@ -88,7 +88,7 @@ func (o *GetUsage200ResponseStatisticsInner) GetV() StatisticValue {
// GetVOk returns a tuple with the V field value if set, nil otherwise
// and a boolean to check if the value has been set.
-func (o *GetUsage200ResponseStatisticsInner) GetVOk() (*StatisticValue, bool) {
+func (o *StatisticEntry) GetVOk() (*StatisticValue, bool) {
if o == nil || o.V == nil {
return nil, false
}
@@ -96,7 +96,7 @@ func (o *GetUsage200ResponseStatisticsInner) GetVOk() (*StatisticValue, bool) {
}
// HasV returns a boolean if a field has been set.
-func (o *GetUsage200ResponseStatisticsInner) HasV() bool {
+func (o *StatisticEntry) HasV() bool {
if o != nil && o.V != nil {
return true
}
@@ -105,12 +105,12 @@ func (o *GetUsage200ResponseStatisticsInner) HasV() bool {
}
// SetV gets a reference to the given StatisticValue and assigns it to the V field.
-func (o *GetUsage200ResponseStatisticsInner) SetV(v *StatisticValue) *GetUsage200ResponseStatisticsInner {
+func (o *StatisticEntry) SetV(v *StatisticValue) *StatisticEntry {
o.V = v
return o
}
-func (o GetUsage200ResponseStatisticsInner) MarshalJSON() ([]byte, error) {
+func (o StatisticEntry) MarshalJSON() ([]byte, error) {
toSerialize := map[string]any{}
if o.T != nil {
toSerialize["t"] = o.T
@@ -120,15 +120,15 @@ func (o GetUsage200ResponseStatisticsInner) MarshalJSON() ([]byte, error) {
}
serialized, err := json.Marshal(toSerialize)
if err != nil {
- return nil, fmt.Errorf("failed to marshal GetUsage200ResponseStatisticsInner: %w", err)
+ return nil, fmt.Errorf("failed to marshal StatisticEntry: %w", err)
}
return serialized, nil
}
-func (o GetUsage200ResponseStatisticsInner) String() string {
+func (o StatisticEntry) String() string {
out := ""
out += fmt.Sprintf(" t=%v\n", o.T)
out += fmt.Sprintf(" v=%v\n", o.V)
- return fmt.Sprintf("GetUsage200ResponseStatisticsInner {\n%s}", out)
+ return fmt.Sprintf("StatisticEntry {\n%s}", out)
}
diff --git a/clients/algoliasearch-client-java/algoliasearch/src/main/java/com/algolia/api/QuerySuggestionsClient.java b/clients/algoliasearch-client-java/algoliasearch/src/main/java/com/algolia/api/QuerySuggestionsClient.java
index b4b35c7257..1ce4101fc4 100644
--- a/clients/algoliasearch-client-java/algoliasearch/src/main/java/com/algolia/api/QuerySuggestionsClient.java
+++ b/clients/algoliasearch-client-java/algoliasearch/src/main/java/com/algolia/api/QuerySuggestionsClient.java
@@ -683,8 +683,7 @@ public CompletableFuture getConfigAsync(@Nonnull String i
* the transporter requestOptions.
* @throws AlgoliaRuntimeException If it fails to process the API call
*/
- public GetConfigStatus200Response getConfigStatus(@Nonnull String indexName, RequestOptions requestOptions)
- throws AlgoliaRuntimeException {
+ public ConfigStatus getConfigStatus(@Nonnull String indexName, RequestOptions requestOptions) throws AlgoliaRuntimeException {
return LaunderThrowable.await(getConfigStatusAsync(indexName, requestOptions));
}
@@ -694,7 +693,7 @@ public GetConfigStatus200Response getConfigStatus(@Nonnull String indexName, Req
* @param indexName Query Suggestions index name. (required)
* @throws AlgoliaRuntimeException If it fails to process the API call
*/
- public GetConfigStatus200Response getConfigStatus(@Nonnull String indexName) throws AlgoliaRuntimeException {
+ public ConfigStatus getConfigStatus(@Nonnull String indexName) throws AlgoliaRuntimeException {
return this.getConfigStatus(indexName, null);
}
@@ -706,12 +705,12 @@ public GetConfigStatus200Response getConfigStatus(@Nonnull String indexName) thr
* the transporter requestOptions.
* @throws AlgoliaRuntimeException If it fails to process the API call
*/
- public CompletableFuture getConfigStatusAsync(@Nonnull String indexName, RequestOptions requestOptions)
+ public CompletableFuture getConfigStatusAsync(@Nonnull String indexName, RequestOptions requestOptions)
throws AlgoliaRuntimeException {
Parameters.requireNonNull(indexName, "Parameter `indexName` is required when calling `getConfigStatus`.");
HttpRequest request = HttpRequest.builder().setPath("/1/configs/{indexName}/status", indexName).setMethod("GET").build();
- return executeAsync(request, requestOptions, new TypeReference() {});
+ return executeAsync(request, requestOptions, new TypeReference() {});
}
/**
@@ -720,7 +719,7 @@ public CompletableFuture getConfigStatusAsync(@Nonnu
* @param indexName Query Suggestions index name. (required)
* @throws AlgoliaRuntimeException If it fails to process the API call
*/
- public CompletableFuture getConfigStatusAsync(@Nonnull String indexName) throws AlgoliaRuntimeException {
+ public CompletableFuture getConfigStatusAsync(@Nonnull String indexName) throws AlgoliaRuntimeException {
return this.getConfigStatusAsync(indexName, null);
}
@@ -732,7 +731,7 @@ public CompletableFuture getConfigStatusAsync(@Nonnu
* the transporter requestOptions.
* @throws AlgoliaRuntimeException If it fails to process the API call
*/
- public GetLogFile200Response getLogFile(@Nonnull String indexName, RequestOptions requestOptions) throws AlgoliaRuntimeException {
+ public LogFile getLogFile(@Nonnull String indexName, RequestOptions requestOptions) throws AlgoliaRuntimeException {
return LaunderThrowable.await(getLogFileAsync(indexName, requestOptions));
}
@@ -742,7 +741,7 @@ public GetLogFile200Response getLogFile(@Nonnull String indexName, RequestOption
* @param indexName Query Suggestions index name. (required)
* @throws AlgoliaRuntimeException If it fails to process the API call
*/
- public GetLogFile200Response getLogFile(@Nonnull String indexName) throws AlgoliaRuntimeException {
+ public LogFile getLogFile(@Nonnull String indexName) throws AlgoliaRuntimeException {
return this.getLogFile(indexName, null);
}
@@ -754,13 +753,13 @@ public GetLogFile200Response getLogFile(@Nonnull String indexName) throws Algoli
* the transporter requestOptions.
* @throws AlgoliaRuntimeException If it fails to process the API call
*/
- public CompletableFuture getLogFileAsync(@Nonnull String indexName, RequestOptions requestOptions)
+ public CompletableFuture getLogFileAsync(@Nonnull String indexName, RequestOptions requestOptions)
throws AlgoliaRuntimeException {
Parameters.requireNonNull(indexName, "Parameter `indexName` is required when calling `getLogFile`.");
HttpRequest request = HttpRequest.builder().setPath("/1/logs/{indexName}", indexName).setMethod("GET").build();
- return executeAsync(request, requestOptions, new TypeReference() {});
+ return executeAsync(request, requestOptions, new TypeReference() {});
}
/**
@@ -769,7 +768,7 @@ public CompletableFuture getLogFileAsync(@Nonnull String
* @param indexName Query Suggestions index name. (required)
* @throws AlgoliaRuntimeException If it fails to process the API call
*/
- public CompletableFuture getLogFileAsync(@Nonnull String indexName) throws AlgoliaRuntimeException {
+ public CompletableFuture getLogFileAsync(@Nonnull String indexName) throws AlgoliaRuntimeException {
return this.getLogFileAsync(indexName, null);
}
diff --git a/clients/algoliasearch-client-java/algoliasearch/src/main/java/com/algolia/api/UsageClient.java b/clients/algoliasearch-client-java/algoliasearch/src/main/java/com/algolia/api/UsageClient.java
index 54cc63527a..3ef2b67cdf 100644
--- a/clients/algoliasearch-client-java/algoliasearch/src/main/java/com/algolia/api/UsageClient.java
+++ b/clients/algoliasearch-client-java/algoliasearch/src/main/java/com/algolia/api/UsageClient.java
@@ -594,7 +594,7 @@ public CompletableFuture