Skip to content

Commit 92faf44

Browse files
algolia-botmillotp
andcommitted
fix(specs): make the updateAt non-null in ingestion (generated)
algolia/api-clients-automation#4697 Co-authored-by: algolia-bot <[email protected]> Co-authored-by: Pierre Millot <[email protected]>
1 parent 8eba0c1 commit 92faf44

File tree

7 files changed

+23
-11
lines changed

7 files changed

+23
-11
lines changed

algoliasearch/Models/Ingestion/Authentication.cs

+3-1
Original file line numberDiff line numberDiff line change
@@ -41,13 +41,15 @@ public Authentication() { }
4141
/// <param name="name">Descriptive name for the resource. (required).</param>
4242
/// <param name="input">input (required).</param>
4343
/// <param name="createdAt">Date of creation in RFC 3339 format. (required).</param>
44-
public Authentication(string authenticationID, AuthenticationType? type, string name, AuthInputPartial input, string createdAt)
44+
/// <param name="updatedAt">Date of last update in RFC 3339 format. (required).</param>
45+
public Authentication(string authenticationID, AuthenticationType? type, string name, AuthInputPartial input, string createdAt, string updatedAt)
4546
{
4647
AuthenticationID = authenticationID ?? throw new ArgumentNullException(nameof(authenticationID));
4748
Type = type;
4849
Name = name ?? throw new ArgumentNullException(nameof(name));
4950
Input = input ?? throw new ArgumentNullException(nameof(input));
5051
CreatedAt = createdAt ?? throw new ArgumentNullException(nameof(createdAt));
52+
UpdatedAt = updatedAt ?? throw new ArgumentNullException(nameof(updatedAt));
5153
}
5254

5355
/// <summary>

algoliasearch/Models/Ingestion/Destination.cs

+3-1
Original file line numberDiff line numberDiff line change
@@ -35,13 +35,15 @@ public Destination() { }
3535
/// <param name="name">Descriptive name for the resource. (required).</param>
3636
/// <param name="input">input (required).</param>
3737
/// <param name="createdAt">Date of creation in RFC 3339 format. (required).</param>
38-
public Destination(string destinationID, DestinationType? type, string name, DestinationInput input, string createdAt)
38+
/// <param name="updatedAt">Date of last update in RFC 3339 format. (required).</param>
39+
public Destination(string destinationID, DestinationType? type, string name, DestinationInput input, string createdAt, string updatedAt)
3940
{
4041
DestinationID = destinationID ?? throw new ArgumentNullException(nameof(destinationID));
4142
Type = type;
4243
Name = name ?? throw new ArgumentNullException(nameof(name));
4344
Input = input ?? throw new ArgumentNullException(nameof(input));
4445
CreatedAt = createdAt ?? throw new ArgumentNullException(nameof(createdAt));
46+
UpdatedAt = updatedAt ?? throw new ArgumentNullException(nameof(updatedAt));
4547
}
4648

4749
/// <summary>

algoliasearch/Models/Ingestion/IngestionTask.cs

+3-1
Original file line numberDiff line numberDiff line change
@@ -41,13 +41,15 @@ public IngestionTask() { }
4141
/// <param name="destinationID">Universally unique identifier (UUID) of a destination resource. (required).</param>
4242
/// <param name="enabled">Whether the task is enabled. (required) (default to true).</param>
4343
/// <param name="createdAt">Date of creation in RFC 3339 format. (required).</param>
44-
public IngestionTask(string taskID, string sourceID, string destinationID, bool enabled, string createdAt)
44+
/// <param name="updatedAt">Date of last update in RFC 3339 format. (required).</param>
45+
public IngestionTask(string taskID, string sourceID, string destinationID, bool enabled, string createdAt, string updatedAt)
4546
{
4647
TaskID = taskID ?? throw new ArgumentNullException(nameof(taskID));
4748
SourceID = sourceID ?? throw new ArgumentNullException(nameof(sourceID));
4849
DestinationID = destinationID ?? throw new ArgumentNullException(nameof(destinationID));
4950
Enabled = enabled;
5051
CreatedAt = createdAt ?? throw new ArgumentNullException(nameof(createdAt));
52+
UpdatedAt = updatedAt ?? throw new ArgumentNullException(nameof(updatedAt));
5153
}
5254

5355
/// <summary>

algoliasearch/Models/Ingestion/Source.cs

