Skip to content

Commit 74737ba

Browse files
fix(specs): remove private beta endpoint from recommend [skip-bc] (generated)
algolia/api-clients-automation#4110 Co-authored-by: algolia-bot <[email protected]> Co-authored-by: Clément Vannicatte <[email protected]>
1 parent bbd6c9f commit 74737ba

File tree

3 files changed

+0
-221
lines changed

3 files changed

+0
-221
lines changed

algoliasearch/Models/Recommend/RecommendationsRequest.cs

Lines changed: 0 additions & 41 deletions
Original file line numberDiff line numberDiff line change
@@ -70,16 +70,6 @@ public RecommendationsRequest(LookingSimilarQuery actualInstance)
7070
ActualInstance = actualInstance ?? throw new ArgumentException("Invalid instance found. Must not be null.");
7171
}
7272

73-
/// <summary>
74-
/// Initializes a new instance of the RecommendationsRequest class
75-
/// with a RecommendedForYouQuery
76-
/// </summary>
77-
/// <param name="actualInstance">An instance of RecommendedForYouQuery.</param>
78-
public RecommendationsRequest(RecommendedForYouQuery actualInstance)
79-
{
80-
ActualInstance = actualInstance ?? throw new ArgumentException("Invalid instance found. Must not be null.");
81-
}
82-
8373

8474
/// <summary>
8575
/// Gets or Sets ActualInstance
@@ -136,16 +126,6 @@ public LookingSimilarQuery AsLookingSimilarQuery()
136126
return (LookingSimilarQuery)ActualInstance;
137127
}
138128

139-
/// <summary>
140-
/// Get the actual instance of `RecommendedForYouQuery`. If the actual instance is not `RecommendedForYouQuery`,
141-
/// the InvalidClassException will be thrown
142-
/// </summary>
143-
/// <returns>An instance of RecommendedForYouQuery</returns>
144-
public RecommendedForYouQuery AsRecommendedForYouQuery()
145-
{
146-
return (RecommendedForYouQuery)ActualInstance;
147-
}
148-
149129

150130
/// <summary>
151131
/// Check if the actual instance is of `BoughtTogetherQuery` type.
@@ -192,15 +172,6 @@ public bool IsLookingSimilarQuery()
192172
return ActualInstance.GetType() == typeof(LookingSimilarQuery);
193173
}
194174

195-
/// <summary>
196-
/// Check if the actual instance is of `RecommendedForYouQuery` type.
197-
/// </summary>
198-
/// <returns>Whether or not the instance is the type</returns>
199-
public bool IsRecommendedForYouQuery()
200-
{
201-
return ActualInstance.GetType() == typeof(RecommendedForYouQuery);
202-
}
203-
204175
/// <summary>
205176
/// Returns the string presentation of the object
206177
/// </summary>
@@ -345,18 +316,6 @@ public override RecommendationsRequest Read(ref Utf8JsonReader reader, Type type
345316
System.Diagnostics.Debug.WriteLine($"Failed to deserialize into LookingSimilarQuery: {exception}");
346317
}
347318
}
348-
if (root.ValueKind == JsonValueKind.Object)
349-
{
350-
try
351-
{
352-
return new RecommendationsRequest(jsonDocument.Deserialize<RecommendedForYouQuery>(JsonConfig.Options));
353-
}
354-
catch (Exception exception)
355-
{
356-
// deserialization failed, try the next one
357-
System.Diagnostics.Debug.WriteLine($"Failed to deserialize into RecommendedForYouQuery: {exception}");
358-
}
359-
}
360319
throw new InvalidDataException($"The JSON string cannot be deserialized into any schema defined.");
361320
}
362321

algoliasearch/Models/Recommend/RecommendedForYouModel.cs

Lines changed: 0 additions & 27 deletions
This file was deleted.

algoliasearch/Models/Recommend/RecommendedForYouQuery.cs

Lines changed: 0 additions & 153 deletions
This file was deleted.

0 commit comments

Comments
 (0)