From d58f515da5b7eb788b18a7bb9c0d5b94c8698912 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" Date: Sat, 29 Aug 2026 06:56:58 +0000 Subject: [PATCH] feat: Updated OpenAPI spec --- .../Generated/Replicate.IReplicateClient.g.cs | 2 +- ...JsonConverters.AccountGetResponseType.g.cs | 2 +- ...erters.AccountGetResponseTypeNullable.g.cs | 2 +- ...verters.ModelsCreateRequestVisibility.g.cs | 2 +- ...ModelsCreateRequestVisibilityNullable.g.cs | 2 +- ...icate.JsonConverters.ModelsListSortBy.g.cs | 2 +- ...onConverters.ModelsListSortByNullable.g.cs | 2 +- ...sonConverters.ModelsListSortDirection.g.cs | 2 +- ...rters.ModelsListSortDirectionNullable.g.cs | 2 +- ....JsonConverters.PredictionsListSource.g.cs | 2 +- ...verters.PredictionsListSourceNullable.g.cs | 2 +- ...ntResponseCurrentReleaseCreatedByType.g.cs | 2 +- ...seCurrentReleaseCreatedByTypeNullable.g.cs | 2 +- ...erters.SchemasModelResponseVisibility.g.cs | 2 +- ...chemasModelResponseVisibilityNullable.g.cs | 2 +- ...dictionRequestWebhookEventsFilterItem.g.cs | 2 +- ...equestWebhookEventsFilterItemNullable.g.cs | 2 +- ...rters.SchemasPredictionResponseSource.g.cs | 2 +- ...hemasPredictionResponseSourceNullable.g.cs | 2 +- ...rters.SchemasPredictionResponseStatus.g.cs | 2 +- ...hemasPredictionResponseStatusNullable.g.cs | 2 +- ...ters.SchemasPredictionResponseVersion.g.cs | 2 +- ...emasPredictionResponseVersionNullable.g.cs | 2 +- ...rainingRequestWebhookEventsFilterItem.g.cs | 2 +- ...equestWebhookEventsFilterItemNullable.g.cs | 2 +- ...verters.SchemasTrainingResponseSource.g.cs | 2 +- ...SchemasTrainingResponseSourceNullable.g.cs | 2 +- ...verters.SchemasTrainingResponseStatus.g.cs | 2 +- ...SchemasTrainingResponseStatusNullable.g.cs | 2 +- ...dictionRequestWebhookEventsFilterItem.g.cs | 2 +- ...equestWebhookEventsFilterItemNullable.g.cs | 2 +- ...eplicate.JsonConverters.UnixTimestamp.g.cs | 2 +- .../Replicate.JsonSerializerContext.g.cs | 3 +- .../Replicate.JsonSerializerContextTypes.g.cs | 217 +++++++++--------- ...licate.Models.AccountGetResponse.Json.g.cs | 49 ++++ .../Replicate.Models.AccountGetResponse.g.cs | 2 +- ...plicate.Models.AccountGetResponseType.g.cs | 4 +- ....Models.DeploymentsCreateRequest.Json.g.cs | 49 ++++ ...icate.Models.DeploymentsCreateRequest.g.cs | 2 +- ...e.Models.DeploymentsListResponse.Json.g.cs | 49 ++++ ...licate.Models.DeploymentsListResponse.g.cs | 2 +- ....Models.DeploymentsUpdateRequest.Json.g.cs | 49 ++++ ...icate.Models.DeploymentsUpdateRequest.g.cs | 2 +- ...licate.Models.FilesCreateRequest.Json.g.cs | 49 ++++ .../Replicate.Models.FilesCreateRequest.g.cs | 2 +- ...odels.FilesCreateRequestMetadata.Json.g.cs | 49 ++++ ...icate.Models.FilesCreateResponse.Json.g.cs | 49 ++++ .../Replicate.Models.FilesCreateResponse.g.cs | 2 +- ...icate.Models.FilesDeleteResponse.Json.g.cs | 49 ++++ .../Replicate.Models.FilesDeleteResponse.g.cs | 2 +- ...ate.Models.FilesDownloadResponse.Json.g.cs | 49 ++++ ...eplicate.Models.FilesDownloadResponse.g.cs | 2 +- ...eplicate.Models.FilesGetResponse.Json.g.cs | 49 ++++ .../Replicate.Models.FilesGetResponse.g.cs | 2 +- ...plicate.Models.FilesListResponse.Json.g.cs | 49 ++++ .../Replicate.Models.FilesListResponse.g.cs | 8 +- ....Models.HardwareListResponseItem.Json.g.cs | 49 ++++ ...icate.Models.HardwareListResponseItem.g.cs | 2 +- ...icate.Models.ModelsCreateRequest.Json.g.cs | 49 ++++ .../Replicate.Models.ModelsCreateRequest.g.cs | 2 +- ....Models.ModelsCreateRequestVisibility.g.cs | 4 +- .../Replicate.Models.ModelsListSortBy.g.cs | 4 +- ...licate.Models.ModelsListSortDirection.g.cs | 4 +- ...icate.Models.ModelsUpdateRequest.Json.g.cs | 49 ++++ .../Replicate.Models.ModelsUpdateRequest.g.cs | 2 +- ...e.Models.PredictionsListResponse.Json.g.cs | 49 ++++ ...licate.Models.PredictionsListResponse.g.cs | 8 +- ...eplicate.Models.PredictionsListSource.g.cs | 4 +- ...Models.SchemasCollectionListItem.Json.g.cs | 49 ++++ ...cate.Models.SchemasCollectionListItem.g.cs | 2 +- ...Models.SchemasCollectionResponse.Json.g.cs | 49 ++++ ...cate.Models.SchemasCollectionResponse.g.cs | 2 +- ...Models.SchemasDeploymentResponse.Json.g.cs | 49 ++++ ...cate.Models.SchemasDeploymentResponse.g.cs | 4 +- ...DeploymentResponseCurrentRelease.Json.g.cs | 49 ++++ ...hemasDeploymentResponseCurrentRelease.g.cs | 6 +- ...ponseCurrentReleaseConfiguration.Json.g.cs | 49 ++++ ...ntResponseCurrentReleaseConfiguration.g.cs | 2 +- ...tResponseCurrentReleaseCreatedBy.Json.g.cs | 49 ++++ ...oymentResponseCurrentReleaseCreatedBy.g.cs | 2 +- ...ntResponseCurrentReleaseCreatedByType.g.cs | 4 +- ...icate.Models.SchemasFileResponse.Json.g.cs | 49 ++++ ...els.SchemasFileResponseChecksums.Json.g.cs | 49 ++++ ...dels.SchemasFileResponseMetadata.Json.g.cs | 49 ++++ ...e.Models.SchemasFileResponseUrls.Json.g.cs | 49 ++++ ...cate.Models.SchemasModelResponse.Json.g.cs | 49 ++++ ...Replicate.Models.SchemasModelResponse.g.cs | 2 +- ...hemasModelResponseDefaultExample.Json.g.cs | 49 ++++ ...chemasModelResponseLatestVersion.Json.g.cs | 49 ++++ ...Models.SchemasModelResponseVisibility.g.cs | 4 +- ...icate.Models.SchemasPageResponse.Json.g.cs | 49 ++++ .../Replicate.Models.SchemasPageResponse.g.cs | 2 +- ...hemasPaginatedCollectionResponse.Json.g.cs | 49 ++++ ...ls.SchemasPaginatedCollectionResponse.g.cs | 2 +- ...ls.SchemasPaginatedModelResponse.Json.g.cs | 49 ++++ ....Models.SchemasPaginatedModelResponse.g.cs | 2 +- ...hemasPaginatedPredictionResponse.Json.g.cs | 49 ++++ ...ls.SchemasPaginatedPredictionResponse.g.cs | 2 +- ....SchemasPaginatedVersionResponse.Json.g.cs | 49 ++++ ...odels.SchemasPaginatedVersionResponse.g.cs | 2 +- ....Models.SchemasPredictionRequest.Json.g.cs | 49 ++++ ...icate.Models.SchemasPredictionRequest.g.cs | 2 +- ...ls.SchemasPredictionRequestInput.Json.g.cs | 49 ++++ ...dictionRequestWebhookEventsFilterItem.g.cs | 10 +- ...Models.SchemasPredictionResponse.Json.g.cs | 49 ++++ ...cate.Models.SchemasPredictionResponse.g.cs | 19 +- ...s.SchemasPredictionResponseInput.Json.g.cs | 49 ++++ ...SchemasPredictionResponseMetrics.Json.g.cs | 49 ++++ ....SchemasPredictionResponseOutput.Json.g.cs | 49 ++++ ...odels.SchemasPredictionResponseSource.g.cs | 4 +- ...odels.SchemasPredictionResponseStatus.g.cs | 12 +- ...ls.SchemasPredictionResponseUrls.Json.g.cs | 49 ++++ ...dels.SchemasPredictionResponseVersion.g.cs | 2 +- ....SchemasSearchCollectionResponse.Json.g.cs | 49 ++++ ...odels.SchemasSearchCollectionResponse.g.cs | 2 +- ...hemasSearchModelMetadataResponse.Json.g.cs | 49 ++++ ...ls.SchemasSearchModelMetadataResponse.g.cs | 2 +- ...ate.Models.SchemasSearchResponse.Json.g.cs | 49 ++++ ...eplicate.Models.SchemasSearchResponse.g.cs | 2 +- ...odels.SchemasSearchResponseModel.Json.g.cs | 49 ++++ ...ate.Models.SchemasSearchResponseModel.g.cs | 6 +- ...te.Models.SchemasTrainingRequest.Json.g.cs | 49 ++++ ...plicate.Models.SchemasTrainingRequest.g.cs | 2 +- ...dels.SchemasTrainingRequestInput.Json.g.cs | 49 ++++ ...rainingRequestWebhookEventsFilterItem.g.cs | 10 +- ...e.Models.SchemasTrainingResponse.Json.g.cs | 49 ++++ ...licate.Models.SchemasTrainingResponse.g.cs | 2 +- ...els.SchemasTrainingResponseInput.Json.g.cs | 49 ++++ ...s.SchemasTrainingResponseMetrics.Json.g.cs | 49 ++++ ...ls.SchemasTrainingResponseOutput.Json.g.cs | 49 ++++ ....Models.SchemasTrainingResponseSource.g.cs | 4 +- ....Models.SchemasTrainingResponseStatus.g.cs | 12 +- ...dels.SchemasTrainingResponseUrls.Json.g.cs | 49 ++++ ....SchemasVersionPredictionRequest.Json.g.cs | 49 ++++ ...odels.SchemasVersionPredictionRequest.g.cs | 2 +- ...masVersionPredictionRequestInput.Json.g.cs | 49 ++++ ...dictionRequestWebhookEventsFilterItem.g.cs | 10 +- ...te.Models.SchemasVersionResponse.Json.g.cs | 49 ++++ ...plicate.Models.SchemasVersionResponse.g.cs | 2 +- ...emasVersionResponseOpenapiSchema.Json.g.cs | 49 ++++ .../Replicate.Models.SearchResponse.Json.g.cs | 49 ++++ .../Replicate.Models.SearchResponse.g.cs | 2 +- ...Replicate.Models.SearchResponse2.Json.g.cs | 49 ++++ .../Replicate.Models.SearchResponse2.g.cs | 2 +- ...ate.Models.TrainingsListResponse.Json.g.cs | 49 ++++ ...eplicate.Models.TrainingsListResponse.g.cs | 4 +- ...WebhooksDefaultSecretGetResponse.Json.g.cs | 49 ++++ ...dels.WebhooksDefaultSecretGetResponse.g.cs | 2 +- .../Generated/Replicate.OneOf.2.Json.g.cs | 49 ++++ .../Generated/Replicate.OneOf.2.g.cs | 64 +++--- .../Generated/Replicate.PathBuilder.g.cs | 21 +- .../Generated/Replicate.Polyfills.g.cs | 8 +- .../Replicate.ReplicateClient.AccountGet.g.cs | 2 +- ...licate.ReplicateClient.CollectionsGet.g.cs | 2 +- ...icate.ReplicateClient.CollectionsList.g.cs | 2 +- ...e.ReplicateClient.Constructors.Bearer.g.cs | 2 +- ...ate.ReplicateClient.DeploymentsCreate.g.cs | 2 +- ...ate.ReplicateClient.DeploymentsDelete.g.cs | 2 +- ...licate.ReplicateClient.DeploymentsGet.g.cs | 2 +- ...icate.ReplicateClient.DeploymentsList.g.cs | 2 +- ...teClient.DeploymentsPredictionsCreate.g.cs | 2 +- ...ate.ReplicateClient.DeploymentsUpdate.g.cs | 2 +- ...Replicate.ReplicateClient.FilesCreate.g.cs | 6 +- ...Replicate.ReplicateClient.FilesDelete.g.cs | 2 +- ...plicate.ReplicateClient.FilesDownload.g.cs | 4 +- .../Replicate.ReplicateClient.FilesGet.g.cs | 2 +- .../Replicate.ReplicateClient.FilesList.g.cs | 2 +- ...eplicate.ReplicateClient.HardwareList.g.cs | 2 +- ...eplicate.ReplicateClient.ModelsCreate.g.cs | 2 +- ...eplicate.ReplicateClient.ModelsDelete.g.cs | 2 +- ...te.ReplicateClient.ModelsExamplesList.g.cs | 2 +- .../Replicate.ReplicateClient.ModelsGet.g.cs | 2 +- .../Replicate.ReplicateClient.ModelsList.g.cs | 2 +- ...plicateClient.ModelsPredictionsCreate.g.cs | 2 +- ...icate.ReplicateClient.ModelsReadmeGet.g.cs | 4 +- ...eplicate.ReplicateClient.ModelsUpdate.g.cs | 2 +- ....ReplicateClient.ModelsVersionsDelete.g.cs | 2 +- ...ate.ReplicateClient.ModelsVersionsGet.g.cs | 2 +- ...te.ReplicateClient.ModelsVersionsList.g.cs | 2 +- ...ate.ReplicateClient.PredictionsCancel.g.cs | 2 +- ...ate.ReplicateClient.PredictionsCreate.g.cs | 2 +- ...licate.ReplicateClient.PredictionsGet.g.cs | 2 +- ...icate.ReplicateClient.PredictionsList.g.cs | 2 +- ...icate.ReplicateClient.TrainingsCancel.g.cs | 2 +- ...icate.ReplicateClient.TrainingsCreate.g.cs | 2 +- ...eplicate.ReplicateClient.TrainingsGet.g.cs | 2 +- ...plicate.ReplicateClient.TrainingsList.g.cs | 2 +- ...licateClient.WebhooksDefaultSecretGet.g.cs | 2 +- .../Generated/Replicate.ReplicateClient.g.cs | 13 +- 189 files changed, 3288 insertions(+), 335 deletions(-) diff --git a/src/libs/Replicate/Generated/Replicate.IReplicateClient.g.cs b/src/libs/Replicate/Generated/Replicate.IReplicateClient.g.cs index bd0fbc2..57df4a6 100644 --- a/src/libs/Replicate/Generated/Replicate.IReplicateClient.g.cs +++ b/src/libs/Replicate/Generated/Replicate.IReplicateClient.g.cs @@ -40,7 +40,7 @@ public partial interface IReplicateClient : global::System.IDisposable /// - /// + /// /// global::System.Text.Json.Serialization.JsonSerializerContext JsonSerializerContext { get; set; } diff --git a/src/libs/Replicate/Generated/Replicate.JsonConverters.AccountGetResponseType.g.cs b/src/libs/Replicate/Generated/Replicate.JsonConverters.AccountGetResponseType.g.cs index e5fb803..fad5d95 100644 --- a/src/libs/Replicate/Generated/Replicate.JsonConverters.AccountGetResponseType.g.cs +++ b/src/libs/Replicate/Generated/Replicate.JsonConverters.AccountGetResponseType.g.cs @@ -20,7 +20,7 @@ public sealed class AccountGetResponseTypeJsonConverter : global::System.Text.Js { return global::Replicate.AccountGetResponseTypeExtensions.ToEnum(stringValue) ?? default; } - + break; } case global::System.Text.Json.JsonTokenType.Number: diff --git a/src/libs/Replicate/Generated/Replicate.JsonConverters.AccountGetResponseTypeNullable.g.cs b/src/libs/Replicate/Generated/Replicate.JsonConverters.AccountGetResponseTypeNullable.g.cs index 6dea9d8..8d82358 100644 --- a/src/libs/Replicate/Generated/Replicate.JsonConverters.AccountGetResponseTypeNullable.g.cs +++ b/src/libs/Replicate/Generated/Replicate.JsonConverters.AccountGetResponseTypeNullable.g.cs @@ -20,7 +20,7 @@ public sealed class AccountGetResponseTypeNullableJsonConverter : global::System { return global::Replicate.AccountGetResponseTypeExtensions.ToEnum(stringValue); } - + break; } case global::System.Text.Json.JsonTokenType.Number: diff --git a/src/libs/Replicate/Generated/Replicate.JsonConverters.ModelsCreateRequestVisibility.g.cs b/src/libs/Replicate/Generated/Replicate.JsonConverters.ModelsCreateRequestVisibility.g.cs index 1e6a968..803662c 100644 --- a/src/libs/Replicate/Generated/Replicate.JsonConverters.ModelsCreateRequestVisibility.g.cs +++ b/src/libs/Replicate/Generated/Replicate.JsonConverters.ModelsCreateRequestVisibility.g.cs @@ -20,7 +20,7 @@ public sealed class ModelsCreateRequestVisibilityJsonConverter : global::System. { return global::Replicate.ModelsCreateRequestVisibilityExtensions.ToEnum(stringValue) ?? default; } - + break; } case global::System.Text.Json.JsonTokenType.Number: diff --git a/src/libs/Replicate/Generated/Replicate.JsonConverters.ModelsCreateRequestVisibilityNullable.g.cs b/src/libs/Replicate/Generated/Replicate.JsonConverters.ModelsCreateRequestVisibilityNullable.g.cs index f28bf12..02fa437 100644 --- a/src/libs/Replicate/Generated/Replicate.JsonConverters.ModelsCreateRequestVisibilityNullable.g.cs +++ b/src/libs/Replicate/Generated/Replicate.JsonConverters.ModelsCreateRequestVisibilityNullable.g.cs @@ -20,7 +20,7 @@ public sealed class ModelsCreateRequestVisibilityNullableJsonConverter : global: { return global::Replicate.ModelsCreateRequestVisibilityExtensions.ToEnum(stringValue); } - + break; } case global::System.Text.Json.JsonTokenType.Number: diff --git a/src/libs/Replicate/Generated/Replicate.JsonConverters.ModelsListSortBy.g.cs b/src/libs/Replicate/Generated/Replicate.JsonConverters.ModelsListSortBy.g.cs index 8eb455d..4398f5a 100644 --- a/src/libs/Replicate/Generated/Replicate.JsonConverters.ModelsListSortBy.g.cs +++ b/src/libs/Replicate/Generated/Replicate.JsonConverters.ModelsListSortBy.g.cs @@ -20,7 +20,7 @@ public sealed class ModelsListSortByJsonConverter : global::System.Text.Json.Ser { return global::Replicate.ModelsListSortByExtensions.ToEnum(stringValue) ?? default; } - + break; } case global::System.Text.Json.JsonTokenType.Number: diff --git a/src/libs/Replicate/Generated/Replicate.JsonConverters.ModelsListSortByNullable.g.cs b/src/libs/Replicate/Generated/Replicate.JsonConverters.ModelsListSortByNullable.g.cs index 7c51742..874d6af 100644 --- a/src/libs/Replicate/Generated/Replicate.JsonConverters.ModelsListSortByNullable.g.cs +++ b/src/libs/Replicate/Generated/Replicate.JsonConverters.ModelsListSortByNullable.g.cs @@ -20,7 +20,7 @@ public sealed class ModelsListSortByNullableJsonConverter : global::System.Text. { return global::Replicate.ModelsListSortByExtensions.ToEnum(stringValue); } - + break; } case global::System.Text.Json.JsonTokenType.Number: diff --git a/src/libs/Replicate/Generated/Replicate.JsonConverters.ModelsListSortDirection.g.cs b/src/libs/Replicate/Generated/Replicate.JsonConverters.ModelsListSortDirection.g.cs index d95a19b..cd879d1 100644 --- a/src/libs/Replicate/Generated/Replicate.JsonConverters.ModelsListSortDirection.g.cs +++ b/src/libs/Replicate/Generated/Replicate.JsonConverters.ModelsListSortDirection.g.cs @@ -20,7 +20,7 @@ public sealed class ModelsListSortDirectionJsonConverter : global::System.Text.J { return global::Replicate.ModelsListSortDirectionExtensions.ToEnum(stringValue) ?? default; } - + break; } case global::System.Text.Json.JsonTokenType.Number: diff --git a/src/libs/Replicate/Generated/Replicate.JsonConverters.ModelsListSortDirectionNullable.g.cs b/src/libs/Replicate/Generated/Replicate.JsonConverters.ModelsListSortDirectionNullable.g.cs index 81e9949..2c3fda2 100644 --- a/src/libs/Replicate/Generated/Replicate.JsonConverters.ModelsListSortDirectionNullable.g.cs +++ b/src/libs/Replicate/Generated/Replicate.JsonConverters.ModelsListSortDirectionNullable.g.cs @@ -20,7 +20,7 @@ public sealed class ModelsListSortDirectionNullableJsonConverter : global::Syste { return global::Replicate.ModelsListSortDirectionExtensions.ToEnum(stringValue); } - + break; } case global::System.Text.Json.JsonTokenType.Number: diff --git a/src/libs/Replicate/Generated/Replicate.JsonConverters.PredictionsListSource.g.cs b/src/libs/Replicate/Generated/Replicate.JsonConverters.PredictionsListSource.g.cs index b02b01f..8515e60 100644 --- a/src/libs/Replicate/Generated/Replicate.JsonConverters.PredictionsListSource.g.cs +++ b/src/libs/Replicate/Generated/Replicate.JsonConverters.PredictionsListSource.g.cs @@ -20,7 +20,7 @@ public sealed class PredictionsListSourceJsonConverter : global::System.Text.Jso { return global::Replicate.PredictionsListSourceExtensions.ToEnum(stringValue) ?? default; } - + break; } case global::System.Text.Json.JsonTokenType.Number: diff --git a/src/libs/Replicate/Generated/Replicate.JsonConverters.PredictionsListSourceNullable.g.cs b/src/libs/Replicate/Generated/Replicate.JsonConverters.PredictionsListSourceNullable.g.cs index 36b25c1..f5fb533 100644 --- a/src/libs/Replicate/Generated/Replicate.JsonConverters.PredictionsListSourceNullable.g.cs +++ b/src/libs/Replicate/Generated/Replicate.JsonConverters.PredictionsListSourceNullable.g.cs @@ -20,7 +20,7 @@ public sealed class PredictionsListSourceNullableJsonConverter : global::System. { return global::Replicate.PredictionsListSourceExtensions.ToEnum(stringValue); } - + break; } case global::System.Text.Json.JsonTokenType.Number: diff --git a/src/libs/Replicate/Generated/Replicate.JsonConverters.SchemasDeploymentResponseCurrentReleaseCreatedByType.g.cs b/src/libs/Replicate/Generated/Replicate.JsonConverters.SchemasDeploymentResponseCurrentReleaseCreatedByType.g.cs index 6a71826..80f5b75 100644 --- a/src/libs/Replicate/Generated/Replicate.JsonConverters.SchemasDeploymentResponseCurrentReleaseCreatedByType.g.cs +++ b/src/libs/Replicate/Generated/Replicate.JsonConverters.SchemasDeploymentResponseCurrentReleaseCreatedByType.g.cs @@ -20,7 +20,7 @@ public sealed class SchemasDeploymentResponseCurrentReleaseCreatedByTypeJsonConv { return global::Replicate.SchemasDeploymentResponseCurrentReleaseCreatedByTypeExtensions.ToEnum(stringValue) ?? default; } - + break; } case global::System.Text.Json.JsonTokenType.Number: diff --git a/src/libs/Replicate/Generated/Replicate.JsonConverters.SchemasDeploymentResponseCurrentReleaseCreatedByTypeNullable.g.cs b/src/libs/Replicate/Generated/Replicate.JsonConverters.SchemasDeploymentResponseCurrentReleaseCreatedByTypeNullable.g.cs index f6863e4..d0dab7a 100644 --- a/src/libs/Replicate/Generated/Replicate.JsonConverters.SchemasDeploymentResponseCurrentReleaseCreatedByTypeNullable.g.cs +++ b/src/libs/Replicate/Generated/Replicate.JsonConverters.SchemasDeploymentResponseCurrentReleaseCreatedByTypeNullable.g.cs @@ -20,7 +20,7 @@ public sealed class SchemasDeploymentResponseCurrentReleaseCreatedByTypeNullable { return global::Replicate.SchemasDeploymentResponseCurrentReleaseCreatedByTypeExtensions.ToEnum(stringValue); } - + break; } case global::System.Text.Json.JsonTokenType.Number: diff --git a/src/libs/Replicate/Generated/Replicate.JsonConverters.SchemasModelResponseVisibility.g.cs b/src/libs/Replicate/Generated/Replicate.JsonConverters.SchemasModelResponseVisibility.g.cs index 06f34ac..5794e90 100644 --- a/src/libs/Replicate/Generated/Replicate.JsonConverters.SchemasModelResponseVisibility.g.cs +++ b/src/libs/Replicate/Generated/Replicate.JsonConverters.SchemasModelResponseVisibility.g.cs @@ -20,7 +20,7 @@ public sealed class SchemasModelResponseVisibilityJsonConverter : global::System { return global::Replicate.SchemasModelResponseVisibilityExtensions.ToEnum(stringValue) ?? default; } - + break; } case global::System.Text.Json.JsonTokenType.Number: diff --git a/src/libs/Replicate/Generated/Replicate.JsonConverters.SchemasModelResponseVisibilityNullable.g.cs b/src/libs/Replicate/Generated/Replicate.JsonConverters.SchemasModelResponseVisibilityNullable.g.cs index 75d35eb..5bde045 100644 --- a/src/libs/Replicate/Generated/Replicate.JsonConverters.SchemasModelResponseVisibilityNullable.g.cs +++ b/src/libs/Replicate/Generated/Replicate.JsonConverters.SchemasModelResponseVisibilityNullable.g.cs @@ -20,7 +20,7 @@ public sealed class SchemasModelResponseVisibilityNullableJsonConverter : global { return global::Replicate.SchemasModelResponseVisibilityExtensions.ToEnum(stringValue); } - + break; } case global::System.Text.Json.JsonTokenType.Number: diff --git a/src/libs/Replicate/Generated/Replicate.JsonConverters.SchemasPredictionRequestWebhookEventsFilterItem.g.cs b/src/libs/Replicate/Generated/Replicate.JsonConverters.SchemasPredictionRequestWebhookEventsFilterItem.g.cs index f8051db..72f7ed0 100644 --- a/src/libs/Replicate/Generated/Replicate.JsonConverters.SchemasPredictionRequestWebhookEventsFilterItem.g.cs +++ b/src/libs/Replicate/Generated/Replicate.JsonConverters.SchemasPredictionRequestWebhookEventsFilterItem.g.cs @@ -20,7 +20,7 @@ public sealed class SchemasPredictionRequestWebhookEventsFilterItemJsonConverter { return global::Replicate.SchemasPredictionRequestWebhookEventsFilterItemExtensions.ToEnum(stringValue) ?? default; } - + break; } case global::System.Text.Json.JsonTokenType.Number: diff --git a/src/libs/Replicate/Generated/Replicate.JsonConverters.SchemasPredictionRequestWebhookEventsFilterItemNullable.g.cs b/src/libs/Replicate/Generated/Replicate.JsonConverters.SchemasPredictionRequestWebhookEventsFilterItemNullable.g.cs index 4a8bd2c..5c8b8f4 100644 --- a/src/libs/Replicate/Generated/Replicate.JsonConverters.SchemasPredictionRequestWebhookEventsFilterItemNullable.g.cs +++ b/src/libs/Replicate/Generated/Replicate.JsonConverters.SchemasPredictionRequestWebhookEventsFilterItemNullable.g.cs @@ -20,7 +20,7 @@ public sealed class SchemasPredictionRequestWebhookEventsFilterItemNullableJsonC { return global::Replicate.SchemasPredictionRequestWebhookEventsFilterItemExtensions.ToEnum(stringValue); } - + break; } case global::System.Text.Json.JsonTokenType.Number: diff --git a/src/libs/Replicate/Generated/Replicate.JsonConverters.SchemasPredictionResponseSource.g.cs b/src/libs/Replicate/Generated/Replicate.JsonConverters.SchemasPredictionResponseSource.g.cs index a674bbc..3e46075 100644 --- a/src/libs/Replicate/Generated/Replicate.JsonConverters.SchemasPredictionResponseSource.g.cs +++ b/src/libs/Replicate/Generated/Replicate.JsonConverters.SchemasPredictionResponseSource.g.cs @@ -20,7 +20,7 @@ public sealed class SchemasPredictionResponseSourceJsonConverter : global::Syste { return global::Replicate.SchemasPredictionResponseSourceExtensions.ToEnum(stringValue) ?? default; } - + break; } case global::System.Text.Json.JsonTokenType.Number: diff --git a/src/libs/Replicate/Generated/Replicate.JsonConverters.SchemasPredictionResponseSourceNullable.g.cs b/src/libs/Replicate/Generated/Replicate.JsonConverters.SchemasPredictionResponseSourceNullable.g.cs index 3aec6af..a79f592 100644 --- a/src/libs/Replicate/Generated/Replicate.JsonConverters.SchemasPredictionResponseSourceNullable.g.cs +++ b/src/libs/Replicate/Generated/Replicate.JsonConverters.SchemasPredictionResponseSourceNullable.g.cs @@ -20,7 +20,7 @@ public sealed class SchemasPredictionResponseSourceNullableJsonConverter : globa { return global::Replicate.SchemasPredictionResponseSourceExtensions.ToEnum(stringValue); } - + break; } case global::System.Text.Json.JsonTokenType.Number: diff --git a/src/libs/Replicate/Generated/Replicate.JsonConverters.SchemasPredictionResponseStatus.g.cs b/src/libs/Replicate/Generated/Replicate.JsonConverters.SchemasPredictionResponseStatus.g.cs index 7542435..312a087 100644 --- a/src/libs/Replicate/Generated/Replicate.JsonConverters.SchemasPredictionResponseStatus.g.cs +++ b/src/libs/Replicate/Generated/Replicate.JsonConverters.SchemasPredictionResponseStatus.g.cs @@ -20,7 +20,7 @@ public sealed class SchemasPredictionResponseStatusJsonConverter : global::Syste { return global::Replicate.SchemasPredictionResponseStatusExtensions.ToEnum(stringValue) ?? default; } - + break; } case global::System.Text.Json.JsonTokenType.Number: diff --git a/src/libs/Replicate/Generated/Replicate.JsonConverters.SchemasPredictionResponseStatusNullable.g.cs b/src/libs/Replicate/Generated/Replicate.JsonConverters.SchemasPredictionResponseStatusNullable.g.cs index 4054018..ef72199 100644 --- a/src/libs/Replicate/Generated/Replicate.JsonConverters.SchemasPredictionResponseStatusNullable.g.cs +++ b/src/libs/Replicate/Generated/Replicate.JsonConverters.SchemasPredictionResponseStatusNullable.g.cs @@ -20,7 +20,7 @@ public sealed class SchemasPredictionResponseStatusNullableJsonConverter : globa { return global::Replicate.SchemasPredictionResponseStatusExtensions.ToEnum(stringValue); } - + break; } case global::System.Text.Json.JsonTokenType.Number: diff --git a/src/libs/Replicate/Generated/Replicate.JsonConverters.SchemasPredictionResponseVersion.g.cs b/src/libs/Replicate/Generated/Replicate.JsonConverters.SchemasPredictionResponseVersion.g.cs index a457198..be504c9 100644 --- a/src/libs/Replicate/Generated/Replicate.JsonConverters.SchemasPredictionResponseVersion.g.cs +++ b/src/libs/Replicate/Generated/Replicate.JsonConverters.SchemasPredictionResponseVersion.g.cs @@ -20,7 +20,7 @@ public sealed class SchemasPredictionResponseVersionJsonConverter : global::Syst { return global::Replicate.SchemasPredictionResponseVersionExtensions.ToEnum(stringValue) ?? default; } - + break; } case global::System.Text.Json.JsonTokenType.Number: diff --git a/src/libs/Replicate/Generated/Replicate.JsonConverters.SchemasPredictionResponseVersionNullable.g.cs b/src/libs/Replicate/Generated/Replicate.JsonConverters.SchemasPredictionResponseVersionNullable.g.cs index d9d591f..03121c1 100644 --- a/src/libs/Replicate/Generated/Replicate.JsonConverters.SchemasPredictionResponseVersionNullable.g.cs +++ b/src/libs/Replicate/Generated/Replicate.JsonConverters.SchemasPredictionResponseVersionNullable.g.cs @@ -20,7 +20,7 @@ public sealed class SchemasPredictionResponseVersionNullableJsonConverter : glob { return global::Replicate.SchemasPredictionResponseVersionExtensions.ToEnum(stringValue); } - + break; } case global::System.Text.Json.JsonTokenType.Number: diff --git a/src/libs/Replicate/Generated/Replicate.JsonConverters.SchemasTrainingRequestWebhookEventsFilterItem.g.cs b/src/libs/Replicate/Generated/Replicate.JsonConverters.SchemasTrainingRequestWebhookEventsFilterItem.g.cs index 3b8a57d..a48c695 100644 --- a/src/libs/Replicate/Generated/Replicate.JsonConverters.SchemasTrainingRequestWebhookEventsFilterItem.g.cs +++ b/src/libs/Replicate/Generated/Replicate.JsonConverters.SchemasTrainingRequestWebhookEventsFilterItem.g.cs @@ -20,7 +20,7 @@ public sealed class SchemasTrainingRequestWebhookEventsFilterItemJsonConverter : { return global::Replicate.SchemasTrainingRequestWebhookEventsFilterItemExtensions.ToEnum(stringValue) ?? default; } - + break; } case global::System.Text.Json.JsonTokenType.Number: diff --git a/src/libs/Replicate/Generated/Replicate.JsonConverters.SchemasTrainingRequestWebhookEventsFilterItemNullable.g.cs b/src/libs/Replicate/Generated/Replicate.JsonConverters.SchemasTrainingRequestWebhookEventsFilterItemNullable.g.cs index c02551d..477a287 100644 --- a/src/libs/Replicate/Generated/Replicate.JsonConverters.SchemasTrainingRequestWebhookEventsFilterItemNullable.g.cs +++ b/src/libs/Replicate/Generated/Replicate.JsonConverters.SchemasTrainingRequestWebhookEventsFilterItemNullable.g.cs @@ -20,7 +20,7 @@ public sealed class SchemasTrainingRequestWebhookEventsFilterItemNullableJsonCon { return global::Replicate.SchemasTrainingRequestWebhookEventsFilterItemExtensions.ToEnum(stringValue); } - + break; } case global::System.Text.Json.JsonTokenType.Number: diff --git a/src/libs/Replicate/Generated/Replicate.JsonConverters.SchemasTrainingResponseSource.g.cs b/src/libs/Replicate/Generated/Replicate.JsonConverters.SchemasTrainingResponseSource.g.cs index 05aa974..c3964c2 100644 --- a/src/libs/Replicate/Generated/Replicate.JsonConverters.SchemasTrainingResponseSource.g.cs +++ b/src/libs/Replicate/Generated/Replicate.JsonConverters.SchemasTrainingResponseSource.g.cs @@ -20,7 +20,7 @@ public sealed class SchemasTrainingResponseSourceJsonConverter : global::System. { return global::Replicate.SchemasTrainingResponseSourceExtensions.ToEnum(stringValue) ?? default; } - + break; } case global::System.Text.Json.JsonTokenType.Number: diff --git a/src/libs/Replicate/Generated/Replicate.JsonConverters.SchemasTrainingResponseSourceNullable.g.cs b/src/libs/Replicate/Generated/Replicate.JsonConverters.SchemasTrainingResponseSourceNullable.g.cs index 00a3286..9724266 100644 --- a/src/libs/Replicate/Generated/Replicate.JsonConverters.SchemasTrainingResponseSourceNullable.g.cs +++ b/src/libs/Replicate/Generated/Replicate.JsonConverters.SchemasTrainingResponseSourceNullable.g.cs @@ -20,7 +20,7 @@ public sealed class SchemasTrainingResponseSourceNullableJsonConverter : global: { return global::Replicate.SchemasTrainingResponseSourceExtensions.ToEnum(stringValue); } - + break; } case global::System.Text.Json.JsonTokenType.Number: diff --git a/src/libs/Replicate/Generated/Replicate.JsonConverters.SchemasTrainingResponseStatus.g.cs b/src/libs/Replicate/Generated/Replicate.JsonConverters.SchemasTrainingResponseStatus.g.cs index aa0b5a0..c2cc3ac 100644 --- a/src/libs/Replicate/Generated/Replicate.JsonConverters.SchemasTrainingResponseStatus.g.cs +++ b/src/libs/Replicate/Generated/Replicate.JsonConverters.SchemasTrainingResponseStatus.g.cs @@ -20,7 +20,7 @@ public sealed class SchemasTrainingResponseStatusJsonConverter : global::System. { return global::Replicate.SchemasTrainingResponseStatusExtensions.ToEnum(stringValue) ?? default; } - + break; } case global::System.Text.Json.JsonTokenType.Number: diff --git a/src/libs/Replicate/Generated/Replicate.JsonConverters.SchemasTrainingResponseStatusNullable.g.cs b/src/libs/Replicate/Generated/Replicate.JsonConverters.SchemasTrainingResponseStatusNullable.g.cs index a376180..f331fc3 100644 --- a/src/libs/Replicate/Generated/Replicate.JsonConverters.SchemasTrainingResponseStatusNullable.g.cs +++ b/src/libs/Replicate/Generated/Replicate.JsonConverters.SchemasTrainingResponseStatusNullable.g.cs @@ -20,7 +20,7 @@ public sealed class SchemasTrainingResponseStatusNullableJsonConverter : global: { return global::Replicate.SchemasTrainingResponseStatusExtensions.ToEnum(stringValue); } - + break; } case global::System.Text.Json.JsonTokenType.Number: diff --git a/src/libs/Replicate/Generated/Replicate.JsonConverters.SchemasVersionPredictionRequestWebhookEventsFilterItem.g.cs b/src/libs/Replicate/Generated/Replicate.JsonConverters.SchemasVersionPredictionRequestWebhookEventsFilterItem.g.cs index 0a37107..2d75ad1 100644 --- a/src/libs/Replicate/Generated/Replicate.JsonConverters.SchemasVersionPredictionRequestWebhookEventsFilterItem.g.cs +++ b/src/libs/Replicate/Generated/Replicate.JsonConverters.SchemasVersionPredictionRequestWebhookEventsFilterItem.g.cs @@ -20,7 +20,7 @@ public sealed class SchemasVersionPredictionRequestWebhookEventsFilterItemJsonCo { return global::Replicate.SchemasVersionPredictionRequestWebhookEventsFilterItemExtensions.ToEnum(stringValue) ?? default; } - + break; } case global::System.Text.Json.JsonTokenType.Number: diff --git a/src/libs/Replicate/Generated/Replicate.JsonConverters.SchemasVersionPredictionRequestWebhookEventsFilterItemNullable.g.cs b/src/libs/Replicate/Generated/Replicate.JsonConverters.SchemasVersionPredictionRequestWebhookEventsFilterItemNullable.g.cs index 692470f..13f35eb 100644 --- a/src/libs/Replicate/Generated/Replicate.JsonConverters.SchemasVersionPredictionRequestWebhookEventsFilterItemNullable.g.cs +++ b/src/libs/Replicate/Generated/Replicate.JsonConverters.SchemasVersionPredictionRequestWebhookEventsFilterItemNullable.g.cs @@ -20,7 +20,7 @@ public sealed class SchemasVersionPredictionRequestWebhookEventsFilterItemNullab { return global::Replicate.SchemasVersionPredictionRequestWebhookEventsFilterItemExtensions.ToEnum(stringValue); } - + break; } case global::System.Text.Json.JsonTokenType.Number: diff --git a/src/libs/Replicate/Generated/Replicate.JsonConverters.UnixTimestamp.g.cs b/src/libs/Replicate/Generated/Replicate.JsonConverters.UnixTimestamp.g.cs index b56580a..284884e 100644 --- a/src/libs/Replicate/Generated/Replicate.JsonConverters.UnixTimestamp.g.cs +++ b/src/libs/Replicate/Generated/Replicate.JsonConverters.UnixTimestamp.g.cs @@ -19,7 +19,7 @@ public class UnixTimestampJsonConverter : global::System.Text.Json.Serialization { return global::System.DateTimeOffset.FromUnixTimeSeconds(unixTimestamp); } - + return global::System.DateTimeOffset.FromUnixTimeMilliseconds(unixTimestamp); } if (reader.TryGetInt32(out int unixTimestampInt)) diff --git a/src/libs/Replicate/Generated/Replicate.JsonSerializerContext.g.cs b/src/libs/Replicate/Generated/Replicate.JsonSerializerContext.g.cs index d997bce..1c96c21 100644 --- a/src/libs/Replicate/Generated/Replicate.JsonSerializerContext.g.cs +++ b/src/libs/Replicate/Generated/Replicate.JsonSerializerContext.g.cs @@ -7,7 +7,7 @@ namespace Replicate { /// - /// + /// /// [global::System.Text.Json.Serialization.JsonSourceGenerationOptions( DefaultIgnoreCondition = global::System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull, @@ -78,6 +78,7 @@ namespace Replicate typeof(global::Replicate.JsonConverters.UnixTimestampJsonConverter), })] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Replicate.JsonSerializerContextTypes))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List), TypeInfoPropertyName = "SystemCollectionsGeneric_ObjectList")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Replicate.SchemasCollectionListItem))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(string))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Replicate.SchemasCollectionResponse))] diff --git a/src/libs/Replicate/Generated/Replicate.JsonSerializerContextTypes.g.cs b/src/libs/Replicate/Generated/Replicate.JsonSerializerContextTypes.g.cs index 3407807..2de15cc 100644 --- a/src/libs/Replicate/Generated/Replicate.JsonSerializerContextTypes.g.cs +++ b/src/libs/Replicate/Generated/Replicate.JsonSerializerContextTypes.g.cs @@ -6,432 +6,437 @@ namespace Replicate { /// - /// + /// /// public sealed partial class JsonSerializerContextTypes { /// - /// + /// /// public global::System.Collections.Generic.Dictionary? StringStringDictionary { get; set; } /// - /// + /// /// public global::System.Collections.Generic.Dictionary? StringObjectDictionary { get; set; } /// - /// + /// Runtime object lists used by dynamic JSON payloads such as tool arguments. + /// + public global::System.Collections.Generic.List? ObjectList { get; set; } + + /// + /// /// public global::System.Text.Json.JsonElement? JsonElement { get; set; } /// - /// + /// /// public global::Replicate.SchemasCollectionListItem? Type0 { get; set; } /// - /// + /// /// public string? Type1 { get; set; } /// - /// + /// /// public global::Replicate.SchemasCollectionResponse? Type2 { get; set; } /// - /// + /// /// public global::System.Collections.Generic.IList? Type3 { get; set; } /// - /// + /// /// public global::Replicate.SchemasModelResponse? Type4 { get; set; } /// - /// + /// /// public global::Replicate.SchemasDeploymentResponse? Type5 { get; set; } /// - /// + /// /// public global::Replicate.SchemasDeploymentResponseCurrentRelease? Type6 { get; set; } /// - /// + /// /// public global::Replicate.SchemasDeploymentResponseCurrentReleaseConfiguration? Type7 { get; set; } /// - /// + /// /// public int? Type8 { get; set; } /// - /// + /// /// public global::System.DateTime? Type9 { get; set; } /// - /// + /// /// public global::Replicate.SchemasDeploymentResponseCurrentReleaseCreatedBy? Type10 { get; set; } /// - /// + /// /// public global::Replicate.SchemasDeploymentResponseCurrentReleaseCreatedByType? Type11 { get; set; } /// - /// + /// /// public global::Replicate.SchemasFileResponse? Type12 { get; set; } /// - /// + /// /// public global::Replicate.SchemasFileResponseChecksums? Type13 { get; set; } /// - /// + /// /// public object? Type14 { get; set; } /// - /// + /// /// public long? Type15 { get; set; } /// - /// + /// /// public global::Replicate.SchemasFileResponseUrls? Type16 { get; set; } /// - /// + /// /// public bool? Type17 { get; set; } /// - /// + /// /// public global::Replicate.SchemasModelResponseVisibility? Type18 { get; set; } /// - /// + /// /// public global::Replicate.SchemasPageResponse? Type19 { get; set; } /// - /// + /// /// public global::Replicate.SchemasPaginatedCollectionResponse? Type20 { get; set; } /// - /// + /// /// public global::System.Collections.Generic.IList? Type21 { get; set; } /// - /// + /// /// public global::Replicate.SchemasPaginatedModelResponse? Type22 { get; set; } /// - /// + /// /// public global::Replicate.SchemasPaginatedPredictionResponse? Type23 { get; set; } /// - /// + /// /// public global::System.Collections.Generic.IList? Type24 { get; set; } /// - /// + /// /// public global::Replicate.SchemasPredictionResponse? Type25 { get; set; } /// - /// + /// /// public global::Replicate.SchemasPaginatedVersionResponse? Type26 { get; set; } /// - /// + /// /// public global::System.Collections.Generic.IList? Type27 { get; set; } /// - /// + /// /// public global::Replicate.SchemasVersionResponse? Type28 { get; set; } /// - /// + /// /// public global::Replicate.SchemasPredictionRequest? Type29 { get; set; } /// - /// + /// /// public global::System.Collections.Generic.IList? Type30 { get; set; } /// - /// + /// /// public global::Replicate.SchemasPredictionRequestWebhookEventsFilterItem? Type31 { get; set; } /// - /// + /// /// public global::Replicate.SchemasPredictionResponseMetrics? Type32 { get; set; } /// - /// + /// /// public double? Type33 { get; set; } /// - /// + /// /// public global::Replicate.SchemasPredictionResponseSource? Type34 { get; set; } /// - /// + /// /// public global::Replicate.SchemasPredictionResponseStatus? Type35 { get; set; } /// - /// + /// /// public global::Replicate.SchemasPredictionResponseUrls? Type36 { get; set; } /// - /// + /// /// public global::Replicate.OneOf? Type37 { get; set; } /// - /// + /// /// public global::Replicate.SchemasPredictionResponseVersion? Type38 { get; set; } /// - /// + /// /// public global::Replicate.SchemasSearchCollectionResponse? Type39 { get; set; } /// - /// + /// /// public global::System.Collections.Generic.IList? Type40 { get; set; } /// - /// + /// /// public global::Replicate.SchemasSearchModelMetadataResponse? Type41 { get; set; } /// - /// + /// /// public global::Replicate.SchemasSearchResponse? Type42 { get; set; } /// - /// + /// /// public global::System.Collections.Generic.IList? Type43 { get; set; } /// - /// + /// /// public global::System.Collections.Generic.IList? Type44 { get; set; } /// - /// + /// /// public global::Replicate.SchemasSearchResponseModel? Type45 { get; set; } /// - /// + /// /// public global::System.Collections.Generic.IList? Type46 { get; set; } /// - /// + /// /// public global::Replicate.SchemasTrainingRequest? Type47 { get; set; } /// - /// + /// /// public global::System.Collections.Generic.IList? Type48 { get; set; } /// - /// + /// /// public global::Replicate.SchemasTrainingRequestWebhookEventsFilterItem? Type49 { get; set; } /// - /// + /// /// public global::Replicate.SchemasTrainingResponse? Type50 { get; set; } /// - /// + /// /// public global::Replicate.SchemasTrainingResponseMetrics? Type51 { get; set; } /// - /// + /// /// public global::Replicate.SchemasTrainingResponseOutput? Type52 { get; set; } /// - /// + /// /// public global::Replicate.SchemasTrainingResponseSource? Type53 { get; set; } /// - /// + /// /// public global::Replicate.SchemasTrainingResponseStatus? Type54 { get; set; } /// - /// + /// /// public global::Replicate.SchemasTrainingResponseUrls? Type55 { get; set; } /// - /// + /// /// public global::Replicate.SchemasVersionPredictionRequest? Type56 { get; set; } /// - /// + /// /// public global::System.Collections.Generic.IList? Type57 { get; set; } /// - /// + /// /// public global::Replicate.SchemasVersionPredictionRequestWebhookEventsFilterItem? Type58 { get; set; } /// - /// + /// /// public global::Replicate.DeploymentsCreateRequest? Type59 { get; set; } /// - /// + /// /// public global::Replicate.DeploymentsUpdateRequest? Type60 { get; set; } /// - /// + /// /// public global::Replicate.FilesCreateRequest? Type61 { get; set; } /// - /// + /// /// public byte[]? Type62 { get; set; } /// - /// + /// /// public global::Replicate.ModelsCreateRequest? Type63 { get; set; } /// - /// + /// /// public global::Replicate.ModelsCreateRequestVisibility? Type64 { get; set; } /// - /// + /// /// public global::Replicate.ModelsUpdateRequest? Type65 { get; set; } /// - /// + /// /// public global::Replicate.ModelsListSortBy? Type66 { get; set; } /// - /// + /// /// public global::Replicate.ModelsListSortDirection? Type67 { get; set; } /// - /// + /// /// public global::Replicate.PredictionsListSource? Type68 { get; set; } /// - /// + /// /// public global::Replicate.AccountGetResponse? Type69 { get; set; } /// - /// + /// /// public global::Replicate.AccountGetResponseType? Type70 { get; set; } /// - /// + /// /// public global::Replicate.DeploymentsListResponse? Type71 { get; set; } /// - /// + /// /// public global::System.Collections.Generic.IList? Type72 { get; set; } /// - /// + /// /// public global::Replicate.FilesListResponse? Type73 { get; set; } /// - /// + /// /// public global::System.Collections.Generic.IList? Type74 { get; set; } /// - /// + /// /// public global::Replicate.FilesCreateResponse? Type75 { get; set; } /// - /// + /// /// public global::Replicate.FilesDeleteResponse? Type76 { get; set; } /// - /// + /// /// public global::Replicate.FilesGetResponse? Type77 { get; set; } /// - /// + /// /// public global::Replicate.FilesDownloadResponse? Type78 { get; set; } /// - /// + /// /// public global::System.Collections.Generic.IList? Type79 { get; set; } /// - /// + /// /// public global::Replicate.HardwareListResponseItem? Type80 { get; set; } /// - /// + /// /// public global::Replicate.PredictionsListResponse? Type81 { get; set; } /// - /// + /// /// public global::Replicate.SearchResponse? Type82 { get; set; } /// - /// + /// /// public global::Replicate.SearchResponse2? Type83 { get; set; } /// - /// + /// /// public global::Replicate.TrainingsListResponse? Type84 { get; set; } /// - /// + /// /// public global::System.Collections.Generic.IList? Type85 { get; set; } /// - /// + /// /// public global::Replicate.WebhooksDefaultSecretGetResponse? Type86 { get; set; } /// - /// + /// /// public global::System.Collections.Generic.List? ListType0 { get; set; } /// - /// + /// /// public global::System.Collections.Generic.List? ListType1 { get; set; } /// - /// + /// /// public global::System.Collections.Generic.List? ListType2 { get; set; } /// - /// + /// /// public global::System.Collections.Generic.List? ListType3 { get; set; } /// - /// + /// /// public global::System.Collections.Generic.List? ListType4 { get; set; } /// - /// + /// /// public global::System.Collections.Generic.List? ListType5 { get; set; } /// - /// + /// /// public global::System.Collections.Generic.List? ListType6 { get; set; } /// - /// + /// /// public global::System.Collections.Generic.List? ListType7 { get; set; } /// - /// + /// /// public global::System.Collections.Generic.List? ListType8 { get; set; } /// - /// + /// /// public global::System.Collections.Generic.List? ListType9 { get; set; } /// - /// + /// /// public global::System.Collections.Generic.List? ListType10 { get; set; } /// - /// + /// /// public global::System.Collections.Generic.List? ListType11 { get; set; } /// - /// + /// /// public global::System.Collections.Generic.List? ListType12 { get; set; } /// - /// + /// /// public global::System.Collections.Generic.List? ListType13 { get; set; } /// - /// + /// /// public global::System.Collections.Generic.List? ListType14 { get; set; } } diff --git a/src/libs/Replicate/Generated/Replicate.Models.AccountGetResponse.Json.g.cs b/src/libs/Replicate/Generated/Replicate.Models.AccountGetResponse.Json.g.cs index 1a838db..e39d0b8 100644 --- a/src/libs/Replicate/Generated/Replicate.Models.AccountGetResponse.Json.g.cs +++ b/src/libs/Replicate/Generated/Replicate.Models.AccountGetResponse.Json.g.cs @@ -16,6 +16,14 @@ public string ToJson( jsonSerializerContext); } + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Replicate.SourceGenerationContext.Default); + } + /// /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. /// @@ -26,6 +34,11 @@ public string ToJson( public string ToJson( global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return ToJson(global::Replicate.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Serialize( this, jsonSerializerOptions); @@ -44,6 +57,17 @@ public string ToJson( jsonSerializerContext) as global::Replicate.AccountGetResponse; } + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Replicate.AccountGetResponse? FromJson( + string json) + { + return FromJson( + json, + global::Replicate.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON string using the provided JsonSerializerOptions. /// @@ -55,6 +79,13 @@ public string ToJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Replicate.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); @@ -73,6 +104,17 @@ public string ToJson( jsonSerializerContext).ConfigureAwait(false)) as global::Replicate.AccountGetResponse; } + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Replicate.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON stream using the provided JsonSerializerOptions. /// @@ -84,6 +126,13 @@ public string ToJson( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Replicate.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); diff --git a/src/libs/Replicate/Generated/Replicate.Models.AccountGetResponse.g.cs b/src/libs/Replicate/Generated/Replicate.Models.AccountGetResponse.g.cs index 3d2aeb2..6de686c 100644 --- a/src/libs/Replicate/Generated/Replicate.Models.AccountGetResponse.g.cs +++ b/src/libs/Replicate/Generated/Replicate.Models.AccountGetResponse.g.cs @@ -4,7 +4,7 @@ namespace Replicate { /// - /// + /// /// public sealed partial class AccountGetResponse { diff --git a/src/libs/Replicate/Generated/Replicate.Models.AccountGetResponseType.g.cs b/src/libs/Replicate/Generated/Replicate.Models.AccountGetResponseType.g.cs index 675cc68..eb8db15 100644 --- a/src/libs/Replicate/Generated/Replicate.Models.AccountGetResponseType.g.cs +++ b/src/libs/Replicate/Generated/Replicate.Models.AccountGetResponseType.g.cs @@ -9,11 +9,11 @@ namespace Replicate public enum AccountGetResponseType { /// - /// + /// /// Organization, /// - /// + /// /// User, } diff --git a/src/libs/Replicate/Generated/Replicate.Models.DeploymentsCreateRequest.Json.g.cs b/src/libs/Replicate/Generated/Replicate.Models.DeploymentsCreateRequest.Json.g.cs index 35f1055..4e56941 100644 --- a/src/libs/Replicate/Generated/Replicate.Models.DeploymentsCreateRequest.Json.g.cs +++ b/src/libs/Replicate/Generated/Replicate.Models.DeploymentsCreateRequest.Json.g.cs @@ -16,6 +16,14 @@ public string ToJson( jsonSerializerContext); } + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Replicate.SourceGenerationContext.Default); + } + /// /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. /// @@ -26,6 +34,11 @@ public string ToJson( public string ToJson( global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return ToJson(global::Replicate.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Serialize( this, jsonSerializerOptions); @@ -44,6 +57,17 @@ public string ToJson( jsonSerializerContext) as global::Replicate.DeploymentsCreateRequest; } + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Replicate.DeploymentsCreateRequest? FromJson( + string json) + { + return FromJson( + json, + global::Replicate.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON string using the provided JsonSerializerOptions. /// @@ -55,6 +79,13 @@ public string ToJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Replicate.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); @@ -73,6 +104,17 @@ public string ToJson( jsonSerializerContext).ConfigureAwait(false)) as global::Replicate.DeploymentsCreateRequest; } + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Replicate.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON stream using the provided JsonSerializerOptions. /// @@ -84,6 +126,13 @@ public string ToJson( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Replicate.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); diff --git a/src/libs/Replicate/Generated/Replicate.Models.DeploymentsCreateRequest.g.cs b/src/libs/Replicate/Generated/Replicate.Models.DeploymentsCreateRequest.g.cs index 32054f6..22b37d1 100644 --- a/src/libs/Replicate/Generated/Replicate.Models.DeploymentsCreateRequest.g.cs +++ b/src/libs/Replicate/Generated/Replicate.Models.DeploymentsCreateRequest.g.cs @@ -4,7 +4,7 @@ namespace Replicate { /// - /// + /// /// public sealed partial class DeploymentsCreateRequest { diff --git a/src/libs/Replicate/Generated/Replicate.Models.DeploymentsListResponse.Json.g.cs b/src/libs/Replicate/Generated/Replicate.Models.DeploymentsListResponse.Json.g.cs index bb9e32d..5e7503d 100644 --- a/src/libs/Replicate/Generated/Replicate.Models.DeploymentsListResponse.Json.g.cs +++ b/src/libs/Replicate/Generated/Replicate.Models.DeploymentsListResponse.Json.g.cs @@ -16,6 +16,14 @@ public string ToJson( jsonSerializerContext); } + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Replicate.SourceGenerationContext.Default); + } + /// /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. /// @@ -26,6 +34,11 @@ public string ToJson( public string ToJson( global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return ToJson(global::Replicate.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Serialize( this, jsonSerializerOptions); @@ -44,6 +57,17 @@ public string ToJson( jsonSerializerContext) as global::Replicate.DeploymentsListResponse; } + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Replicate.DeploymentsListResponse? FromJson( + string json) + { + return FromJson( + json, + global::Replicate.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON string using the provided JsonSerializerOptions. /// @@ -55,6 +79,13 @@ public string ToJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Replicate.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); @@ -73,6 +104,17 @@ public string ToJson( jsonSerializerContext).ConfigureAwait(false)) as global::Replicate.DeploymentsListResponse; } + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Replicate.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON stream using the provided JsonSerializerOptions. /// @@ -84,6 +126,13 @@ public string ToJson( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Replicate.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); diff --git a/src/libs/Replicate/Generated/Replicate.Models.DeploymentsListResponse.g.cs b/src/libs/Replicate/Generated/Replicate.Models.DeploymentsListResponse.g.cs index df2f640..d9eef5e 100644 --- a/src/libs/Replicate/Generated/Replicate.Models.DeploymentsListResponse.g.cs +++ b/src/libs/Replicate/Generated/Replicate.Models.DeploymentsListResponse.g.cs @@ -4,7 +4,7 @@ namespace Replicate { /// - /// + /// /// public sealed partial class DeploymentsListResponse { diff --git a/src/libs/Replicate/Generated/Replicate.Models.DeploymentsUpdateRequest.Json.g.cs b/src/libs/Replicate/Generated/Replicate.Models.DeploymentsUpdateRequest.Json.g.cs index 25d00ad..5b8acff 100644 --- a/src/libs/Replicate/Generated/Replicate.Models.DeploymentsUpdateRequest.Json.g.cs +++ b/src/libs/Replicate/Generated/Replicate.Models.DeploymentsUpdateRequest.Json.g.cs @@ -16,6 +16,14 @@ public string ToJson( jsonSerializerContext); } + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Replicate.SourceGenerationContext.Default); + } + /// /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. /// @@ -26,6 +34,11 @@ public string ToJson( public string ToJson( global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return ToJson(global::Replicate.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Serialize( this, jsonSerializerOptions); @@ -44,6 +57,17 @@ public string ToJson( jsonSerializerContext) as global::Replicate.DeploymentsUpdateRequest; } + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Replicate.DeploymentsUpdateRequest? FromJson( + string json) + { + return FromJson( + json, + global::Replicate.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON string using the provided JsonSerializerOptions. /// @@ -55,6 +79,13 @@ public string ToJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Replicate.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); @@ -73,6 +104,17 @@ public string ToJson( jsonSerializerContext).ConfigureAwait(false)) as global::Replicate.DeploymentsUpdateRequest; } + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Replicate.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON stream using the provided JsonSerializerOptions. /// @@ -84,6 +126,13 @@ public string ToJson( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Replicate.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); diff --git a/src/libs/Replicate/Generated/Replicate.Models.DeploymentsUpdateRequest.g.cs b/src/libs/Replicate/Generated/Replicate.Models.DeploymentsUpdateRequest.g.cs index ec3143d..b30298b 100644 --- a/src/libs/Replicate/Generated/Replicate.Models.DeploymentsUpdateRequest.g.cs +++ b/src/libs/Replicate/Generated/Replicate.Models.DeploymentsUpdateRequest.g.cs @@ -4,7 +4,7 @@ namespace Replicate { /// - /// + /// /// public sealed partial class DeploymentsUpdateRequest { diff --git a/src/libs/Replicate/Generated/Replicate.Models.FilesCreateRequest.Json.g.cs b/src/libs/Replicate/Generated/Replicate.Models.FilesCreateRequest.Json.g.cs index 6b3c7e9..01463d0 100644 --- a/src/libs/Replicate/Generated/Replicate.Models.FilesCreateRequest.Json.g.cs +++ b/src/libs/Replicate/Generated/Replicate.Models.FilesCreateRequest.Json.g.cs @@ -16,6 +16,14 @@ public string ToJson( jsonSerializerContext); } + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Replicate.SourceGenerationContext.Default); + } + /// /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. /// @@ -26,6 +34,11 @@ public string ToJson( public string ToJson( global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return ToJson(global::Replicate.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Serialize( this, jsonSerializerOptions); @@ -44,6 +57,17 @@ public string ToJson( jsonSerializerContext) as global::Replicate.FilesCreateRequest; } + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Replicate.FilesCreateRequest? FromJson( + string json) + { + return FromJson( + json, + global::Replicate.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON string using the provided JsonSerializerOptions. /// @@ -55,6 +79,13 @@ public string ToJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Replicate.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); @@ -73,6 +104,17 @@ public string ToJson( jsonSerializerContext).ConfigureAwait(false)) as global::Replicate.FilesCreateRequest; } + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Replicate.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON stream using the provided JsonSerializerOptions. /// @@ -84,6 +126,13 @@ public string ToJson( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Replicate.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); diff --git a/src/libs/Replicate/Generated/Replicate.Models.FilesCreateRequest.g.cs b/src/libs/Replicate/Generated/Replicate.Models.FilesCreateRequest.g.cs index 435b911..56ff81c 100644 --- a/src/libs/Replicate/Generated/Replicate.Models.FilesCreateRequest.g.cs +++ b/src/libs/Replicate/Generated/Replicate.Models.FilesCreateRequest.g.cs @@ -4,7 +4,7 @@ namespace Replicate { /// - /// + /// /// public sealed partial class FilesCreateRequest { diff --git a/src/libs/Replicate/Generated/Replicate.Models.FilesCreateRequestMetadata.Json.g.cs b/src/libs/Replicate/Generated/Replicate.Models.FilesCreateRequestMetadata.Json.g.cs index 36b4ed0..6a3e3c7 100644 --- a/src/libs/Replicate/Generated/Replicate.Models.FilesCreateRequestMetadata.Json.g.cs +++ b/src/libs/Replicate/Generated/Replicate.Models.FilesCreateRequestMetadata.Json.g.cs @@ -16,6 +16,14 @@ public string ToJson( jsonSerializerContext); } + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Replicate.SourceGenerationContext.Default); + } + /// /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. /// @@ -26,6 +34,11 @@ public string ToJson( public string ToJson( global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return ToJson(global::Replicate.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Serialize( this, jsonSerializerOptions); @@ -44,6 +57,17 @@ public string ToJson( jsonSerializerContext) as global::Replicate.FilesCreateRequestMetadata; } + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Replicate.FilesCreateRequestMetadata? FromJson( + string json) + { + return FromJson( + json, + global::Replicate.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON string using the provided JsonSerializerOptions. /// @@ -55,6 +79,13 @@ public string ToJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Replicate.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); @@ -73,6 +104,17 @@ public string ToJson( jsonSerializerContext).ConfigureAwait(false)) as global::Replicate.FilesCreateRequestMetadata; } + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Replicate.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON stream using the provided JsonSerializerOptions. /// @@ -84,6 +126,13 @@ public string ToJson( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Replicate.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); diff --git a/src/libs/Replicate/Generated/Replicate.Models.FilesCreateResponse.Json.g.cs b/src/libs/Replicate/Generated/Replicate.Models.FilesCreateResponse.Json.g.cs index 3cc9b84..2096fe0 100644 --- a/src/libs/Replicate/Generated/Replicate.Models.FilesCreateResponse.Json.g.cs +++ b/src/libs/Replicate/Generated/Replicate.Models.FilesCreateResponse.Json.g.cs @@ -16,6 +16,14 @@ public string ToJson( jsonSerializerContext); } + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Replicate.SourceGenerationContext.Default); + } + /// /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. /// @@ -26,6 +34,11 @@ public string ToJson( public string ToJson( global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return ToJson(global::Replicate.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Serialize( this, jsonSerializerOptions); @@ -44,6 +57,17 @@ public string ToJson( jsonSerializerContext) as global::Replicate.FilesCreateResponse; } + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Replicate.FilesCreateResponse? FromJson( + string json) + { + return FromJson( + json, + global::Replicate.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON string using the provided JsonSerializerOptions. /// @@ -55,6 +79,13 @@ public string ToJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Replicate.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); @@ -73,6 +104,17 @@ public string ToJson( jsonSerializerContext).ConfigureAwait(false)) as global::Replicate.FilesCreateResponse; } + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Replicate.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON stream using the provided JsonSerializerOptions. /// @@ -84,6 +126,13 @@ public string ToJson( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Replicate.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); diff --git a/src/libs/Replicate/Generated/Replicate.Models.FilesCreateResponse.g.cs b/src/libs/Replicate/Generated/Replicate.Models.FilesCreateResponse.g.cs index 0b4f598..badbda9 100644 --- a/src/libs/Replicate/Generated/Replicate.Models.FilesCreateResponse.g.cs +++ b/src/libs/Replicate/Generated/Replicate.Models.FilesCreateResponse.g.cs @@ -4,7 +4,7 @@ namespace Replicate { /// - /// + /// /// public sealed partial class FilesCreateResponse { diff --git a/src/libs/Replicate/Generated/Replicate.Models.FilesDeleteResponse.Json.g.cs b/src/libs/Replicate/Generated/Replicate.Models.FilesDeleteResponse.Json.g.cs index 64b243f..8929a70 100644 --- a/src/libs/Replicate/Generated/Replicate.Models.FilesDeleteResponse.Json.g.cs +++ b/src/libs/Replicate/Generated/Replicate.Models.FilesDeleteResponse.Json.g.cs @@ -16,6 +16,14 @@ public string ToJson( jsonSerializerContext); } + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Replicate.SourceGenerationContext.Default); + } + /// /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. /// @@ -26,6 +34,11 @@ public string ToJson( public string ToJson( global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return ToJson(global::Replicate.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Serialize( this, jsonSerializerOptions); @@ -44,6 +57,17 @@ public string ToJson( jsonSerializerContext) as global::Replicate.FilesDeleteResponse; } + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Replicate.FilesDeleteResponse? FromJson( + string json) + { + return FromJson( + json, + global::Replicate.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON string using the provided JsonSerializerOptions. /// @@ -55,6 +79,13 @@ public string ToJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Replicate.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); @@ -73,6 +104,17 @@ public string ToJson( jsonSerializerContext).ConfigureAwait(false)) as global::Replicate.FilesDeleteResponse; } + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Replicate.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON stream using the provided JsonSerializerOptions. /// @@ -84,6 +126,13 @@ public string ToJson( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Replicate.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); diff --git a/src/libs/Replicate/Generated/Replicate.Models.FilesDeleteResponse.g.cs b/src/libs/Replicate/Generated/Replicate.Models.FilesDeleteResponse.g.cs index f117207..06312e9 100644 --- a/src/libs/Replicate/Generated/Replicate.Models.FilesDeleteResponse.g.cs +++ b/src/libs/Replicate/Generated/Replicate.Models.FilesDeleteResponse.g.cs @@ -4,7 +4,7 @@ namespace Replicate { /// - /// + /// /// public sealed partial class FilesDeleteResponse { diff --git a/src/libs/Replicate/Generated/Replicate.Models.FilesDownloadResponse.Json.g.cs b/src/libs/Replicate/Generated/Replicate.Models.FilesDownloadResponse.Json.g.cs index 378f934..bc4bf31 100644 --- a/src/libs/Replicate/Generated/Replicate.Models.FilesDownloadResponse.Json.g.cs +++ b/src/libs/Replicate/Generated/Replicate.Models.FilesDownloadResponse.Json.g.cs @@ -16,6 +16,14 @@ public string ToJson( jsonSerializerContext); } + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Replicate.SourceGenerationContext.Default); + } + /// /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. /// @@ -26,6 +34,11 @@ public string ToJson( public string ToJson( global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return ToJson(global::Replicate.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Serialize( this, jsonSerializerOptions); @@ -44,6 +57,17 @@ public string ToJson( jsonSerializerContext) as global::Replicate.FilesDownloadResponse; } + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Replicate.FilesDownloadResponse? FromJson( + string json) + { + return FromJson( + json, + global::Replicate.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON string using the provided JsonSerializerOptions. /// @@ -55,6 +79,13 @@ public string ToJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Replicate.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); @@ -73,6 +104,17 @@ public string ToJson( jsonSerializerContext).ConfigureAwait(false)) as global::Replicate.FilesDownloadResponse; } + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Replicate.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON stream using the provided JsonSerializerOptions. /// @@ -84,6 +126,13 @@ public string ToJson( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Replicate.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); diff --git a/src/libs/Replicate/Generated/Replicate.Models.FilesDownloadResponse.g.cs b/src/libs/Replicate/Generated/Replicate.Models.FilesDownloadResponse.g.cs index 5b9f67c..f467a7e 100644 --- a/src/libs/Replicate/Generated/Replicate.Models.FilesDownloadResponse.g.cs +++ b/src/libs/Replicate/Generated/Replicate.Models.FilesDownloadResponse.g.cs @@ -4,7 +4,7 @@ namespace Replicate { /// - /// + /// /// public sealed partial class FilesDownloadResponse { diff --git a/src/libs/Replicate/Generated/Replicate.Models.FilesGetResponse.Json.g.cs b/src/libs/Replicate/Generated/Replicate.Models.FilesGetResponse.Json.g.cs index be7744d..4536e02 100644 --- a/src/libs/Replicate/Generated/Replicate.Models.FilesGetResponse.Json.g.cs +++ b/src/libs/Replicate/Generated/Replicate.Models.FilesGetResponse.Json.g.cs @@ -16,6 +16,14 @@ public string ToJson( jsonSerializerContext); } + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Replicate.SourceGenerationContext.Default); + } + /// /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. /// @@ -26,6 +34,11 @@ public string ToJson( public string ToJson( global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return ToJson(global::Replicate.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Serialize( this, jsonSerializerOptions); @@ -44,6 +57,17 @@ public string ToJson( jsonSerializerContext) as global::Replicate.FilesGetResponse; } + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Replicate.FilesGetResponse? FromJson( + string json) + { + return FromJson( + json, + global::Replicate.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON string using the provided JsonSerializerOptions. /// @@ -55,6 +79,13 @@ public string ToJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Replicate.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); @@ -73,6 +104,17 @@ public string ToJson( jsonSerializerContext).ConfigureAwait(false)) as global::Replicate.FilesGetResponse; } + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Replicate.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON stream using the provided JsonSerializerOptions. /// @@ -84,6 +126,13 @@ public string ToJson( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Replicate.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); diff --git a/src/libs/Replicate/Generated/Replicate.Models.FilesGetResponse.g.cs b/src/libs/Replicate/Generated/Replicate.Models.FilesGetResponse.g.cs index 31e31db..0c6cbb2 100644 --- a/src/libs/Replicate/Generated/Replicate.Models.FilesGetResponse.g.cs +++ b/src/libs/Replicate/Generated/Replicate.Models.FilesGetResponse.g.cs @@ -4,7 +4,7 @@ namespace Replicate { /// - /// + /// /// public sealed partial class FilesGetResponse { diff --git a/src/libs/Replicate/Generated/Replicate.Models.FilesListResponse.Json.g.cs b/src/libs/Replicate/Generated/Replicate.Models.FilesListResponse.Json.g.cs index ba77924..5333b00 100644 --- a/src/libs/Replicate/Generated/Replicate.Models.FilesListResponse.Json.g.cs +++ b/src/libs/Replicate/Generated/Replicate.Models.FilesListResponse.Json.g.cs @@ -16,6 +16,14 @@ public string ToJson( jsonSerializerContext); } + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Replicate.SourceGenerationContext.Default); + } + /// /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. /// @@ -26,6 +34,11 @@ public string ToJson( public string ToJson( global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return ToJson(global::Replicate.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Serialize( this, jsonSerializerOptions); @@ -44,6 +57,17 @@ public string ToJson( jsonSerializerContext) as global::Replicate.FilesListResponse; } + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Replicate.FilesListResponse? FromJson( + string json) + { + return FromJson( + json, + global::Replicate.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON string using the provided JsonSerializerOptions. /// @@ -55,6 +79,13 @@ public string ToJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Replicate.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); @@ -73,6 +104,17 @@ public string ToJson( jsonSerializerContext).ConfigureAwait(false)) as global::Replicate.FilesListResponse; } + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Replicate.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON stream using the provided JsonSerializerOptions. /// @@ -84,6 +126,13 @@ public string ToJson( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Replicate.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); diff --git a/src/libs/Replicate/Generated/Replicate.Models.FilesListResponse.g.cs b/src/libs/Replicate/Generated/Replicate.Models.FilesListResponse.g.cs index 3c1e759..22549cf 100644 --- a/src/libs/Replicate/Generated/Replicate.Models.FilesListResponse.g.cs +++ b/src/libs/Replicate/Generated/Replicate.Models.FilesListResponse.g.cs @@ -4,24 +4,24 @@ namespace Replicate { /// - /// + /// /// public sealed partial class FilesListResponse { /// - /// + /// /// [global::System.Text.Json.Serialization.JsonPropertyName("next")] public string? Next { get; set; } /// - /// + /// /// [global::System.Text.Json.Serialization.JsonPropertyName("previous")] public string? Previous { get; set; } /// - /// + /// /// [global::System.Text.Json.Serialization.JsonPropertyName("results")] public global::System.Collections.Generic.IList? Results { get; set; } diff --git a/src/libs/Replicate/Generated/Replicate.Models.HardwareListResponseItem.Json.g.cs b/src/libs/Replicate/Generated/Replicate.Models.HardwareListResponseItem.Json.g.cs index d3304f6..5c0621a 100644 --- a/src/libs/Replicate/Generated/Replicate.Models.HardwareListResponseItem.Json.g.cs +++ b/src/libs/Replicate/Generated/Replicate.Models.HardwareListResponseItem.Json.g.cs @@ -16,6 +16,14 @@ public string ToJson( jsonSerializerContext); } + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Replicate.SourceGenerationContext.Default); + } + /// /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. /// @@ -26,6 +34,11 @@ public string ToJson( public string ToJson( global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return ToJson(global::Replicate.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Serialize( this, jsonSerializerOptions); @@ -44,6 +57,17 @@ public string ToJson( jsonSerializerContext) as global::Replicate.HardwareListResponseItem; } + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Replicate.HardwareListResponseItem? FromJson( + string json) + { + return FromJson( + json, + global::Replicate.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON string using the provided JsonSerializerOptions. /// @@ -55,6 +79,13 @@ public string ToJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Replicate.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); @@ -73,6 +104,17 @@ public string ToJson( jsonSerializerContext).ConfigureAwait(false)) as global::Replicate.HardwareListResponseItem; } + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Replicate.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON stream using the provided JsonSerializerOptions. /// @@ -84,6 +126,13 @@ public string ToJson( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Replicate.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); diff --git a/src/libs/Replicate/Generated/Replicate.Models.HardwareListResponseItem.g.cs b/src/libs/Replicate/Generated/Replicate.Models.HardwareListResponseItem.g.cs index 3bc3f94..94e79dc 100644 --- a/src/libs/Replicate/Generated/Replicate.Models.HardwareListResponseItem.g.cs +++ b/src/libs/Replicate/Generated/Replicate.Models.HardwareListResponseItem.g.cs @@ -4,7 +4,7 @@ namespace Replicate { /// - /// + /// /// public sealed partial class HardwareListResponseItem { diff --git a/src/libs/Replicate/Generated/Replicate.Models.ModelsCreateRequest.Json.g.cs b/src/libs/Replicate/Generated/Replicate.Models.ModelsCreateRequest.Json.g.cs index 77f49d9..1bbaf7c 100644 --- a/src/libs/Replicate/Generated/Replicate.Models.ModelsCreateRequest.Json.g.cs +++ b/src/libs/Replicate/Generated/Replicate.Models.ModelsCreateRequest.Json.g.cs @@ -16,6 +16,14 @@ public string ToJson( jsonSerializerContext); } + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Replicate.SourceGenerationContext.Default); + } + /// /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. /// @@ -26,6 +34,11 @@ public string ToJson( public string ToJson( global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return ToJson(global::Replicate.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Serialize( this, jsonSerializerOptions); @@ -44,6 +57,17 @@ public string ToJson( jsonSerializerContext) as global::Replicate.ModelsCreateRequest; } + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Replicate.ModelsCreateRequest? FromJson( + string json) + { + return FromJson( + json, + global::Replicate.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON string using the provided JsonSerializerOptions. /// @@ -55,6 +79,13 @@ public string ToJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Replicate.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); @@ -73,6 +104,17 @@ public string ToJson( jsonSerializerContext).ConfigureAwait(false)) as global::Replicate.ModelsCreateRequest; } + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Replicate.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON stream using the provided JsonSerializerOptions. /// @@ -84,6 +126,13 @@ public string ToJson( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Replicate.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); diff --git a/src/libs/Replicate/Generated/Replicate.Models.ModelsCreateRequest.g.cs b/src/libs/Replicate/Generated/Replicate.Models.ModelsCreateRequest.g.cs index 70dc6e6..4f00dda 100644 --- a/src/libs/Replicate/Generated/Replicate.Models.ModelsCreateRequest.g.cs +++ b/src/libs/Replicate/Generated/Replicate.Models.ModelsCreateRequest.g.cs @@ -4,7 +4,7 @@ namespace Replicate { /// - /// + /// /// public sealed partial class ModelsCreateRequest { diff --git a/src/libs/Replicate/Generated/Replicate.Models.ModelsCreateRequestVisibility.g.cs b/src/libs/Replicate/Generated/Replicate.Models.ModelsCreateRequestVisibility.g.cs index 0d505c8..e0e55f7 100644 --- a/src/libs/Replicate/Generated/Replicate.Models.ModelsCreateRequestVisibility.g.cs +++ b/src/libs/Replicate/Generated/Replicate.Models.ModelsCreateRequestVisibility.g.cs @@ -10,11 +10,11 @@ namespace Replicate public enum ModelsCreateRequestVisibility { /// - /// + /// /// Private, /// - /// + /// /// Public, } diff --git a/src/libs/Replicate/Generated/Replicate.Models.ModelsListSortBy.g.cs b/src/libs/Replicate/Generated/Replicate.Models.ModelsListSortBy.g.cs index 9806807..033a4a8 100644 --- a/src/libs/Replicate/Generated/Replicate.Models.ModelsListSortBy.g.cs +++ b/src/libs/Replicate/Generated/Replicate.Models.ModelsListSortBy.g.cs @@ -9,11 +9,11 @@ namespace Replicate public enum ModelsListSortBy { /// - /// + /// /// LatestVersionCreatedAt, /// - /// + /// /// ModelCreatedAt, } diff --git a/src/libs/Replicate/Generated/Replicate.Models.ModelsListSortDirection.g.cs b/src/libs/Replicate/Generated/Replicate.Models.ModelsListSortDirection.g.cs index d2def5b..651f9b9 100644 --- a/src/libs/Replicate/Generated/Replicate.Models.ModelsListSortDirection.g.cs +++ b/src/libs/Replicate/Generated/Replicate.Models.ModelsListSortDirection.g.cs @@ -9,11 +9,11 @@ namespace Replicate public enum ModelsListSortDirection { /// - /// + /// /// Asc, /// - /// + /// /// Desc, } diff --git a/src/libs/Replicate/Generated/Replicate.Models.ModelsUpdateRequest.Json.g.cs b/src/libs/Replicate/Generated/Replicate.Models.ModelsUpdateRequest.Json.g.cs index 4c5f85f..6257bcb 100644 --- a/src/libs/Replicate/Generated/Replicate.Models.ModelsUpdateRequest.Json.g.cs +++ b/src/libs/Replicate/Generated/Replicate.Models.ModelsUpdateRequest.Json.g.cs @@ -16,6 +16,14 @@ public string ToJson( jsonSerializerContext); } + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Replicate.SourceGenerationContext.Default); + } + /// /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. /// @@ -26,6 +34,11 @@ public string ToJson( public string ToJson( global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return ToJson(global::Replicate.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Serialize( this, jsonSerializerOptions); @@ -44,6 +57,17 @@ public string ToJson( jsonSerializerContext) as global::Replicate.ModelsUpdateRequest; } + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Replicate.ModelsUpdateRequest? FromJson( + string json) + { + return FromJson( + json, + global::Replicate.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON string using the provided JsonSerializerOptions. /// @@ -55,6 +79,13 @@ public string ToJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Replicate.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); @@ -73,6 +104,17 @@ public string ToJson( jsonSerializerContext).ConfigureAwait(false)) as global::Replicate.ModelsUpdateRequest; } + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Replicate.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON stream using the provided JsonSerializerOptions. /// @@ -84,6 +126,13 @@ public string ToJson( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Replicate.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); diff --git a/src/libs/Replicate/Generated/Replicate.Models.ModelsUpdateRequest.g.cs b/src/libs/Replicate/Generated/Replicate.Models.ModelsUpdateRequest.g.cs index 26f20ac..23afbb9 100644 --- a/src/libs/Replicate/Generated/Replicate.Models.ModelsUpdateRequest.g.cs +++ b/src/libs/Replicate/Generated/Replicate.Models.ModelsUpdateRequest.g.cs @@ -4,7 +4,7 @@ namespace Replicate { /// - /// + /// /// public sealed partial class ModelsUpdateRequest { diff --git a/src/libs/Replicate/Generated/Replicate.Models.PredictionsListResponse.Json.g.cs b/src/libs/Replicate/Generated/Replicate.Models.PredictionsListResponse.Json.g.cs index 8232438..6eae08f 100644 --- a/src/libs/Replicate/Generated/Replicate.Models.PredictionsListResponse.Json.g.cs +++ b/src/libs/Replicate/Generated/Replicate.Models.PredictionsListResponse.Json.g.cs @@ -16,6 +16,14 @@ public string ToJson( jsonSerializerContext); } + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Replicate.SourceGenerationContext.Default); + } + /// /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. /// @@ -26,6 +34,11 @@ public string ToJson( public string ToJson( global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return ToJson(global::Replicate.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Serialize( this, jsonSerializerOptions); @@ -44,6 +57,17 @@ public string ToJson( jsonSerializerContext) as global::Replicate.PredictionsListResponse; } + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Replicate.PredictionsListResponse? FromJson( + string json) + { + return FromJson( + json, + global::Replicate.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON string using the provided JsonSerializerOptions. /// @@ -55,6 +79,13 @@ public string ToJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Replicate.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); @@ -73,6 +104,17 @@ public string ToJson( jsonSerializerContext).ConfigureAwait(false)) as global::Replicate.PredictionsListResponse; } + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Replicate.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON stream using the provided JsonSerializerOptions. /// @@ -84,6 +126,13 @@ public string ToJson( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Replicate.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); diff --git a/src/libs/Replicate/Generated/Replicate.Models.PredictionsListResponse.g.cs b/src/libs/Replicate/Generated/Replicate.Models.PredictionsListResponse.g.cs index afd423c..93cad18 100644 --- a/src/libs/Replicate/Generated/Replicate.Models.PredictionsListResponse.g.cs +++ b/src/libs/Replicate/Generated/Replicate.Models.PredictionsListResponse.g.cs @@ -4,24 +4,24 @@ namespace Replicate { /// - /// + /// /// public sealed partial class PredictionsListResponse { /// - /// + /// /// [global::System.Text.Json.Serialization.JsonPropertyName("next")] public string? Next { get; set; } /// - /// + /// /// [global::System.Text.Json.Serialization.JsonPropertyName("previous")] public string? Previous { get; set; } /// - /// + /// /// [global::System.Text.Json.Serialization.JsonPropertyName("results")] public global::System.Collections.Generic.IList? Results { get; set; } diff --git a/src/libs/Replicate/Generated/Replicate.Models.PredictionsListSource.g.cs b/src/libs/Replicate/Generated/Replicate.Models.PredictionsListSource.g.cs index fb2304c..faae4c6 100644 --- a/src/libs/Replicate/Generated/Replicate.Models.PredictionsListSource.g.cs +++ b/src/libs/Replicate/Generated/Replicate.Models.PredictionsListSource.g.cs @@ -4,12 +4,12 @@ namespace Replicate { /// - /// + /// /// public enum PredictionsListSource { /// - /// + /// /// Web, } diff --git a/src/libs/Replicate/Generated/Replicate.Models.SchemasCollectionListItem.Json.g.cs b/src/libs/Replicate/Generated/Replicate.Models.SchemasCollectionListItem.Json.g.cs index f0c409b..cb01b67 100644 --- a/src/libs/Replicate/Generated/Replicate.Models.SchemasCollectionListItem.Json.g.cs +++ b/src/libs/Replicate/Generated/Replicate.Models.SchemasCollectionListItem.Json.g.cs @@ -16,6 +16,14 @@ public string ToJson( jsonSerializerContext); } + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Replicate.SourceGenerationContext.Default); + } + /// /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. /// @@ -26,6 +34,11 @@ public string ToJson( public string ToJson( global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return ToJson(global::Replicate.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Serialize( this, jsonSerializerOptions); @@ -44,6 +57,17 @@ public string ToJson( jsonSerializerContext) as global::Replicate.SchemasCollectionListItem; } + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Replicate.SchemasCollectionListItem? FromJson( + string json) + { + return FromJson( + json, + global::Replicate.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON string using the provided JsonSerializerOptions. /// @@ -55,6 +79,13 @@ public string ToJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Replicate.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); @@ -73,6 +104,17 @@ public string ToJson( jsonSerializerContext).ConfigureAwait(false)) as global::Replicate.SchemasCollectionListItem; } + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Replicate.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON stream using the provided JsonSerializerOptions. /// @@ -84,6 +126,13 @@ public string ToJson( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Replicate.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); diff --git a/src/libs/Replicate/Generated/Replicate.Models.SchemasCollectionListItem.g.cs b/src/libs/Replicate/Generated/Replicate.Models.SchemasCollectionListItem.g.cs index b921e4b..128c818 100644 --- a/src/libs/Replicate/Generated/Replicate.Models.SchemasCollectionListItem.g.cs +++ b/src/libs/Replicate/Generated/Replicate.Models.SchemasCollectionListItem.g.cs @@ -4,7 +4,7 @@ namespace Replicate { /// - /// + /// /// public sealed partial class SchemasCollectionListItem { diff --git a/src/libs/Replicate/Generated/Replicate.Models.SchemasCollectionResponse.Json.g.cs b/src/libs/Replicate/Generated/Replicate.Models.SchemasCollectionResponse.Json.g.cs index f04ee03..1f46065 100644 --- a/src/libs/Replicate/Generated/Replicate.Models.SchemasCollectionResponse.Json.g.cs +++ b/src/libs/Replicate/Generated/Replicate.Models.SchemasCollectionResponse.Json.g.cs @@ -16,6 +16,14 @@ public string ToJson( jsonSerializerContext); } + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Replicate.SourceGenerationContext.Default); + } + /// /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. /// @@ -26,6 +34,11 @@ public string ToJson( public string ToJson( global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return ToJson(global::Replicate.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Serialize( this, jsonSerializerOptions); @@ -44,6 +57,17 @@ public string ToJson( jsonSerializerContext) as global::Replicate.SchemasCollectionResponse; } + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Replicate.SchemasCollectionResponse? FromJson( + string json) + { + return FromJson( + json, + global::Replicate.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON string using the provided JsonSerializerOptions. /// @@ -55,6 +79,13 @@ public string ToJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Replicate.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); @@ -73,6 +104,17 @@ public string ToJson( jsonSerializerContext).ConfigureAwait(false)) as global::Replicate.SchemasCollectionResponse; } + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Replicate.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON stream using the provided JsonSerializerOptions. /// @@ -84,6 +126,13 @@ public string ToJson( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Replicate.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); diff --git a/src/libs/Replicate/Generated/Replicate.Models.SchemasCollectionResponse.g.cs b/src/libs/Replicate/Generated/Replicate.Models.SchemasCollectionResponse.g.cs index e9e13da..cd6ea66 100644 --- a/src/libs/Replicate/Generated/Replicate.Models.SchemasCollectionResponse.g.cs +++ b/src/libs/Replicate/Generated/Replicate.Models.SchemasCollectionResponse.g.cs @@ -4,7 +4,7 @@ namespace Replicate { /// - /// + /// /// public sealed partial class SchemasCollectionResponse { diff --git a/src/libs/Replicate/Generated/Replicate.Models.SchemasDeploymentResponse.Json.g.cs b/src/libs/Replicate/Generated/Replicate.Models.SchemasDeploymentResponse.Json.g.cs index c785cf0..048b121 100644 --- a/src/libs/Replicate/Generated/Replicate.Models.SchemasDeploymentResponse.Json.g.cs +++ b/src/libs/Replicate/Generated/Replicate.Models.SchemasDeploymentResponse.Json.g.cs @@ -16,6 +16,14 @@ public string ToJson( jsonSerializerContext); } + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Replicate.SourceGenerationContext.Default); + } + /// /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. /// @@ -26,6 +34,11 @@ public string ToJson( public string ToJson( global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return ToJson(global::Replicate.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Serialize( this, jsonSerializerOptions); @@ -44,6 +57,17 @@ public string ToJson( jsonSerializerContext) as global::Replicate.SchemasDeploymentResponse; } + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Replicate.SchemasDeploymentResponse? FromJson( + string json) + { + return FromJson( + json, + global::Replicate.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON string using the provided JsonSerializerOptions. /// @@ -55,6 +79,13 @@ public string ToJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Replicate.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); @@ -73,6 +104,17 @@ public string ToJson( jsonSerializerContext).ConfigureAwait(false)) as global::Replicate.SchemasDeploymentResponse; } + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Replicate.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON stream using the provided JsonSerializerOptions. /// @@ -84,6 +126,13 @@ public string ToJson( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Replicate.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); diff --git a/src/libs/Replicate/Generated/Replicate.Models.SchemasDeploymentResponse.g.cs b/src/libs/Replicate/Generated/Replicate.Models.SchemasDeploymentResponse.g.cs index ba202bf..5c741ef 100644 --- a/src/libs/Replicate/Generated/Replicate.Models.SchemasDeploymentResponse.g.cs +++ b/src/libs/Replicate/Generated/Replicate.Models.SchemasDeploymentResponse.g.cs @@ -4,12 +4,12 @@ namespace Replicate { /// - /// + /// /// public sealed partial class SchemasDeploymentResponse { /// - /// + /// /// [global::System.Text.Json.Serialization.JsonPropertyName("current_release")] public global::Replicate.SchemasDeploymentResponseCurrentRelease? CurrentRelease { get; set; } diff --git a/src/libs/Replicate/Generated/Replicate.Models.SchemasDeploymentResponseCurrentRelease.Json.g.cs b/src/libs/Replicate/Generated/Replicate.Models.SchemasDeploymentResponseCurrentRelease.Json.g.cs index 7c3f69b..de1789d 100644 --- a/src/libs/Replicate/Generated/Replicate.Models.SchemasDeploymentResponseCurrentRelease.Json.g.cs +++ b/src/libs/Replicate/Generated/Replicate.Models.SchemasDeploymentResponseCurrentRelease.Json.g.cs @@ -16,6 +16,14 @@ public string ToJson( jsonSerializerContext); } + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Replicate.SourceGenerationContext.Default); + } + /// /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. /// @@ -26,6 +34,11 @@ public string ToJson( public string ToJson( global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return ToJson(global::Replicate.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Serialize( this, jsonSerializerOptions); @@ -44,6 +57,17 @@ public string ToJson( jsonSerializerContext) as global::Replicate.SchemasDeploymentResponseCurrentRelease; } + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Replicate.SchemasDeploymentResponseCurrentRelease? FromJson( + string json) + { + return FromJson( + json, + global::Replicate.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON string using the provided JsonSerializerOptions. /// @@ -55,6 +79,13 @@ public string ToJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Replicate.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); @@ -73,6 +104,17 @@ public string ToJson( jsonSerializerContext).ConfigureAwait(false)) as global::Replicate.SchemasDeploymentResponseCurrentRelease; } + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Replicate.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON stream using the provided JsonSerializerOptions. /// @@ -84,6 +126,13 @@ public string ToJson( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Replicate.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); diff --git a/src/libs/Replicate/Generated/Replicate.Models.SchemasDeploymentResponseCurrentRelease.g.cs b/src/libs/Replicate/Generated/Replicate.Models.SchemasDeploymentResponseCurrentRelease.g.cs index 17ce12a..5e7847e 100644 --- a/src/libs/Replicate/Generated/Replicate.Models.SchemasDeploymentResponseCurrentRelease.g.cs +++ b/src/libs/Replicate/Generated/Replicate.Models.SchemasDeploymentResponseCurrentRelease.g.cs @@ -4,12 +4,12 @@ namespace Replicate { /// - /// + /// /// public sealed partial class SchemasDeploymentResponseCurrentRelease { /// - /// + /// /// [global::System.Text.Json.Serialization.JsonPropertyName("configuration")] public global::Replicate.SchemasDeploymentResponseCurrentReleaseConfiguration? Configuration { get; set; } @@ -21,7 +21,7 @@ public sealed partial class SchemasDeploymentResponseCurrentRelease public global::System.DateTime? CreatedAt { get; set; } /// - /// + /// /// [global::System.Text.Json.Serialization.JsonPropertyName("created_by")] public global::Replicate.SchemasDeploymentResponseCurrentReleaseCreatedBy? CreatedBy { get; set; } diff --git a/src/libs/Replicate/Generated/Replicate.Models.SchemasDeploymentResponseCurrentReleaseConfiguration.Json.g.cs b/src/libs/Replicate/Generated/Replicate.Models.SchemasDeploymentResponseCurrentReleaseConfiguration.Json.g.cs index 1d6a612..d821920 100644 --- a/src/libs/Replicate/Generated/Replicate.Models.SchemasDeploymentResponseCurrentReleaseConfiguration.Json.g.cs +++ b/src/libs/Replicate/Generated/Replicate.Models.SchemasDeploymentResponseCurrentReleaseConfiguration.Json.g.cs @@ -16,6 +16,14 @@ public string ToJson( jsonSerializerContext); } + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Replicate.SourceGenerationContext.Default); + } + /// /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. /// @@ -26,6 +34,11 @@ public string ToJson( public string ToJson( global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return ToJson(global::Replicate.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Serialize( this, jsonSerializerOptions); @@ -44,6 +57,17 @@ public string ToJson( jsonSerializerContext) as global::Replicate.SchemasDeploymentResponseCurrentReleaseConfiguration; } + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Replicate.SchemasDeploymentResponseCurrentReleaseConfiguration? FromJson( + string json) + { + return FromJson( + json, + global::Replicate.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON string using the provided JsonSerializerOptions. /// @@ -55,6 +79,13 @@ public string ToJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Replicate.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); @@ -73,6 +104,17 @@ public string ToJson( jsonSerializerContext).ConfigureAwait(false)) as global::Replicate.SchemasDeploymentResponseCurrentReleaseConfiguration; } + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Replicate.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON stream using the provided JsonSerializerOptions. /// @@ -84,6 +126,13 @@ public string ToJson( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Replicate.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); diff --git a/src/libs/Replicate/Generated/Replicate.Models.SchemasDeploymentResponseCurrentReleaseConfiguration.g.cs b/src/libs/Replicate/Generated/Replicate.Models.SchemasDeploymentResponseCurrentReleaseConfiguration.g.cs index a057570..add0505 100644 --- a/src/libs/Replicate/Generated/Replicate.Models.SchemasDeploymentResponseCurrentReleaseConfiguration.g.cs +++ b/src/libs/Replicate/Generated/Replicate.Models.SchemasDeploymentResponseCurrentReleaseConfiguration.g.cs @@ -4,7 +4,7 @@ namespace Replicate { /// - /// + /// /// public sealed partial class SchemasDeploymentResponseCurrentReleaseConfiguration { diff --git a/src/libs/Replicate/Generated/Replicate.Models.SchemasDeploymentResponseCurrentReleaseCreatedBy.Json.g.cs b/src/libs/Replicate/Generated/Replicate.Models.SchemasDeploymentResponseCurrentReleaseCreatedBy.Json.g.cs index 3e3cd96..1525206 100644 --- a/src/libs/Replicate/Generated/Replicate.Models.SchemasDeploymentResponseCurrentReleaseCreatedBy.Json.g.cs +++ b/src/libs/Replicate/Generated/Replicate.Models.SchemasDeploymentResponseCurrentReleaseCreatedBy.Json.g.cs @@ -16,6 +16,14 @@ public string ToJson( jsonSerializerContext); } + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Replicate.SourceGenerationContext.Default); + } + /// /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. /// @@ -26,6 +34,11 @@ public string ToJson( public string ToJson( global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return ToJson(global::Replicate.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Serialize( this, jsonSerializerOptions); @@ -44,6 +57,17 @@ public string ToJson( jsonSerializerContext) as global::Replicate.SchemasDeploymentResponseCurrentReleaseCreatedBy; } + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Replicate.SchemasDeploymentResponseCurrentReleaseCreatedBy? FromJson( + string json) + { + return FromJson( + json, + global::Replicate.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON string using the provided JsonSerializerOptions. /// @@ -55,6 +79,13 @@ public string ToJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Replicate.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); @@ -73,6 +104,17 @@ public string ToJson( jsonSerializerContext).ConfigureAwait(false)) as global::Replicate.SchemasDeploymentResponseCurrentReleaseCreatedBy; } + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Replicate.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON stream using the provided JsonSerializerOptions. /// @@ -84,6 +126,13 @@ public string ToJson( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Replicate.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); diff --git a/src/libs/Replicate/Generated/Replicate.Models.SchemasDeploymentResponseCurrentReleaseCreatedBy.g.cs b/src/libs/Replicate/Generated/Replicate.Models.SchemasDeploymentResponseCurrentReleaseCreatedBy.g.cs index f6f1dbd..944cbc0 100644 --- a/src/libs/Replicate/Generated/Replicate.Models.SchemasDeploymentResponseCurrentReleaseCreatedBy.g.cs +++ b/src/libs/Replicate/Generated/Replicate.Models.SchemasDeploymentResponseCurrentReleaseCreatedBy.g.cs @@ -4,7 +4,7 @@ namespace Replicate { /// - /// + /// /// public sealed partial class SchemasDeploymentResponseCurrentReleaseCreatedBy { diff --git a/src/libs/Replicate/Generated/Replicate.Models.SchemasDeploymentResponseCurrentReleaseCreatedByType.g.cs b/src/libs/Replicate/Generated/Replicate.Models.SchemasDeploymentResponseCurrentReleaseCreatedByType.g.cs index 88aa5c5..7b45887 100644 --- a/src/libs/Replicate/Generated/Replicate.Models.SchemasDeploymentResponseCurrentReleaseCreatedByType.g.cs +++ b/src/libs/Replicate/Generated/Replicate.Models.SchemasDeploymentResponseCurrentReleaseCreatedByType.g.cs @@ -9,11 +9,11 @@ namespace Replicate public enum SchemasDeploymentResponseCurrentReleaseCreatedByType { /// - /// + /// /// Organization, /// - /// + /// /// User, } diff --git a/src/libs/Replicate/Generated/Replicate.Models.SchemasFileResponse.Json.g.cs b/src/libs/Replicate/Generated/Replicate.Models.SchemasFileResponse.Json.g.cs index 728eba4..b39f6e2 100644 --- a/src/libs/Replicate/Generated/Replicate.Models.SchemasFileResponse.Json.g.cs +++ b/src/libs/Replicate/Generated/Replicate.Models.SchemasFileResponse.Json.g.cs @@ -16,6 +16,14 @@ public string ToJson( jsonSerializerContext); } + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Replicate.SourceGenerationContext.Default); + } + /// /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. /// @@ -26,6 +34,11 @@ public string ToJson( public string ToJson( global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return ToJson(global::Replicate.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Serialize( this, jsonSerializerOptions); @@ -44,6 +57,17 @@ public string ToJson( jsonSerializerContext) as global::Replicate.SchemasFileResponse; } + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Replicate.SchemasFileResponse? FromJson( + string json) + { + return FromJson( + json, + global::Replicate.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON string using the provided JsonSerializerOptions. /// @@ -55,6 +79,13 @@ public string ToJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Replicate.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); @@ -73,6 +104,17 @@ public string ToJson( jsonSerializerContext).ConfigureAwait(false)) as global::Replicate.SchemasFileResponse; } + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Replicate.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON stream using the provided JsonSerializerOptions. /// @@ -84,6 +126,13 @@ public string ToJson( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Replicate.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); diff --git a/src/libs/Replicate/Generated/Replicate.Models.SchemasFileResponseChecksums.Json.g.cs b/src/libs/Replicate/Generated/Replicate.Models.SchemasFileResponseChecksums.Json.g.cs index 38e53d6..536fd72 100644 --- a/src/libs/Replicate/Generated/Replicate.Models.SchemasFileResponseChecksums.Json.g.cs +++ b/src/libs/Replicate/Generated/Replicate.Models.SchemasFileResponseChecksums.Json.g.cs @@ -16,6 +16,14 @@ public string ToJson( jsonSerializerContext); } + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Replicate.SourceGenerationContext.Default); + } + /// /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. /// @@ -26,6 +34,11 @@ public string ToJson( public string ToJson( global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return ToJson(global::Replicate.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Serialize( this, jsonSerializerOptions); @@ -44,6 +57,17 @@ public string ToJson( jsonSerializerContext) as global::Replicate.SchemasFileResponseChecksums; } + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Replicate.SchemasFileResponseChecksums? FromJson( + string json) + { + return FromJson( + json, + global::Replicate.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON string using the provided JsonSerializerOptions. /// @@ -55,6 +79,13 @@ public string ToJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Replicate.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); @@ -73,6 +104,17 @@ public string ToJson( jsonSerializerContext).ConfigureAwait(false)) as global::Replicate.SchemasFileResponseChecksums; } + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Replicate.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON stream using the provided JsonSerializerOptions. /// @@ -84,6 +126,13 @@ public string ToJson( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Replicate.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); diff --git a/src/libs/Replicate/Generated/Replicate.Models.SchemasFileResponseMetadata.Json.g.cs b/src/libs/Replicate/Generated/Replicate.Models.SchemasFileResponseMetadata.Json.g.cs index 0b7bd00..66bf947 100644 --- a/src/libs/Replicate/Generated/Replicate.Models.SchemasFileResponseMetadata.Json.g.cs +++ b/src/libs/Replicate/Generated/Replicate.Models.SchemasFileResponseMetadata.Json.g.cs @@ -16,6 +16,14 @@ public string ToJson( jsonSerializerContext); } + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Replicate.SourceGenerationContext.Default); + } + /// /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. /// @@ -26,6 +34,11 @@ public string ToJson( public string ToJson( global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return ToJson(global::Replicate.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Serialize( this, jsonSerializerOptions); @@ -44,6 +57,17 @@ public string ToJson( jsonSerializerContext) as global::Replicate.SchemasFileResponseMetadata; } + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Replicate.SchemasFileResponseMetadata? FromJson( + string json) + { + return FromJson( + json, + global::Replicate.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON string using the provided JsonSerializerOptions. /// @@ -55,6 +79,13 @@ public string ToJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Replicate.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); @@ -73,6 +104,17 @@ public string ToJson( jsonSerializerContext).ConfigureAwait(false)) as global::Replicate.SchemasFileResponseMetadata; } + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Replicate.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON stream using the provided JsonSerializerOptions. /// @@ -84,6 +126,13 @@ public string ToJson( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Replicate.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); diff --git a/src/libs/Replicate/Generated/Replicate.Models.SchemasFileResponseUrls.Json.g.cs b/src/libs/Replicate/Generated/Replicate.Models.SchemasFileResponseUrls.Json.g.cs index 0800464..fee9876 100644 --- a/src/libs/Replicate/Generated/Replicate.Models.SchemasFileResponseUrls.Json.g.cs +++ b/src/libs/Replicate/Generated/Replicate.Models.SchemasFileResponseUrls.Json.g.cs @@ -16,6 +16,14 @@ public string ToJson( jsonSerializerContext); } + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Replicate.SourceGenerationContext.Default); + } + /// /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. /// @@ -26,6 +34,11 @@ public string ToJson( public string ToJson( global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return ToJson(global::Replicate.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Serialize( this, jsonSerializerOptions); @@ -44,6 +57,17 @@ public string ToJson( jsonSerializerContext) as global::Replicate.SchemasFileResponseUrls; } + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Replicate.SchemasFileResponseUrls? FromJson( + string json) + { + return FromJson( + json, + global::Replicate.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON string using the provided JsonSerializerOptions. /// @@ -55,6 +79,13 @@ public string ToJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Replicate.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); @@ -73,6 +104,17 @@ public string ToJson( jsonSerializerContext).ConfigureAwait(false)) as global::Replicate.SchemasFileResponseUrls; } + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Replicate.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON stream using the provided JsonSerializerOptions. /// @@ -84,6 +126,13 @@ public string ToJson( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Replicate.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); diff --git a/src/libs/Replicate/Generated/Replicate.Models.SchemasModelResponse.Json.g.cs b/src/libs/Replicate/Generated/Replicate.Models.SchemasModelResponse.Json.g.cs index c6c38f9..62c0137 100644 --- a/src/libs/Replicate/Generated/Replicate.Models.SchemasModelResponse.Json.g.cs +++ b/src/libs/Replicate/Generated/Replicate.Models.SchemasModelResponse.Json.g.cs @@ -16,6 +16,14 @@ public string ToJson( jsonSerializerContext); } + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Replicate.SourceGenerationContext.Default); + } + /// /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. /// @@ -26,6 +34,11 @@ public string ToJson( public string ToJson( global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return ToJson(global::Replicate.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Serialize( this, jsonSerializerOptions); @@ -44,6 +57,17 @@ public string ToJson( jsonSerializerContext) as global::Replicate.SchemasModelResponse; } + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Replicate.SchemasModelResponse? FromJson( + string json) + { + return FromJson( + json, + global::Replicate.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON string using the provided JsonSerializerOptions. /// @@ -55,6 +79,13 @@ public string ToJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Replicate.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); @@ -73,6 +104,17 @@ public string ToJson( jsonSerializerContext).ConfigureAwait(false)) as global::Replicate.SchemasModelResponse; } + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Replicate.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON stream using the provided JsonSerializerOptions. /// @@ -84,6 +126,13 @@ public string ToJson( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Replicate.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); diff --git a/src/libs/Replicate/Generated/Replicate.Models.SchemasModelResponse.g.cs b/src/libs/Replicate/Generated/Replicate.Models.SchemasModelResponse.g.cs index ddbdd73..eeb9080 100644 --- a/src/libs/Replicate/Generated/Replicate.Models.SchemasModelResponse.g.cs +++ b/src/libs/Replicate/Generated/Replicate.Models.SchemasModelResponse.g.cs @@ -4,7 +4,7 @@ namespace Replicate { /// - /// + /// /// public sealed partial class SchemasModelResponse { diff --git a/src/libs/Replicate/Generated/Replicate.Models.SchemasModelResponseDefaultExample.Json.g.cs b/src/libs/Replicate/Generated/Replicate.Models.SchemasModelResponseDefaultExample.Json.g.cs index be8818b..1a5d25f 100644 --- a/src/libs/Replicate/Generated/Replicate.Models.SchemasModelResponseDefaultExample.Json.g.cs +++ b/src/libs/Replicate/Generated/Replicate.Models.SchemasModelResponseDefaultExample.Json.g.cs @@ -16,6 +16,14 @@ public string ToJson( jsonSerializerContext); } + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Replicate.SourceGenerationContext.Default); + } + /// /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. /// @@ -26,6 +34,11 @@ public string ToJson( public string ToJson( global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return ToJson(global::Replicate.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Serialize( this, jsonSerializerOptions); @@ -44,6 +57,17 @@ public string ToJson( jsonSerializerContext) as global::Replicate.SchemasModelResponseDefaultExample; } + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Replicate.SchemasModelResponseDefaultExample? FromJson( + string json) + { + return FromJson( + json, + global::Replicate.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON string using the provided JsonSerializerOptions. /// @@ -55,6 +79,13 @@ public string ToJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Replicate.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); @@ -73,6 +104,17 @@ public string ToJson( jsonSerializerContext).ConfigureAwait(false)) as global::Replicate.SchemasModelResponseDefaultExample; } + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Replicate.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON stream using the provided JsonSerializerOptions. /// @@ -84,6 +126,13 @@ public string ToJson( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Replicate.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); diff --git a/src/libs/Replicate/Generated/Replicate.Models.SchemasModelResponseLatestVersion.Json.g.cs b/src/libs/Replicate/Generated/Replicate.Models.SchemasModelResponseLatestVersion.Json.g.cs index 0c81c22..5bbd631 100644 --- a/src/libs/Replicate/Generated/Replicate.Models.SchemasModelResponseLatestVersion.Json.g.cs +++ b/src/libs/Replicate/Generated/Replicate.Models.SchemasModelResponseLatestVersion.Json.g.cs @@ -16,6 +16,14 @@ public string ToJson( jsonSerializerContext); } + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Replicate.SourceGenerationContext.Default); + } + /// /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. /// @@ -26,6 +34,11 @@ public string ToJson( public string ToJson( global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return ToJson(global::Replicate.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Serialize( this, jsonSerializerOptions); @@ -44,6 +57,17 @@ public string ToJson( jsonSerializerContext) as global::Replicate.SchemasModelResponseLatestVersion; } + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Replicate.SchemasModelResponseLatestVersion? FromJson( + string json) + { + return FromJson( + json, + global::Replicate.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON string using the provided JsonSerializerOptions. /// @@ -55,6 +79,13 @@ public string ToJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Replicate.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); @@ -73,6 +104,17 @@ public string ToJson( jsonSerializerContext).ConfigureAwait(false)) as global::Replicate.SchemasModelResponseLatestVersion; } + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Replicate.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON stream using the provided JsonSerializerOptions. /// @@ -84,6 +126,13 @@ public string ToJson( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Replicate.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); diff --git a/src/libs/Replicate/Generated/Replicate.Models.SchemasModelResponseVisibility.g.cs b/src/libs/Replicate/Generated/Replicate.Models.SchemasModelResponseVisibility.g.cs index c44bfee..e17edd3 100644 --- a/src/libs/Replicate/Generated/Replicate.Models.SchemasModelResponseVisibility.g.cs +++ b/src/libs/Replicate/Generated/Replicate.Models.SchemasModelResponseVisibility.g.cs @@ -9,11 +9,11 @@ namespace Replicate public enum SchemasModelResponseVisibility { /// - /// + /// /// Private, /// - /// + /// /// Public, } diff --git a/src/libs/Replicate/Generated/Replicate.Models.SchemasPageResponse.Json.g.cs b/src/libs/Replicate/Generated/Replicate.Models.SchemasPageResponse.Json.g.cs index a2ee312..e68f306 100644 --- a/src/libs/Replicate/Generated/Replicate.Models.SchemasPageResponse.Json.g.cs +++ b/src/libs/Replicate/Generated/Replicate.Models.SchemasPageResponse.Json.g.cs @@ -16,6 +16,14 @@ public string ToJson( jsonSerializerContext); } + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Replicate.SourceGenerationContext.Default); + } + /// /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. /// @@ -26,6 +34,11 @@ public string ToJson( public string ToJson( global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return ToJson(global::Replicate.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Serialize( this, jsonSerializerOptions); @@ -44,6 +57,17 @@ public string ToJson( jsonSerializerContext) as global::Replicate.SchemasPageResponse; } + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Replicate.SchemasPageResponse? FromJson( + string json) + { + return FromJson( + json, + global::Replicate.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON string using the provided JsonSerializerOptions. /// @@ -55,6 +79,13 @@ public string ToJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Replicate.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); @@ -73,6 +104,17 @@ public string ToJson( jsonSerializerContext).ConfigureAwait(false)) as global::Replicate.SchemasPageResponse; } + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Replicate.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON stream using the provided JsonSerializerOptions. /// @@ -84,6 +126,13 @@ public string ToJson( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Replicate.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); diff --git a/src/libs/Replicate/Generated/Replicate.Models.SchemasPageResponse.g.cs b/src/libs/Replicate/Generated/Replicate.Models.SchemasPageResponse.g.cs index 10c6d40..40637b2 100644 --- a/src/libs/Replicate/Generated/Replicate.Models.SchemasPageResponse.g.cs +++ b/src/libs/Replicate/Generated/Replicate.Models.SchemasPageResponse.g.cs @@ -4,7 +4,7 @@ namespace Replicate { /// - /// + /// /// public sealed partial class SchemasPageResponse { diff --git a/src/libs/Replicate/Generated/Replicate.Models.SchemasPaginatedCollectionResponse.Json.g.cs b/src/libs/Replicate/Generated/Replicate.Models.SchemasPaginatedCollectionResponse.Json.g.cs index 3a0f096..59abe95 100644 --- a/src/libs/Replicate/Generated/Replicate.Models.SchemasPaginatedCollectionResponse.Json.g.cs +++ b/src/libs/Replicate/Generated/Replicate.Models.SchemasPaginatedCollectionResponse.Json.g.cs @@ -16,6 +16,14 @@ public string ToJson( jsonSerializerContext); } + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Replicate.SourceGenerationContext.Default); + } + /// /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. /// @@ -26,6 +34,11 @@ public string ToJson( public string ToJson( global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return ToJson(global::Replicate.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Serialize( this, jsonSerializerOptions); @@ -44,6 +57,17 @@ public string ToJson( jsonSerializerContext) as global::Replicate.SchemasPaginatedCollectionResponse; } + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Replicate.SchemasPaginatedCollectionResponse? FromJson( + string json) + { + return FromJson( + json, + global::Replicate.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON string using the provided JsonSerializerOptions. /// @@ -55,6 +79,13 @@ public string ToJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Replicate.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); @@ -73,6 +104,17 @@ public string ToJson( jsonSerializerContext).ConfigureAwait(false)) as global::Replicate.SchemasPaginatedCollectionResponse; } + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Replicate.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON stream using the provided JsonSerializerOptions. /// @@ -84,6 +126,13 @@ public string ToJson( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Replicate.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); diff --git a/src/libs/Replicate/Generated/Replicate.Models.SchemasPaginatedCollectionResponse.g.cs b/src/libs/Replicate/Generated/Replicate.Models.SchemasPaginatedCollectionResponse.g.cs index 9a504ac..2d9be64 100644 --- a/src/libs/Replicate/Generated/Replicate.Models.SchemasPaginatedCollectionResponse.g.cs +++ b/src/libs/Replicate/Generated/Replicate.Models.SchemasPaginatedCollectionResponse.g.cs @@ -4,7 +4,7 @@ namespace Replicate { /// - /// + /// /// public sealed partial class SchemasPaginatedCollectionResponse { diff --git a/src/libs/Replicate/Generated/Replicate.Models.SchemasPaginatedModelResponse.Json.g.cs b/src/libs/Replicate/Generated/Replicate.Models.SchemasPaginatedModelResponse.Json.g.cs index 5dca7a5..3b8d78f 100644 --- a/src/libs/Replicate/Generated/Replicate.Models.SchemasPaginatedModelResponse.Json.g.cs +++ b/src/libs/Replicate/Generated/Replicate.Models.SchemasPaginatedModelResponse.Json.g.cs @@ -16,6 +16,14 @@ public string ToJson( jsonSerializerContext); } + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Replicate.SourceGenerationContext.Default); + } + /// /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. /// @@ -26,6 +34,11 @@ public string ToJson( public string ToJson( global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return ToJson(global::Replicate.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Serialize( this, jsonSerializerOptions); @@ -44,6 +57,17 @@ public string ToJson( jsonSerializerContext) as global::Replicate.SchemasPaginatedModelResponse; } + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Replicate.SchemasPaginatedModelResponse? FromJson( + string json) + { + return FromJson( + json, + global::Replicate.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON string using the provided JsonSerializerOptions. /// @@ -55,6 +79,13 @@ public string ToJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Replicate.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); @@ -73,6 +104,17 @@ public string ToJson( jsonSerializerContext).ConfigureAwait(false)) as global::Replicate.SchemasPaginatedModelResponse; } + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Replicate.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON stream using the provided JsonSerializerOptions. /// @@ -84,6 +126,13 @@ public string ToJson( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Replicate.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); diff --git a/src/libs/Replicate/Generated/Replicate.Models.SchemasPaginatedModelResponse.g.cs b/src/libs/Replicate/Generated/Replicate.Models.SchemasPaginatedModelResponse.g.cs index d4a71e9..a3417e2 100644 --- a/src/libs/Replicate/Generated/Replicate.Models.SchemasPaginatedModelResponse.g.cs +++ b/src/libs/Replicate/Generated/Replicate.Models.SchemasPaginatedModelResponse.g.cs @@ -4,7 +4,7 @@ namespace Replicate { /// - /// + /// /// public sealed partial class SchemasPaginatedModelResponse { diff --git a/src/libs/Replicate/Generated/Replicate.Models.SchemasPaginatedPredictionResponse.Json.g.cs b/src/libs/Replicate/Generated/Replicate.Models.SchemasPaginatedPredictionResponse.Json.g.cs index 76da39a..af05fbe 100644 --- a/src/libs/Replicate/Generated/Replicate.Models.SchemasPaginatedPredictionResponse.Json.g.cs +++ b/src/libs/Replicate/Generated/Replicate.Models.SchemasPaginatedPredictionResponse.Json.g.cs @@ -16,6 +16,14 @@ public string ToJson( jsonSerializerContext); } + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Replicate.SourceGenerationContext.Default); + } + /// /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. /// @@ -26,6 +34,11 @@ public string ToJson( public string ToJson( global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return ToJson(global::Replicate.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Serialize( this, jsonSerializerOptions); @@ -44,6 +57,17 @@ public string ToJson( jsonSerializerContext) as global::Replicate.SchemasPaginatedPredictionResponse; } + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Replicate.SchemasPaginatedPredictionResponse? FromJson( + string json) + { + return FromJson( + json, + global::Replicate.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON string using the provided JsonSerializerOptions. /// @@ -55,6 +79,13 @@ public string ToJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Replicate.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); @@ -73,6 +104,17 @@ public string ToJson( jsonSerializerContext).ConfigureAwait(false)) as global::Replicate.SchemasPaginatedPredictionResponse; } + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Replicate.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON stream using the provided JsonSerializerOptions. /// @@ -84,6 +126,13 @@ public string ToJson( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Replicate.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); diff --git a/src/libs/Replicate/Generated/Replicate.Models.SchemasPaginatedPredictionResponse.g.cs b/src/libs/Replicate/Generated/Replicate.Models.SchemasPaginatedPredictionResponse.g.cs index e85d41b..b58441d 100644 --- a/src/libs/Replicate/Generated/Replicate.Models.SchemasPaginatedPredictionResponse.g.cs +++ b/src/libs/Replicate/Generated/Replicate.Models.SchemasPaginatedPredictionResponse.g.cs @@ -4,7 +4,7 @@ namespace Replicate { /// - /// + /// /// public sealed partial class SchemasPaginatedPredictionResponse { diff --git a/src/libs/Replicate/Generated/Replicate.Models.SchemasPaginatedVersionResponse.Json.g.cs b/src/libs/Replicate/Generated/Replicate.Models.SchemasPaginatedVersionResponse.Json.g.cs index 4c9c4a4..5287d6b 100644 --- a/src/libs/Replicate/Generated/Replicate.Models.SchemasPaginatedVersionResponse.Json.g.cs +++ b/src/libs/Replicate/Generated/Replicate.Models.SchemasPaginatedVersionResponse.Json.g.cs @@ -16,6 +16,14 @@ public string ToJson( jsonSerializerContext); } + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Replicate.SourceGenerationContext.Default); + } + /// /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. /// @@ -26,6 +34,11 @@ public string ToJson( public string ToJson( global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return ToJson(global::Replicate.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Serialize( this, jsonSerializerOptions); @@ -44,6 +57,17 @@ public string ToJson( jsonSerializerContext) as global::Replicate.SchemasPaginatedVersionResponse; } + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Replicate.SchemasPaginatedVersionResponse? FromJson( + string json) + { + return FromJson( + json, + global::Replicate.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON string using the provided JsonSerializerOptions. /// @@ -55,6 +79,13 @@ public string ToJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Replicate.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); @@ -73,6 +104,17 @@ public string ToJson( jsonSerializerContext).ConfigureAwait(false)) as global::Replicate.SchemasPaginatedVersionResponse; } + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Replicate.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON stream using the provided JsonSerializerOptions. /// @@ -84,6 +126,13 @@ public string ToJson( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Replicate.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); diff --git a/src/libs/Replicate/Generated/Replicate.Models.SchemasPaginatedVersionResponse.g.cs b/src/libs/Replicate/Generated/Replicate.Models.SchemasPaginatedVersionResponse.g.cs index e72de28..1723246 100644 --- a/src/libs/Replicate/Generated/Replicate.Models.SchemasPaginatedVersionResponse.g.cs +++ b/src/libs/Replicate/Generated/Replicate.Models.SchemasPaginatedVersionResponse.g.cs @@ -4,7 +4,7 @@ namespace Replicate { /// - /// + /// /// public sealed partial class SchemasPaginatedVersionResponse { diff --git a/src/libs/Replicate/Generated/Replicate.Models.SchemasPredictionRequest.Json.g.cs b/src/libs/Replicate/Generated/Replicate.Models.SchemasPredictionRequest.Json.g.cs index ee78326..e7a4652 100644 --- a/src/libs/Replicate/Generated/Replicate.Models.SchemasPredictionRequest.Json.g.cs +++ b/src/libs/Replicate/Generated/Replicate.Models.SchemasPredictionRequest.Json.g.cs @@ -16,6 +16,14 @@ public string ToJson( jsonSerializerContext); } + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Replicate.SourceGenerationContext.Default); + } + /// /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. /// @@ -26,6 +34,11 @@ public string ToJson( public string ToJson( global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return ToJson(global::Replicate.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Serialize( this, jsonSerializerOptions); @@ -44,6 +57,17 @@ public string ToJson( jsonSerializerContext) as global::Replicate.SchemasPredictionRequest; } + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Replicate.SchemasPredictionRequest? FromJson( + string json) + { + return FromJson( + json, + global::Replicate.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON string using the provided JsonSerializerOptions. /// @@ -55,6 +79,13 @@ public string ToJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Replicate.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); @@ -73,6 +104,17 @@ public string ToJson( jsonSerializerContext).ConfigureAwait(false)) as global::Replicate.SchemasPredictionRequest; } + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Replicate.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON stream using the provided JsonSerializerOptions. /// @@ -84,6 +126,13 @@ public string ToJson( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Replicate.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); diff --git a/src/libs/Replicate/Generated/Replicate.Models.SchemasPredictionRequest.g.cs b/src/libs/Replicate/Generated/Replicate.Models.SchemasPredictionRequest.g.cs index a846644..16b94e8 100644 --- a/src/libs/Replicate/Generated/Replicate.Models.SchemasPredictionRequest.g.cs +++ b/src/libs/Replicate/Generated/Replicate.Models.SchemasPredictionRequest.g.cs @@ -4,7 +4,7 @@ namespace Replicate { /// - /// + /// /// public sealed partial class SchemasPredictionRequest { diff --git a/src/libs/Replicate/Generated/Replicate.Models.SchemasPredictionRequestInput.Json.g.cs b/src/libs/Replicate/Generated/Replicate.Models.SchemasPredictionRequestInput.Json.g.cs index 0e378fd..c002188 100644 --- a/src/libs/Replicate/Generated/Replicate.Models.SchemasPredictionRequestInput.Json.g.cs +++ b/src/libs/Replicate/Generated/Replicate.Models.SchemasPredictionRequestInput.Json.g.cs @@ -16,6 +16,14 @@ public string ToJson( jsonSerializerContext); } + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Replicate.SourceGenerationContext.Default); + } + /// /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. /// @@ -26,6 +34,11 @@ public string ToJson( public string ToJson( global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return ToJson(global::Replicate.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Serialize( this, jsonSerializerOptions); @@ -44,6 +57,17 @@ public string ToJson( jsonSerializerContext) as global::Replicate.SchemasPredictionRequestInput; } + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Replicate.SchemasPredictionRequestInput? FromJson( + string json) + { + return FromJson( + json, + global::Replicate.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON string using the provided JsonSerializerOptions. /// @@ -55,6 +79,13 @@ public string ToJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Replicate.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); @@ -73,6 +104,17 @@ public string ToJson( jsonSerializerContext).ConfigureAwait(false)) as global::Replicate.SchemasPredictionRequestInput; } + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Replicate.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON stream using the provided JsonSerializerOptions. /// @@ -84,6 +126,13 @@ public string ToJson( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Replicate.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); diff --git a/src/libs/Replicate/Generated/Replicate.Models.SchemasPredictionRequestWebhookEventsFilterItem.g.cs b/src/libs/Replicate/Generated/Replicate.Models.SchemasPredictionRequestWebhookEventsFilterItem.g.cs index 72a546f..7f2ef5a 100644 --- a/src/libs/Replicate/Generated/Replicate.Models.SchemasPredictionRequestWebhookEventsFilterItem.g.cs +++ b/src/libs/Replicate/Generated/Replicate.Models.SchemasPredictionRequestWebhookEventsFilterItem.g.cs @@ -4,24 +4,24 @@ namespace Replicate { /// - /// + /// /// public enum SchemasPredictionRequestWebhookEventsFilterItem { /// - /// + /// /// Completed, /// - /// + /// /// Logs, /// - /// + /// /// Output, /// - /// + /// /// Start, } diff --git a/src/libs/Replicate/Generated/Replicate.Models.SchemasPredictionResponse.Json.g.cs b/src/libs/Replicate/Generated/Replicate.Models.SchemasPredictionResponse.Json.g.cs index 48083ab..2911919 100644 --- a/src/libs/Replicate/Generated/Replicate.Models.SchemasPredictionResponse.Json.g.cs +++ b/src/libs/Replicate/Generated/Replicate.Models.SchemasPredictionResponse.Json.g.cs @@ -16,6 +16,14 @@ public string ToJson( jsonSerializerContext); } + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Replicate.SourceGenerationContext.Default); + } + /// /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. /// @@ -26,6 +34,11 @@ public string ToJson( public string ToJson( global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return ToJson(global::Replicate.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Serialize( this, jsonSerializerOptions); @@ -44,6 +57,17 @@ public string ToJson( jsonSerializerContext) as global::Replicate.SchemasPredictionResponse; } + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Replicate.SchemasPredictionResponse? FromJson( + string json) + { + return FromJson( + json, + global::Replicate.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON string using the provided JsonSerializerOptions. /// @@ -55,6 +79,13 @@ public string ToJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Replicate.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); @@ -73,6 +104,17 @@ public string ToJson( jsonSerializerContext).ConfigureAwait(false)) as global::Replicate.SchemasPredictionResponse; } + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Replicate.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON stream using the provided JsonSerializerOptions. /// @@ -84,6 +126,13 @@ public string ToJson( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Replicate.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); diff --git a/src/libs/Replicate/Generated/Replicate.Models.SchemasPredictionResponse.g.cs b/src/libs/Replicate/Generated/Replicate.Models.SchemasPredictionResponse.g.cs index 88cfdf8..68c6802 100644 --- a/src/libs/Replicate/Generated/Replicate.Models.SchemasPredictionResponse.g.cs +++ b/src/libs/Replicate/Generated/Replicate.Models.SchemasPredictionResponse.g.cs @@ -4,7 +4,7 @@ namespace Replicate { /// - /// + /// /// public sealed partial class SchemasPredictionResponse { @@ -44,11 +44,10 @@ public sealed partial class SchemasPredictionResponse /// An error string if the model status is `"failed"` /// [global::System.Text.Json.Serialization.JsonPropertyName("error")] - [global::System.Text.Json.Serialization.JsonRequired] - public required string Error { get; set; } + public string? Error { get; set; } /// - /// + /// /// [global::System.Text.Json.Serialization.JsonPropertyName("id")] [global::System.Text.Json.Serialization.JsonRequired] @@ -116,7 +115,7 @@ public sealed partial class SchemasPredictionResponse public required global::Replicate.SchemasPredictionResponseUrls Urls { get; set; } /// - /// + /// /// [global::System.Text.Json.Serialization.JsonPropertyName("version")] [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Replicate.JsonConverters.OneOfJsonConverter))] @@ -138,9 +137,6 @@ public sealed partial class SchemasPredictionResponse /// /// Whether the prediction output has been deleted /// - /// - /// An error string if the model status is `"failed"` - /// /// /// /// The prediction input @@ -167,6 +163,9 @@ public sealed partial class SchemasPredictionResponse /// /// The name of the deployment that created the prediction /// + /// + /// An error string if the model status is `"failed"` + /// /// /// The log output from the model /// @@ -185,7 +184,6 @@ public sealed partial class SchemasPredictionResponse public SchemasPredictionResponse( global::System.DateTime createdAt, bool dataRemoved, - string error, string id, object input, string model, @@ -196,6 +194,7 @@ public SchemasPredictionResponse( global::System.DateTime? completedAt, global::System.DateTime? deadline, string? deployment, + string? error, string? logs, global::Replicate.SchemasPredictionResponseMetrics? metrics, global::Replicate.SchemasPredictionResponseSource? source, @@ -206,7 +205,7 @@ public SchemasPredictionResponse( this.DataRemoved = dataRemoved; this.Deadline = deadline; this.Deployment = deployment; - this.Error = error ?? throw new global::System.ArgumentNullException(nameof(error)); + this.Error = error; this.Id = id ?? throw new global::System.ArgumentNullException(nameof(id)); this.Input = input ?? throw new global::System.ArgumentNullException(nameof(input)); this.Logs = logs; diff --git a/src/libs/Replicate/Generated/Replicate.Models.SchemasPredictionResponseInput.Json.g.cs b/src/libs/Replicate/Generated/Replicate.Models.SchemasPredictionResponseInput.Json.g.cs index 34455e7..36a4d74 100644 --- a/src/libs/Replicate/Generated/Replicate.Models.SchemasPredictionResponseInput.Json.g.cs +++ b/src/libs/Replicate/Generated/Replicate.Models.SchemasPredictionResponseInput.Json.g.cs @@ -16,6 +16,14 @@ public string ToJson( jsonSerializerContext); } + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Replicate.SourceGenerationContext.Default); + } + /// /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. /// @@ -26,6 +34,11 @@ public string ToJson( public string ToJson( global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return ToJson(global::Replicate.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Serialize( this, jsonSerializerOptions); @@ -44,6 +57,17 @@ public string ToJson( jsonSerializerContext) as global::Replicate.SchemasPredictionResponseInput; } + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Replicate.SchemasPredictionResponseInput? FromJson( + string json) + { + return FromJson( + json, + global::Replicate.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON string using the provided JsonSerializerOptions. /// @@ -55,6 +79,13 @@ public string ToJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Replicate.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); @@ -73,6 +104,17 @@ public string ToJson( jsonSerializerContext).ConfigureAwait(false)) as global::Replicate.SchemasPredictionResponseInput; } + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Replicate.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON stream using the provided JsonSerializerOptions. /// @@ -84,6 +126,13 @@ public string ToJson( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Replicate.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); diff --git a/src/libs/Replicate/Generated/Replicate.Models.SchemasPredictionResponseMetrics.Json.g.cs b/src/libs/Replicate/Generated/Replicate.Models.SchemasPredictionResponseMetrics.Json.g.cs index c707e07..9ae2056 100644 --- a/src/libs/Replicate/Generated/Replicate.Models.SchemasPredictionResponseMetrics.Json.g.cs +++ b/src/libs/Replicate/Generated/Replicate.Models.SchemasPredictionResponseMetrics.Json.g.cs @@ -16,6 +16,14 @@ public string ToJson( jsonSerializerContext); } + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Replicate.SourceGenerationContext.Default); + } + /// /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. /// @@ -26,6 +34,11 @@ public string ToJson( public string ToJson( global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return ToJson(global::Replicate.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Serialize( this, jsonSerializerOptions); @@ -44,6 +57,17 @@ public string ToJson( jsonSerializerContext) as global::Replicate.SchemasPredictionResponseMetrics; } + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Replicate.SchemasPredictionResponseMetrics? FromJson( + string json) + { + return FromJson( + json, + global::Replicate.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON string using the provided JsonSerializerOptions. /// @@ -55,6 +79,13 @@ public string ToJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Replicate.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); @@ -73,6 +104,17 @@ public string ToJson( jsonSerializerContext).ConfigureAwait(false)) as global::Replicate.SchemasPredictionResponseMetrics; } + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Replicate.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON stream using the provided JsonSerializerOptions. /// @@ -84,6 +126,13 @@ public string ToJson( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Replicate.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); diff --git a/src/libs/Replicate/Generated/Replicate.Models.SchemasPredictionResponseOutput.Json.g.cs b/src/libs/Replicate/Generated/Replicate.Models.SchemasPredictionResponseOutput.Json.g.cs index c764619..461797a 100644 --- a/src/libs/Replicate/Generated/Replicate.Models.SchemasPredictionResponseOutput.Json.g.cs +++ b/src/libs/Replicate/Generated/Replicate.Models.SchemasPredictionResponseOutput.Json.g.cs @@ -16,6 +16,14 @@ public string ToJson( jsonSerializerContext); } + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Replicate.SourceGenerationContext.Default); + } + /// /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. /// @@ -26,6 +34,11 @@ public string ToJson( public string ToJson( global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return ToJson(global::Replicate.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Serialize( this, jsonSerializerOptions); @@ -44,6 +57,17 @@ public string ToJson( jsonSerializerContext) as global::Replicate.SchemasPredictionResponseOutput; } + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Replicate.SchemasPredictionResponseOutput? FromJson( + string json) + { + return FromJson( + json, + global::Replicate.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON string using the provided JsonSerializerOptions. /// @@ -55,6 +79,13 @@ public string ToJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Replicate.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); @@ -73,6 +104,17 @@ public string ToJson( jsonSerializerContext).ConfigureAwait(false)) as global::Replicate.SchemasPredictionResponseOutput; } + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Replicate.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON stream using the provided JsonSerializerOptions. /// @@ -84,6 +126,13 @@ public string ToJson( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Replicate.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); diff --git a/src/libs/Replicate/Generated/Replicate.Models.SchemasPredictionResponseSource.g.cs b/src/libs/Replicate/Generated/Replicate.Models.SchemasPredictionResponseSource.g.cs index 8beb5bf..47018ec 100644 --- a/src/libs/Replicate/Generated/Replicate.Models.SchemasPredictionResponseSource.g.cs +++ b/src/libs/Replicate/Generated/Replicate.Models.SchemasPredictionResponseSource.g.cs @@ -9,11 +9,11 @@ namespace Replicate public enum SchemasPredictionResponseSource { /// - /// + /// /// Api, /// - /// + /// /// Web, } diff --git a/src/libs/Replicate/Generated/Replicate.Models.SchemasPredictionResponseStatus.g.cs b/src/libs/Replicate/Generated/Replicate.Models.SchemasPredictionResponseStatus.g.cs index 0ac2f5b..f7e319f 100644 --- a/src/libs/Replicate/Generated/Replicate.Models.SchemasPredictionResponseStatus.g.cs +++ b/src/libs/Replicate/Generated/Replicate.Models.SchemasPredictionResponseStatus.g.cs @@ -9,27 +9,27 @@ namespace Replicate public enum SchemasPredictionResponseStatus { /// - /// + /// /// Aborted, /// - /// + /// /// Canceled, /// - /// + /// /// Failed, /// - /// + /// /// Processing, /// - /// + /// /// Starting, /// - /// + /// /// Succeeded, } diff --git a/src/libs/Replicate/Generated/Replicate.Models.SchemasPredictionResponseUrls.Json.g.cs b/src/libs/Replicate/Generated/Replicate.Models.SchemasPredictionResponseUrls.Json.g.cs index 0f8c4f0..ac67a79 100644 --- a/src/libs/Replicate/Generated/Replicate.Models.SchemasPredictionResponseUrls.Json.g.cs +++ b/src/libs/Replicate/Generated/Replicate.Models.SchemasPredictionResponseUrls.Json.g.cs @@ -16,6 +16,14 @@ public string ToJson( jsonSerializerContext); } + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Replicate.SourceGenerationContext.Default); + } + /// /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. /// @@ -26,6 +34,11 @@ public string ToJson( public string ToJson( global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return ToJson(global::Replicate.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Serialize( this, jsonSerializerOptions); @@ -44,6 +57,17 @@ public string ToJson( jsonSerializerContext) as global::Replicate.SchemasPredictionResponseUrls; } + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Replicate.SchemasPredictionResponseUrls? FromJson( + string json) + { + return FromJson( + json, + global::Replicate.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON string using the provided JsonSerializerOptions. /// @@ -55,6 +79,13 @@ public string ToJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Replicate.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); @@ -73,6 +104,17 @@ public string ToJson( jsonSerializerContext).ConfigureAwait(false)) as global::Replicate.SchemasPredictionResponseUrls; } + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Replicate.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON stream using the provided JsonSerializerOptions. /// @@ -84,6 +126,13 @@ public string ToJson( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Replicate.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); diff --git a/src/libs/Replicate/Generated/Replicate.Models.SchemasPredictionResponseVersion.g.cs b/src/libs/Replicate/Generated/Replicate.Models.SchemasPredictionResponseVersion.g.cs index 19b44f7..6e378f5 100644 --- a/src/libs/Replicate/Generated/Replicate.Models.SchemasPredictionResponseVersion.g.cs +++ b/src/libs/Replicate/Generated/Replicate.Models.SchemasPredictionResponseVersion.g.cs @@ -9,7 +9,7 @@ namespace Replicate public enum SchemasPredictionResponseVersion { /// - /// + /// /// Hidden, } diff --git a/src/libs/Replicate/Generated/Replicate.Models.SchemasSearchCollectionResponse.Json.g.cs b/src/libs/Replicate/Generated/Replicate.Models.SchemasSearchCollectionResponse.Json.g.cs index e7cbdad..3b88eee 100644 --- a/src/libs/Replicate/Generated/Replicate.Models.SchemasSearchCollectionResponse.Json.g.cs +++ b/src/libs/Replicate/Generated/Replicate.Models.SchemasSearchCollectionResponse.Json.g.cs @@ -16,6 +16,14 @@ public string ToJson( jsonSerializerContext); } + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Replicate.SourceGenerationContext.Default); + } + /// /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. /// @@ -26,6 +34,11 @@ public string ToJson( public string ToJson( global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return ToJson(global::Replicate.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Serialize( this, jsonSerializerOptions); @@ -44,6 +57,17 @@ public string ToJson( jsonSerializerContext) as global::Replicate.SchemasSearchCollectionResponse; } + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Replicate.SchemasSearchCollectionResponse? FromJson( + string json) + { + return FromJson( + json, + global::Replicate.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON string using the provided JsonSerializerOptions. /// @@ -55,6 +79,13 @@ public string ToJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Replicate.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); @@ -73,6 +104,17 @@ public string ToJson( jsonSerializerContext).ConfigureAwait(false)) as global::Replicate.SchemasSearchCollectionResponse; } + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Replicate.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON stream using the provided JsonSerializerOptions. /// @@ -84,6 +126,13 @@ public string ToJson( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Replicate.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); diff --git a/src/libs/Replicate/Generated/Replicate.Models.SchemasSearchCollectionResponse.g.cs b/src/libs/Replicate/Generated/Replicate.Models.SchemasSearchCollectionResponse.g.cs index 7f107de..60ceba0 100644 --- a/src/libs/Replicate/Generated/Replicate.Models.SchemasSearchCollectionResponse.g.cs +++ b/src/libs/Replicate/Generated/Replicate.Models.SchemasSearchCollectionResponse.g.cs @@ -4,7 +4,7 @@ namespace Replicate { /// - /// + /// /// public sealed partial class SchemasSearchCollectionResponse { diff --git a/src/libs/Replicate/Generated/Replicate.Models.SchemasSearchModelMetadataResponse.Json.g.cs b/src/libs/Replicate/Generated/Replicate.Models.SchemasSearchModelMetadataResponse.Json.g.cs index ac9fb98..b8a150a 100644 --- a/src/libs/Replicate/Generated/Replicate.Models.SchemasSearchModelMetadataResponse.Json.g.cs +++ b/src/libs/Replicate/Generated/Replicate.Models.SchemasSearchModelMetadataResponse.Json.g.cs @@ -16,6 +16,14 @@ public string ToJson( jsonSerializerContext); } + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Replicate.SourceGenerationContext.Default); + } + /// /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. /// @@ -26,6 +34,11 @@ public string ToJson( public string ToJson( global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return ToJson(global::Replicate.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Serialize( this, jsonSerializerOptions); @@ -44,6 +57,17 @@ public string ToJson( jsonSerializerContext) as global::Replicate.SchemasSearchModelMetadataResponse; } + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Replicate.SchemasSearchModelMetadataResponse? FromJson( + string json) + { + return FromJson( + json, + global::Replicate.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON string using the provided JsonSerializerOptions. /// @@ -55,6 +79,13 @@ public string ToJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Replicate.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); @@ -73,6 +104,17 @@ public string ToJson( jsonSerializerContext).ConfigureAwait(false)) as global::Replicate.SchemasSearchModelMetadataResponse; } + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Replicate.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON stream using the provided JsonSerializerOptions. /// @@ -84,6 +126,13 @@ public string ToJson( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Replicate.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); diff --git a/src/libs/Replicate/Generated/Replicate.Models.SchemasSearchModelMetadataResponse.g.cs b/src/libs/Replicate/Generated/Replicate.Models.SchemasSearchModelMetadataResponse.g.cs index 3d78fd7..b353da9 100644 --- a/src/libs/Replicate/Generated/Replicate.Models.SchemasSearchModelMetadataResponse.g.cs +++ b/src/libs/Replicate/Generated/Replicate.Models.SchemasSearchModelMetadataResponse.g.cs @@ -4,7 +4,7 @@ namespace Replicate { /// - /// + /// /// public sealed partial class SchemasSearchModelMetadataResponse { diff --git a/src/libs/Replicate/Generated/Replicate.Models.SchemasSearchResponse.Json.g.cs b/src/libs/Replicate/Generated/Replicate.Models.SchemasSearchResponse.Json.g.cs index 3eabc88..4133aa8 100644 --- a/src/libs/Replicate/Generated/Replicate.Models.SchemasSearchResponse.Json.g.cs +++ b/src/libs/Replicate/Generated/Replicate.Models.SchemasSearchResponse.Json.g.cs @@ -16,6 +16,14 @@ public string ToJson( jsonSerializerContext); } + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Replicate.SourceGenerationContext.Default); + } + /// /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. /// @@ -26,6 +34,11 @@ public string ToJson( public string ToJson( global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return ToJson(global::Replicate.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Serialize( this, jsonSerializerOptions); @@ -44,6 +57,17 @@ public string ToJson( jsonSerializerContext) as global::Replicate.SchemasSearchResponse; } + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Replicate.SchemasSearchResponse? FromJson( + string json) + { + return FromJson( + json, + global::Replicate.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON string using the provided JsonSerializerOptions. /// @@ -55,6 +79,13 @@ public string ToJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Replicate.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); @@ -73,6 +104,17 @@ public string ToJson( jsonSerializerContext).ConfigureAwait(false)) as global::Replicate.SchemasSearchResponse; } + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Replicate.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON stream using the provided JsonSerializerOptions. /// @@ -84,6 +126,13 @@ public string ToJson( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Replicate.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); diff --git a/src/libs/Replicate/Generated/Replicate.Models.SchemasSearchResponse.g.cs b/src/libs/Replicate/Generated/Replicate.Models.SchemasSearchResponse.g.cs index 019053e..059297f 100644 --- a/src/libs/Replicate/Generated/Replicate.Models.SchemasSearchResponse.g.cs +++ b/src/libs/Replicate/Generated/Replicate.Models.SchemasSearchResponse.g.cs @@ -4,7 +4,7 @@ namespace Replicate { /// - /// + /// /// public sealed partial class SchemasSearchResponse { diff --git a/src/libs/Replicate/Generated/Replicate.Models.SchemasSearchResponseModel.Json.g.cs b/src/libs/Replicate/Generated/Replicate.Models.SchemasSearchResponseModel.Json.g.cs index e7bffb3..dd2085b 100644 --- a/src/libs/Replicate/Generated/Replicate.Models.SchemasSearchResponseModel.Json.g.cs +++ b/src/libs/Replicate/Generated/Replicate.Models.SchemasSearchResponseModel.Json.g.cs @@ -16,6 +16,14 @@ public string ToJson( jsonSerializerContext); } + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Replicate.SourceGenerationContext.Default); + } + /// /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. /// @@ -26,6 +34,11 @@ public string ToJson( public string ToJson( global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return ToJson(global::Replicate.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Serialize( this, jsonSerializerOptions); @@ -44,6 +57,17 @@ public string ToJson( jsonSerializerContext) as global::Replicate.SchemasSearchResponseModel; } + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Replicate.SchemasSearchResponseModel? FromJson( + string json) + { + return FromJson( + json, + global::Replicate.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON string using the provided JsonSerializerOptions. /// @@ -55,6 +79,13 @@ public string ToJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Replicate.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); @@ -73,6 +104,17 @@ public string ToJson( jsonSerializerContext).ConfigureAwait(false)) as global::Replicate.SchemasSearchResponseModel; } + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Replicate.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON stream using the provided JsonSerializerOptions. /// @@ -84,6 +126,13 @@ public string ToJson( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Replicate.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); diff --git a/src/libs/Replicate/Generated/Replicate.Models.SchemasSearchResponseModel.g.cs b/src/libs/Replicate/Generated/Replicate.Models.SchemasSearchResponseModel.g.cs index cd3c20e..f3a415b 100644 --- a/src/libs/Replicate/Generated/Replicate.Models.SchemasSearchResponseModel.g.cs +++ b/src/libs/Replicate/Generated/Replicate.Models.SchemasSearchResponseModel.g.cs @@ -4,19 +4,19 @@ namespace Replicate { /// - /// + /// /// public sealed partial class SchemasSearchResponseModel { /// - /// + /// /// [global::System.Text.Json.Serialization.JsonPropertyName("metadata")] [global::System.Text.Json.Serialization.JsonRequired] public required global::Replicate.SchemasSearchModelMetadataResponse Metadata { get; set; } /// - /// + /// /// [global::System.Text.Json.Serialization.JsonPropertyName("model")] [global::System.Text.Json.Serialization.JsonRequired] diff --git a/src/libs/Replicate/Generated/Replicate.Models.SchemasTrainingRequest.Json.g.cs b/src/libs/Replicate/Generated/Replicate.Models.SchemasTrainingRequest.Json.g.cs index cd683a9..1f4aa7e 100644 --- a/src/libs/Replicate/Generated/Replicate.Models.SchemasTrainingRequest.Json.g.cs +++ b/src/libs/Replicate/Generated/Replicate.Models.SchemasTrainingRequest.Json.g.cs @@ -16,6 +16,14 @@ public string ToJson( jsonSerializerContext); } + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Replicate.SourceGenerationContext.Default); + } + /// /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. /// @@ -26,6 +34,11 @@ public string ToJson( public string ToJson( global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return ToJson(global::Replicate.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Serialize( this, jsonSerializerOptions); @@ -44,6 +57,17 @@ public string ToJson( jsonSerializerContext) as global::Replicate.SchemasTrainingRequest; } + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Replicate.SchemasTrainingRequest? FromJson( + string json) + { + return FromJson( + json, + global::Replicate.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON string using the provided JsonSerializerOptions. /// @@ -55,6 +79,13 @@ public string ToJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Replicate.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); @@ -73,6 +104,17 @@ public string ToJson( jsonSerializerContext).ConfigureAwait(false)) as global::Replicate.SchemasTrainingRequest; } + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Replicate.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON stream using the provided JsonSerializerOptions. /// @@ -84,6 +126,13 @@ public string ToJson( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Replicate.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); diff --git a/src/libs/Replicate/Generated/Replicate.Models.SchemasTrainingRequest.g.cs b/src/libs/Replicate/Generated/Replicate.Models.SchemasTrainingRequest.g.cs index 31c9a49..85b98e1 100644 --- a/src/libs/Replicate/Generated/Replicate.Models.SchemasTrainingRequest.g.cs +++ b/src/libs/Replicate/Generated/Replicate.Models.SchemasTrainingRequest.g.cs @@ -4,7 +4,7 @@ namespace Replicate { /// - /// + /// /// public sealed partial class SchemasTrainingRequest { diff --git a/src/libs/Replicate/Generated/Replicate.Models.SchemasTrainingRequestInput.Json.g.cs b/src/libs/Replicate/Generated/Replicate.Models.SchemasTrainingRequestInput.Json.g.cs index 2c46639..1911f18 100644 --- a/src/libs/Replicate/Generated/Replicate.Models.SchemasTrainingRequestInput.Json.g.cs +++ b/src/libs/Replicate/Generated/Replicate.Models.SchemasTrainingRequestInput.Json.g.cs @@ -16,6 +16,14 @@ public string ToJson( jsonSerializerContext); } + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Replicate.SourceGenerationContext.Default); + } + /// /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. /// @@ -26,6 +34,11 @@ public string ToJson( public string ToJson( global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return ToJson(global::Replicate.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Serialize( this, jsonSerializerOptions); @@ -44,6 +57,17 @@ public string ToJson( jsonSerializerContext) as global::Replicate.SchemasTrainingRequestInput; } + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Replicate.SchemasTrainingRequestInput? FromJson( + string json) + { + return FromJson( + json, + global::Replicate.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON string using the provided JsonSerializerOptions. /// @@ -55,6 +79,13 @@ public string ToJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Replicate.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); @@ -73,6 +104,17 @@ public string ToJson( jsonSerializerContext).ConfigureAwait(false)) as global::Replicate.SchemasTrainingRequestInput; } + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Replicate.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON stream using the provided JsonSerializerOptions. /// @@ -84,6 +126,13 @@ public string ToJson( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Replicate.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); diff --git a/src/libs/Replicate/Generated/Replicate.Models.SchemasTrainingRequestWebhookEventsFilterItem.g.cs b/src/libs/Replicate/Generated/Replicate.Models.SchemasTrainingRequestWebhookEventsFilterItem.g.cs index 625f50c..15eaa83 100644 --- a/src/libs/Replicate/Generated/Replicate.Models.SchemasTrainingRequestWebhookEventsFilterItem.g.cs +++ b/src/libs/Replicate/Generated/Replicate.Models.SchemasTrainingRequestWebhookEventsFilterItem.g.cs @@ -4,24 +4,24 @@ namespace Replicate { /// - /// + /// /// public enum SchemasTrainingRequestWebhookEventsFilterItem { /// - /// + /// /// Completed, /// - /// + /// /// Logs, /// - /// + /// /// Output, /// - /// + /// /// Start, } diff --git a/src/libs/Replicate/Generated/Replicate.Models.SchemasTrainingResponse.Json.g.cs b/src/libs/Replicate/Generated/Replicate.Models.SchemasTrainingResponse.Json.g.cs index 664ae5d..f4dabec 100644 --- a/src/libs/Replicate/Generated/Replicate.Models.SchemasTrainingResponse.Json.g.cs +++ b/src/libs/Replicate/Generated/Replicate.Models.SchemasTrainingResponse.Json.g.cs @@ -16,6 +16,14 @@ public string ToJson( jsonSerializerContext); } + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Replicate.SourceGenerationContext.Default); + } + /// /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. /// @@ -26,6 +34,11 @@ public string ToJson( public string ToJson( global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return ToJson(global::Replicate.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Serialize( this, jsonSerializerOptions); @@ -44,6 +57,17 @@ public string ToJson( jsonSerializerContext) as global::Replicate.SchemasTrainingResponse; } + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Replicate.SchemasTrainingResponse? FromJson( + string json) + { + return FromJson( + json, + global::Replicate.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON string using the provided JsonSerializerOptions. /// @@ -55,6 +79,13 @@ public string ToJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Replicate.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); @@ -73,6 +104,17 @@ public string ToJson( jsonSerializerContext).ConfigureAwait(false)) as global::Replicate.SchemasTrainingResponse; } + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Replicate.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON stream using the provided JsonSerializerOptions. /// @@ -84,6 +126,13 @@ public string ToJson( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Replicate.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); diff --git a/src/libs/Replicate/Generated/Replicate.Models.SchemasTrainingResponse.g.cs b/src/libs/Replicate/Generated/Replicate.Models.SchemasTrainingResponse.g.cs index 80c9d5c..5985843 100644 --- a/src/libs/Replicate/Generated/Replicate.Models.SchemasTrainingResponse.g.cs +++ b/src/libs/Replicate/Generated/Replicate.Models.SchemasTrainingResponse.g.cs @@ -4,7 +4,7 @@ namespace Replicate { /// - /// + /// /// public sealed partial class SchemasTrainingResponse { diff --git a/src/libs/Replicate/Generated/Replicate.Models.SchemasTrainingResponseInput.Json.g.cs b/src/libs/Replicate/Generated/Replicate.Models.SchemasTrainingResponseInput.Json.g.cs index e9f0d4f..1d6171b 100644 --- a/src/libs/Replicate/Generated/Replicate.Models.SchemasTrainingResponseInput.Json.g.cs +++ b/src/libs/Replicate/Generated/Replicate.Models.SchemasTrainingResponseInput.Json.g.cs @@ -16,6 +16,14 @@ public string ToJson( jsonSerializerContext); } + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Replicate.SourceGenerationContext.Default); + } + /// /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. /// @@ -26,6 +34,11 @@ public string ToJson( public string ToJson( global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return ToJson(global::Replicate.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Serialize( this, jsonSerializerOptions); @@ -44,6 +57,17 @@ public string ToJson( jsonSerializerContext) as global::Replicate.SchemasTrainingResponseInput; } + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Replicate.SchemasTrainingResponseInput? FromJson( + string json) + { + return FromJson( + json, + global::Replicate.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON string using the provided JsonSerializerOptions. /// @@ -55,6 +79,13 @@ public string ToJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Replicate.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); @@ -73,6 +104,17 @@ public string ToJson( jsonSerializerContext).ConfigureAwait(false)) as global::Replicate.SchemasTrainingResponseInput; } + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Replicate.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON stream using the provided JsonSerializerOptions. /// @@ -84,6 +126,13 @@ public string ToJson( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Replicate.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); diff --git a/src/libs/Replicate/Generated/Replicate.Models.SchemasTrainingResponseMetrics.Json.g.cs b/src/libs/Replicate/Generated/Replicate.Models.SchemasTrainingResponseMetrics.Json.g.cs index 3744ded..83d84ca 100644 --- a/src/libs/Replicate/Generated/Replicate.Models.SchemasTrainingResponseMetrics.Json.g.cs +++ b/src/libs/Replicate/Generated/Replicate.Models.SchemasTrainingResponseMetrics.Json.g.cs @@ -16,6 +16,14 @@ public string ToJson( jsonSerializerContext); } + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Replicate.SourceGenerationContext.Default); + } + /// /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. /// @@ -26,6 +34,11 @@ public string ToJson( public string ToJson( global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return ToJson(global::Replicate.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Serialize( this, jsonSerializerOptions); @@ -44,6 +57,17 @@ public string ToJson( jsonSerializerContext) as global::Replicate.SchemasTrainingResponseMetrics; } + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Replicate.SchemasTrainingResponseMetrics? FromJson( + string json) + { + return FromJson( + json, + global::Replicate.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON string using the provided JsonSerializerOptions. /// @@ -55,6 +79,13 @@ public string ToJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Replicate.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); @@ -73,6 +104,17 @@ public string ToJson( jsonSerializerContext).ConfigureAwait(false)) as global::Replicate.SchemasTrainingResponseMetrics; } + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Replicate.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON stream using the provided JsonSerializerOptions. /// @@ -84,6 +126,13 @@ public string ToJson( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Replicate.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); diff --git a/src/libs/Replicate/Generated/Replicate.Models.SchemasTrainingResponseOutput.Json.g.cs b/src/libs/Replicate/Generated/Replicate.Models.SchemasTrainingResponseOutput.Json.g.cs index d6c6975..0209a18 100644 --- a/src/libs/Replicate/Generated/Replicate.Models.SchemasTrainingResponseOutput.Json.g.cs +++ b/src/libs/Replicate/Generated/Replicate.Models.SchemasTrainingResponseOutput.Json.g.cs @@ -16,6 +16,14 @@ public string ToJson( jsonSerializerContext); } + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Replicate.SourceGenerationContext.Default); + } + /// /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. /// @@ -26,6 +34,11 @@ public string ToJson( public string ToJson( global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return ToJson(global::Replicate.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Serialize( this, jsonSerializerOptions); @@ -44,6 +57,17 @@ public string ToJson( jsonSerializerContext) as global::Replicate.SchemasTrainingResponseOutput; } + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Replicate.SchemasTrainingResponseOutput? FromJson( + string json) + { + return FromJson( + json, + global::Replicate.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON string using the provided JsonSerializerOptions. /// @@ -55,6 +79,13 @@ public string ToJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Replicate.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); @@ -73,6 +104,17 @@ public string ToJson( jsonSerializerContext).ConfigureAwait(false)) as global::Replicate.SchemasTrainingResponseOutput; } + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Replicate.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON stream using the provided JsonSerializerOptions. /// @@ -84,6 +126,13 @@ public string ToJson( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Replicate.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); diff --git a/src/libs/Replicate/Generated/Replicate.Models.SchemasTrainingResponseSource.g.cs b/src/libs/Replicate/Generated/Replicate.Models.SchemasTrainingResponseSource.g.cs index 9513387..6c8ed68 100644 --- a/src/libs/Replicate/Generated/Replicate.Models.SchemasTrainingResponseSource.g.cs +++ b/src/libs/Replicate/Generated/Replicate.Models.SchemasTrainingResponseSource.g.cs @@ -9,11 +9,11 @@ namespace Replicate public enum SchemasTrainingResponseSource { /// - /// + /// /// Api, /// - /// + /// /// Web, } diff --git a/src/libs/Replicate/Generated/Replicate.Models.SchemasTrainingResponseStatus.g.cs b/src/libs/Replicate/Generated/Replicate.Models.SchemasTrainingResponseStatus.g.cs index 7432cfc..8541888 100644 --- a/src/libs/Replicate/Generated/Replicate.Models.SchemasTrainingResponseStatus.g.cs +++ b/src/libs/Replicate/Generated/Replicate.Models.SchemasTrainingResponseStatus.g.cs @@ -9,27 +9,27 @@ namespace Replicate public enum SchemasTrainingResponseStatus { /// - /// + /// /// Aborted, /// - /// + /// /// Canceled, /// - /// + /// /// Failed, /// - /// + /// /// Processing, /// - /// + /// /// Starting, /// - /// + /// /// Succeeded, } diff --git a/src/libs/Replicate/Generated/Replicate.Models.SchemasTrainingResponseUrls.Json.g.cs b/src/libs/Replicate/Generated/Replicate.Models.SchemasTrainingResponseUrls.Json.g.cs index dd5d05e..ccaf79e 100644 --- a/src/libs/Replicate/Generated/Replicate.Models.SchemasTrainingResponseUrls.Json.g.cs +++ b/src/libs/Replicate/Generated/Replicate.Models.SchemasTrainingResponseUrls.Json.g.cs @@ -16,6 +16,14 @@ public string ToJson( jsonSerializerContext); } + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Replicate.SourceGenerationContext.Default); + } + /// /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. /// @@ -26,6 +34,11 @@ public string ToJson( public string ToJson( global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return ToJson(global::Replicate.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Serialize( this, jsonSerializerOptions); @@ -44,6 +57,17 @@ public string ToJson( jsonSerializerContext) as global::Replicate.SchemasTrainingResponseUrls; } + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Replicate.SchemasTrainingResponseUrls? FromJson( + string json) + { + return FromJson( + json, + global::Replicate.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON string using the provided JsonSerializerOptions. /// @@ -55,6 +79,13 @@ public string ToJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Replicate.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); @@ -73,6 +104,17 @@ public string ToJson( jsonSerializerContext).ConfigureAwait(false)) as global::Replicate.SchemasTrainingResponseUrls; } + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Replicate.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON stream using the provided JsonSerializerOptions. /// @@ -84,6 +126,13 @@ public string ToJson( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Replicate.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); diff --git a/src/libs/Replicate/Generated/Replicate.Models.SchemasVersionPredictionRequest.Json.g.cs b/src/libs/Replicate/Generated/Replicate.Models.SchemasVersionPredictionRequest.Json.g.cs index 9ca6f23..ddef81a 100644 --- a/src/libs/Replicate/Generated/Replicate.Models.SchemasVersionPredictionRequest.Json.g.cs +++ b/src/libs/Replicate/Generated/Replicate.Models.SchemasVersionPredictionRequest.Json.g.cs @@ -16,6 +16,14 @@ public string ToJson( jsonSerializerContext); } + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Replicate.SourceGenerationContext.Default); + } + /// /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. /// @@ -26,6 +34,11 @@ public string ToJson( public string ToJson( global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return ToJson(global::Replicate.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Serialize( this, jsonSerializerOptions); @@ -44,6 +57,17 @@ public string ToJson( jsonSerializerContext) as global::Replicate.SchemasVersionPredictionRequest; } + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Replicate.SchemasVersionPredictionRequest? FromJson( + string json) + { + return FromJson( + json, + global::Replicate.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON string using the provided JsonSerializerOptions. /// @@ -55,6 +79,13 @@ public string ToJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Replicate.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); @@ -73,6 +104,17 @@ public string ToJson( jsonSerializerContext).ConfigureAwait(false)) as global::Replicate.SchemasVersionPredictionRequest; } + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Replicate.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON stream using the provided JsonSerializerOptions. /// @@ -84,6 +126,13 @@ public string ToJson( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Replicate.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); diff --git a/src/libs/Replicate/Generated/Replicate.Models.SchemasVersionPredictionRequest.g.cs b/src/libs/Replicate/Generated/Replicate.Models.SchemasVersionPredictionRequest.g.cs index d0c0dcc..bf82b51 100644 --- a/src/libs/Replicate/Generated/Replicate.Models.SchemasVersionPredictionRequest.g.cs +++ b/src/libs/Replicate/Generated/Replicate.Models.SchemasVersionPredictionRequest.g.cs @@ -4,7 +4,7 @@ namespace Replicate { /// - /// + /// /// public sealed partial class SchemasVersionPredictionRequest { diff --git a/src/libs/Replicate/Generated/Replicate.Models.SchemasVersionPredictionRequestInput.Json.g.cs b/src/libs/Replicate/Generated/Replicate.Models.SchemasVersionPredictionRequestInput.Json.g.cs index da49f2d..4b42a3f 100644 --- a/src/libs/Replicate/Generated/Replicate.Models.SchemasVersionPredictionRequestInput.Json.g.cs +++ b/src/libs/Replicate/Generated/Replicate.Models.SchemasVersionPredictionRequestInput.Json.g.cs @@ -16,6 +16,14 @@ public string ToJson( jsonSerializerContext); } + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Replicate.SourceGenerationContext.Default); + } + /// /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. /// @@ -26,6 +34,11 @@ public string ToJson( public string ToJson( global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return ToJson(global::Replicate.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Serialize( this, jsonSerializerOptions); @@ -44,6 +57,17 @@ public string ToJson( jsonSerializerContext) as global::Replicate.SchemasVersionPredictionRequestInput; } + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Replicate.SchemasVersionPredictionRequestInput? FromJson( + string json) + { + return FromJson( + json, + global::Replicate.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON string using the provided JsonSerializerOptions. /// @@ -55,6 +79,13 @@ public string ToJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Replicate.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); @@ -73,6 +104,17 @@ public string ToJson( jsonSerializerContext).ConfigureAwait(false)) as global::Replicate.SchemasVersionPredictionRequestInput; } + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Replicate.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON stream using the provided JsonSerializerOptions. /// @@ -84,6 +126,13 @@ public string ToJson( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Replicate.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); diff --git a/src/libs/Replicate/Generated/Replicate.Models.SchemasVersionPredictionRequestWebhookEventsFilterItem.g.cs b/src/libs/Replicate/Generated/Replicate.Models.SchemasVersionPredictionRequestWebhookEventsFilterItem.g.cs index 208c5dd..79b1238 100644 --- a/src/libs/Replicate/Generated/Replicate.Models.SchemasVersionPredictionRequestWebhookEventsFilterItem.g.cs +++ b/src/libs/Replicate/Generated/Replicate.Models.SchemasVersionPredictionRequestWebhookEventsFilterItem.g.cs @@ -4,24 +4,24 @@ namespace Replicate { /// - /// + /// /// public enum SchemasVersionPredictionRequestWebhookEventsFilterItem { /// - /// + /// /// Completed, /// - /// + /// /// Logs, /// - /// + /// /// Output, /// - /// + /// /// Start, } diff --git a/src/libs/Replicate/Generated/Replicate.Models.SchemasVersionResponse.Json.g.cs b/src/libs/Replicate/Generated/Replicate.Models.SchemasVersionResponse.Json.g.cs index 38cab4d..12e326c 100644 --- a/src/libs/Replicate/Generated/Replicate.Models.SchemasVersionResponse.Json.g.cs +++ b/src/libs/Replicate/Generated/Replicate.Models.SchemasVersionResponse.Json.g.cs @@ -16,6 +16,14 @@ public string ToJson( jsonSerializerContext); } + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Replicate.SourceGenerationContext.Default); + } + /// /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. /// @@ -26,6 +34,11 @@ public string ToJson( public string ToJson( global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return ToJson(global::Replicate.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Serialize( this, jsonSerializerOptions); @@ -44,6 +57,17 @@ public string ToJson( jsonSerializerContext) as global::Replicate.SchemasVersionResponse; } + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Replicate.SchemasVersionResponse? FromJson( + string json) + { + return FromJson( + json, + global::Replicate.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON string using the provided JsonSerializerOptions. /// @@ -55,6 +79,13 @@ public string ToJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Replicate.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); @@ -73,6 +104,17 @@ public string ToJson( jsonSerializerContext).ConfigureAwait(false)) as global::Replicate.SchemasVersionResponse; } + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Replicate.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON stream using the provided JsonSerializerOptions. /// @@ -84,6 +126,13 @@ public string ToJson( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Replicate.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); diff --git a/src/libs/Replicate/Generated/Replicate.Models.SchemasVersionResponse.g.cs b/src/libs/Replicate/Generated/Replicate.Models.SchemasVersionResponse.g.cs index 73bc6b9..0511fc3 100644 --- a/src/libs/Replicate/Generated/Replicate.Models.SchemasVersionResponse.g.cs +++ b/src/libs/Replicate/Generated/Replicate.Models.SchemasVersionResponse.g.cs @@ -4,7 +4,7 @@ namespace Replicate { /// - /// + /// /// public sealed partial class SchemasVersionResponse { diff --git a/src/libs/Replicate/Generated/Replicate.Models.SchemasVersionResponseOpenapiSchema.Json.g.cs b/src/libs/Replicate/Generated/Replicate.Models.SchemasVersionResponseOpenapiSchema.Json.g.cs index d22813b..2b0d8de 100644 --- a/src/libs/Replicate/Generated/Replicate.Models.SchemasVersionResponseOpenapiSchema.Json.g.cs +++ b/src/libs/Replicate/Generated/Replicate.Models.SchemasVersionResponseOpenapiSchema.Json.g.cs @@ -16,6 +16,14 @@ public string ToJson( jsonSerializerContext); } + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Replicate.SourceGenerationContext.Default); + } + /// /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. /// @@ -26,6 +34,11 @@ public string ToJson( public string ToJson( global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return ToJson(global::Replicate.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Serialize( this, jsonSerializerOptions); @@ -44,6 +57,17 @@ public string ToJson( jsonSerializerContext) as global::Replicate.SchemasVersionResponseOpenapiSchema; } + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Replicate.SchemasVersionResponseOpenapiSchema? FromJson( + string json) + { + return FromJson( + json, + global::Replicate.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON string using the provided JsonSerializerOptions. /// @@ -55,6 +79,13 @@ public string ToJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Replicate.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); @@ -73,6 +104,17 @@ public string ToJson( jsonSerializerContext).ConfigureAwait(false)) as global::Replicate.SchemasVersionResponseOpenapiSchema; } + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Replicate.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON stream using the provided JsonSerializerOptions. /// @@ -84,6 +126,13 @@ public string ToJson( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Replicate.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); diff --git a/src/libs/Replicate/Generated/Replicate.Models.SearchResponse.Json.g.cs b/src/libs/Replicate/Generated/Replicate.Models.SearchResponse.Json.g.cs index 85acac0..3c662d8 100644 --- a/src/libs/Replicate/Generated/Replicate.Models.SearchResponse.Json.g.cs +++ b/src/libs/Replicate/Generated/Replicate.Models.SearchResponse.Json.g.cs @@ -16,6 +16,14 @@ public string ToJson( jsonSerializerContext); } + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Replicate.SourceGenerationContext.Default); + } + /// /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. /// @@ -26,6 +34,11 @@ public string ToJson( public string ToJson( global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return ToJson(global::Replicate.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Serialize( this, jsonSerializerOptions); @@ -44,6 +57,17 @@ public string ToJson( jsonSerializerContext) as global::Replicate.SearchResponse; } + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Replicate.SearchResponse? FromJson( + string json) + { + return FromJson( + json, + global::Replicate.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON string using the provided JsonSerializerOptions. /// @@ -55,6 +79,13 @@ public string ToJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Replicate.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); @@ -73,6 +104,17 @@ public string ToJson( jsonSerializerContext).ConfigureAwait(false)) as global::Replicate.SearchResponse; } + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Replicate.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON stream using the provided JsonSerializerOptions. /// @@ -84,6 +126,13 @@ public string ToJson( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Replicate.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); diff --git a/src/libs/Replicate/Generated/Replicate.Models.SearchResponse.g.cs b/src/libs/Replicate/Generated/Replicate.Models.SearchResponse.g.cs index ecfe8fb..d9f7ba2 100644 --- a/src/libs/Replicate/Generated/Replicate.Models.SearchResponse.g.cs +++ b/src/libs/Replicate/Generated/Replicate.Models.SearchResponse.g.cs @@ -4,7 +4,7 @@ namespace Replicate { /// - /// + /// /// public sealed partial class SearchResponse { diff --git a/src/libs/Replicate/Generated/Replicate.Models.SearchResponse2.Json.g.cs b/src/libs/Replicate/Generated/Replicate.Models.SearchResponse2.Json.g.cs index 94a2801..ee57835 100644 --- a/src/libs/Replicate/Generated/Replicate.Models.SearchResponse2.Json.g.cs +++ b/src/libs/Replicate/Generated/Replicate.Models.SearchResponse2.Json.g.cs @@ -16,6 +16,14 @@ public string ToJson( jsonSerializerContext); } + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Replicate.SourceGenerationContext.Default); + } + /// /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. /// @@ -26,6 +34,11 @@ public string ToJson( public string ToJson( global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return ToJson(global::Replicate.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Serialize( this, jsonSerializerOptions); @@ -44,6 +57,17 @@ public string ToJson( jsonSerializerContext) as global::Replicate.SearchResponse2; } + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Replicate.SearchResponse2? FromJson( + string json) + { + return FromJson( + json, + global::Replicate.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON string using the provided JsonSerializerOptions. /// @@ -55,6 +79,13 @@ public string ToJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Replicate.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); @@ -73,6 +104,17 @@ public string ToJson( jsonSerializerContext).ConfigureAwait(false)) as global::Replicate.SearchResponse2; } + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Replicate.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON stream using the provided JsonSerializerOptions. /// @@ -84,6 +126,13 @@ public string ToJson( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Replicate.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); diff --git a/src/libs/Replicate/Generated/Replicate.Models.SearchResponse2.g.cs b/src/libs/Replicate/Generated/Replicate.Models.SearchResponse2.g.cs index 6f74dc0..00ae375 100644 --- a/src/libs/Replicate/Generated/Replicate.Models.SearchResponse2.g.cs +++ b/src/libs/Replicate/Generated/Replicate.Models.SearchResponse2.g.cs @@ -4,7 +4,7 @@ namespace Replicate { /// - /// + /// /// public sealed partial class SearchResponse2 { diff --git a/src/libs/Replicate/Generated/Replicate.Models.TrainingsListResponse.Json.g.cs b/src/libs/Replicate/Generated/Replicate.Models.TrainingsListResponse.Json.g.cs index 5048a7b..d039a0a 100644 --- a/src/libs/Replicate/Generated/Replicate.Models.TrainingsListResponse.Json.g.cs +++ b/src/libs/Replicate/Generated/Replicate.Models.TrainingsListResponse.Json.g.cs @@ -16,6 +16,14 @@ public string ToJson( jsonSerializerContext); } + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Replicate.SourceGenerationContext.Default); + } + /// /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. /// @@ -26,6 +34,11 @@ public string ToJson( public string ToJson( global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return ToJson(global::Replicate.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Serialize( this, jsonSerializerOptions); @@ -44,6 +57,17 @@ public string ToJson( jsonSerializerContext) as global::Replicate.TrainingsListResponse; } + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Replicate.TrainingsListResponse? FromJson( + string json) + { + return FromJson( + json, + global::Replicate.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON string using the provided JsonSerializerOptions. /// @@ -55,6 +79,13 @@ public string ToJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Replicate.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); @@ -73,6 +104,17 @@ public string ToJson( jsonSerializerContext).ConfigureAwait(false)) as global::Replicate.TrainingsListResponse; } + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Replicate.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON stream using the provided JsonSerializerOptions. /// @@ -84,6 +126,13 @@ public string ToJson( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Replicate.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); diff --git a/src/libs/Replicate/Generated/Replicate.Models.TrainingsListResponse.g.cs b/src/libs/Replicate/Generated/Replicate.Models.TrainingsListResponse.g.cs index 1a5cc90..ae0c209 100644 --- a/src/libs/Replicate/Generated/Replicate.Models.TrainingsListResponse.g.cs +++ b/src/libs/Replicate/Generated/Replicate.Models.TrainingsListResponse.g.cs @@ -4,7 +4,7 @@ namespace Replicate { /// - /// + /// /// public sealed partial class TrainingsListResponse { @@ -21,7 +21,7 @@ public sealed partial class TrainingsListResponse public string? Previous { get; set; } /// - /// + /// /// [global::System.Text.Json.Serialization.JsonPropertyName("results")] public global::System.Collections.Generic.IList? Results { get; set; } diff --git a/src/libs/Replicate/Generated/Replicate.Models.WebhooksDefaultSecretGetResponse.Json.g.cs b/src/libs/Replicate/Generated/Replicate.Models.WebhooksDefaultSecretGetResponse.Json.g.cs index f8737a8..f68c4ac 100644 --- a/src/libs/Replicate/Generated/Replicate.Models.WebhooksDefaultSecretGetResponse.Json.g.cs +++ b/src/libs/Replicate/Generated/Replicate.Models.WebhooksDefaultSecretGetResponse.Json.g.cs @@ -16,6 +16,14 @@ public string ToJson( jsonSerializerContext); } + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Replicate.SourceGenerationContext.Default); + } + /// /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. /// @@ -26,6 +34,11 @@ public string ToJson( public string ToJson( global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return ToJson(global::Replicate.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Serialize( this, jsonSerializerOptions); @@ -44,6 +57,17 @@ public string ToJson( jsonSerializerContext) as global::Replicate.WebhooksDefaultSecretGetResponse; } + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Replicate.WebhooksDefaultSecretGetResponse? FromJson( + string json) + { + return FromJson( + json, + global::Replicate.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON string using the provided JsonSerializerOptions. /// @@ -55,6 +79,13 @@ public string ToJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Replicate.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); @@ -73,6 +104,17 @@ public string ToJson( jsonSerializerContext).ConfigureAwait(false)) as global::Replicate.WebhooksDefaultSecretGetResponse; } + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Replicate.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON stream using the provided JsonSerializerOptions. /// @@ -84,6 +126,13 @@ public string ToJson( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Replicate.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); diff --git a/src/libs/Replicate/Generated/Replicate.Models.WebhooksDefaultSecretGetResponse.g.cs b/src/libs/Replicate/Generated/Replicate.Models.WebhooksDefaultSecretGetResponse.g.cs index 69d11a6..46f1b83 100644 --- a/src/libs/Replicate/Generated/Replicate.Models.WebhooksDefaultSecretGetResponse.g.cs +++ b/src/libs/Replicate/Generated/Replicate.Models.WebhooksDefaultSecretGetResponse.g.cs @@ -4,7 +4,7 @@ namespace Replicate { /// - /// + /// /// public sealed partial class WebhooksDefaultSecretGetResponse { diff --git a/src/libs/Replicate/Generated/Replicate.OneOf.2.Json.g.cs b/src/libs/Replicate/Generated/Replicate.OneOf.2.Json.g.cs index a2e31d7..c87e4a5 100644 --- a/src/libs/Replicate/Generated/Replicate.OneOf.2.Json.g.cs +++ b/src/libs/Replicate/Generated/Replicate.OneOf.2.Json.g.cs @@ -16,6 +16,14 @@ public string ToJson( jsonSerializerContext); } + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Replicate.SourceGenerationContext.Default); + } + /// /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. /// @@ -26,6 +34,11 @@ public string ToJson( public string ToJson( global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return ToJson(global::Replicate.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Serialize( this, jsonSerializerOptions); @@ -44,6 +57,17 @@ public string ToJson( jsonSerializerContext) as global::Replicate.OneOf?; } + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Replicate.OneOf? FromJson( + string json) + { + return FromJson( + json, + global::Replicate.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON string using the provided JsonSerializerOptions. /// @@ -55,6 +79,13 @@ public string ToJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Replicate.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.Deserialize>( json, jsonSerializerOptions); @@ -73,6 +104,17 @@ public string ToJson( jsonSerializerContext).ConfigureAwait(false)) as global::Replicate.OneOf?; } + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask?> FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Replicate.SourceGenerationContext.Default); + } + /// /// Deserializes a JSON stream using the provided JsonSerializerOptions. /// @@ -84,6 +126,13 @@ public string ToJson( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Replicate.SourceGenerationContext.Default); + } + return global::System.Text.Json.JsonSerializer.DeserializeAsync?>( jsonStream, jsonSerializerOptions); diff --git a/src/libs/Replicate/Generated/Replicate.OneOf.2.g.cs b/src/libs/Replicate/Generated/Replicate.OneOf.2.g.cs index 637ecbb..521b6a4 100644 --- a/src/libs/Replicate/Generated/Replicate.OneOf.2.g.cs +++ b/src/libs/Replicate/Generated/Replicate.OneOf.2.g.cs @@ -4,12 +4,12 @@ namespace Replicate { /// - /// + /// /// public readonly partial struct OneOf : global::System.IEquatable> { /// - /// + /// /// #if NET6_0_OR_GREATER public T1? Value1 { get; init; } @@ -18,7 +18,7 @@ namespace Replicate #endif /// - /// + /// /// #if NET6_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(Value1))] @@ -26,7 +26,7 @@ namespace Replicate public bool IsValue1 => Value1 != null; /// - /// + /// /// public bool TryPickValue1( #if NET6_0_OR_GREATER @@ -39,14 +39,14 @@ public bool TryPickValue1( } /// - /// + /// /// public T1 PickValue1() => IsValue1 ? Value1! : throw new global::System.InvalidOperationException($"Expected union variant 'Value1' but the value was {ToString()}."); /// - /// + /// /// #if NET6_0_OR_GREATER public T2? Value2 { get; init; } @@ -55,7 +55,7 @@ public T1 PickValue1() => IsValue1 #endif /// - /// + /// /// #if NET6_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(Value2))] @@ -63,7 +63,7 @@ public T1 PickValue1() => IsValue1 public bool IsValue2 => Value2 != null; /// - /// + /// /// public bool TryPickValue2( #if NET6_0_OR_GREATER @@ -76,23 +76,23 @@ public bool TryPickValue2( } /// - /// + /// /// public T2 PickValue2() => IsValue2 ? Value2! : throw new global::System.InvalidOperationException($"Expected union variant 'Value2' but the value was {ToString()}."); /// - /// + /// /// public static implicit operator OneOf(T1 value) => new OneOf((T1?)value); /// - /// + /// /// public static implicit operator T1?(OneOf @this) => @this.Value1; /// - /// + /// /// public OneOf(T1? value) { @@ -100,22 +100,22 @@ public OneOf(T1? value) } /// - /// + /// /// public static OneOf FromValue1(T1? value) => new OneOf(value); /// - /// + /// /// public static implicit operator OneOf(T2 value) => new OneOf((T2?)value); /// - /// + /// /// public static implicit operator T2?(OneOf @this) => @this.Value2; /// - /// + /// /// public OneOf(T2? value) { @@ -123,12 +123,12 @@ public OneOf(T2? value) } /// - /// + /// /// public static OneOf FromValue2(T2? value) => new OneOf(value); /// - /// + /// /// public OneOf( T1? value1, @@ -140,23 +140,23 @@ public OneOf( } /// - /// + /// /// public object? Object => Value2 as object ?? - Value1 as object + Value1 as object ; /// - /// + /// /// public override string? ToString() => Value1?.ToString() ?? - Value2?.ToString() + Value2?.ToString() ; /// - /// + /// /// public bool Validate() { @@ -164,7 +164,7 @@ public bool Validate() } /// - /// + /// /// public TResult? Match( global::System.Func? value1 = null, @@ -189,7 +189,7 @@ public bool Validate() } /// - /// + /// /// public void Match( global::System.Action? value1 = null, @@ -213,7 +213,7 @@ public void Match( } /// - /// + /// /// public void Switch( global::System.Action? value1 = null, @@ -236,7 +236,7 @@ public void Switch( } /// - /// + /// /// public override int GetHashCode() { @@ -257,18 +257,18 @@ static int HashCodeAggregator(int hashCode, object? value) => value == null } /// - /// + /// /// public bool Equals(OneOf other) { return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value1, other.Value1) && - global::System.Collections.Generic.EqualityComparer.Default.Equals(Value2, other.Value2) + global::System.Collections.Generic.EqualityComparer.Default.Equals(Value2, other.Value2) ; } /// - /// + /// /// public static bool operator ==(OneOf obj1, OneOf obj2) { @@ -276,7 +276,7 @@ public bool Equals(OneOf other) } /// - /// + /// /// public static bool operator !=(OneOf obj1, OneOf obj2) { @@ -284,7 +284,7 @@ public bool Equals(OneOf other) } /// - /// + /// /// public override bool Equals(object? obj) { diff --git a/src/libs/Replicate/Generated/Replicate.PathBuilder.g.cs b/src/libs/Replicate/Generated/Replicate.PathBuilder.g.cs index 8642626..a567508 100644 --- a/src/libs/Replicate/Generated/Replicate.PathBuilder.g.cs +++ b/src/libs/Replicate/Generated/Replicate.PathBuilder.g.cs @@ -65,13 +65,14 @@ public PathBuilder AddRequiredParameter( /// The current instance. public PathBuilder AddRequiredParameter( string name, - global::System.Collections.Generic.IEnumerable value, + global::System.Collections.Generic.IEnumerable value, string delimiter = ",", bool explode = false) { + var nonNullValues = global::System.Linq.Enumerable.OfType(value); if (explode) { - foreach (var item in value) + foreach (var item in nonNullValues) { AddRequiredParameter($"{name}", item); } @@ -79,7 +80,7 @@ public PathBuilder AddRequiredParameter( return this; } - AddRequiredParameter(name, string.Join(delimiter, value)); + AddRequiredParameter(name, string.Join(delimiter, nonNullValues)); return this; } @@ -138,7 +139,7 @@ public PathBuilder AddOptionalParameter( /// The current instance. public PathBuilder AddOptionalParameter( string name, - global::System.Collections.Generic.IEnumerable? value, + global::System.Collections.Generic.IEnumerable? value, string delimiter = ",", bool explode = false) { @@ -266,32 +267,32 @@ public PathBuilder AddRawQueryString( } /// - /// + /// /// public class EndPointAuthorization { /// - /// + /// /// public string Type { get; set; } = string.Empty; /// - /// + /// /// public string SchemeId { get; set; } = string.Empty; /// - /// + /// /// public string Location { get; set; } = string.Empty; /// - /// + /// /// public string Name { get; set; } = string.Empty; /// - /// + /// /// public string Value { get; set; } = string.Empty; } diff --git a/src/libs/Replicate/Generated/Replicate.Polyfills.g.cs b/src/libs/Replicate/Generated/Replicate.Polyfills.g.cs index e80603e..06189d5 100644 --- a/src/libs/Replicate/Generated/Replicate.Polyfills.g.cs +++ b/src/libs/Replicate/Generated/Replicate.Polyfills.g.cs @@ -4,13 +4,13 @@ namespace Replicate { /// - /// + /// /// public static partial class AutoSdkPolyfills { #if !NET6_0_OR_GREATER /// - /// + /// /// /// /// @@ -23,7 +23,7 @@ public static partial class AutoSdkPolyfills return content.ReadAsStringAsync(); } /// - /// + /// /// /// /// @@ -36,7 +36,7 @@ public static partial class AutoSdkPolyfills return content.ReadAsStreamAsync(); } /// - /// + /// /// /// /// diff --git a/src/libs/Replicate/Generated/Replicate.ReplicateClient.AccountGet.g.cs b/src/libs/Replicate/Generated/Replicate.ReplicateClient.AccountGet.g.cs index 83fb273..fa7c3ce 100644 --- a/src/libs/Replicate/Generated/Replicate.ReplicateClient.AccountGet.g.cs +++ b/src/libs/Replicate/Generated/Replicate.ReplicateClient.AccountGet.g.cs @@ -156,7 +156,7 @@ partial void ProcessAccountGetResponseContent( __authorization.Location == "Header") { __httpRequest.Headers.Add(__authorization.Name, __authorization.Value); - } + } } global::Replicate.AutoSDKRequestOptionsSupport.ApplyHeaders( request: __httpRequest, diff --git a/src/libs/Replicate/Generated/Replicate.ReplicateClient.CollectionsGet.g.cs b/src/libs/Replicate/Generated/Replicate.ReplicateClient.CollectionsGet.g.cs index 56b1580..25e0a4a 100644 --- a/src/libs/Replicate/Generated/Replicate.ReplicateClient.CollectionsGet.g.cs +++ b/src/libs/Replicate/Generated/Replicate.ReplicateClient.CollectionsGet.g.cs @@ -164,7 +164,7 @@ partial void ProcessCollectionsGetResponseContent( __authorization.Location == "Header") { __httpRequest.Headers.Add(__authorization.Name, __authorization.Value); - } + } } global::Replicate.AutoSDKRequestOptionsSupport.ApplyHeaders( request: __httpRequest, diff --git a/src/libs/Replicate/Generated/Replicate.ReplicateClient.CollectionsList.g.cs b/src/libs/Replicate/Generated/Replicate.ReplicateClient.CollectionsList.g.cs index e4a77bd..fe7d5f6 100644 --- a/src/libs/Replicate/Generated/Replicate.ReplicateClient.CollectionsList.g.cs +++ b/src/libs/Replicate/Generated/Replicate.ReplicateClient.CollectionsList.g.cs @@ -164,7 +164,7 @@ partial void ProcessCollectionsListResponseContent( __authorization.Location == "Header") { __httpRequest.Headers.Add(__authorization.Name, __authorization.Value); - } + } } global::Replicate.AutoSDKRequestOptionsSupport.ApplyHeaders( request: __httpRequest, diff --git a/src/libs/Replicate/Generated/Replicate.ReplicateClient.Constructors.Bearer.g.cs b/src/libs/Replicate/Generated/Replicate.ReplicateClient.Constructors.Bearer.g.cs index 3cd6813..65a82bd 100644 --- a/src/libs/Replicate/Generated/Replicate.ReplicateClient.Constructors.Bearer.g.cs +++ b/src/libs/Replicate/Generated/Replicate.ReplicateClient.Constructors.Bearer.g.cs @@ -33,7 +33,7 @@ partial void Authorized( }; private static readonly string[] s_baseUrlEnvironmentVariables = new string[] - { + { }; /// diff --git a/src/libs/Replicate/Generated/Replicate.ReplicateClient.DeploymentsCreate.g.cs b/src/libs/Replicate/Generated/Replicate.ReplicateClient.DeploymentsCreate.g.cs index 772c92f..1f51b12 100644 --- a/src/libs/Replicate/Generated/Replicate.ReplicateClient.DeploymentsCreate.g.cs +++ b/src/libs/Replicate/Generated/Replicate.ReplicateClient.DeploymentsCreate.g.cs @@ -221,7 +221,7 @@ partial void ProcessDeploymentsCreateResponseContent( __authorization.Location == "Header") { __httpRequest.Headers.Add(__authorization.Name, __authorization.Value); - } + } } var __httpRequestContentBody = request.ToJson(JsonSerializerContext); var __httpRequestContent = new global::System.Net.Http.StringContent( diff --git a/src/libs/Replicate/Generated/Replicate.ReplicateClient.DeploymentsDelete.g.cs b/src/libs/Replicate/Generated/Replicate.ReplicateClient.DeploymentsDelete.g.cs index 8573a55..9edf475 100644 --- a/src/libs/Replicate/Generated/Replicate.ReplicateClient.DeploymentsDelete.g.cs +++ b/src/libs/Replicate/Generated/Replicate.ReplicateClient.DeploymentsDelete.g.cs @@ -153,7 +153,7 @@ await DeploymentsDeleteAsResponseAsync( __authorization.Location == "Header") { __httpRequest.Headers.Add(__authorization.Name, __authorization.Value); - } + } } global::Replicate.AutoSDKRequestOptionsSupport.ApplyHeaders( request: __httpRequest, diff --git a/src/libs/Replicate/Generated/Replicate.ReplicateClient.DeploymentsGet.g.cs b/src/libs/Replicate/Generated/Replicate.ReplicateClient.DeploymentsGet.g.cs index acf048c..f54c643 100644 --- a/src/libs/Replicate/Generated/Replicate.ReplicateClient.DeploymentsGet.g.cs +++ b/src/libs/Replicate/Generated/Replicate.ReplicateClient.DeploymentsGet.g.cs @@ -204,7 +204,7 @@ partial void ProcessDeploymentsGetResponseContent( __authorization.Location == "Header") { __httpRequest.Headers.Add(__authorization.Name, __authorization.Value); - } + } } global::Replicate.AutoSDKRequestOptionsSupport.ApplyHeaders( request: __httpRequest, diff --git a/src/libs/Replicate/Generated/Replicate.ReplicateClient.DeploymentsList.g.cs b/src/libs/Replicate/Generated/Replicate.ReplicateClient.DeploymentsList.g.cs index c2b9cc7..94e64f2 100644 --- a/src/libs/Replicate/Generated/Replicate.ReplicateClient.DeploymentsList.g.cs +++ b/src/libs/Replicate/Generated/Replicate.ReplicateClient.DeploymentsList.g.cs @@ -200,7 +200,7 @@ partial void ProcessDeploymentsListResponseContent( __authorization.Location == "Header") { __httpRequest.Headers.Add(__authorization.Name, __authorization.Value); - } + } } global::Replicate.AutoSDKRequestOptionsSupport.ApplyHeaders( request: __httpRequest, diff --git a/src/libs/Replicate/Generated/Replicate.ReplicateClient.DeploymentsPredictionsCreate.g.cs b/src/libs/Replicate/Generated/Replicate.ReplicateClient.DeploymentsPredictionsCreate.g.cs index 3a225db..d4c7b75 100644 --- a/src/libs/Replicate/Generated/Replicate.ReplicateClient.DeploymentsPredictionsCreate.g.cs +++ b/src/libs/Replicate/Generated/Replicate.ReplicateClient.DeploymentsPredictionsCreate.g.cs @@ -199,7 +199,7 @@ partial void ProcessDeploymentsPredictionsCreateResponseContent( __authorization.Location == "Header") { __httpRequest.Headers.Add(__authorization.Name, __authorization.Value); - } + } } if (prefer != default) diff --git a/src/libs/Replicate/Generated/Replicate.ReplicateClient.DeploymentsUpdate.g.cs b/src/libs/Replicate/Generated/Replicate.ReplicateClient.DeploymentsUpdate.g.cs index 45ef444..aeca525 100644 --- a/src/libs/Replicate/Generated/Replicate.ReplicateClient.DeploymentsUpdate.g.cs +++ b/src/libs/Replicate/Generated/Replicate.ReplicateClient.DeploymentsUpdate.g.cs @@ -225,7 +225,7 @@ partial void ProcessDeploymentsUpdateResponseContent( __authorization.Location == "Header") { __httpRequest.Headers.Add(__authorization.Name, __authorization.Value); - } + } } var __httpRequestContentBody = request.ToJson(JsonSerializerContext); var __httpRequestContent = new global::System.Net.Http.StringContent( diff --git a/src/libs/Replicate/Generated/Replicate.ReplicateClient.FilesCreate.g.cs b/src/libs/Replicate/Generated/Replicate.ReplicateClient.FilesCreate.g.cs index 0c7282d..5767ee1 100644 --- a/src/libs/Replicate/Generated/Replicate.ReplicateClient.FilesCreate.g.cs +++ b/src/libs/Replicate/Generated/Replicate.ReplicateClient.FilesCreate.g.cs @@ -165,7 +165,7 @@ partial void ProcessFilesCreateResponseContent( __authorization.Location == "Header") { __httpRequest.Headers.Add(__authorization.Name, __authorization.Value); - } + } } var __httpRequestContent = new global::System.Net.Http.MultipartFormDataContent(); @@ -733,7 +733,7 @@ request.Contentname is null __authorization.Location == "Header") { __httpRequest.Headers.Add(__authorization.Name, __authorization.Value); - } + } } var __httpRequestContent = new global::System.Net.Http.MultipartFormDataContent(); @@ -1232,7 +1232,7 @@ request.Contentname is null __authorization.Location == "Header") { __httpRequest.Headers.Add(__authorization.Name, __authorization.Value); - } + } } var __httpRequestContent = new global::System.Net.Http.MultipartFormDataContent(); diff --git a/src/libs/Replicate/Generated/Replicate.ReplicateClient.FilesDelete.g.cs b/src/libs/Replicate/Generated/Replicate.ReplicateClient.FilesDelete.g.cs index 9d99465..f1b84e8 100644 --- a/src/libs/Replicate/Generated/Replicate.ReplicateClient.FilesDelete.g.cs +++ b/src/libs/Replicate/Generated/Replicate.ReplicateClient.FilesDelete.g.cs @@ -139,7 +139,7 @@ await FilesDeleteAsResponseAsync( __authorization.Location == "Header") { __httpRequest.Headers.Add(__authorization.Name, __authorization.Value); - } + } } global::Replicate.AutoSDKRequestOptionsSupport.ApplyHeaders( request: __httpRequest, diff --git a/src/libs/Replicate/Generated/Replicate.ReplicateClient.FilesDownload.g.cs b/src/libs/Replicate/Generated/Replicate.ReplicateClient.FilesDownload.g.cs index c44816a..1b30642 100644 --- a/src/libs/Replicate/Generated/Replicate.ReplicateClient.FilesDownload.g.cs +++ b/src/libs/Replicate/Generated/Replicate.ReplicateClient.FilesDownload.g.cs @@ -171,7 +171,7 @@ partial void ProcessFilesDownloadResponseContent( __authorization.Location == "Header") { __httpRequest.Headers.Add(__authorization.Name, __authorization.Value); - } + } } global::Replicate.AutoSDKRequestOptionsSupport.ApplyHeaders( request: __httpRequest, @@ -544,7 +544,7 @@ partial void ProcessFilesDownloadResponseContent( __authorization.Location == "Header") { __httpRequest.Headers.Add(__authorization.Name, __authorization.Value); - } + } } global::Replicate.AutoSDKRequestOptionsSupport.ApplyHeaders( request: __httpRequest, diff --git a/src/libs/Replicate/Generated/Replicate.ReplicateClient.FilesGet.g.cs b/src/libs/Replicate/Generated/Replicate.ReplicateClient.FilesGet.g.cs index aa3a4de..7bd0c87 100644 --- a/src/libs/Replicate/Generated/Replicate.ReplicateClient.FilesGet.g.cs +++ b/src/libs/Replicate/Generated/Replicate.ReplicateClient.FilesGet.g.cs @@ -146,7 +146,7 @@ partial void ProcessFilesGetResponseContent( __authorization.Location == "Header") { __httpRequest.Headers.Add(__authorization.Name, __authorization.Value); - } + } } global::Replicate.AutoSDKRequestOptionsSupport.ApplyHeaders( request: __httpRequest, diff --git a/src/libs/Replicate/Generated/Replicate.ReplicateClient.FilesList.g.cs b/src/libs/Replicate/Generated/Replicate.ReplicateClient.FilesList.g.cs index 136eb7f..80c6790 100644 --- a/src/libs/Replicate/Generated/Replicate.ReplicateClient.FilesList.g.cs +++ b/src/libs/Replicate/Generated/Replicate.ReplicateClient.FilesList.g.cs @@ -140,7 +140,7 @@ partial void ProcessFilesListResponseContent( __authorization.Location == "Header") { __httpRequest.Headers.Add(__authorization.Name, __authorization.Value); - } + } } global::Replicate.AutoSDKRequestOptionsSupport.ApplyHeaders( request: __httpRequest, diff --git a/src/libs/Replicate/Generated/Replicate.ReplicateClient.HardwareList.g.cs b/src/libs/Replicate/Generated/Replicate.ReplicateClient.HardwareList.g.cs index a2b35b1..41b9b31 100644 --- a/src/libs/Replicate/Generated/Replicate.ReplicateClient.HardwareList.g.cs +++ b/src/libs/Replicate/Generated/Replicate.ReplicateClient.HardwareList.g.cs @@ -154,7 +154,7 @@ partial void ProcessHardwareListResponseContent( __authorization.Location == "Header") { __httpRequest.Headers.Add(__authorization.Name, __authorization.Value); - } + } } global::Replicate.AutoSDKRequestOptionsSupport.ApplyHeaders( request: __httpRequest, diff --git a/src/libs/Replicate/Generated/Replicate.ReplicateClient.ModelsCreate.g.cs b/src/libs/Replicate/Generated/Replicate.ReplicateClient.ModelsCreate.g.cs index 8afdb03..865b8ce 100644 --- a/src/libs/Replicate/Generated/Replicate.ReplicateClient.ModelsCreate.g.cs +++ b/src/libs/Replicate/Generated/Replicate.ReplicateClient.ModelsCreate.g.cs @@ -191,7 +191,7 @@ partial void ProcessModelsCreateResponseContent( __authorization.Location == "Header") { __httpRequest.Headers.Add(__authorization.Name, __authorization.Value); - } + } } var __httpRequestContentBody = request.ToJson(JsonSerializerContext); var __httpRequestContent = new global::System.Net.Http.StringContent( diff --git a/src/libs/Replicate/Generated/Replicate.ReplicateClient.ModelsDelete.g.cs b/src/libs/Replicate/Generated/Replicate.ReplicateClient.ModelsDelete.g.cs index c3e887b..058c655 100644 --- a/src/libs/Replicate/Generated/Replicate.ReplicateClient.ModelsDelete.g.cs +++ b/src/libs/Replicate/Generated/Replicate.ReplicateClient.ModelsDelete.g.cs @@ -157,7 +157,7 @@ await ModelsDeleteAsResponseAsync( __authorization.Location == "Header") { __httpRequest.Headers.Add(__authorization.Name, __authorization.Value); - } + } } global::Replicate.AutoSDKRequestOptionsSupport.ApplyHeaders( request: __httpRequest, diff --git a/src/libs/Replicate/Generated/Replicate.ReplicateClient.ModelsExamplesList.g.cs b/src/libs/Replicate/Generated/Replicate.ReplicateClient.ModelsExamplesList.g.cs index 74e246f..97012b4 100644 --- a/src/libs/Replicate/Generated/Replicate.ReplicateClient.ModelsExamplesList.g.cs +++ b/src/libs/Replicate/Generated/Replicate.ReplicateClient.ModelsExamplesList.g.cs @@ -178,7 +178,7 @@ partial void ProcessModelsExamplesListResponseContent( __authorization.Location == "Header") { __httpRequest.Headers.Add(__authorization.Name, __authorization.Value); - } + } } global::Replicate.AutoSDKRequestOptionsSupport.ApplyHeaders( request: __httpRequest, diff --git a/src/libs/Replicate/Generated/Replicate.ReplicateClient.ModelsGet.g.cs b/src/libs/Replicate/Generated/Replicate.ReplicateClient.ModelsGet.g.cs index 8f9d618..3e10156 100644 --- a/src/libs/Replicate/Generated/Replicate.ReplicateClient.ModelsGet.g.cs +++ b/src/libs/Replicate/Generated/Replicate.ReplicateClient.ModelsGet.g.cs @@ -252,7 +252,7 @@ partial void ProcessModelsGetResponseContent( __authorization.Location == "Header") { __httpRequest.Headers.Add(__authorization.Name, __authorization.Value); - } + } } global::Replicate.AutoSDKRequestOptionsSupport.ApplyHeaders( request: __httpRequest, diff --git a/src/libs/Replicate/Generated/Replicate.ReplicateClient.ModelsList.g.cs b/src/libs/Replicate/Generated/Replicate.ReplicateClient.ModelsList.g.cs index 783b51f..5c0a01a 100644 --- a/src/libs/Replicate/Generated/Replicate.ReplicateClient.ModelsList.g.cs +++ b/src/libs/Replicate/Generated/Replicate.ReplicateClient.ModelsList.g.cs @@ -194,7 +194,7 @@ partial void ProcessModelsListResponseContent( __authorization.Location == "Header") { __httpRequest.Headers.Add(__authorization.Name, __authorization.Value); - } + } } global::Replicate.AutoSDKRequestOptionsSupport.ApplyHeaders( request: __httpRequest, diff --git a/src/libs/Replicate/Generated/Replicate.ReplicateClient.ModelsPredictionsCreate.g.cs b/src/libs/Replicate/Generated/Replicate.ReplicateClient.ModelsPredictionsCreate.g.cs index a5a90d0..24f5634 100644 --- a/src/libs/Replicate/Generated/Replicate.ReplicateClient.ModelsPredictionsCreate.g.cs +++ b/src/libs/Replicate/Generated/Replicate.ReplicateClient.ModelsPredictionsCreate.g.cs @@ -201,7 +201,7 @@ partial void ProcessModelsPredictionsCreateResponseContent( __authorization.Location == "Header") { __httpRequest.Headers.Add(__authorization.Name, __authorization.Value); - } + } } if (prefer != default) diff --git a/src/libs/Replicate/Generated/Replicate.ReplicateClient.ModelsReadmeGet.g.cs b/src/libs/Replicate/Generated/Replicate.ReplicateClient.ModelsReadmeGet.g.cs index cc6af30..53492c8 100644 --- a/src/libs/Replicate/Generated/Replicate.ReplicateClient.ModelsReadmeGet.g.cs +++ b/src/libs/Replicate/Generated/Replicate.ReplicateClient.ModelsReadmeGet.g.cs @@ -164,7 +164,7 @@ partial void ProcessModelsReadmeGetResponseContent( __authorization.Location == "Header") { __httpRequest.Headers.Add(__authorization.Name, __authorization.Value); - } + } } global::Replicate.AutoSDKRequestOptionsSupport.ApplyHeaders( request: __httpRequest, @@ -357,7 +357,7 @@ partial void ProcessModelsReadmeGetResponseContent( retryReason: global::System.String.Empty, cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); } - // + // if ((int)__response.StatusCode == 404) { string? __content_404 = null; diff --git a/src/libs/Replicate/Generated/Replicate.ReplicateClient.ModelsUpdate.g.cs b/src/libs/Replicate/Generated/Replicate.ReplicateClient.ModelsUpdate.g.cs index fbe0675..4f79b31 100644 --- a/src/libs/Replicate/Generated/Replicate.ReplicateClient.ModelsUpdate.g.cs +++ b/src/libs/Replicate/Generated/Replicate.ReplicateClient.ModelsUpdate.g.cs @@ -201,7 +201,7 @@ partial void ProcessModelsUpdateResponseContent( __authorization.Location == "Header") { __httpRequest.Headers.Add(__authorization.Name, __authorization.Value); - } + } } var __httpRequestContentBody = request.ToJson(JsonSerializerContext); var __httpRequestContent = new global::System.Net.Http.StringContent( diff --git a/src/libs/Replicate/Generated/Replicate.ReplicateClient.ModelsVersionsDelete.g.cs b/src/libs/Replicate/Generated/Replicate.ReplicateClient.ModelsVersionsDelete.g.cs index cec0ad6..4efc969 100644 --- a/src/libs/Replicate/Generated/Replicate.ReplicateClient.ModelsVersionsDelete.g.cs +++ b/src/libs/Replicate/Generated/Replicate.ReplicateClient.ModelsVersionsDelete.g.cs @@ -171,7 +171,7 @@ await ModelsVersionsDeleteAsResponseAsync( __authorization.Location == "Header") { __httpRequest.Headers.Add(__authorization.Name, __authorization.Value); - } + } } global::Replicate.AutoSDKRequestOptionsSupport.ApplyHeaders( request: __httpRequest, diff --git a/src/libs/Replicate/Generated/Replicate.ReplicateClient.ModelsVersionsGet.g.cs b/src/libs/Replicate/Generated/Replicate.ReplicateClient.ModelsVersionsGet.g.cs index 1476a93..b1567b7 100644 --- a/src/libs/Replicate/Generated/Replicate.ReplicateClient.ModelsVersionsGet.g.cs +++ b/src/libs/Replicate/Generated/Replicate.ReplicateClient.ModelsVersionsGet.g.cs @@ -232,7 +232,7 @@ partial void ProcessModelsVersionsGetResponseContent( __authorization.Location == "Header") { __httpRequest.Headers.Add(__authorization.Name, __authorization.Value); - } + } } global::Replicate.AutoSDKRequestOptionsSupport.ApplyHeaders( request: __httpRequest, diff --git a/src/libs/Replicate/Generated/Replicate.ReplicateClient.ModelsVersionsList.g.cs b/src/libs/Replicate/Generated/Replicate.ReplicateClient.ModelsVersionsList.g.cs index ed9f3e7..47d1004 100644 --- a/src/libs/Replicate/Generated/Replicate.ReplicateClient.ModelsVersionsList.g.cs +++ b/src/libs/Replicate/Generated/Replicate.ReplicateClient.ModelsVersionsList.g.cs @@ -182,7 +182,7 @@ partial void ProcessModelsVersionsListResponseContent( __authorization.Location == "Header") { __httpRequest.Headers.Add(__authorization.Name, __authorization.Value); - } + } } global::Replicate.AutoSDKRequestOptionsSupport.ApplyHeaders( request: __httpRequest, diff --git a/src/libs/Replicate/Generated/Replicate.ReplicateClient.PredictionsCancel.g.cs b/src/libs/Replicate/Generated/Replicate.ReplicateClient.PredictionsCancel.g.cs index f779bdb..525995d 100644 --- a/src/libs/Replicate/Generated/Replicate.ReplicateClient.PredictionsCancel.g.cs +++ b/src/libs/Replicate/Generated/Replicate.ReplicateClient.PredictionsCancel.g.cs @@ -172,7 +172,7 @@ partial void ProcessPredictionsCancelResponseContent( __authorization.Location == "Header") { __httpRequest.Headers.Add(__authorization.Name, __authorization.Value); - } + } } global::Replicate.AutoSDKRequestOptionsSupport.ApplyHeaders( request: __httpRequest, diff --git a/src/libs/Replicate/Generated/Replicate.ReplicateClient.PredictionsCreate.g.cs b/src/libs/Replicate/Generated/Replicate.ReplicateClient.PredictionsCreate.g.cs index a9fa3b4..3e0ceca 100644 --- a/src/libs/Replicate/Generated/Replicate.ReplicateClient.PredictionsCreate.g.cs +++ b/src/libs/Replicate/Generated/Replicate.ReplicateClient.PredictionsCreate.g.cs @@ -183,7 +183,7 @@ partial void ProcessPredictionsCreateResponseContent( __authorization.Location == "Header") { __httpRequest.Headers.Add(__authorization.Name, __authorization.Value); - } + } } if (prefer != default) diff --git a/src/libs/Replicate/Generated/Replicate.ReplicateClient.PredictionsGet.g.cs b/src/libs/Replicate/Generated/Replicate.ReplicateClient.PredictionsGet.g.cs index 243d7df..00c973e 100644 --- a/src/libs/Replicate/Generated/Replicate.ReplicateClient.PredictionsGet.g.cs +++ b/src/libs/Replicate/Generated/Replicate.ReplicateClient.PredictionsGet.g.cs @@ -228,7 +228,7 @@ partial void ProcessPredictionsGetResponseContent( __authorization.Location == "Header") { __httpRequest.Headers.Add(__authorization.Name, __authorization.Value); - } + } } global::Replicate.AutoSDKRequestOptionsSupport.ApplyHeaders( request: __httpRequest, diff --git a/src/libs/Replicate/Generated/Replicate.ReplicateClient.PredictionsList.g.cs b/src/libs/Replicate/Generated/Replicate.ReplicateClient.PredictionsList.g.cs index d2dfd21..5091f1c 100644 --- a/src/libs/Replicate/Generated/Replicate.ReplicateClient.PredictionsList.g.cs +++ b/src/libs/Replicate/Generated/Replicate.ReplicateClient.PredictionsList.g.cs @@ -257,7 +257,7 @@ partial void ProcessPredictionsListResponseContent( __authorization.Location == "Header") { __httpRequest.Headers.Add(__authorization.Name, __authorization.Value); - } + } } global::Replicate.AutoSDKRequestOptionsSupport.ApplyHeaders( request: __httpRequest, diff --git a/src/libs/Replicate/Generated/Replicate.ReplicateClient.TrainingsCancel.g.cs b/src/libs/Replicate/Generated/Replicate.ReplicateClient.TrainingsCancel.g.cs index 6d10ba5..fc579dc 100644 --- a/src/libs/Replicate/Generated/Replicate.ReplicateClient.TrainingsCancel.g.cs +++ b/src/libs/Replicate/Generated/Replicate.ReplicateClient.TrainingsCancel.g.cs @@ -132,7 +132,7 @@ partial void ProcessTrainingsCancelResponseContent( __authorization.Location == "Header") { __httpRequest.Headers.Add(__authorization.Name, __authorization.Value); - } + } } global::Replicate.AutoSDKRequestOptionsSupport.ApplyHeaders( request: __httpRequest, diff --git a/src/libs/Replicate/Generated/Replicate.ReplicateClient.TrainingsCreate.g.cs b/src/libs/Replicate/Generated/Replicate.ReplicateClient.TrainingsCreate.g.cs index 96d0499..744ecff 100644 --- a/src/libs/Replicate/Generated/Replicate.ReplicateClient.TrainingsCreate.g.cs +++ b/src/libs/Replicate/Generated/Replicate.ReplicateClient.TrainingsCreate.g.cs @@ -245,7 +245,7 @@ partial void ProcessTrainingsCreateResponseContent( __authorization.Location == "Header") { __httpRequest.Headers.Add(__authorization.Name, __authorization.Value); - } + } } var __httpRequestContentBody = request.ToJson(JsonSerializerContext); var __httpRequestContent = new global::System.Net.Http.StringContent( diff --git a/src/libs/Replicate/Generated/Replicate.ReplicateClient.TrainingsGet.g.cs b/src/libs/Replicate/Generated/Replicate.ReplicateClient.TrainingsGet.g.cs index 290a32b..9f3db76 100644 --- a/src/libs/Replicate/Generated/Replicate.ReplicateClient.TrainingsGet.g.cs +++ b/src/libs/Replicate/Generated/Replicate.ReplicateClient.TrainingsGet.g.cs @@ -222,7 +222,7 @@ partial void ProcessTrainingsGetResponseContent( __authorization.Location == "Header") { __httpRequest.Headers.Add(__authorization.Name, __authorization.Value); - } + } } global::Replicate.AutoSDKRequestOptionsSupport.ApplyHeaders( request: __httpRequest, diff --git a/src/libs/Replicate/Generated/Replicate.ReplicateClient.TrainingsList.g.cs b/src/libs/Replicate/Generated/Replicate.ReplicateClient.TrainingsList.g.cs index 05d5931..a6a1e58 100644 --- a/src/libs/Replicate/Generated/Replicate.ReplicateClient.TrainingsList.g.cs +++ b/src/libs/Replicate/Generated/Replicate.ReplicateClient.TrainingsList.g.cs @@ -220,7 +220,7 @@ partial void ProcessTrainingsListResponseContent( __authorization.Location == "Header") { __httpRequest.Headers.Add(__authorization.Name, __authorization.Value); - } + } } global::Replicate.AutoSDKRequestOptionsSupport.ApplyHeaders( request: __httpRequest, diff --git a/src/libs/Replicate/Generated/Replicate.ReplicateClient.WebhooksDefaultSecretGet.g.cs b/src/libs/Replicate/Generated/Replicate.ReplicateClient.WebhooksDefaultSecretGet.g.cs index 2b12627..94cbceb 100644 --- a/src/libs/Replicate/Generated/Replicate.ReplicateClient.WebhooksDefaultSecretGet.g.cs +++ b/src/libs/Replicate/Generated/Replicate.ReplicateClient.WebhooksDefaultSecretGet.g.cs @@ -150,7 +150,7 @@ partial void ProcessWebhooksDefaultSecretGetResponseContent( __authorization.Location == "Header") { __httpRequest.Headers.Add(__authorization.Name, __authorization.Value); - } + } } global::Replicate.AutoSDKRequestOptionsSupport.ApplyHeaders( request: __httpRequest, diff --git a/src/libs/Replicate/Generated/Replicate.ReplicateClient.g.cs b/src/libs/Replicate/Generated/Replicate.ReplicateClient.g.cs index 1fdaa45..df37a81 100644 --- a/src/libs/Replicate/Generated/Replicate.ReplicateClient.g.cs +++ b/src/libs/Replicate/Generated/Replicate.ReplicateClient.g.cs @@ -11,7 +11,7 @@ namespace Replicate public sealed partial class ReplicateClient : global::Replicate.IReplicateClient, global::System.IDisposable { /// - /// + /// /// public const string DefaultBaseUrl = "https://api.replicate.com/v1"; @@ -34,10 +34,17 @@ public sealed partial class ReplicateClient : global::Replicate.IReplicateClient /// public global::Replicate.AutoSDKClientOptions Options { get; } + + internal global::System.Lazy JsonSerializerContextProvider { get; set; } = new(() => global::Replicate.SourceGenerationContext.Default); + /// - /// + /// /// - public global::System.Text.Json.Serialization.JsonSerializerContext JsonSerializerContext { get; set; } = global::Replicate.SourceGenerationContext.Default; + public global::System.Text.Json.Serialization.JsonSerializerContext JsonSerializerContext + { + get => JsonSerializerContextProvider.Value; + set => JsonSerializerContextProvider = new(() => value); + } ///