Skip to content

Commit 00593f9

Browse files
fix(specs): make optional for tasks [skip-bc] (generated)
algolia/api-clients-automation#4095 Co-authored-by: algolia-bot <[email protected]> Co-authored-by: Clément Vannicatte <[email protected]>
1 parent b61b3d3 commit 00593f9

File tree

2 files changed

+2
-6
lines changed

2 files changed

+2
-6
lines changed

algoliasearch/Models/Ingestion/IngestionTask.cs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,15 +34,13 @@ public IngestionTask() { }
3434
/// <param name="sourceID">Universally uniqud identifier (UUID) of a source. (required).</param>
3535
/// <param name="destinationID">Universally unique identifier (UUID) of a destination resource. (required).</param>
3636
/// <param name="enabled">Whether the task is enabled. (required) (default to true).</param>
37-
/// <param name="action">action (required).</param>
3837
/// <param name="createdAt">Date of creation in RFC 3339 format. (required).</param>
39-
public IngestionTask(string taskID, string sourceID, string destinationID, bool enabled, ActionType? action, string createdAt)
38+
public IngestionTask(string taskID, string sourceID, string destinationID, bool enabled, string createdAt)
4039
{
4140
TaskID = taskID ?? throw new ArgumentNullException(nameof(taskID));
4241
SourceID = sourceID ?? throw new ArgumentNullException(nameof(sourceID));
4342
DestinationID = destinationID ?? throw new ArgumentNullException(nameof(destinationID));
4443
Enabled = enabled;
45-
Action = action;
4644
CreatedAt = createdAt ?? throw new ArgumentNullException(nameof(createdAt));
4745
}
4846

algoliasearch/Models/Ingestion/TaskV1.cs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,16 +35,14 @@ public TaskV1() { }
3535
/// <param name="destinationID">Universally unique identifier (UUID) of a destination resource. (required).</param>
3636
/// <param name="trigger">trigger (required).</param>
3737
/// <param name="enabled">Whether the task is enabled. (required) (default to true).</param>
38-
/// <param name="action">action (required).</param>
3938
/// <param name="createdAt">Date of creation in RFC 3339 format. (required).</param>
40-
public TaskV1(string taskID, string sourceID, string destinationID, Trigger trigger, bool enabled, ActionType? action, string createdAt)
39+
public TaskV1(string taskID, string sourceID, string destinationID, Trigger trigger, bool enabled, string createdAt)
4140
{
4241
TaskID = taskID ?? throw new ArgumentNullException(nameof(taskID));
4342
SourceID = sourceID ?? throw new ArgumentNullException(nameof(sourceID));
4443
DestinationID = destinationID ?? throw new ArgumentNullException(nameof(destinationID));
4544
Trigger = trigger ?? throw new ArgumentNullException(nameof(trigger));
4645
Enabled = enabled;
47-
Action = action;
4846
CreatedAt = createdAt ?? throw new ArgumentNullException(nameof(createdAt));
4947
}
5048

0 commit comments

Comments
 (0)