Skip to content

Commit

Permalink
Merge pull request #28 from tryAGI/bot/update-openapi_202410211518
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions[bot] authored Oct 21, 2024
2 parents d0422e9 + be0ac37 commit db44d4e
Show file tree
Hide file tree
Showing 4 changed files with 300 additions and 30 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,81 @@

#nullable enable

namespace Instill
{
/// <summary>
///
/// </summary>
public sealed partial class GetObjectURLResponse
{
/// <summary>
///
/// </summary>
[global::System.Text.Json.Serialization.JsonPropertyName("objectUrl")]
public global::Instill.ObjectURL? ObjectUrl { get; set; }

/// <summary>
/// Additional properties that are not explicitly defined in the schema
/// </summary>
[global::System.Text.Json.Serialization.JsonExtensionData]
public global::System.Collections.Generic.IDictionary<string, object> AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary<string, object>();


/// <summary>
/// Serializes the current instance to a JSON string using the provided JsonSerializerContext.
/// </summary>
public string ToJson(
global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext)
{
return global::System.Text.Json.JsonSerializer.Serialize(
this,
this.GetType(),
jsonSerializerContext);
}

/// <summary>
/// Serializes the current instance to a JSON string using the provided JsonSerializerOptions.
/// </summary>
#if NET8_0_OR_GREATER
[global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")]
[global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")]
#endif
public string ToJson(
global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null)
{
return global::System.Text.Json.JsonSerializer.Serialize(
this,
jsonSerializerOptions);
}

/// <summary>
/// Deserializes a JSON string using the provided JsonSerializerContext.
/// </summary>
public static global::Instill.GetObjectURLResponse? FromJson(
string json,
global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext)
{
return global::System.Text.Json.JsonSerializer.Deserialize(
json,
typeof(global::Instill.GetObjectURLResponse),
jsonSerializerContext) as global::Instill.GetObjectURLResponse;
}

/// <summary>
/// Deserializes a JSON string using the provided JsonSerializerOptions.
/// </summary>
#if NET8_0_OR_GREATER
[global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")]
[global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")]
#endif
public static global::Instill.GetObjectURLResponse? FromJson(
string json,
global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null)
{
return global::System.Text.Json.JsonSerializer.Deserialize<global::Instill.GetObjectURLResponse>(
json,
jsonSerializerOptions);
}

}
}
135 changes: 135 additions & 0 deletions src/libs/Instill/Generated/Instill.Models.ObjectURL.g.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,135 @@

#nullable enable

namespace Instill
{
/// <summary>
///
/// </summary>
public sealed partial class ObjectURL
{
/// <summary>
///
/// </summary>
[global::System.Text.Json.Serialization.JsonPropertyName("uid")]
public string? Uid { get; set; }

/// <summary>
///
/// </summary>
[global::System.Text.Json.Serialization.JsonPropertyName("namespaceUid")]
public string? NamespaceUid { get; set; }

/// <summary>
///
/// </summary>
[global::System.Text.Json.Serialization.JsonPropertyName("objectUid")]
public string? ObjectUid { get; set; }

/// <summary>
///
/// </summary>
[global::System.Text.Json.Serialization.JsonPropertyName("urlExpireAt")]
public global::System.DateTime? UrlExpireAt { get; set; }

/// <summary>
///
/// </summary>
[global::System.Text.Json.Serialization.JsonPropertyName("minioUrlPath")]
public string? MinioUrlPath { get; set; }

/// <summary>
///
/// </summary>
[global::System.Text.Json.Serialization.JsonPropertyName("encodedUrlPath")]
public string? EncodedUrlPath { get; set; }

/// <summary>
///
/// </summary>
[global::System.Text.Json.Serialization.JsonPropertyName("type")]
public string? Type { get; set; }

/// <summary>
///
/// </summary>
[global::System.Text.Json.Serialization.JsonPropertyName("createTime")]
public global::System.DateTime? CreateTime { get; set; }

/// <summary>
///
/// </summary>
[global::System.Text.Json.Serialization.JsonPropertyName("updateTime")]
public global::System.DateTime? UpdateTime { get; set; }

/// <summary>
///
/// </summary>
[global::System.Text.Json.Serialization.JsonPropertyName("deleteTime")]
public global::System.DateTime? DeleteTime { get; set; }

/// <summary>
/// Additional properties that are not explicitly defined in the schema
/// </summary>
[global::System.Text.Json.Serialization.JsonExtensionData]
public global::System.Collections.Generic.IDictionary<string, object> AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary<string, object>();


/// <summary>
/// Serializes the current instance to a JSON string using the provided JsonSerializerContext.
/// </summary>
public string ToJson(
global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext)
{
return global::System.Text.Json.JsonSerializer.Serialize(
this,
this.GetType(),
jsonSerializerContext);
}

/// <summary>
/// Serializes the current instance to a JSON string using the provided JsonSerializerOptions.
/// </summary>
#if NET8_0_OR_GREATER
[global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")]
[global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")]
#endif
public string ToJson(
global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null)
{
return global::System.Text.Json.JsonSerializer.Serialize(
this,
jsonSerializerOptions);
}

/// <summary>
/// Deserializes a JSON string using the provided JsonSerializerContext.
/// </summary>
public static global::Instill.ObjectURL? FromJson(
string json,
global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext)
{
return global::System.Text.Json.JsonSerializer.Deserialize(
json,
typeof(global::Instill.ObjectURL),
jsonSerializerContext) as global::Instill.ObjectURL;
}

/// <summary>
/// Deserializes a JSON string using the provided JsonSerializerOptions.
/// </summary>
#if NET8_0_OR_GREATER
[global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")]
[global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")]
#endif
public static global::Instill.ObjectURL? FromJson(
string json,
global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null)
{
return global::System.Text.Json.JsonSerializer.Deserialize<global::Instill.ObjectURL>(
json,
jsonSerializerOptions);
}

}
}
68 changes: 38 additions & 30 deletions src/libs/Instill/Generated/JsonSerializerContextTypes.g.cs
Original file line number Diff line number Diff line change
Expand Up @@ -470,122 +470,130 @@ public sealed partial class JsonSerializerContextTypes
/// <summary>
///
/// </summary>
public global::Instill.GetObjectUploadURLResponse? Type113 { get; set; }
public global::Instill.GetObjectURLResponse? Type113 { get; set; }
/// <summary>
///
/// </summary>
public global::Instill.GetRepositoryTagResponse? Type114 { get; set; }
public global::Instill.ObjectURL? Type114 { get; set; }
/// <summary>
///
/// </summary>
public global::Instill.GetSourceFileResponse? Type115 { get; set; }
public global::Instill.GetObjectUploadURLResponse? Type115 { get; set; }
/// <summary>
///
/// </summary>
public global::Instill.SourceFile? Type116 { get; set; }
public global::Instill.GetRepositoryTagResponse? Type116 { get; set; }
/// <summary>
///
/// </summary>
public global::Instill.ListCatalogFilesFilter? Type117 { get; set; }
public global::Instill.GetSourceFileResponse? Type117 { get; set; }
/// <summary>
///
/// </summary>
public global::Instill.ListCatalogFilesResponse? Type118 { get; set; }
public global::Instill.SourceFile? Type118 { get; set; }
/// <summary>
///
/// </summary>
public global::System.Collections.Generic.IList<global::Instill.File>? Type119 { get; set; }
public global::Instill.ListCatalogFilesFilter? Type119 { get; set; }
/// <summary>
///
/// </summary>
public global::Instill.ListCatalogRunsResponse? Type120 { get; set; }
public global::Instill.ListCatalogFilesResponse? Type120 { get; set; }
/// <summary>
///
/// </summary>
public global::System.Collections.Generic.IList<global::Instill.CatalogRun>? Type121 { get; set; }
public global::System.Collections.Generic.IList<global::Instill.File>? Type121 { get; set; }
/// <summary>
///
/// </summary>
public global::Instill.ListCatalogsResponse? Type122 { get; set; }
public global::Instill.ListCatalogRunsResponse? Type122 { get; set; }
/// <summary>
///
/// </summary>
public global::System.Collections.Generic.IList<global::Instill.Catalog>? Type123 { get; set; }
public global::System.Collections.Generic.IList<global::Instill.CatalogRun>? Type123 { get; set; }
/// <summary>
///
/// </summary>
public global::Instill.ListChunksResponse? Type124 { get; set; }
public global::Instill.ListCatalogsResponse? Type124 { get; set; }
/// <summary>
///
/// </summary>
public global::System.Collections.Generic.IList<global::Instill.Chunk>? Type125 { get; set; }
public global::System.Collections.Generic.IList<global::Instill.Catalog>? Type125 { get; set; }
/// <summary>
///
/// </summary>
public global::Instill.ListRepositoryTagsResponse? Type126 { get; set; }
public global::Instill.ListChunksResponse? Type126 { get; set; }
/// <summary>
///
/// </summary>
public global::System.Collections.Generic.IList<global::Instill.RepositoryTag>? Type127 { get; set; }
public global::System.Collections.Generic.IList<global::Instill.Chunk>? Type127 { get; set; }
/// <summary>
///
/// </summary>
public global::Instill.ProcessCatalogFilesRequest? Type128 { get; set; }
public global::Instill.ListRepositoryTagsResponse? Type128 { get; set; }
/// <summary>
///
/// </summary>
public global::Instill.ProcessCatalogFilesResponse? Type129 { get; set; }
public global::System.Collections.Generic.IList<global::Instill.RepositoryTag>? Type129 { get; set; }
/// <summary>
///
/// </summary>
public global::Instill.QuestionAnsweringResponse? Type130 { get; set; }
public global::Instill.ProcessCatalogFilesRequest? Type130 { get; set; }
/// <summary>
///
/// </summary>
public global::System.Collections.Generic.IList<global::Instill.SimilarityChunk>? Type131 { get; set; }
public global::Instill.ProcessCatalogFilesResponse? Type131 { get; set; }
/// <summary>
///
/// </summary>
public global::Instill.SimilarityChunk? Type132 { get; set; }
public global::Instill.QuestionAnsweringResponse? Type132 { get; set; }
/// <summary>
///
/// </summary>
public global::Instill.SimilarityChunksSearchResponse? Type133 { get; set; }
public global::System.Collections.Generic.IList<global::Instill.SimilarityChunk>? Type133 { get; set; }
/// <summary>
///
/// </summary>
public global::Instill.UpdateCatalogResponse? Type134 { get; set; }
public global::Instill.SimilarityChunk? Type134 { get; set; }
/// <summary>
///
/// </summary>
public global::Instill.UpdateChunkResponse? Type135 { get; set; }
public global::Instill.SimilarityChunksSearchResponse? Type135 { get; set; }
/// <summary>
///
/// </summary>
public global::Instill.UploadCatalogFileResponse? Type136 { get; set; }
public global::Instill.UpdateCatalogResponse? Type136 { get; set; }
/// <summary>
///
/// </summary>
public global::Instill.ListUsersView? Type137 { get; set; }
public global::Instill.UpdateChunkResponse? Type137 { get; set; }
/// <summary>
///
/// </summary>
public global::Instill.GetUserView? Type138 { get; set; }
public global::Instill.UploadCatalogFileResponse? Type138 { get; set; }
/// <summary>
///
/// </summary>
public global::Instill.ListOrganizationsView? Type139 { get; set; }
public global::Instill.ListUsersView? Type139 { get; set; }
/// <summary>
///
/// </summary>
public global::Instill.GetOrganizationView? Type140 { get; set; }
public global::Instill.GetUserView? Type140 { get; set; }
/// <summary>
///
/// </summary>
public global::Instill.GetUserMembershipView? Type141 { get; set; }
public global::Instill.ListOrganizationsView? Type141 { get; set; }
/// <summary>
///
/// </summary>
public global::Instill.GetOrganizationMembershipView? Type142 { get; set; }
public global::Instill.GetOrganizationView? Type142 { get; set; }
/// <summary>
///
/// </summary>
public global::Instill.GetUserMembershipView? Type143 { get; set; }
/// <summary>
///
/// </summary>
public global::Instill.GetOrganizationMembershipView? Type144 { get; set; }
}
}
Loading

0 comments on commit db44d4e

Please sign in to comment.