Skip to content

Commit

Permalink
fix(specs): make optional for tasks [skip-bc] (generated)
Browse files Browse the repository at this point in the history
algolia/api-clients-automation#4095

Co-authored-by: algolia-bot <[email protected]>
Co-authored-by: Clément Vannicatte <[email protected]>
  • Loading branch information
algolia-bot and shortcuts committed Nov 12, 2024
1 parent b61b3d3 commit 00593f9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
4 changes: 1 addition & 3 deletions algoliasearch/Models/Ingestion/IngestionTask.cs
Original file line number Diff line number Diff line change
Expand Up @@ -34,15 +34,13 @@ public IngestionTask() { }
/// <param name="sourceID">Universally uniqud identifier (UUID) of a source. (required).</param>
/// <param name="destinationID">Universally unique identifier (UUID) of a destination resource. (required).</param>
/// <param name="enabled">Whether the task is enabled. (required) (default to true).</param>
/// <param name="action">action (required).</param>
/// <param name="createdAt">Date of creation in RFC 3339 format. (required).</param>
public IngestionTask(string taskID, string sourceID, string destinationID, bool enabled, ActionType? action, string createdAt)
public IngestionTask(string taskID, string sourceID, string destinationID, bool enabled, string createdAt)
{
TaskID = taskID ?? throw new ArgumentNullException(nameof(taskID));
SourceID = sourceID ?? throw new ArgumentNullException(nameof(sourceID));
DestinationID = destinationID ?? throw new ArgumentNullException(nameof(destinationID));
Enabled = enabled;
Action = action;
CreatedAt = createdAt ?? throw new ArgumentNullException(nameof(createdAt));
}

Expand Down
4 changes: 1 addition & 3 deletions algoliasearch/Models/Ingestion/TaskV1.cs
Original file line number Diff line number Diff line change
Expand Up @@ -35,16 +35,14 @@ public TaskV1() { }
/// <param name="destinationID">Universally unique identifier (UUID) of a destination resource. (required).</param>
/// <param name="trigger">trigger (required).</param>
/// <param name="enabled">Whether the task is enabled. (required) (default to true).</param>
/// <param name="action">action (required).</param>
/// <param name="createdAt">Date of creation in RFC 3339 format. (required).</param>
public TaskV1(string taskID, string sourceID, string destinationID, Trigger trigger, bool enabled, ActionType? action, string createdAt)
public TaskV1(string taskID, string sourceID, string destinationID, Trigger trigger, bool enabled, string createdAt)
{
TaskID = taskID ?? throw new ArgumentNullException(nameof(taskID));
SourceID = sourceID ?? throw new ArgumentNullException(nameof(sourceID));
DestinationID = destinationID ?? throw new ArgumentNullException(nameof(destinationID));
Trigger = trigger ?? throw new ArgumentNullException(nameof(trigger));
Enabled = enabled;
Action = action;
CreatedAt = createdAt ?? throw new ArgumentNullException(nameof(createdAt));
}

Expand Down

0 comments on commit 00593f9

Please sign in to comment.