Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view

This file was deleted.

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@
namespace Replicate.JsonConverters
{
/// <inheritdoc />
public sealed class DeploymentsCreateResponseCurrentReleaseCreatedByTypeJsonConverter : global::System.Text.Json.Serialization.JsonConverter<global::Replicate.DeploymentsCreateResponseCurrentReleaseCreatedByType>
public sealed class SchemasDeploymentResponseCurrentReleaseCreatedByTypeJsonConverter : global::System.Text.Json.Serialization.JsonConverter<global::Replicate.SchemasDeploymentResponseCurrentReleaseCreatedByType>
{
/// <inheritdoc />
public override global::Replicate.DeploymentsCreateResponseCurrentReleaseCreatedByType Read(
public override global::Replicate.SchemasDeploymentResponseCurrentReleaseCreatedByType Read(
ref global::System.Text.Json.Utf8JsonReader reader,
global::System.Type typeToConvert,
global::System.Text.Json.JsonSerializerOptions options)
Expand All @@ -18,15 +18,15 @@ public sealed class DeploymentsCreateResponseCurrentReleaseCreatedByTypeJsonConv
var stringValue = reader.GetString();
if (stringValue != null)
{
return global::Replicate.DeploymentsCreateResponseCurrentReleaseCreatedByTypeExtensions.ToEnum(stringValue) ?? default;
return global::Replicate.SchemasDeploymentResponseCurrentReleaseCreatedByTypeExtensions.ToEnum(stringValue) ?? default;
}

break;
}
case global::System.Text.Json.JsonTokenType.Number:
{
var numValue = reader.GetInt32();
return (global::Replicate.DeploymentsCreateResponseCurrentReleaseCreatedByType)numValue;
return (global::Replicate.SchemasDeploymentResponseCurrentReleaseCreatedByType)numValue;
}
default:
throw new global::System.ArgumentOutOfRangeException(nameof(reader));
Expand All @@ -38,12 +38,12 @@ public sealed class DeploymentsCreateResponseCurrentReleaseCreatedByTypeJsonConv
/// <inheritdoc />
public override void Write(
global::System.Text.Json.Utf8JsonWriter writer,
global::Replicate.DeploymentsCreateResponseCurrentReleaseCreatedByType value,
global::Replicate.SchemasDeploymentResponseCurrentReleaseCreatedByType value,
global::System.Text.Json.JsonSerializerOptions options)
{
writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer));

writer.WriteStringValue(global::Replicate.DeploymentsCreateResponseCurrentReleaseCreatedByTypeExtensions.ToValueString(value));
writer.WriteStringValue(global::Replicate.SchemasDeploymentResponseCurrentReleaseCreatedByTypeExtensions.ToValueString(value));
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@
namespace Replicate.JsonConverters
{
/// <inheritdoc />
public sealed class DeploymentsUpdateResponseCurrentReleaseCreatedByTypeNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter<global::Replicate.DeploymentsUpdateResponseCurrentReleaseCreatedByType?>
public sealed class SchemasDeploymentResponseCurrentReleaseCreatedByTypeNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter<global::Replicate.SchemasDeploymentResponseCurrentReleaseCreatedByType?>
{
/// <inheritdoc />
public override global::Replicate.DeploymentsUpdateResponseCurrentReleaseCreatedByType? Read(
public override global::Replicate.SchemasDeploymentResponseCurrentReleaseCreatedByType? Read(
ref global::System.Text.Json.Utf8JsonReader reader,
global::System.Type typeToConvert,
global::System.Text.Json.JsonSerializerOptions options)
Expand All @@ -18,15 +18,15 @@ public sealed class DeploymentsUpdateResponseCurrentReleaseCreatedByTypeNullable
var stringValue = reader.GetString();
if (stringValue != null)
{
return global::Replicate.DeploymentsUpdateResponseCurrentReleaseCreatedByTypeExtensions.ToEnum(stringValue);
return global::Replicate.SchemasDeploymentResponseCurrentReleaseCreatedByTypeExtensions.ToEnum(stringValue);
}

break;
}
case global::System.Text.Json.JsonTokenType.Number:
{
var numValue = reader.GetInt32();
return (global::Replicate.DeploymentsUpdateResponseCurrentReleaseCreatedByType)numValue;
return (global::Replicate.SchemasDeploymentResponseCurrentReleaseCreatedByType)numValue;
}
default:
throw new global::System.ArgumentOutOfRangeException(nameof(reader));
Expand All @@ -38,7 +38,7 @@ public sealed class DeploymentsUpdateResponseCurrentReleaseCreatedByTypeNullable
/// <inheritdoc />
public override void Write(
global::System.Text.Json.Utf8JsonWriter writer,
global::Replicate.DeploymentsUpdateResponseCurrentReleaseCreatedByType? value,
global::Replicate.SchemasDeploymentResponseCurrentReleaseCreatedByType? value,
global::System.Text.Json.JsonSerializerOptions options)
{
writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer));
Expand All @@ -49,7 +49,7 @@ public override void Write(
}
else
{
writer.WriteStringValue(global::Replicate.DeploymentsUpdateResponseCurrentReleaseCreatedByTypeExtensions.ToValueString(value.Value));
writer.WriteStringValue(global::Replicate.SchemasDeploymentResponseCurrentReleaseCreatedByTypeExtensions.ToValueString(value.Value));
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@
namespace Replicate.JsonConverters
{
/// <inheritdoc />
public sealed class DeploymentsGetResponseCurrentReleaseCreatedByTypeJsonConverter : global::System.Text.Json.Serialization.JsonConverter<global::Replicate.DeploymentsGetResponseCurrentReleaseCreatedByType>
public sealed class SchemasTrainingResponseSourceJsonConverter : global::System.Text.Json.Serialization.JsonConverter<global::Replicate.SchemasTrainingResponseSource>
{
/// <inheritdoc />
public override global::Replicate.DeploymentsGetResponseCurrentReleaseCreatedByType Read(
public override global::Replicate.SchemasTrainingResponseSource Read(
ref global::System.Text.Json.Utf8JsonReader reader,
global::System.Type typeToConvert,
global::System.Text.Json.JsonSerializerOptions options)
Expand All @@ -18,15 +18,15 @@ public sealed class DeploymentsGetResponseCurrentReleaseCreatedByTypeJsonConvert
var stringValue = reader.GetString();
if (stringValue != null)
{
return global::Replicate.DeploymentsGetResponseCurrentReleaseCreatedByTypeExtensions.ToEnum(stringValue) ?? default;
return global::Replicate.SchemasTrainingResponseSourceExtensions.ToEnum(stringValue) ?? default;
}

break;
}
case global::System.Text.Json.JsonTokenType.Number:
{
var numValue = reader.GetInt32();
return (global::Replicate.DeploymentsGetResponseCurrentReleaseCreatedByType)numValue;
return (global::Replicate.SchemasTrainingResponseSource)numValue;
}
default:
throw new global::System.ArgumentOutOfRangeException(nameof(reader));
Expand All @@ -38,12 +38,12 @@ public sealed class DeploymentsGetResponseCurrentReleaseCreatedByTypeJsonConvert
/// <inheritdoc />
public override void Write(
global::System.Text.Json.Utf8JsonWriter writer,
global::Replicate.DeploymentsGetResponseCurrentReleaseCreatedByType value,
global::Replicate.SchemasTrainingResponseSource value,
global::System.Text.Json.JsonSerializerOptions options)
{
writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer));

writer.WriteStringValue(global::Replicate.DeploymentsGetResponseCurrentReleaseCreatedByTypeExtensions.ToValueString(value));
writer.WriteStringValue(global::Replicate.SchemasTrainingResponseSourceExtensions.ToValueString(value));
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@
namespace Replicate.JsonConverters
{
/// <inheritdoc />
public sealed class DeploymentsGetResponseCurrentReleaseCreatedByTypeNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter<global::Replicate.DeploymentsGetResponseCurrentReleaseCreatedByType?>
public sealed class SchemasTrainingResponseSourceNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter<global::Replicate.SchemasTrainingResponseSource?>
{
/// <inheritdoc />
public override global::Replicate.DeploymentsGetResponseCurrentReleaseCreatedByType? Read(
public override global::Replicate.SchemasTrainingResponseSource? Read(
ref global::System.Text.Json.Utf8JsonReader reader,
global::System.Type typeToConvert,
global::System.Text.Json.JsonSerializerOptions options)
Expand All @@ -18,15 +18,15 @@ public sealed class DeploymentsGetResponseCurrentReleaseCreatedByTypeNullableJso
var stringValue = reader.GetString();
if (stringValue != null)
{
return global::Replicate.DeploymentsGetResponseCurrentReleaseCreatedByTypeExtensions.ToEnum(stringValue);
return global::Replicate.SchemasTrainingResponseSourceExtensions.ToEnum(stringValue);
}

break;
}
case global::System.Text.Json.JsonTokenType.Number:
{
var numValue = reader.GetInt32();
return (global::Replicate.DeploymentsGetResponseCurrentReleaseCreatedByType)numValue;
return (global::Replicate.SchemasTrainingResponseSource)numValue;
}
default:
throw new global::System.ArgumentOutOfRangeException(nameof(reader));
Expand All @@ -38,7 +38,7 @@ public sealed class DeploymentsGetResponseCurrentReleaseCreatedByTypeNullableJso
/// <inheritdoc />
public override void Write(
global::System.Text.Json.Utf8JsonWriter writer,
global::Replicate.DeploymentsGetResponseCurrentReleaseCreatedByType? value,
global::Replicate.SchemasTrainingResponseSource? value,
global::System.Text.Json.JsonSerializerOptions options)
{
writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer));
Expand All @@ -49,7 +49,7 @@ public override void Write(
}
else
{
writer.WriteStringValue(global::Replicate.DeploymentsGetResponseCurrentReleaseCreatedByTypeExtensions.ToValueString(value.Value));
writer.WriteStringValue(global::Replicate.SchemasTrainingResponseSourceExtensions.ToValueString(value.Value));
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@
namespace Replicate.JsonConverters
{
/// <inheritdoc />
public sealed class DeploymentsUpdateResponseCurrentReleaseCreatedByTypeJsonConverter : global::System.Text.Json.Serialization.JsonConverter<global::Replicate.DeploymentsUpdateResponseCurrentReleaseCreatedByType>
public sealed class SchemasTrainingResponseStatusJsonConverter : global::System.Text.Json.Serialization.JsonConverter<global::Replicate.SchemasTrainingResponseStatus>
{
/// <inheritdoc />
public override global::Replicate.DeploymentsUpdateResponseCurrentReleaseCreatedByType Read(
public override global::Replicate.SchemasTrainingResponseStatus Read(
ref global::System.Text.Json.Utf8JsonReader reader,
global::System.Type typeToConvert,
global::System.Text.Json.JsonSerializerOptions options)
Expand All @@ -18,15 +18,15 @@ public sealed class DeploymentsUpdateResponseCurrentReleaseCreatedByTypeJsonConv
var stringValue = reader.GetString();
if (stringValue != null)
{
return global::Replicate.DeploymentsUpdateResponseCurrentReleaseCreatedByTypeExtensions.ToEnum(stringValue) ?? default;
return global::Replicate.SchemasTrainingResponseStatusExtensions.ToEnum(stringValue) ?? default;
}

break;
}
case global::System.Text.Json.JsonTokenType.Number:
{
var numValue = reader.GetInt32();
return (global::Replicate.DeploymentsUpdateResponseCurrentReleaseCreatedByType)numValue;
return (global::Replicate.SchemasTrainingResponseStatus)numValue;
}
default:
throw new global::System.ArgumentOutOfRangeException(nameof(reader));
Expand All @@ -38,12 +38,12 @@ public sealed class DeploymentsUpdateResponseCurrentReleaseCreatedByTypeJsonConv
/// <inheritdoc />
public override void Write(
global::System.Text.Json.Utf8JsonWriter writer,
global::Replicate.DeploymentsUpdateResponseCurrentReleaseCreatedByType value,
global::Replicate.SchemasTrainingResponseStatus value,
global::System.Text.Json.JsonSerializerOptions options)
{
writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer));

writer.WriteStringValue(global::Replicate.DeploymentsUpdateResponseCurrentReleaseCreatedByTypeExtensions.ToValueString(value));
writer.WriteStringValue(global::Replicate.SchemasTrainingResponseStatusExtensions.ToValueString(value));
}
}
}
Loading