Skip to content

Commit

Permalink
feat(specs): push source type (generated)
Browse files Browse the repository at this point in the history
algolia/api-clients-automation#3600

Co-authored-by: algolia-bot <accounts+algolia-api-client-bot@algolia.com>
Co-authored-by: Clément Vannicatte <vannicattec@gmail.com>
  • Loading branch information
algolia-bot and shortcuts committed Aug 27, 2024
1 parent 7f3960e commit 8c9f6f1
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 7 deletions.
4 changes: 1 addition & 3 deletions algoliasearch/Models/Ingestion/Source.cs
Original file line number Diff line number Diff line change
Expand Up @@ -33,14 +33,12 @@ public Source() { }
/// <param name="sourceID">Universally uniqud identifier (UUID) of a source. (required).</param>
/// <param name="type">type (required).</param>
/// <param name="name">name (required).</param>
/// <param name="input">input (required).</param>
/// <param name="createdAt">Date of creation in RFC 3339 format. (required).</param>
public Source(string sourceID, SourceType? type, string name, SourceInput input, string createdAt)
public Source(string sourceID, SourceType? type, string name, string createdAt)
{
SourceID = sourceID ?? throw new ArgumentNullException(nameof(sourceID));
Type = type;
Name = name ?? throw new ArgumentNullException(nameof(name));
Input = input ?? throw new ArgumentNullException(nameof(input));
CreatedAt = createdAt ?? throw new ArgumentNullException(nameof(createdAt));
}

Expand Down
4 changes: 1 addition & 3 deletions algoliasearch/Models/Ingestion/SourceCreate.cs
Original file line number Diff line number Diff line change
Expand Up @@ -32,12 +32,10 @@ public SourceCreate() { }
/// </summary>
/// <param name="type">type (required).</param>
/// <param name="name">Descriptive name of the source. (required).</param>
/// <param name="input">input (required).</param>
public SourceCreate(SourceType? type, string name, SourceInput input)
public SourceCreate(SourceType? type, string name)
{
Type = type;
Name = name ?? throw new ArgumentNullException(nameof(name));
Input = input ?? throw new ArgumentNullException(nameof(input));
}

/// <summary>
Expand Down
8 changes: 7 additions & 1 deletion algoliasearch/Models/Ingestion/SourceType.cs
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,12 @@ public enum SourceType
/// Enum Sfcc for value: sfcc
/// </summary>
[JsonPropertyName("sfcc")]
Sfcc = 9
Sfcc = 9,

/// <summary>
/// Enum Push for value: push
/// </summary>
[JsonPropertyName("push")]
Push = 10
}

0 comments on commit 8c9f6f1

Please # to comment.