Skip to content

Commit fe9b220

Browse files
algolia-botmillotp
andcommitted
trigger (generated)
Co-authored-by: Pierre Millot <[email protected]>
1 parent eed3508 commit fe9b220

File tree

53 files changed

+98
-1864
lines changed

Some content is hidden

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

53 files changed

+98
-1864
lines changed

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

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

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

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

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

Lines changed: 4 additions & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -16,18 +16,6 @@ namespace Algolia.Search.Models.Ingestion;
1616
/// </summary>
1717
public partial class SourceDocker
1818
{
19-
20-
/// <summary>
21-
/// Gets or Sets ImageType
22-
/// </summary>
23-
[JsonPropertyName("imageType")]
24-
public DockerImageType? ImageType { get; set; }
25-
26-
/// <summary>
27-
/// Gets or Sets Registry
28-
/// </summary>
29-
[JsonPropertyName("registry")]
30-
public DockerRegistry? Registry { get; set; }
3119
/// <summary>
3220
/// Initializes a new instance of the SourceDocker class.
3321
/// </summary>
@@ -36,32 +24,21 @@ public SourceDocker() { }
3624
/// <summary>
3725
/// Initializes a new instance of the SourceDocker class.
3826
/// </summary>
39-
/// <param name="imageType">imageType (required).</param>
40-
/// <param name="registry">registry (required).</param>
41-
/// <param name="image">Docker image name. (required).</param>
27+
/// <param name="image">Shortname of the image, as returned by the referential. (required).</param>
4228
/// <param name="configuration">Configuration of the spec. (required).</param>
43-
public SourceDocker(DockerImageType? imageType, DockerRegistry? registry, string image, object configuration)
29+
public SourceDocker(string image, object configuration)
4430
{
45-
ImageType = imageType;
46-
Registry = registry;
4731
Image = image ?? throw new ArgumentNullException(nameof(image));
4832
Configuration = configuration ?? throw new ArgumentNullException(nameof(configuration));
4933
}
5034

5135
/// <summary>
52-
/// Docker image name.
36+
/// Shortname of the image, as returned by the referential.
5337
/// </summary>
54-
/// <value>Docker image name.</value>
38+
/// <value>Shortname of the image, as returned by the referential.</value>
5539
[JsonPropertyName("image")]
5640
public string Image { get; set; }
5741

58-
/// <summary>
59-
/// Docker image version.
60-
/// </summary>
61-
/// <value>Docker image version.</value>
62-
[JsonPropertyName("version")]
63-
public string VarVersion { get; set; }
64-
6542
/// <summary>
6643
/// Configuration of the spec.
6744
/// </summary>
@@ -77,10 +54,7 @@ public override string ToString()
7754
{
7855
StringBuilder sb = new StringBuilder();
7956
sb.Append("class SourceDocker {\n");
80-
sb.Append(" ImageType: ").Append(ImageType).Append("\n");
81-
sb.Append(" Registry: ").Append(Registry).Append("\n");
8257
sb.Append(" Image: ").Append(Image).Append("\n");
83-
sb.Append(" VarVersion: ").Append(VarVersion).Append("\n");
8458
sb.Append(" Configuration: ").Append(Configuration).Append("\n");
8559
sb.Append("}\n");
8660
return sb.ToString();
@@ -108,10 +82,7 @@ public override bool Equals(object obj)
10882
}
10983

11084
return
111-
(ImageType == input.ImageType || ImageType.Equals(input.ImageType)) &&
112-
(Registry == input.Registry || Registry.Equals(input.Registry)) &&
11385
(Image == input.Image || (Image != null && Image.Equals(input.Image))) &&
114-
(VarVersion == input.VarVersion || (VarVersion != null && VarVersion.Equals(input.VarVersion))) &&
11586
(Configuration == input.Configuration || (Configuration != null && Configuration.Equals(input.Configuration)));
11687
}
11788

