Skip to content

Commit 53ae824

Browse files
chore: generated code for commit b7ae19f. [skip ci]
Co-authored-by: Clément Vannicatte <[email protected]>
1 parent b7ae19f commit 53ae824

File tree

169 files changed

+18882
-420
lines changed

Some content is hidden

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

169 files changed

+18882
-420
lines changed

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

Lines changed: 484 additions & 0 deletions
Large diffs are not rendered by default.
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+
Lines changed: 169 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,169 @@
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+
/// Transformation
16+
/// </summary>
17+
public partial class Transformation
18+
{
19+
/// <summary>
20+
/// Initializes a new instance of the Transformation class.
21+
/// </summary>
22+
[JsonConstructor]
23+
public Transformation() { }
24+
/// <summary>
25+
/// Initializes a new instance of the Transformation class.
26+
/// </summary>
27+
/// <param name="transformationID">Universally unique identifier (UUID) of a transformation. (required).</param>
28+
/// <param name="code">The source code of the transformation. (required).</param>
29+
/// <param name="name">The uniquely identified name of your transformation. (required).</param>
30+
/// <param name="description">A descriptive name for your transformation of what it does. (required).</param>
31+
/// <param name="createdAt">Date of creation in RFC 3339 format. (required).</param>
32+
public Transformation(string transformationID, string code, string name, string description, string createdAt)
33+
{
34+
TransformationID = transformationID ?? throw new ArgumentNullException(nameof(transformationID));
35+
Code = code ?? throw new ArgumentNullException(nameof(code));
36+
Name = name ?? throw new ArgumentNullException(nameof(name));
37+
Description = description ?? throw new ArgumentNullException(nameof(description));
38+
CreatedAt = createdAt ?? throw new ArgumentNullException(nameof(createdAt));
39+
}
40+
41+
/// <summary>
42+
/// Universally unique identifier (UUID) of a transformation.
43+
/// </summary>
44+
/// <value>Universally unique identifier (UUID) of a transformation.</value>
45+
[JsonPropertyName("transformationID")]
46+
public string TransformationID { get; set; }
47+
48+
/// <summary>
49+
/// The source code of the transformation.
50+
/// </summary>
51+
/// <value>The source code of the transformation.</value>
52+
[JsonPropertyName("code")]
53+
public string Code { get; set; }
54+
55+
/// <summary>
56+
/// The uniquely identified name of your transformation.
57+
/// </summary>
58+
/// <value>The uniquely identified name of your transformation.</value>
59+
[JsonPropertyName("name")]
60+
public string Name { get; set; }
61+
62+
/// <summary>
63+
/// A descriptive name for your transformation of what it does.
64+
/// </summary>
65+
/// <value>A descriptive name for your transformation of what it does.</value>
66+
[JsonPropertyName("description")]
67+
public string Description { get; set; }
68+
69+
/// <summary>
70+
/// Date of creation in RFC 3339 format.
71+
/// </summary>
72+
/// <value>Date of creation in RFC 3339 format.</value>
73+
[JsonPropertyName("createdAt")]
74+
public string CreatedAt { get; set; }
75+
76+
/// <summary>
77+
/// Date of last update in RFC 3339 format.
78+
/// </summary>
79+
/// <value>Date of last update in RFC 3339 format.</value>
80+
[JsonPropertyName("updatedAt")]
81+
public string UpdatedAt { get; set; }
82+
83+
/// <summary>
84+
/// Returns the string presentation of the object
85+
/// </summary>
86+
/// <returns>String presentation of the object</returns>
87+
public override string ToString()
88+
{
89+
StringBuilder sb = new StringBuilder();
90+
sb.Append("class Transformation {\n");
91+
sb.Append(" TransformationID: ").Append(TransformationID).Append("\n");
92+
sb.Append(" Code: ").Append(Code).Append("\n");
93+
sb.Append(" Name: ").Append(Name).Append("\n");
94+
sb.Append(" Description: ").Append(Description).Append("\n");
95+
sb.Append(" CreatedAt: ").Append(CreatedAt).Append("\n");
96+
sb.Append(" UpdatedAt: ").Append(UpdatedAt).Append("\n");
97+
sb.Append("}\n");
98+
return sb.ToString();
99+
}
100+
101+
/// <summary>
102+
/// Returns the JSON string presentation of the object
103+
/// </summary>
104+
/// <returns>JSON string presentation of the object</returns>
105+
public virtual string ToJson()
106+
{
107+
return JsonSerializer.Serialize(this, JsonConfig.Options);
108+
}
109+
110+
/// <summary>
111+
/// Returns true if objects are equal
112+
/// </summary>
113+
/// <param name="obj">Object to be compared</param>
114+
/// <returns>Boolean</returns>
115+
public override bool Equals(object obj)
116+
{
117+
if (obj is not Transformation input)
118+
{
119+
return false;
120+
}
121+
122+
return
123+
(TransformationID == input.TransformationID || (TransformationID != null && TransformationID.Equals(input.TransformationID))) &&
124+
(Code == input.Code || (Code != null && Code.Equals(input.Code))) &&
125+
(Name == input.Name || (Name != null && Name.Equals(input.Name))) &&
126+
(Description == input.Description || (Description != null && Description.Equals(input.Description))) &&
127+
(CreatedAt == input.CreatedAt || (CreatedAt != null && CreatedAt.Equals(input.CreatedAt))) &&
128+
(UpdatedAt == input.UpdatedAt || (UpdatedAt != null && UpdatedAt.Equals(input.UpdatedAt)));
129+
}
130+
131+
/// <summary>
132+
/// Gets the hash code
133+
/// </summary>
134+
/// <returns>Hash code</returns>
135+
public override int GetHashCode()
136+
{
137+
unchecked // Overflow is fine, just wrap
138+
{
139+
int hashCode = 41;
140+
if (TransformationID != null)
141+
{
142+
hashCode = (hashCode * 59) + TransformationID.GetHashCode();
143+
}
144+
if (Code != null)
145+
{
146+
hashCode = (hashCode * 59) + Code.GetHashCode();
147+
}
148+
if (Name != null)
149+
{
150+
hashCode = (hashCode * 59) + Name.GetHashCode();
151+
}
152+
if (Description != null)
153+
{
154+
hashCode = (hashCode * 59) + Description.GetHashCode();
155+
}
156+
if (CreatedAt != null)
157+
{
158+
hashCode = (hashCode * 59) + CreatedAt.GetHashCode();
159+
}
160+
if (UpdatedAt != null)
161+
{
162+
hashCode = (hashCode * 59) + UpdatedAt.GetHashCode();
163+
}
164+
return hashCode;
165+
}
166+
}
167+
168+
}
169+

0 commit comments

Comments
 (0)