Skip to content

Commit c1c3054

Browse files
authored
Merge branch 'main' into feat/algoliasearch-recommend
2 parents 48ae9a2 + 53ae824 commit c1c3054

File tree

205 files changed

+19652
-438
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

205 files changed

+19652
-438
lines changed

clients/algoliasearch-client-csharp/algoliasearch/Clients/IngestionClient.cs

Lines changed: 484 additions & 0 deletions
Large diffs are not rendered by default.

clients/algoliasearch-client-csharp/algoliasearch/Models/Ingestion/IngestionTask.cs

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,13 @@ public IngestionTask(string taskID, string sourceID, string destinationID, Trigg
9595
[JsonPropertyName("failureThreshold")]
9696
public int? FailureThreshold { get; set; }
9797

98+
/// <summary>
99+
/// Date of the last cursor in RFC 3339 format.
100+
/// </summary>
101+
/// <value>Date of the last cursor in RFC 3339 format.</value>
102+
[JsonPropertyName("cursor")]
103+
public string Cursor { get; set; }
104+
98105
/// <summary>
99106
/// Date of creation in RFC 3339 format.
100107
/// </summary>
@@ -125,6 +132,7 @@ public override string ToString()
125132
sb.Append(" Enabled: ").Append(Enabled).Append("\n");
126133
sb.Append(" FailureThreshold: ").Append(FailureThreshold).Append("\n");
127134
sb.Append(" Action: ").Append(Action).Append("\n");
135+
sb.Append(" Cursor: ").Append(Cursor).Append("\n");
128136
sb.Append(" CreatedAt: ").Append(CreatedAt).Append("\n");
129137
sb.Append(" UpdatedAt: ").Append(UpdatedAt).Append("\n");
130138
sb.Append("}\n");
@@ -161,6 +169,7 @@ public override bool Equals(object obj)
161169
(Enabled == input.Enabled || Enabled.Equals(input.Enabled)) &&
162170
(FailureThreshold == input.FailureThreshold || FailureThreshold.Equals(input.FailureThreshold)) &&
163171
(Action == input.Action || Action.Equals(input.Action)) &&
172+
(Cursor == input.Cursor || (Cursor != null && Cursor.Equals(input.Cursor))) &&
164173
(CreatedAt == input.CreatedAt || (CreatedAt != null && CreatedAt.Equals(input.CreatedAt))) &&
165174
(UpdatedAt == input.UpdatedAt || (UpdatedAt != null && UpdatedAt.Equals(input.UpdatedAt)));
166175
}
@@ -197,6 +206,10 @@ public override int GetHashCode()
197206
hashCode = (hashCode * 59) + Enabled.GetHashCode();
198207
hashCode = (hashCode * 59) + FailureThreshold.GetHashCode();
199208
hashCode = (hashCode * 59) + Action.GetHashCode();
209+
if (Cursor != null)
210+
{
211+
hashCode = (hashCode * 59) + Cursor.GetHashCode();
212+
}
200213
if (CreatedAt != null)
201214
{
202215
hashCode = (hashCode * 59) + CreatedAt.GetHashCode();
Lines changed: 109 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,109 @@
1+
//
2+
// 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.
3+
//
4+
using System;
5+
using System.Text;
6+
using System.Linq;
7+
using System.Text.Json.Serialization;
8+
using System.Collections.Generic;
9+
using Algolia.Search.Serializer;
10+
using System.Text.Json;
11+
12+
namespace Algolia.Search.Models.Ingestion;
13+
14+
/// <summary>
15+
/// Configured transformations and pagination information.
16+
/// </summary>
17+
public partial class ListTransformationsResponse
18+
{
19+
/// <summary>
20+
/// Initializes a new instance of the ListTransformationsResponse class.
21+
/// </summary>
22+
[JsonConstructor]
23+
public ListTransformationsResponse() { }
24+
/// <summary>
25+
/// Initializes a new instance of the ListTransformationsResponse class.
26+
/// </summary>
27+
/// <param name="transformations">transformations (required).</param>
28+
/// <param name="pagination">pagination (required).</param>
29+
public ListTransformationsResponse(List<Transformation> transformations, Pagination pagination)
30+
{
31+
Transformations = transformations ?? throw new ArgumentNullException(nameof(transformations));
32+
Pagination = pagination ?? throw new ArgumentNullException(nameof(pagination));
33+
}
34+
35+
/// <summary>
36+
/// Gets or Sets Transformations
37+
/// </summary>
38+
[JsonPropertyName("transformations")]
39+
public List<Transformation> Transformations { get; set; }
40+
41+
/// <summary>
42+
/// Gets or Sets Pagination
43+
/// </summary>
44+
[JsonPropertyName("pagination")]
45+
public Pagination Pagination { get; set; }
46+
47+
/// <summary>
48+
/// Returns the string presentation of the object
49+
/// </summary>
50+
/// <returns>String presentation of the object</returns>
51+
public override string ToString()
52+
{
53+
StringBuilder sb = new StringBuilder();
54+
sb.Append("class ListTransformationsResponse {\n");
55+
sb.Append(" Transformations: ").Append(Transformations).Append("\n");
56+
sb.Append(" Pagination: ").Append(Pagination).Append("\n");
57+
sb.Append("}\n");
58+
return sb.ToString();
59+
}
60+
61+
/// <summary>
62+
/// Returns the JSON string presentation of the object
63+
/// </summary>
64+
/// <returns>JSON string presentation of the object</returns>
65+
public virtual string ToJson()
66+
{
67+
return JsonSerializer.Serialize(this, JsonConfig.Options);
68+
}
69+
70+
/// <summary>
71+
/// Returns true if objects are equal
72+
/// </summary>
73+
/// <param name="obj">Object to be compared</param>
74+
/// <returns>Boolean</returns>
75+
public override bool Equals(object obj)
76+
{
77+
if (obj is not ListTransformationsResponse input)
78+
{
79+
return false;
80+
}
81+
82+
return
83+
(Transformations == input.Transformations || Transformations != null && input.Transformations != null && Transformations.SequenceEqual(input.Transformations)) &&
84+
(Pagination == input.Pagination || (Pagination != null && Pagination.Equals(input.Pagination)));
85+
}
86+
87+
/// <summary>
88+
/// Gets the hash code
89+
/// </summary>
90+
/// <returns>Hash code</returns>
91+
public override int GetHashCode()
92+
{
93+
unchecked // Overflow is fine, just wrap
94+
{
95+
int hashCode = 41;
96+
if (Transformations != null)
97+
{
98+
hashCode = (hashCode * 59) + Transformations.GetHashCode();
99+
}
100+
if (Pagination != null)
101+
{
102+
hashCode = (hashCode * 59) + Pagination.GetHashCode();
103+
}
104+
return hashCode;
105+
}
106+
}
107+
108+
}
109+
Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
//
2+
// 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.
3+
//
4+
using System;
5+
using System.Text;
6+
using System.Linq;
7+
using System.Text.Json.Serialization;
8+
using System.Collections.Generic;
9+
using Algolia.Search.Serializer;
10+
using System.Text.Json;
11+
12+
namespace Algolia.Search.Models.Ingestion;
13+
14+
/// <summary>
15+
/// Property by which to sort the list.
16+
/// </summary>
17+
/// <value>Property by which to sort the list.</value>
18+
public enum SortKeys
19+
{
20+
/// <summary>
21+
/// Enum Name for value: name
22+
/// </summary>
23+
[JsonPropertyName("name")]
24+
Name = 1,
25+
26+
/// <summary>
27+
/// Enum Type for value: type
28+
/// </summary>
29+
[JsonPropertyName("type")]
30+
Type = 2,
31+
32+
/// <summary>
33+
/// Enum UpdatedAt for value: updatedAt
34+
/// </summary>
35+
[JsonPropertyName("updatedAt")]
36+
UpdatedAt = 3,
37+
38+
/// <summary>
39+
/// Enum CreatedAt for value: createdAt
40+
/// </summary>
41+
[JsonPropertyName("createdAt")]
42+
CreatedAt = 4
43+
}
44+

clients/algoliasearch-client-csharp/algoliasearch/Models/Ingestion/TaskCreate.cs

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,13 @@ public TaskCreate(string sourceID, string destinationID, TaskCreateTrigger trigg
8282
[JsonPropertyName("input")]
8383
public TaskInput Input { get; set; }
8484

85+
/// <summary>
86+
/// Date of the last cursor in RFC 3339 format.
87+
/// </summary>
88+
/// <value>Date of the last cursor in RFC 3339 format.</value>
89+
[JsonPropertyName("cursor")]
90+
public string Cursor { get; set; }
91+
8592
/// <summary>
8693
/// Returns the string presentation of the object
8794
/// </summary>
@@ -97,6 +104,7 @@ public override string ToString()
97104
sb.Append(" Enabled: ").Append(Enabled).Append("\n");
98105
sb.Append(" FailureThreshold: ").Append(FailureThreshold).Append("\n");
99106
sb.Append(" Input: ").Append(Input).Append("\n");
107+
sb.Append(" Cursor: ").Append(Cursor).Append("\n");
100108
sb.Append("}\n");
101109
return sb.ToString();
102110
}
@@ -129,7 +137,8 @@ public override bool Equals(object obj)
129137
(Action == input.Action || Action.Equals(input.Action)) &&
130138
(Enabled == input.Enabled || Enabled.Equals(input.Enabled)) &&
131139
(FailureThreshold == input.FailureThreshold || FailureThreshold.Equals(input.FailureThreshold)) &&
132-
(Input == input.Input || (Input != null && Input.Equals(input.Input)));
140+
(Input == input.Input || (Input != null && Input.Equals(input.Input))) &&
141+
(Cursor == input.Cursor || (Cursor != null && Cursor.Equals(input.Cursor)));
133142
}
134143

135144
/// <summary>
@@ -160,6 +169,10 @@ public override int GetHashCode()
160169
{
161170
hashCode = (hashCode * 59) + Input.GetHashCode();
162171
}
172+
if (Cursor != null)
173+
{
174+
hashCode = (hashCode * 59) + Cursor.GetHashCode();
175+
}
163176
return hashCode;
164177
}
165178
}

0 commit comments

Comments
 (0)