Skip to content

Commit

Permalink
fix(specs): ingestion search endpoint (generated)
Browse files Browse the repository at this point in the history
algolia/api-clients-automation#3487

Co-authored-by: algolia-bot <accounts+algolia-api-client-bot@algolia.com>
Co-authored-by: Clément Vannicatte <vannicattec@gmail.com>
  • Loading branch information
algolia-bot and shortcuts committed Aug 7, 2024
1 parent e373129 commit 030cd98
Showing 1 changed file with 8 additions and 15 deletions.
23 changes: 8 additions & 15 deletions algoliasearch/Models/Ingestion/TransformationSearch.cs
Original file line number Diff line number Diff line change
Expand Up @@ -19,22 +19,15 @@ public partial class TransformationSearch
/// <summary>
/// Initializes a new instance of the TransformationSearch class.
/// </summary>
[JsonConstructor]
public TransformationSearch() { }
/// <summary>
/// Initializes a new instance of the TransformationSearch class.
/// </summary>
/// <param name="transformationsIDs">transformationsIDs (required).</param>
public TransformationSearch(List<string> transformationsIDs)
public TransformationSearch()
{
TransformationsIDs = transformationsIDs ?? throw new ArgumentNullException(nameof(transformationsIDs));
}

/// <summary>
/// Gets or Sets TransformationsIDs
/// Gets or Sets TransformationIDs
/// </summary>
[JsonPropertyName("transformationsIDs")]
public List<string> TransformationsIDs { get; set; }
[JsonPropertyName("transformationIDs")]
public List<string> TransformationIDs { get; set; }

/// <summary>
/// Returns the string presentation of the object
Expand All @@ -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();
}
Expand All @@ -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));
}

/// <summary>
Expand All @@ -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;
}
Expand Down

0 comments on commit 030cd98

Please sign in to comment.