From ee58a3891a8c0df06f0347ed0e88f47cc59b4717 Mon Sep 17 00:00:00 2001 From: algolia-bot Date: Mon, 13 Jan 2025 16:02:26 +0000 Subject: [PATCH] fix(specs): ingestion expected and received events type [skip-bc] (generated) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit https://github.com/algolia/api-clients-automation/pull/4356 Co-authored-by: algolia-bot Co-authored-by: Clément Vannicatte --- algoliasearch/Models/Ingestion/RunProgress.cs | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/algoliasearch/Models/Ingestion/RunProgress.cs b/algoliasearch/Models/Ingestion/RunProgress.cs index 843c9fb1d..597c9bbc6 100644 --- a/algoliasearch/Models/Ingestion/RunProgress.cs +++ b/algoliasearch/Models/Ingestion/RunProgress.cs @@ -19,21 +19,30 @@ public partial class RunProgress /// /// Initializes a new instance of the RunProgress class. /// - public RunProgress() + [JsonConstructor] + public RunProgress() { } + /// + /// Initializes a new instance of the RunProgress class. + /// + /// expectedNbOfEvents (required). + /// receivedNbOfEvents (required). + public RunProgress(int expectedNbOfEvents, int receivedNbOfEvents) { + ExpectedNbOfEvents = expectedNbOfEvents; + ReceivedNbOfEvents = receivedNbOfEvents; } /// /// Gets or Sets ExpectedNbOfEvents /// [JsonPropertyName("expectedNbOfEvents")] - public int? ExpectedNbOfEvents { get; set; } + public int ExpectedNbOfEvents { get; set; } /// /// Gets or Sets ReceivedNbOfEvents /// [JsonPropertyName("receivedNbOfEvents")] - public int? ReceivedNbOfEvents { get; set; } + public int ReceivedNbOfEvents { get; set; } /// /// Returns the string presentation of the object