diff --git a/algoliasearch/Clients/QuerySuggestionsClient.cs b/algoliasearch/Clients/QuerySuggestionsClient.cs index 83da71046..2bf0f1521 100644 --- a/algoliasearch/Clients/QuerySuggestionsClient.cs +++ b/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/algoliasearch/Clients/UsageClient.cs b/algoliasearch/Clients/UsageClient.cs index 0f2afe047..20b027a3a 100644 --- a/algoliasearch/Clients/UsageClient.cs +++ b/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/algoliasearch/Models/Abtesting/FilterEffectsEmptySearch.cs b/algoliasearch/Models/Abtesting/EmptySearchFilter.cs similarity index 90% rename from algoliasearch/Models/Abtesting/FilterEffectsEmptySearch.cs rename to algoliasearch/Models/Abtesting/EmptySearchFilter.cs index 783fc5f19..01a0ade7b 100644 --- a/algoliasearch/Models/Abtesting/FilterEffectsEmptySearch.cs +++ b/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/algoliasearch/Models/Abtesting/FilterEffects.cs b/algoliasearch/Models/Abtesting/FilterEffects.cs index 042fd5a14..7ff62a9c1 100644 --- a/algoliasearch/Models/Abtesting/FilterEffects.cs +++ b/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/algoliasearch/Models/Abtesting/FilterEffectsOutliers.cs b/algoliasearch/Models/Abtesting/OutliersFilter.cs similarity index 91% rename from algoliasearch/Models/Abtesting/FilterEffectsOutliers.cs rename to algoliasearch/Models/Abtesting/OutliersFilter.cs index f8c7401ad..0fc568b9b 100644 --- a/algoliasearch/Models/Abtesting/FilterEffectsOutliers.cs +++ b/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/algoliasearch/Models/Analytics/ClickPositionsInner.cs b/algoliasearch/Models/Analytics/ClickPosition.cs similarity index 92% rename from algoliasearch/Models/Analytics/ClickPositionsInner.cs rename to algoliasearch/Models/Analytics/ClickPosition.cs index 86805c308..d6d7aa945 100644 --- a/algoliasearch/Models/Analytics/ClickPositionsInner.cs +++ b/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/algoliasearch/Models/Analytics/GetClickPositionsResponse.cs b/algoliasearch/Models/Analytics/GetClickPositionsResponse.cs index 2a08f99d3..d178001bd 100644 --- a/algoliasearch/Models/Analytics/GetClickPositionsResponse.cs +++ b/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/algoliasearch/Models/Analytics/TopSearchWithAnalytics.cs b/algoliasearch/Models/Analytics/TopSearchWithAnalytics.cs index a89873705..9f27d80ff 100644 --- a/algoliasearch/Models/Analytics/TopSearchWithAnalytics.cs +++ b/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/algoliasearch/Models/Analytics/TopSearchWithRevenueAnalytics.cs b/algoliasearch/Models/Analytics/TopSearchWithRevenueAnalytics.cs index 8fa31a97c..50995fd34 100644 --- a/algoliasearch/Models/Analytics/TopSearchWithRevenueAnalytics.cs +++ b/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/algoliasearch/Models/Ingestion/DockerStreamsInput.cs b/algoliasearch/Models/Ingestion/DockerStreamsInput.cs index cf8714496..6f230921a 100644 --- a/algoliasearch/Models/Ingestion/DockerStreamsInput.cs +++ b/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/algoliasearch/Models/Ingestion/TransformationTryResponseError.cs b/algoliasearch/Models/Ingestion/TransformationError.cs similarity index 89% rename from algoliasearch/Models/Ingestion/TransformationTryResponseError.cs rename to algoliasearch/Models/Ingestion/TransformationError.cs index 3f6e985ae..01d84ee66 100644 --- a/algoliasearch/Models/Ingestion/TransformationTryResponseError.cs +++ b/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/algoliasearch/Models/Ingestion/TransformationTryResponse.cs b/algoliasearch/Models/Ingestion/TransformationTryResponse.cs index 5de6f5df2..60c8171b5 100644 --- a/algoliasearch/Models/Ingestion/TransformationTryResponse.cs +++ b/algoliasearch/Models/Ingestion/TransformationTryResponse.cs @@ -41,7 +41,7 @@ public TransformationTryResponse(List payloads) /// Gets or Sets Error /// [JsonPropertyName("error")] - public TransformationTryResponseError Error { get; set; } + public TransformationError Error { get; set; } /// /// Returns the string presentation of the object diff --git a/algoliasearch/Models/Monitoring/GetServers403Response.cs b/algoliasearch/Models/Monitoring/BadRequest.cs similarity index 87% rename from algoliasearch/Models/Monitoring/GetServers403Response.cs rename to algoliasearch/Models/Monitoring/BadRequest.cs index 387035732..23c1b4c0c 100644 --- a/algoliasearch/Models/Monitoring/GetServers403Response.cs +++ b/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/algoliasearch/Models/Monitoring/Forbidden.cs b/algoliasearch/Models/Monitoring/Forbidden.cs new file mode 100644 index 000000000..4355a8819 --- /dev/null +++ b/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/algoliasearch/Models/Monitoring/IncidentsInner.cs b/algoliasearch/Models/Monitoring/IncidentEntry.cs similarity index 90% rename from algoliasearch/Models/Monitoring/IncidentsInner.cs rename to algoliasearch/Models/Monitoring/IncidentEntry.cs index 2c4de697e..f097731b5 100644 --- a/algoliasearch/Models/Monitoring/IncidentsInner.cs +++ b/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/algoliasearch/Models/Monitoring/IncidentsResponse.cs b/algoliasearch/Models/Monitoring/IncidentsResponse.cs index ac7081dde..8ff2e2397 100644 --- a/algoliasearch/Models/Monitoring/IncidentsResponse.cs +++ b/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/algoliasearch/Models/Monitoring/IndexingTimeResponseMetrics.cs b/algoliasearch/Models/Monitoring/IndexingMetric.cs similarity index 83% rename from algoliasearch/Models/Monitoring/IndexingTimeResponseMetrics.cs rename to algoliasearch/Models/Monitoring/IndexingMetric.cs index 04bec1965..b169b9b31 100644 --- a/algoliasearch/Models/Monitoring/IndexingTimeResponseMetrics.cs +++ b/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/algoliasearch/Models/Monitoring/IndexingTimeResponse.cs b/algoliasearch/Models/Monitoring/IndexingTimeResponse.cs index f073fc823..bfe51aac7 100644 --- a/algoliasearch/Models/Monitoring/IndexingTimeResponse.cs +++ b/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/algoliasearch/Models/Monitoring/InfrastructureResponse.cs b/algoliasearch/Models/Monitoring/InfrastructureResponse.cs index 0df36855e..1bdc045f5 100644 --- a/algoliasearch/Models/Monitoring/InfrastructureResponse.cs +++ b/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/algoliasearch/Models/Monitoring/LatencyResponseMetrics.cs b/algoliasearch/Models/Monitoring/LatencyMetric.cs similarity index 84% rename from algoliasearch/Models/Monitoring/LatencyResponseMetrics.cs rename to algoliasearch/Models/Monitoring/LatencyMetric.cs index 2f0a06637..b28adaaf5 100644 --- a/algoliasearch/Models/Monitoring/LatencyResponseMetrics.cs +++ b/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/algoliasearch/Models/Monitoring/LatencyResponse.cs b/algoliasearch/Models/Monitoring/LatencyResponse.cs index af9fe1eda..e019d685b 100644 --- a/algoliasearch/Models/Monitoring/LatencyResponse.cs +++ b/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/algoliasearch/Models/Monitoring/InfrastructureResponseMetrics.cs b/algoliasearch/Models/Monitoring/Metrics.cs similarity index 93% rename from algoliasearch/Models/Monitoring/InfrastructureResponseMetrics.cs rename to algoliasearch/Models/Monitoring/Metrics.cs index 2685c4353..e1828add5 100644 --- a/algoliasearch/Models/Monitoring/InfrastructureResponseMetrics.cs +++ b/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/algoliasearch/Models/Monitoring/TimeInner.cs b/algoliasearch/Models/Monitoring/TimeEntry.cs similarity index 91% rename from algoliasearch/Models/Monitoring/TimeInner.cs rename to algoliasearch/Models/Monitoring/TimeEntry.cs index a65c51f51..2b55e6269 100644 --- a/algoliasearch/Models/Monitoring/TimeInner.cs +++ b/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/algoliasearch/Models/Monitoring/Unauthorized.cs b/algoliasearch/Models/Monitoring/Unauthorized.cs new file mode 100644 index 000000000..406b27bfc --- /dev/null +++ b/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/algoliasearch/Models/QuerySuggestions/GetConfigStatus200Response.cs b/algoliasearch/Models/QuerySuggestions/ConfigStatus.cs similarity index 93% rename from algoliasearch/Models/QuerySuggestions/GetConfigStatus200Response.cs rename to algoliasearch/Models/QuerySuggestions/ConfigStatus.cs index 822490f88..6c2596485 100644 --- a/algoliasearch/Models/QuerySuggestions/GetConfigStatus200Response.cs +++ b/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/algoliasearch/Models/QuerySuggestions/GetLogFile200Response.cs b/algoliasearch/Models/QuerySuggestions/LogFile.cs similarity index 92% rename from algoliasearch/Models/QuerySuggestions/GetLogFile200Response.cs rename to algoliasearch/Models/QuerySuggestions/LogFile.cs index a54f24c2d..656c7bbdc 100644 --- a/algoliasearch/Models/QuerySuggestions/GetLogFile200Response.cs +++ b/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/algoliasearch/Models/Recommend/AroundPrecision.cs b/algoliasearch/Models/Recommend/AroundPrecision.cs index e1be7844c..810ee43b4 100644 --- a/algoliasearch/Models/Recommend/AroundPrecision.cs +++ b/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/algoliasearch/Models/Recommend/AroundPrecisionFromValueInner.cs b/algoliasearch/Models/Recommend/Range.cs similarity index 90% rename from algoliasearch/Models/Recommend/AroundPrecisionFromValueInner.cs rename to algoliasearch/Models/Recommend/Range.cs index 69ec54d5b..891de3c08 100644 --- a/algoliasearch/Models/Recommend/AroundPrecisionFromValueInner.cs +++ b/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/algoliasearch/Models/Recommend/RecommendRule.cs b/algoliasearch/Models/Recommend/RecommendRule.cs index da1bcb83f..32ea009a1 100644 --- a/algoliasearch/Models/Recommend/RecommendRule.cs +++ b/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/algoliasearch/Models/Recommend/RedirectRuleIndexMetadataData.cs b/algoliasearch/Models/Recommend/RedirectRuleIndexData.cs similarity index 83% rename from algoliasearch/Models/Recommend/RedirectRuleIndexMetadataData.cs rename to algoliasearch/Models/Recommend/RedirectRuleIndexData.cs index 109d648ce..bded9b173 100644 --- a/algoliasearch/Models/Recommend/RedirectRuleIndexMetadataData.cs +++ b/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/algoliasearch/Models/Recommend/RedirectRuleIndexMetadata.cs b/algoliasearch/Models/Recommend/RedirectRuleIndexMetadata.cs index a690580eb..5e38234c8 100644 --- a/algoliasearch/Models/Recommend/RedirectRuleIndexMetadata.cs +++ b/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/algoliasearch/Models/Recommend/RecommendRuleMetadata.cs b/algoliasearch/Models/Recommend/RuleMetadata.cs similarity index 89% rename from algoliasearch/Models/Recommend/RecommendRuleMetadata.cs rename to algoliasearch/Models/Recommend/RuleMetadata.cs index c524ada78..4fdbffa74 100644 --- a/algoliasearch/Models/Recommend/RecommendRuleMetadata.cs +++ b/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/algoliasearch/Models/Search/AroundPrecision.cs b/algoliasearch/Models/Search/AroundPrecision.cs index 39da18b26..2c6368810 100644 --- a/algoliasearch/Models/Search/AroundPrecision.cs +++ b/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/algoliasearch/Models/Search/AroundPrecisionFromValueInner.cs b/algoliasearch/Models/Search/Range.cs similarity index 90% rename from algoliasearch/Models/Search/AroundPrecisionFromValueInner.cs rename to algoliasearch/Models/Search/Range.cs index da70103ff..edf1af2b9 100644 --- a/algoliasearch/Models/Search/AroundPrecisionFromValueInner.cs +++ b/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/algoliasearch/Models/Search/RedirectRuleIndexMetadataData.cs b/algoliasearch/Models/Search/RedirectRuleIndexData.cs similarity index 83% rename from algoliasearch/Models/Search/RedirectRuleIndexMetadataData.cs rename to algoliasearch/Models/Search/RedirectRuleIndexData.cs index e9f2904a4..86acb85e1 100644 --- a/algoliasearch/Models/Search/RedirectRuleIndexMetadataData.cs +++ b/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/algoliasearch/Models/Search/RedirectRuleIndexMetadata.cs b/algoliasearch/Models/Search/RedirectRuleIndexMetadata.cs index 90ced0d02..32faac232 100644 --- a/algoliasearch/Models/Search/RedirectRuleIndexMetadata.cs +++ b/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/algoliasearch/Models/Search/SearchParamsString.cs b/algoliasearch/Models/Search/SearchParamsString.cs index 48e62e722..025957c99 100644 --- a/algoliasearch/Models/Search/SearchParamsString.cs +++ b/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/algoliasearch/Models/Usage/GetUsage400ResponseErrorErrorsInner.cs b/algoliasearch/Models/Usage/ErrorItem.cs similarity index 85% rename from algoliasearch/Models/Usage/GetUsage400ResponseErrorErrorsInner.cs rename to algoliasearch/Models/Usage/ErrorItem.cs index d4d75796f..511b3d314 100644 --- a/algoliasearch/Models/Usage/GetUsage400ResponseErrorErrorsInner.cs +++ b/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/algoliasearch/Models/Usage/GetUsage400Response.cs b/algoliasearch/Models/Usage/Forbidden.cs similarity index 82% rename from algoliasearch/Models/Usage/GetUsage400Response.cs rename to algoliasearch/Models/Usage/Forbidden.cs index 460e34edd..00beb3cc3 100644 --- a/algoliasearch/Models/Usage/GetUsage400Response.cs +++ b/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/algoliasearch/Models/Usage/GetUsage400ResponseError.cs b/algoliasearch/Models/Usage/ForbiddenError.cs similarity index 87% rename from algoliasearch/Models/Usage/GetUsage400ResponseError.cs rename to algoliasearch/Models/Usage/ForbiddenError.cs index f1a65210f..5e51c2c14 100644 --- a/algoliasearch/Models/Usage/GetUsage400ResponseError.cs +++ b/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/algoliasearch/Models/Usage/GetUsage200Response.cs b/algoliasearch/Models/Usage/IndexUsage.cs similarity index 85% rename from algoliasearch/Models/Usage/GetUsage200Response.cs rename to algoliasearch/Models/Usage/IndexUsage.cs index 54f1288ee..62201065a 100644 --- a/algoliasearch/Models/Usage/GetUsage200Response.cs +++ b/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/algoliasearch/Models/Usage/InvalidRequest.cs b/algoliasearch/Models/Usage/InvalidRequest.cs new file mode 100644 index 000000000..2b9fe531c --- /dev/null +++ b/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/algoliasearch/Models/Usage/InvalidRequestError.cs b/algoliasearch/Models/Usage/InvalidRequestError.cs new file mode 100644 index 000000000..0ed688da7 --- /dev/null +++ b/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/algoliasearch/Models/Usage/GetUsage200ResponseStatisticsInner.cs b/algoliasearch/Models/Usage/StatisticEntry.cs similarity index 86% rename from algoliasearch/Models/Usage/GetUsage200ResponseStatisticsInner.cs rename to algoliasearch/Models/Usage/StatisticEntry.cs index 846f06d6e..b63da7b61 100644 --- a/algoliasearch/Models/Usage/GetUsage200ResponseStatisticsInner.cs +++ b/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; }