Skip to content

Commit 030cd98

Browse files
fix(specs): ingestion search endpoint (generated)
algolia/api-clients-automation#3487 Co-authored-by: algolia-bot <[email protected]> Co-authored-by: Clément Vannicatte <[email protected]>
1 parent e373129 commit 030cd98

File tree

1 file changed

+8
-15
lines changed

1 file changed

+8
-15
lines changed

algoliasearch/Models/Ingestion/TransformationSearch.cs

Lines changed: 8 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -19,22 +19,15 @@ public partial class TransformationSearch
1919
/// <summary>
2020
/// Initializes a new instance of the TransformationSearch class.
2121
/// </summary>
22-
[JsonConstructor]
23-
public TransformationSearch() { }
24-
/// <summary>
25-
/// Initializes a new instance of the TransformationSearch class.
26-
/// </summary>
27-
/// <param name="transformationsIDs">transformationsIDs (required).</param>
28-
public TransformationSearch(List<string> transformationsIDs)
22+
public TransformationSearch()
2923
{
30-
TransformationsIDs = transformationsIDs ?? throw new ArgumentNullException(nameof(transformationsIDs));
3124
}
3225

3326
/// <summary>
34-
/// Gets or Sets TransformationsIDs
27+
/// Gets or Sets TransformationIDs
3528
/// </summary>
36-
[JsonPropertyName("transformationsIDs")]
37-
public List<string> TransformationsIDs { get; set; }
29+
[JsonPropertyName("transformationIDs")]
30+
public List<string> TransformationIDs { get; set; }
3831

3932
/// <summary>
4033
/// Returns the string presentation of the object
@@ -44,7 +37,7 @@ public override string ToString()
4437
{
4538
StringBuilder sb = new StringBuilder();
4639
sb.Append("class TransformationSearch {\n");
47-
sb.Append(" TransformationsIDs: ").Append(TransformationsIDs).Append("\n");
40+
sb.Append(" TransformationIDs: ").Append(TransformationIDs).Append("\n");
4841
sb.Append("}\n");
4942
return sb.ToString();
5043
}
@@ -71,7 +64,7 @@ public override bool Equals(object obj)
7164
}
7265

7366
return
74-
(TransformationsIDs == input.TransformationsIDs || TransformationsIDs != null && input.TransformationsIDs != null && TransformationsIDs.SequenceEqual(input.TransformationsIDs));
67+
(TransformationIDs == input.TransformationIDs || TransformationIDs != null && input.TransformationIDs != null && TransformationIDs.SequenceEqual(input.TransformationIDs));
7568
}
7669

7770
/// <summary>
@@ -83,9 +76,9 @@ public override int GetHashCode()
8376
unchecked // Overflow is fine, just wrap
8477
{
8578
int hashCode = 41;
86-
if (TransformationsIDs != null)
79+
if (TransformationIDs != null)
8780
{
88-
hashCode = (hashCode * 59) + TransformationsIDs.GetHashCode();
81+
hashCode = (hashCode * 59) + TransformationIDs.GetHashCode();
8982
}
9083
return hashCode;
9184
}

0 commit comments

Comments
 (0)