From 030cd987edaccc569c46c7ebb41344c895aa40f8 Mon Sep 17 00:00:00 2001 From: algolia-bot Date: Wed, 7 Aug 2024 10:10:25 +0000 Subject: [PATCH] fix(specs): ingestion search endpoint (generated) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit https://github.com/algolia/api-clients-automation/pull/3487 Co-authored-by: algolia-bot Co-authored-by: Clément Vannicatte --- .../Models/Ingestion/TransformationSearch.cs | 23 +++++++------------ 1 file changed, 8 insertions(+), 15 deletions(-) diff --git a/algoliasearch/Models/Ingestion/TransformationSearch.cs b/algoliasearch/Models/Ingestion/TransformationSearch.cs index 88d02148b..7a4eaa035 100644 --- a/algoliasearch/Models/Ingestion/TransformationSearch.cs +++ b/algoliasearch/Models/Ingestion/TransformationSearch.cs @@ -19,22 +19,15 @@ public partial class TransformationSearch /// /// Initializes a new instance of the TransformationSearch class. /// - [JsonConstructor] - public TransformationSearch() { } - /// - /// Initializes a new instance of the TransformationSearch class. - /// - /// transformationsIDs (required). - public TransformationSearch(List transformationsIDs) + public TransformationSearch() { - TransformationsIDs = transformationsIDs ?? throw new ArgumentNullException(nameof(transformationsIDs)); } /// - /// Gets or Sets TransformationsIDs + /// Gets or Sets TransformationIDs /// - [JsonPropertyName("transformationsIDs")] - public List TransformationsIDs { get; set; } + [JsonPropertyName("transformationIDs")] + public List TransformationIDs { get; set; } /// /// Returns the string presentation of the object @@ -44,7 +37,7 @@ public override string ToString() { StringBuilder sb = new StringBuilder(); sb.Append("class TransformationSearch {\n"); - sb.Append(" TransformationsIDs: ").Append(TransformationsIDs).Append("\n"); + sb.Append(" TransformationIDs: ").Append(TransformationIDs).Append("\n"); sb.Append("}\n"); return sb.ToString(); } @@ -71,7 +64,7 @@ public override bool Equals(object obj) } return - (TransformationsIDs == input.TransformationsIDs || TransformationsIDs != null && input.TransformationsIDs != null && TransformationsIDs.SequenceEqual(input.TransformationsIDs)); + (TransformationIDs == input.TransformationIDs || TransformationIDs != null && input.TransformationIDs != null && TransformationIDs.SequenceEqual(input.TransformationIDs)); } /// @@ -83,9 +76,9 @@ public override int GetHashCode() unchecked // Overflow is fine, just wrap { int hashCode = 41; - if (TransformationsIDs != null) + if (TransformationIDs != null) { - hashCode = (hashCode * 59) + TransformationsIDs.GetHashCode(); + hashCode = (hashCode * 59) + TransformationIDs.GetHashCode(); } return hashCode; }