diff --git a/algoliasearch/.openapi-generator-ignore b/algoliasearch/.openapi-generator-ignore
deleted file mode 100644
index 7484ee590..000000000
--- a/algoliasearch/.openapi-generator-ignore
+++ /dev/null
@@ -1,23 +0,0 @@
-# OpenAPI Generator Ignore
-# Generated by openapi-generator https://github.com/openapitools/openapi-generator
-
-# Use this file to prevent files from being overwritten by the generator.
-# The patterns follow closely to .gitignore or .dockerignore.
-
-# As an example, the C# client generator defines ApiClient.cs.
-# You can make changes and tell OpenAPI Generator to ignore just this file by uncommenting the following line:
-#ApiClient.cs
-
-# You can match any string of characters against a directory, file or extension with a single asterisk (*):
-#foo/*/qux
-# The above matches foo/bar/qux and foo/baz/qux, but not foo/bar/baz/qux
-
-# You can recursively match patterns against a directory, file or extension with a double asterisk (**):
-#foo/**/qux
-# This matches foo/bar/qux, foo/baz/qux, and foo/bar/baz/qux
-
-# You can also negate patterns with an exclamation (!).
-# For example, you can ignore all files in a docs folder with the file extension .md:
-#docs/*.md
-# Then explicitly reverse the ignore rule for a single file:
-#!docs/README.md
diff --git a/algoliasearch/.openapi-generator/FILES b/algoliasearch/.openapi-generator/FILES
deleted file mode 100644
index cb02f203c..000000000
--- a/algoliasearch/.openapi-generator/FILES
+++ /dev/null
@@ -1,15 +0,0 @@
-../Algolia.Search.sln
-../global.json
-Algolia.Search.csproj
-Clients/UsageClient.cs
-Clients/UsageConfiguration.cs
-LICENSE
-Models/Usage/ErrorBase.cs
-Models/Usage/GetUsage200Response.cs
-Models/Usage/GetUsage200ResponseStatisticsInner.cs
-Models/Usage/GetUsage400Response.cs
-Models/Usage/GetUsage400ResponseError.cs
-Models/Usage/GetUsage400ResponseErrorErrorsInner.cs
-Models/Usage/Granularity.cs
-Models/Usage/Statistic.cs
-Models/Usage/StatisticValue.cs
diff --git a/algoliasearch/.openapi-generator/VERSION b/algoliasearch/.openapi-generator/VERSION
deleted file mode 100644
index 1985849fb..000000000
--- a/algoliasearch/.openapi-generator/VERSION
+++ /dev/null
@@ -1 +0,0 @@
-7.7.0
diff --git a/algoliasearch/Models/Ingestion/ScheduleDateUtilsInput.cs b/algoliasearch/Models/Ingestion/DockerStreamsInput.cs
similarity index 52%
rename from algoliasearch/Models/Ingestion/ScheduleDateUtilsInput.cs
rename to algoliasearch/Models/Ingestion/DockerStreamsInput.cs
index d6a8148b0..cf8714496 100644
--- a/algoliasearch/Models/Ingestion/ScheduleDateUtilsInput.cs
+++ b/algoliasearch/Models/Ingestion/DockerStreamsInput.cs
@@ -12,36 +12,29 @@
namespace Algolia.Search.Models.Ingestion;
///
-/// Input for scheduled tasks whose source is of type `bigquery` and for which extracted data spans a fixed number of days.
+/// DockerStreamsInput
///
-public partial class ScheduleDateUtilsInput
+public partial class DockerStreamsInput
{
///
- /// Initializes a new instance of the ScheduleDateUtilsInput class.
+ /// Initializes a new instance of the DockerStreamsInput class.
///
[JsonConstructor]
- public ScheduleDateUtilsInput() { }
+ public DockerStreamsInput() { }
///
- /// Initializes a new instance of the ScheduleDateUtilsInput class.
+ /// Initializes a new instance of the DockerStreamsInput class.
///
- /// Number of days in the past until the current day for which to extract Big Query data. (required).
- public ScheduleDateUtilsInput(int timeframe)
+ /// streams (required).
+ public DockerStreamsInput(object streams)
{
- Timeframe = timeframe;
+ Streams = streams ?? throw new ArgumentNullException(nameof(streams));
}
///
- /// Number of days in the past until the current day for which to extract Big Query data.
+ /// Gets or Sets Streams
///
- /// Number of days in the past until the current day for which to extract Big Query data.
- [JsonPropertyName("timeframe")]
- public int Timeframe { get; set; }
-
- ///
- /// Gets or Sets Mapping
- ///
- [JsonPropertyName("mapping")]
- public MappingInput Mapping { get; set; }
+ [JsonPropertyName("streams")]
+ public object Streams { get; set; }
///
/// Returns the string presentation of the object
@@ -50,9 +43,8 @@ public ScheduleDateUtilsInput(int timeframe)
public override string ToString()
{
StringBuilder sb = new StringBuilder();
- sb.Append("class ScheduleDateUtilsInput {\n");
- sb.Append(" Timeframe: ").Append(Timeframe).Append("\n");
- sb.Append(" Mapping: ").Append(Mapping).Append("\n");
+ sb.Append("class DockerStreamsInput {\n");
+ sb.Append(" Streams: ").Append(Streams).Append("\n");
sb.Append("}\n");
return sb.ToString();
}
@@ -73,14 +65,13 @@ public virtual string ToJson()
/// Boolean
public override bool Equals(object obj)
{
- if (obj is not ScheduleDateUtilsInput input)
+ if (obj is not DockerStreamsInput input)
{
return false;
}
return
- (Timeframe == input.Timeframe || Timeframe.Equals(input.Timeframe)) &&
- (Mapping == input.Mapping || (Mapping != null && Mapping.Equals(input.Mapping)));
+ (Streams == input.Streams || (Streams != null && Streams.Equals(input.Streams)));
}
///
@@ -92,10 +83,9 @@ public override int GetHashCode()
unchecked // Overflow is fine, just wrap
{
int hashCode = 41;
- hashCode = (hashCode * 59) + Timeframe.GetHashCode();
- if (Mapping != null)
+ if (Streams != null)
{
- hashCode = (hashCode * 59) + Mapping.GetHashCode();
+ hashCode = (hashCode * 59) + Streams.GetHashCode();
}
return hashCode;
}
diff --git a/algoliasearch/Models/Ingestion/OnDemandDateUtilsInput.cs b/algoliasearch/Models/Ingestion/OnDemandDateUtilsInput.cs
deleted file mode 100644
index c67ed9561..000000000
--- a/algoliasearch/Models/Ingestion/OnDemandDateUtilsInput.cs
+++ /dev/null
@@ -1,123 +0,0 @@
-//
-// Code generated by OpenAPI Generator (https://openapi-generator.tech), manual changes will be lost - read more on https://github.com/algolia/api-clients-automation. DO NOT EDIT.
-//
-using System;
-using System.Text;
-using System.Linq;
-using System.Text.Json.Serialization;
-using System.Collections.Generic;
-using Algolia.Search.Serializer;
-using System.Text.Json;
-
-namespace Algolia.Search.Models.Ingestion;
-
-///
-/// Input for a manually-triggered task whose source is of type `bigquery` and for which extracted data spans a given time range.
-///
-public partial class OnDemandDateUtilsInput
-{
- ///
- /// Initializes a new instance of the OnDemandDateUtilsInput class.
- ///
- [JsonConstructor]
- public OnDemandDateUtilsInput() { }
- ///
- /// Initializes a new instance of the OnDemandDateUtilsInput class.
- ///
- /// Earliest date in RFC 3339 format of the extracted data from Big Query. (required).
- /// Latest date in RFC 3339 format of the extracted data from Big Query. (required).
- public OnDemandDateUtilsInput(string startDate, string endDate)
- {
- StartDate = startDate ?? throw new ArgumentNullException(nameof(startDate));
- EndDate = endDate ?? throw new ArgumentNullException(nameof(endDate));
- }
-
- ///
- /// Earliest date in RFC 3339 format of the extracted data from Big Query.
- ///
- /// Earliest date in RFC 3339 format of the extracted data from Big Query.
- [JsonPropertyName("startDate")]
- public string StartDate { get; set; }
-
- ///
- /// Latest date in RFC 3339 format of the extracted data from Big Query.
- ///
- /// Latest date in RFC 3339 format of the extracted data from Big Query.
- [JsonPropertyName("endDate")]
- public string EndDate { get; set; }
-
- ///
- /// Gets or Sets Mapping
- ///
- [JsonPropertyName("mapping")]
- public MappingInput Mapping { get; set; }
-
- ///
- /// Returns the string presentation of the object
- ///
- /// String presentation of the object
- public override string ToString()
- {
- StringBuilder sb = new StringBuilder();
- sb.Append("class OnDemandDateUtilsInput {\n");
- sb.Append(" StartDate: ").Append(StartDate).Append("\n");
- sb.Append(" EndDate: ").Append(EndDate).Append("\n");
- sb.Append(" Mapping: ").Append(Mapping).Append("\n");
- sb.Append("}\n");
- return sb.ToString();
- }
-
- ///
- /// Returns the JSON string presentation of the object
- ///
- /// JSON string presentation of the object
- public virtual string ToJson()
- {
- return JsonSerializer.Serialize(this, JsonConfig.Options);
- }
-
- ///
- /// Returns true if objects are equal
- ///
- /// Object to be compared
- /// Boolean
- public override bool Equals(object obj)
- {
- if (obj is not OnDemandDateUtilsInput input)
- {
- return false;
- }
-
- return
- (StartDate == input.StartDate || (StartDate != null && StartDate.Equals(input.StartDate))) &&
- (EndDate == input.EndDate || (EndDate != null && EndDate.Equals(input.EndDate))) &&
- (Mapping == input.Mapping || (Mapping != null && Mapping.Equals(input.Mapping)));
- }
-
- ///
- /// Gets the hash code
- ///
- /// Hash code
- public override int GetHashCode()
- {
- unchecked // Overflow is fine, just wrap
- {
- int hashCode = 41;
- if (StartDate != null)
- {
- hashCode = (hashCode * 59) + StartDate.GetHashCode();
- }
- if (EndDate != null)
- {
- hashCode = (hashCode * 59) + EndDate.GetHashCode();
- }
- if (Mapping != null)
- {
- hashCode = (hashCode * 59) + Mapping.GetHashCode();
- }
- return hashCode;
- }
- }
-
-}
-
diff --git a/algoliasearch/Models/Ingestion/StreamingUtilsInput.cs b/algoliasearch/Models/Ingestion/StreamingInput.cs
similarity index 86%
rename from algoliasearch/Models/Ingestion/StreamingUtilsInput.cs
rename to algoliasearch/Models/Ingestion/StreamingInput.cs
index c9c6e5a13..506e5a3c4 100644
--- a/algoliasearch/Models/Ingestion/StreamingUtilsInput.cs
+++ b/algoliasearch/Models/Ingestion/StreamingInput.cs
@@ -14,18 +14,18 @@ namespace Algolia.Search.Models.Ingestion;
///
/// Input for a `streaming` task whose source is of type `ga4BigqueryExport` and for which extracted data is continuously streamed.
///
-public partial class StreamingUtilsInput
+public partial class StreamingInput
{
///
- /// Initializes a new instance of the StreamingUtilsInput class.
+ /// Initializes a new instance of the StreamingInput class.
///
[JsonConstructor]
- public StreamingUtilsInput() { }
+ public StreamingInput() { }
///
- /// Initializes a new instance of the StreamingUtilsInput class.
+ /// Initializes a new instance of the StreamingInput class.
///
/// mapping (required).
- public StreamingUtilsInput(MappingInput mapping)
+ public StreamingInput(MappingInput mapping)
{
Mapping = mapping ?? throw new ArgumentNullException(nameof(mapping));
}
@@ -43,7 +43,7 @@ public StreamingUtilsInput(MappingInput mapping)
public override string ToString()
{
StringBuilder sb = new StringBuilder();
- sb.Append("class StreamingUtilsInput {\n");
+ sb.Append("class StreamingInput {\n");
sb.Append(" Mapping: ").Append(Mapping).Append("\n");
sb.Append("}\n");
return sb.ToString();
@@ -65,7 +65,7 @@ public virtual string ToJson()
/// Boolean
public override bool Equals(object obj)
{
- if (obj is not StreamingUtilsInput input)
+ if (obj is not StreamingInput input)
{
return false;
}
diff --git a/algoliasearch/Models/Ingestion/TaskInput.cs b/algoliasearch/Models/Ingestion/TaskInput.cs
index 58a2e0851..dcb100bda 100644
--- a/algoliasearch/Models/Ingestion/TaskInput.cs
+++ b/algoliasearch/Models/Ingestion/TaskInput.cs
@@ -22,30 +22,20 @@ public partial class TaskInput : AbstractSchema
{
///
/// Initializes a new instance of the TaskInput class
- /// with a OnDemandDateUtilsInput
+ /// with a StreamingInput
///
- /// An instance of OnDemandDateUtilsInput.
- public TaskInput(OnDemandDateUtilsInput actualInstance)
+ /// An instance of StreamingInput.
+ public TaskInput(StreamingInput actualInstance)
{
ActualInstance = actualInstance ?? throw new ArgumentException("Invalid instance found. Must not be null.");
}
///
/// Initializes a new instance of the TaskInput class
- /// with a ScheduleDateUtilsInput
+ /// with a DockerStreamsInput
///
- /// An instance of ScheduleDateUtilsInput.
- public TaskInput(ScheduleDateUtilsInput actualInstance)
- {
- ActualInstance = actualInstance ?? throw new ArgumentException("Invalid instance found. Must not be null.");
- }
-
- ///
- /// Initializes a new instance of the TaskInput class
- /// with a StreamingUtilsInput
- ///
- /// An instance of StreamingUtilsInput.
- public TaskInput(StreamingUtilsInput actualInstance)
+ /// An instance of DockerStreamsInput.
+ public TaskInput(DockerStreamsInput actualInstance)
{
ActualInstance = actualInstance ?? throw new ArgumentException("Invalid instance found. Must not be null.");
}
@@ -67,33 +57,23 @@ public TaskInput(ShopifyInput actualInstance)
public sealed override object ActualInstance { get; set; }
///
- /// Get the actual instance of `OnDemandDateUtilsInput`. If the actual instance is not `OnDemandDateUtilsInput`,
+ /// Get the actual instance of `StreamingInput`. If the actual instance is not `StreamingInput`,
/// the InvalidClassException will be thrown
///
- /// An instance of OnDemandDateUtilsInput
- public OnDemandDateUtilsInput AsOnDemandDateUtilsInput()
+ /// An instance of StreamingInput
+ public StreamingInput AsStreamingInput()
{
- return (OnDemandDateUtilsInput)ActualInstance;
+ return (StreamingInput)ActualInstance;
}
///
- /// Get the actual instance of `ScheduleDateUtilsInput`. If the actual instance is not `ScheduleDateUtilsInput`,
+ /// Get the actual instance of `DockerStreamsInput`. If the actual instance is not `DockerStreamsInput`,
/// the InvalidClassException will be thrown
///
- /// An instance of ScheduleDateUtilsInput
- public ScheduleDateUtilsInput AsScheduleDateUtilsInput()
+ /// An instance of DockerStreamsInput
+ public DockerStreamsInput AsDockerStreamsInput()
{
- return (ScheduleDateUtilsInput)ActualInstance;
- }
-
- ///
- /// Get the actual instance of `StreamingUtilsInput`. If the actual instance is not `StreamingUtilsInput`,
- /// the InvalidClassException will be thrown
- ///
- /// An instance of StreamingUtilsInput
- public StreamingUtilsInput AsStreamingUtilsInput()
- {
- return (StreamingUtilsInput)ActualInstance;
+ return (DockerStreamsInput)ActualInstance;
}
///
@@ -108,30 +88,21 @@ public ShopifyInput AsShopifyInput()
///
- /// Check if the actual instance is of `OnDemandDateUtilsInput` type.
+ /// Check if the actual instance is of `StreamingInput` type.
///
/// Whether or not the instance is the type
- public bool IsOnDemandDateUtilsInput()
+ public bool IsStreamingInput()
{
- return ActualInstance.GetType() == typeof(OnDemandDateUtilsInput);
+ return ActualInstance.GetType() == typeof(StreamingInput);
}
///
- /// Check if the actual instance is of `ScheduleDateUtilsInput` type.
+ /// Check if the actual instance is of `DockerStreamsInput` type.
///
/// Whether or not the instance is the type
- public bool IsScheduleDateUtilsInput()
+ public bool IsDockerStreamsInput()
{
- return ActualInstance.GetType() == typeof(ScheduleDateUtilsInput);
- }
-
- ///
- /// Check if the actual instance is of `StreamingUtilsInput` type.
- ///
- /// Whether or not the instance is the type
- public bool IsStreamingUtilsInput()
- {
- return ActualInstance.GetType() == typeof(StreamingUtilsInput);
+ return ActualInstance.GetType() == typeof(DockerStreamsInput);
}
///
@@ -231,36 +202,24 @@ public override TaskInput Read(ref Utf8JsonReader reader, Type typeToConvert, Js
{
try
{
- return new TaskInput(jsonDocument.Deserialize(JsonConfig.Options));
- }
- catch (Exception exception)
- {
- // deserialization failed, try the next one
- System.Diagnostics.Debug.WriteLine($"Failed to deserialize into OnDemandDateUtilsInput: {exception}");
- }
- }
- if (root.ValueKind == JsonValueKind.Object)
- {
- try
- {
- return new TaskInput(jsonDocument.Deserialize(JsonConfig.Options));
+ return new TaskInput(jsonDocument.Deserialize(JsonConfig.Options));
}
catch (Exception exception)
{
// deserialization failed, try the next one
- System.Diagnostics.Debug.WriteLine($"Failed to deserialize into ScheduleDateUtilsInput: {exception}");
+ System.Diagnostics.Debug.WriteLine($"Failed to deserialize into StreamingInput: {exception}");
}
}
if (root.ValueKind == JsonValueKind.Object)
{
try
{
- return new TaskInput(jsonDocument.Deserialize(JsonConfig.Options));
+ return new TaskInput(jsonDocument.Deserialize(JsonConfig.Options));
}
catch (Exception exception)
{
// deserialization failed, try the next one
- System.Diagnostics.Debug.WriteLine($"Failed to deserialize into StreamingUtilsInput: {exception}");
+ System.Diagnostics.Debug.WriteLine($"Failed to deserialize into DockerStreamsInput: {exception}");
}
}
if (root.ValueKind == JsonValueKind.Object)
diff --git a/algoliasearch/Models/Ingestion/Transformation.cs b/algoliasearch/Models/Ingestion/Transformation.cs
index 244d5d89b..8442559fb 100644
--- a/algoliasearch/Models/Ingestion/Transformation.cs
+++ b/algoliasearch/Models/Ingestion/Transformation.cs
@@ -27,14 +27,12 @@ public Transformation() { }
/// Universally unique identifier (UUID) of a transformation. (required).
/// The source code of the transformation. (required).
/// The uniquely identified name of your transformation. (required).
- /// A descriptive name for your transformation of what it does. (required).
/// Date of creation in RFC 3339 format. (required).
- public Transformation(string transformationID, string code, string name, string description, string createdAt)
+ public Transformation(string transformationID, string code, string name, string createdAt)
{
TransformationID = transformationID ?? throw new ArgumentNullException(nameof(transformationID));
Code = code ?? throw new ArgumentNullException(nameof(code));
Name = name ?? throw new ArgumentNullException(nameof(name));
- Description = description ?? throw new ArgumentNullException(nameof(description));
CreatedAt = createdAt ?? throw new ArgumentNullException(nameof(createdAt));
}
diff --git a/algoliasearch/Models/Ingestion/TransformationCreate.cs b/algoliasearch/Models/Ingestion/TransformationCreate.cs
index 085a44aa9..3bf650b65 100644
--- a/algoliasearch/Models/Ingestion/TransformationCreate.cs
+++ b/algoliasearch/Models/Ingestion/TransformationCreate.cs
@@ -26,12 +26,10 @@ public TransformationCreate() { }
///
/// The source code of the transformation. (required).
/// The uniquely identified name of your transformation. (required).
- /// A descriptive name for your transformation of what it does. (required).
- public TransformationCreate(string code, string name, string description)
+ public TransformationCreate(string code, string name)
{
Code = code ?? throw new ArgumentNullException(nameof(code));
Name = name ?? throw new ArgumentNullException(nameof(name));
- Description = description ?? throw new ArgumentNullException(nameof(description));
}
///