Skip to content

Commit

Permalink
fix(specs): browse response required properties
Browse files Browse the repository at this point in the history
  • Loading branch information
algolia-bot and millotp committed Jul 11, 2024
1 parent 8b8e85c commit 6435ad9
Show file tree
Hide file tree
Showing 9 changed files with 50 additions and 267 deletions.
23 changes: 0 additions & 23 deletions algoliasearch/.openapi-generator-ignore

This file was deleted.

15 changes: 0 additions & 15 deletions algoliasearch/.openapi-generator/FILES

This file was deleted.

1 change: 0 additions & 1 deletion algoliasearch/.openapi-generator/VERSION

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -12,36 +12,29 @@
namespace Algolia.Search.Models.Ingestion;

/// <summary>
/// Input for scheduled tasks whose source is of type `bigquery` and for which extracted data spans a fixed number of days.
/// DockerStreamsInput
/// </summary>
public partial class ScheduleDateUtilsInput
public partial class DockerStreamsInput
{
/// <summary>
/// Initializes a new instance of the ScheduleDateUtilsInput class.
/// Initializes a new instance of the DockerStreamsInput class.
/// </summary>
[JsonConstructor]
public ScheduleDateUtilsInput() { }
public DockerStreamsInput() { }
/// <summary>
/// Initializes a new instance of the ScheduleDateUtilsInput class.
/// Initializes a new instance of the DockerStreamsInput class.
/// </summary>
/// <param name="timeframe">Number of days in the past until the current day for which to extract Big Query data. (required).</param>
public ScheduleDateUtilsInput(int timeframe)
/// <param name="streams">streams (required).</param>
public DockerStreamsInput(object streams)
{
Timeframe = timeframe;
Streams = streams ?? throw new ArgumentNullException(nameof(streams));
}

/// <summary>
/// Number of days in the past until the current day for which to extract Big Query data.
/// Gets or Sets Streams
/// </summary>
/// <value>Number of days in the past until the current day for which to extract Big Query data.</value>
[JsonPropertyName("timeframe")]
public int Timeframe { get; set; }

/// <summary>
/// Gets or Sets Mapping
/// </summary>
[JsonPropertyName("mapping")]
public MappingInput Mapping { get; set; }
[JsonPropertyName("streams")]
public object Streams { get; set; }

/// <summary>
/// Returns the string presentation of the object
Expand All @@ -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();
}
Expand All @@ -73,14 +65,13 @@ public virtual string ToJson()
/// <returns>Boolean</returns>
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)));
}

/// <summary>
Expand All @@ -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;
}
Expand Down
123 changes: 0 additions & 123 deletions algoliasearch/Models/Ingestion/OnDemandDateUtilsInput.cs

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -14,18 +14,18 @@ namespace Algolia.Search.Models.Ingestion;
/// <summary>
/// Input for a `streaming` task whose source is of type `ga4BigqueryExport` and for which extracted data is continuously streamed.
/// </summary>
public partial class StreamingUtilsInput
public partial class StreamingInput
{
/// <summary>
/// Initializes a new instance of the StreamingUtilsInput class.
/// Initializes a new instance of the StreamingInput class.
/// </summary>
[JsonConstructor]
public StreamingUtilsInput() { }
public StreamingInput() { }
/// <summary>
/// Initializes a new instance of the StreamingUtilsInput class.
/// Initializes a new instance of the StreamingInput class.
/// </summary>
/// <param name="mapping">mapping (required).</param>
public StreamingUtilsInput(MappingInput mapping)
public StreamingInput(MappingInput mapping)
{
Mapping = mapping ?? throw new ArgumentNullException(nameof(mapping));
}
Expand All @@ -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();
Expand All @@ -65,7 +65,7 @@ public virtual string ToJson()
/// <returns>Boolean</returns>
public override bool Equals(object obj)
{
if (obj is not StreamingUtilsInput input)
if (obj is not StreamingInput input)
{
return false;
}
Expand Down
Loading

0 comments on commit 6435ad9

Please sign in to comment.