+3-1
Original file line numberDiff line numberDiff line change
@@ -34,12 +34,14 @@ public Source() { }
3434
/// <param name="type">type (required).</param>
3535
/// <param name="name">name (required).</param>
3636
/// <param name="createdAt">Date of creation in RFC 3339 format. (required).</param>
37-
public Source(string sourceID, SourceType? type, string name, string createdAt)
37+
/// <param name="updatedAt">Date of last update in RFC 3339 format. (required).</param>
38+
public Source(string sourceID, SourceType? type, string name, string createdAt, string updatedAt)
3839
{
3940
SourceID = sourceID ?? throw new ArgumentNullException(nameof(sourceID));
4041
Type = type;
4142
Name = name ?? throw new ArgumentNullException(nameof(name));
4243
CreatedAt = createdAt ?? throw new ArgumentNullException(nameof(createdAt));
44+
UpdatedAt = updatedAt ?? throw new ArgumentNullException(nameof(updatedAt));
4345
}
4446

4547
/// <summary>

algoliasearch/Models/Ingestion/TaskV1.cs

+3-1
Original file line numberDiff line numberDiff line change
@@ -36,14 +36,16 @@ public TaskV1() { }
3636
/// <param name="trigger">trigger (required).</param>
3737
/// <param name="enabled">Whether the task is enabled. (required) (default to true).</param>
3838
/// <param name="createdAt">Date of creation in RFC 3339 format. (required).</param>
39-
public TaskV1(string taskID, string sourceID, string destinationID, Trigger trigger, bool enabled, string createdAt)
39+
/// <param name="updatedAt">Date of last update in RFC 3339 format. (required).</param>
40+
public TaskV1(string taskID, string sourceID, string destinationID, Trigger trigger, bool enabled, string createdAt, string updatedAt)
4041
{
4142
TaskID = taskID ?? throw new ArgumentNullException(nameof(taskID));
4243
SourceID = sourceID ?? throw new ArgumentNullException(nameof(sourceID));
4344
DestinationID = destinationID ?? throw new ArgumentNullException(nameof(destinationID));
4445
Trigger = trigger ?? throw new ArgumentNullException(nameof(trigger));
4546
Enabled = enabled;
4647
CreatedAt = createdAt ?? throw new ArgumentNullException(nameof(createdAt));
48+
UpdatedAt = updatedAt ?? throw new ArgumentNullException(nameof(updatedAt));
4749
}
4850

4951
/// <summary>

algoliasearch/Models/Ingestion/Transformation.cs

+3-1
Original file line numberDiff line numberDiff line change
@@ -28,12 +28,14 @@ public Transformation() { }
2828
/// <param name="code">The source code of the transformation. (required).</param>
2929
/// <param name="name">The uniquely identified name of your transformation. (required).</param>
3030
/// <param name="createdAt">Date of creation in RFC 3339 format. (required).</param>
31-
public Transformation(string transformationID, string code, string name, string createdAt)
31+
/// <param name="updatedAt">Date of last update in RFC 3339 format. (required).</param>
32+
public Transformation(string transformationID, string code, string name, string createdAt, string updatedAt)
3233
{
3334
TransformationID = transformationID ?? throw new ArgumentNullException(nameof(transformationID));
3435
Code = code ?? throw new ArgumentNullException(nameof(code));
3536
Name = name ?? throw new ArgumentNullException(nameof(name));
3637
CreatedAt = createdAt ?? throw new ArgumentNullException(nameof(createdAt));
38+
UpdatedAt = updatedAt ?? throw new ArgumentNullException(nameof(updatedAt));
3739
}
3840

3941
/// <summary>

algoliasearch/Models/Ingestion/TransformationTryResponse.cs

+5-5
Original file line numberDiff line numberDiff line change
@@ -24,18 +24,18 @@ public TransformationTryResponse() { }
2424
/// <summary>
2525
/// Initializes a new instance of the TransformationTryResponse class.
2626
/// </summary>
27-
/// <param name="payloads">The array of records returned by the transformation service. (required).</param>
28-
public TransformationTryResponse(List<object> payloads)
27+
/// <param name="payloads">The array of stringified records returned by the transformation service. (required).</param>
28+
public TransformationTryResponse(List<string> payloads)
2929
{
3030
Payloads = payloads ?? throw new ArgumentNullException(nameof(payloads));
3131
}
3232

3333
/// <summary>
34-
/// The array of records returned by the transformation service.
34+
/// The array of stringified records returned by the transformation service.
3535
/// </summary>
36-
/// <value>The array of records returned by the transformation service.</value>
36+
/// <value>The array of stringified records returned by the transformation service.</value>
3737
[JsonPropertyName("payloads")]
38-
public List<object> Payloads { get; set; }
38+
public List<string> Payloads { get; set; }
3939

4040
/// <summary>
4141
/// Gets or Sets Error

0 commit comments

Comments
 (0)