Skip to content

Commit acb36b0

Browse files
fix(specs): ingestion docker task input (#3488) (generated) [skip ci]
Co-authored-by: Clément Vannicatte <[email protected]>
1 parent 6c62a81 commit acb36b0

File tree

66 files changed

+2313
-189
lines changed

Some content is hidden

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

66 files changed

+2313
-189
lines changed

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

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1299,7 +1299,7 @@ public interface IIngestionClient
12991299
/// <exception cref="Algolia.Search.Exceptions.AlgoliaApiException">Thrown when the API call was rejected by Algolia</exception>
13001300
/// <exception cref="Algolia.Search.Exceptions.AlgoliaUnreachableHostException">Thrown when the client failed to call the endpoint</exception>
13011301
/// <returns>Task of TransformationTryResponse</returns>
1302-
Task<TransformationTryResponse> TryTransformationsAsync(TransformationTry transformationTry, RequestOptions options = null, CancellationToken cancellationToken = default);
1302+
Task<TransformationTryResponse> TryTransformationAsync(TransformationTry transformationTry, RequestOptions options = null, CancellationToken cancellationToken = default);
13031303

13041304
/// <summary>
13051305
/// Try a transformation. (Synchronous version)
@@ -1311,7 +1311,7 @@ public interface IIngestionClient
13111311
/// <exception cref="Algolia.Search.Exceptions.AlgoliaApiException">Thrown when the API call was rejected by Algolia</exception>
13121312
/// <exception cref="Algolia.Search.Exceptions.AlgoliaUnreachableHostException">Thrown when the client failed to call the endpoint</exception>
13131313
/// <returns>TransformationTryResponse</returns>
1314-
TransformationTryResponse TryTransformations(TransformationTry transformationTry, RequestOptions options = null, CancellationToken cancellationToken = default);
1314+
TransformationTryResponse TryTransformation(TransformationTry transformationTry, RequestOptions options = null, CancellationToken cancellationToken = default);
13151315

13161316
/// <summary>
13171317
/// Updates an authentication resource.
@@ -3951,11 +3951,11 @@ public SourceWatchResponse TriggerDockerSourceDiscover(string sourceID, RequestO
39513951
/// <exception cref="Algolia.Search.Exceptions.AlgoliaApiException">Thrown when the API call was rejected by Algolia</exception>
39523952
/// <exception cref="Algolia.Search.Exceptions.AlgoliaUnreachableHostException">Thrown when the client failed to call the endpoint</exception>
39533953
/// <returns>Task of TransformationTryResponse</returns>
3954-
public async Task<TransformationTryResponse> TryTransformationsAsync(TransformationTry transformationTry, RequestOptions options = null, CancellationToken cancellationToken = default)
3954+
public async Task<TransformationTryResponse> TryTransformationAsync(TransformationTry transformationTry, RequestOptions options = null, CancellationToken cancellationToken = default)
39553955
{
39563956

39573957
if (transformationTry == null)
3958-
throw new ArgumentException("Parameter `transformationTry` is required when calling `TryTransformations`.");
3958+
throw new ArgumentException("Parameter `transformationTry` is required when calling `TryTransformation`.");
39593959

39603960
var requestOptions = new InternalRequestOptions(options);
39613961

@@ -3980,8 +3980,8 @@ public async Task<TransformationTryResponse> TryTransformationsAsync(Transformat
39803980
/// <exception cref="Algolia.Search.Exceptions.AlgoliaApiException">Thrown when the API call was rejected by Algolia</exception>
39813981
/// <exception cref="Algolia.Search.Exceptions.AlgoliaUnreachableHostException">Thrown when the client failed to call the endpoint</exception>
39823982
/// <returns>TransformationTryResponse</returns>
3983-
public TransformationTryResponse TryTransformations(TransformationTry transformationTry, RequestOptions options = null, CancellationToken cancellationToken = default) =>
3984-
AsyncHelper.RunSync(() => TryTransformationsAsync(transformationTry, options, cancellationToken));
3983+
public TransformationTryResponse TryTransformation(TransformationTry transformationTry, RequestOptions options = null, CancellationToken cancellationToken = default) =>
3984+
AsyncHelper.RunSync(() => TryTransformationAsync(transformationTry, options, cancellationToken));
39853985

39863986

39873987
/// <summary>
Lines changed: 120 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,120 @@
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+
/// DockerStreams
16+
/// </summary>
17+
public partial class DockerStreams
18+
{
19+
20+
/// <summary>
21+
/// Gets or Sets SyncMode
22+
/// </summary>
23+
[JsonPropertyName("syncMode")]
24+
public DockerStreamsSyncMode? SyncMode { get; set; }
25+
/// <summary>
26+
/// Initializes a new instance of the DockerStreams class.
27+
/// </summary>
28+
[JsonConstructor]
29+
public DockerStreams() { }
30+
/// <summary>
31+
/// Initializes a new instance of the DockerStreams class.
32+
/// </summary>
33+
/// <param name="name">The name of the stream to fetch the data from (e.g. table name). (required).</param>
34+
/// <param name="syncMode">syncMode (required).</param>
35+
public DockerStreams(string name, DockerStreamsSyncMode? syncMode)
36+
{
37+
Name = name ?? throw new ArgumentNullException(nameof(name));
38+
SyncMode = syncMode;
39+
}
40+
41+
/// <summary>
42+
/// The name of the stream to fetch the data from (e.g. table name).
43+
/// </summary>
44+
/// <value>The name of the stream to fetch the data from (e.g. table name).</value>
45+
[JsonPropertyName("name")]
46+
public string Name { get; set; }
47+
48+
/// <summary>
49+
/// The properties of the stream to select (e.g. column).
50+
/// </summary>
51+
/// <value>The properties of the stream to select (e.g. column).</value>
52+
[JsonPropertyName("properties")]
53+
public List<string> Properties { get; set; }
54+
55+
/// <summary>
56+
/// Returns the string presentation of the object
57+
/// </summary>
58+
/// <returns>String presentation of the object</returns>
59+
public override string ToString()
60+
{
61+
StringBuilder sb = new StringBuilder();
62+
sb.Append("class DockerStreams {\n");
63+
sb.Append(" Name: ").Append(Name).Append("\n");
64+
sb.Append(" Properties: ").Append(Properties).Append("\n");
65+
sb.Append(" SyncMode: ").Append(SyncMode).Append("\n");
66+
sb.Append("}\n");
67+
return sb.ToString();
68+
}
69+
70+
/// <summary>
71+
/// Returns the JSON string presentation of the object
72+
/// </summary>
73+
/// <returns>JSON string presentation of the object</returns>
74+
public virtual string ToJson()
75+
{
76+
return JsonSerializer.Serialize(this, JsonConfig.Options);
77+
}
78+
79+
/// <summary>
80+
/// Returns true if objects are equal
81+
/// </summary>
82+
/// <param name="obj">Object to be compared</param>
83+
/// <returns>Boolean</returns>
84+
public override bool Equals(object obj)
85+
{
86+
if (obj is not DockerStreams input)
87+
{
88+
return false;
89+
}
90+
91+
return
92+
(Name == input.Name || (Name != null && Name.Equals(input.Name))) &&
93+
(Properties == input.Properties || Properties != null && input.Properties != null && Properties.SequenceEqual(input.Properties)) &&
94+
(SyncMode == input.SyncMode || SyncMode.Equals(input.SyncMode));
95+
}
96+
97+
/// <summary>
98+
/// Gets the hash code
99+
/// </summary>
100+
/// <returns>Hash code</returns>
101+
public override int GetHashCode()
102+
{
103+
unchecked // Overflow is fine, just wrap
104+
{
105+
int hashCode = 41;
106+
if (Name != null)
107+
{
108+
hashCode = (hashCode * 59) + Name.GetHashCode();
109+
}
110+
if (Properties != null)
111+
{
112+
hashCode = (hashCode * 59) + Properties.GetHashCode();
113+
}
114+
hashCode = (hashCode * 59) + SyncMode.GetHashCode();
115+
return hashCode;
116+
}
117+
}
118+
119+
}
120+

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ public DockerStreamsInput() { }
2525
/// Initializes a new instance of the DockerStreamsInput class.
2626
/// </summary>
2727
/// <param name="streams">streams (required).</param>
28-
public DockerStreamsInput(object streams)
28+
public DockerStreamsInput(List<DockerStreams> streams)
2929
{
3030
Streams = streams ?? throw new ArgumentNullException(nameof(streams));
3131
}
@@ -34,7 +34,7 @@ public DockerStreamsInput(object streams)
3434
/// Gets or Sets Streams
3535
/// </summary>
3636
[JsonPropertyName("streams")]
37-
public object Streams { get; set; }
37+
public List<DockerStreams> Streams { get; set; }
3838

3939
/// <summary>
4040
/// Returns the string presentation of the object
@@ -71,7 +71,7 @@ public override bool Equals(object obj)
7171
}
7272

7373
return
74-
(Streams == input.Streams || (Streams != null && Streams.Equals(input.Streams)));
74+
(Streams == input.Streams || Streams != null && input.Streams != null && Streams.SequenceEqual(input.Streams));
7575
}
7676

7777
/// <summary>
Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
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+
/// The strategy to use to fetch the data.
16+
/// </summary>
17+
/// <value>The strategy to use to fetch the data.</value>
18+
public enum DockerStreamsSyncMode
19+
{
20+
/// <summary>
21+
/// Enum Incremental for value: incremental
22+
/// </summary>
23+
[JsonPropertyName("incremental")]
24+
Incremental = 1,
25+
26+
/// <summary>
27+
/// Enum FullTable for value: fullTable
28+
/// </summary>
29+
[JsonPropertyName("fullTable")]
30+
FullTable = 2
31+
}
32+

clients/algoliasearch-client-go/algolia/ingestion/api_ingestion.go

Lines changed: 14 additions & 14 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)