@@ -124,16 +95,10 @@ public override int GetHashCode()
12495
unchecked // Overflow is fine, just wrap
12596
{
12697
int hashCode = 41;
127-
hashCode = (hashCode * 59) + ImageType.GetHashCode();
128-
hashCode = (hashCode * 59) + Registry.GetHashCode();
12998
if (Image != null)
13099
{
131100
hashCode = (hashCode * 59) + Image.GetHashCode();
132101
}
133-
if (VarVersion != null)
134-
{
135-
hashCode = (hashCode * 59) + VarVersion.GetHashCode();
136-
}
137102
if (Configuration != null)
138103
{
139104
hashCode = (hashCode * 59) + Configuration.GetHashCode();

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

Lines changed: 26 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -22,20 +22,20 @@ public partial class SourceInput : AbstractSchema
2222
{
2323
/// <summary>
2424
/// Initializes a new instance of the SourceInput class
25-
/// with a SourceDocker
25+
/// with a SourceGA4BigQueryExport
2626
/// </summary>
27-
/// <param name="actualInstance">An instance of SourceDocker.</param>
28-
public SourceInput(SourceDocker actualInstance)
27+
/// <param name="actualInstance">An instance of SourceGA4BigQueryExport.</param>
28+
public SourceInput(SourceGA4BigQueryExport actualInstance)
2929
{
3030
ActualInstance = actualInstance ?? throw new ArgumentException("Invalid instance found. Must not be null.");
3131
}
3232

3333
/// <summary>
3434
/// Initializes a new instance of the SourceInput class
35-
/// with a SourceGA4BigQueryExport
35+
/// with a SourceDocker
3636
/// </summary>
37-
/// <param name="actualInstance">An instance of SourceGA4BigQueryExport.</param>
38-
public SourceInput(SourceGA4BigQueryExport actualInstance)
37+
/// <param name="actualInstance">An instance of SourceDocker.</param>
38+
public SourceInput(SourceDocker actualInstance)
3939
{
4040
ActualInstance = actualInstance ?? throw new ArgumentException("Invalid instance found. Must not be null.");
4141
}
@@ -107,23 +107,23 @@ public SourceInput(SourceCSV actualInstance)
107107
public sealed override object ActualInstance { get; set; }
108108

109109
/// <summary>
110-
/// Get the actual instance of `SourceDocker`. If the actual instance is not `SourceDocker`,
110+
/// Get the actual instance of `SourceGA4BigQueryExport`. If the actual instance is not `SourceGA4BigQueryExport`,
111111
/// the InvalidClassException will be thrown
112112
/// </summary>
113-
/// <returns>An instance of SourceDocker</returns>
114-
public SourceDocker AsSourceDocker()
113+
/// <returns>An instance of SourceGA4BigQueryExport</returns>
114+
public SourceGA4BigQueryExport AsSourceGA4BigQueryExport()
115115
{
116-
return (SourceDocker)ActualInstance;
116+
return (SourceGA4BigQueryExport)ActualInstance;
117117
}
118118

119119
/// <summary>
120-
/// Get the actual instance of `SourceGA4BigQueryExport`. If the actual instance is not `SourceGA4BigQueryExport`,
120+
/// Get the actual instance of `SourceDocker`. If the actual instance is not `SourceDocker`,
121121
/// the InvalidClassException will be thrown
122122
/// </summary>
123-
/// <returns>An instance of SourceGA4BigQueryExport</returns>
124-
public SourceGA4BigQueryExport AsSourceGA4BigQueryExport()
123+
/// <returns>An instance of SourceDocker</returns>
124+
public SourceDocker AsSourceDocker()
125125
{
126-
return (SourceGA4BigQueryExport)ActualInstance;
126+
return (SourceDocker)ActualInstance;
127127
}
128128

129129
/// <summary>
@@ -188,21 +188,21 @@ public SourceCSV AsSourceCSV()
188188

189189

190190
/// <summary>
191-
/// Check if the actual instance is of `SourceDocker` type.
191+
/// Check if the actual instance is of `SourceGA4BigQueryExport` type.
192192
/// </summary>
193193
/// <returns>Whether or not the instance is the type</returns>
194-
public bool IsSourceDocker()
194+
public bool IsSourceGA4BigQueryExport()
195195
{
196-
return ActualInstance.GetType() == typeof(SourceDocker);
196+
return ActualInstance.GetType() == typeof(SourceGA4BigQueryExport);
197197
}
198198

199199
/// <summary>
200-
/// Check if the actual instance is of `SourceGA4BigQueryExport` type.
200+
/// Check if the actual instance is of `SourceDocker` type.
201201
/// </summary>
202202
/// <returns>Whether or not the instance is the type</returns>
203-
public bool IsSourceGA4BigQueryExport()
203+
public bool IsSourceDocker()
204204
{
205-
return ActualInstance.GetType() == typeof(SourceGA4BigQueryExport);
205+
return ActualInstance.GetType() == typeof(SourceDocker);
206206
}
207207

208208
/// <summary>
@@ -343,28 +343,28 @@ public override SourceInput Read(ref Utf8JsonReader reader, Type typeToConvert,
343343
{
344344
var jsonDocument = JsonDocument.ParseValue(ref reader);
345345
var root = jsonDocument.RootElement;
346-
if (root.ValueKind == JsonValueKind.Object && root.TryGetProperty("registry", out _) && root.TryGetProperty("image", out _) && root.TryGetProperty("imageType", out _) && root.TryGetProperty("configuration", out _))
346+
if (root.ValueKind == JsonValueKind.Object && root.TryGetProperty("projectID", out _) && root.TryGetProperty("datasetID", out _) && root.TryGetProperty("tablePrefix", out _))
347347
{
348348
try
349349
{
350-
return new SourceInput(jsonDocument.Deserialize<SourceDocker>(JsonConfig.Options));
350+
return new SourceInput(jsonDocument.Deserialize<SourceGA4BigQueryExport>(JsonConfig.Options));
351351
}
352352
catch (Exception exception)
353353
{
354354
// deserialization failed, try the next one
355-
System.Diagnostics.Debug.WriteLine($"Failed to deserialize into SourceDocker: {exception}");
355+
System.Diagnostics.Debug.WriteLine($"Failed to deserialize into SourceGA4BigQueryExport: {exception}");
356356
}
357357
}
358-
if (root.ValueKind == JsonValueKind.Object && root.TryGetProperty("projectID", out _) && root.TryGetProperty("datasetID", out _) && root.TryGetProperty("tablePrefix", out _))
358+
if (root.ValueKind == JsonValueKind.Object && root.TryGetProperty("image", out _) && root.TryGetProperty("configuration", out _))
359359
{
360360
try
361361
{
362-
return new SourceInput(jsonDocument.Deserialize<SourceGA4BigQueryExport>(JsonConfig.Options));
362+
return new SourceInput(jsonDocument.Deserialize<SourceDocker>(JsonConfig.Options));
363363
}
364364
catch (Exception exception)
365365
{
366366
// deserialization failed, try the next one
367-
System.Diagnostics.Debug.WriteLine($"Failed to deserialize into SourceGA4BigQueryExport: {exception}");
367+
System.Diagnostics.Debug.WriteLine($"Failed to deserialize into SourceDocker: {exception}");
368368
}
369369
}
370370
if (root.ValueKind == JsonValueKind.Object && root.TryGetProperty("projectKey", out _))

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

Lines changed: 0 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -16,12 +16,6 @@ namespace Algolia.Search.Models.Ingestion;
1616
/// </summary>
1717
public partial class SourceUpdateDocker
1818
{
19-
20-
/// <summary>
21-
/// Gets or Sets Registry
22-
/// </summary>
23-
[JsonPropertyName("registry")]
24-
public DockerRegistry? Registry { get; set; }
2519
/// <summary>
2620
/// Initializes a new instance of the SourceUpdateDocker class.
2721
/// </summary>
@@ -36,20 +30,6 @@ public SourceUpdateDocker(object configuration)
3630
Configuration = configuration ?? throw new ArgumentNullException(nameof(configuration));
3731
}
3832

39-
/// <summary>
40-
/// Docker image name.
41-
/// </summary>
42-
/// <value>Docker image name.</value>
43-
[JsonPropertyName("image")]
44-
public string Image { get; set; }
45-
46-
/// <summary>
47-
/// Docker image version.
48-
/// </summary>
49-
/// <value>Docker image version.</value>
50-
[JsonPropertyName("version")]
51-
public string VarVersion { get; set; }
52-
5333
/// <summary>
5434
/// Configuration of the spec.
5535
/// </summary>
@@ -65,9 +45,6 @@ public override string ToString()
6545
{
6646
StringBuilder sb = new StringBuilder();
6747
sb.Append("class SourceUpdateDocker {\n");
68-
sb.Append(" Registry: ").Append(Registry).Append("\n");
69-
sb.Append(" Image: ").Append(Image).Append("\n");
70-
sb.Append(" VarVersion: ").Append(VarVersion).Append("\n");
7148
sb.Append(" Configuration: ").Append(Configuration).Append("\n");
7249
sb.Append("}\n");
7350
return sb.ToString();
@@ -95,9 +72,6 @@ public override bool Equals(object obj)
9572
}
9673

9774
return
98-
(Registry == input.Registry || Registry.Equals(input.Registry)) &&
99-
(Image == input.Image || (Image != null && Image.Equals(input.Image))) &&
100-
(VarVersion == input.VarVersion || (VarVersion != null && VarVersion.Equals(input.VarVersion))) &&
10175
(Configuration == input.Configuration || (Configuration != null && Configuration.Equals(input.Configuration)));
10276
}
10377

@@ -110,15 +84,6 @@ public override int GetHashCode()
11084
unchecked // Overflow is fine, just wrap
11185
{
11286
int hashCode = 41;
113-
hashCode = (hashCode * 59) + Registry.GetHashCode();
114-
if (Image != null)
115-
{
116-
hashCode = (hashCode * 59) + Image.GetHashCode();
117-
}
118-
if (VarVersion != null)
119-
{
120-
hashCode = (hashCode * 59) + VarVersion.GetHashCode();
121-
}
12287
if (Configuration != null)
12388
{
12489
hashCode = (hashCode * 59) + Configuration.GetHashCode();

0 commit comments

Comments
 (0)