-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: generated code for commit fe6f5ed. [skip ci]
Co-authored-by: Clément Vannicatte <vannicattec@gmail.com>
- Loading branch information
1 parent
fe6f5ed
commit 316e90a
Showing
114 changed files
with
25,683 additions
and
6,397 deletions.
There are no files selected for viewing
2,069 changes: 1,368 additions & 701 deletions
2,069
clients/algoliasearch-client-csharp/algoliasearch/Clients/IngestionClient.cs
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
109 changes: 109 additions & 0 deletions
109
clients/algoliasearch-client-csharp/algoliasearch/Models/Ingestion/ListTasksResponseV1.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,109 @@ | ||
// | ||
// 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. | ||
// | ||
using System; | ||
using System.Text; | ||
using System.Linq; | ||
using System.Text.Json.Serialization; | ||
using System.Collections.Generic; | ||
using Algolia.Search.Serializer; | ||
using System.Text.Json; | ||
|
||
namespace Algolia.Search.Models.Ingestion; | ||
|
||
/// <summary> | ||
/// Configured tasks and pagination information. | ||
/// </summary> | ||
public partial class ListTasksResponseV1 | ||
{ | ||
/// <summary> | ||
/// Initializes a new instance of the ListTasksResponseV1 class. | ||
/// </summary> | ||
[JsonConstructor] | ||
public ListTasksResponseV1() { } | ||
/// <summary> | ||
/// Initializes a new instance of the ListTasksResponseV1 class. | ||
/// </summary> | ||
/// <param name="tasks">tasks (required).</param> | ||
/// <param name="pagination">pagination (required).</param> | ||
public ListTasksResponseV1(List<TaskV1> tasks, Pagination pagination) | ||
{ | ||
Tasks = tasks ?? throw new ArgumentNullException(nameof(tasks)); | ||
Pagination = pagination ?? throw new ArgumentNullException(nameof(pagination)); | ||
} | ||
|
||
/// <summary> | ||
/// Gets or Sets Tasks | ||
/// </summary> | ||
[JsonPropertyName("tasks")] | ||
public List<TaskV1> Tasks { get; set; } | ||
|
||
/// <summary> | ||
/// Gets or Sets Pagination | ||
/// </summary> | ||
[JsonPropertyName("pagination")] | ||
public Pagination Pagination { get; set; } | ||
|
||
/// <summary> | ||
/// Returns the string presentation of the object | ||
/// </summary> | ||
/// <returns>String presentation of the object</returns> | ||
public override string ToString() | ||
{ | ||
StringBuilder sb = new StringBuilder(); | ||
sb.Append("class ListTasksResponseV1 {\n"); | ||
sb.Append(" Tasks: ").Append(Tasks).Append("\n"); | ||
sb.Append(" Pagination: ").Append(Pagination).Append("\n"); | ||
sb.Append("}\n"); | ||
return sb.ToString(); | ||
} | ||
|
||
/// <summary> | ||
/// Returns the JSON string presentation of the object | ||
/// </summary> | ||
/// <returns>JSON string presentation of the object</returns> | ||
public virtual string ToJson() | ||
{ | ||
return JsonSerializer.Serialize(this, JsonConfig.Options); | ||
} | ||
|
||
/// <summary> | ||
/// Returns true if objects are equal | ||
/// </summary> | ||
/// <param name="obj">Object to be compared</param> | ||
/// <returns>Boolean</returns> | ||
public override bool Equals(object obj) | ||
{ | ||
if (obj is not ListTasksResponseV1 input) | ||
{ | ||
return false; | ||
} | ||
|
||
return | ||
(Tasks == input.Tasks || Tasks != null && input.Tasks != null && Tasks.SequenceEqual(input.Tasks)) && | ||
(Pagination == input.Pagination || (Pagination != null && Pagination.Equals(input.Pagination))); | ||
} | ||
|
||
/// <summary> | ||
/// Gets the hash code | ||
/// </summary> | ||
/// <returns>Hash code</returns> | ||
public override int GetHashCode() | ||
{ | ||
unchecked // Overflow is fine, just wrap | ||
{ | ||
int hashCode = 41; | ||
if (Tasks != null) | ||
{ | ||
hashCode = (hashCode * 59) + Tasks.GetHashCode(); | ||
} | ||
if (Pagination != null) | ||
{ | ||
hashCode = (hashCode * 59) + Pagination.GetHashCode(); | ||
} | ||
return hashCode; | ||
} | ||
} | ||
|
||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.