From be0ac37d4fc34943dd464e6e44b2b94ebd9fe8c1 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" Date: Mon, 21 Oct 2024 15:18:09 +0000 Subject: [PATCH] feat: Updated OpenAPI spec --- .../Instill.Models.GetObjectURLResponse.g.cs | 81 +++++++++++ .../Generated/Instill.Models.ObjectURL.g.cs | 135 ++++++++++++++++++ .../Generated/JsonSerializerContextTypes.g.cs | 68 +++++---- src/libs/Instill/openapi.yaml | 46 ++++++ 4 files changed, 300 insertions(+), 30 deletions(-) create mode 100644 src/libs/Instill/Generated/Instill.Models.GetObjectURLResponse.g.cs create mode 100644 src/libs/Instill/Generated/Instill.Models.ObjectURL.g.cs diff --git a/src/libs/Instill/Generated/Instill.Models.GetObjectURLResponse.g.cs b/src/libs/Instill/Generated/Instill.Models.GetObjectURLResponse.g.cs new file mode 100644 index 0000000..229ddf8 --- /dev/null +++ b/src/libs/Instill/Generated/Instill.Models.GetObjectURLResponse.g.cs @@ -0,0 +1,81 @@ + +#nullable enable + +namespace Instill +{ + /// + /// + /// + public sealed partial class GetObjectURLResponse + { + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("objectUrl")] + public global::Instill.ObjectURL? ObjectUrl { get; set; } + + /// + /// Additional properties that are not explicitly defined in the schema + /// + [global::System.Text.Json.Serialization.JsonExtensionData] + public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); + + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#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); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + 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; + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#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( + json, + jsonSerializerOptions); + } + + } +} \ No newline at end of file diff --git a/src/libs/Instill/Generated/Instill.Models.ObjectURL.g.cs b/src/libs/Instill/Generated/Instill.Models.ObjectURL.g.cs new file mode 100644 index 0000000..f31a8ca --- /dev/null +++ b/src/libs/Instill/Generated/Instill.Models.ObjectURL.g.cs @@ -0,0 +1,135 @@ + +#nullable enable + +namespace Instill +{ + /// + /// + /// + public sealed partial class ObjectURL + { + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("uid")] + public string? Uid { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("namespaceUid")] + public string? NamespaceUid { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("objectUid")] + public string? ObjectUid { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("urlExpireAt")] + public global::System.DateTime? UrlExpireAt { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("minioUrlPath")] + public string? MinioUrlPath { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("encodedUrlPath")] + public string? EncodedUrlPath { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("type")] + public string? Type { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("createTime")] + public global::System.DateTime? CreateTime { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("updateTime")] + public global::System.DateTime? UpdateTime { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("deleteTime")] + public global::System.DateTime? DeleteTime { get; set; } + + /// + /// Additional properties that are not explicitly defined in the schema + /// + [global::System.Text.Json.Serialization.JsonExtensionData] + public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); + + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#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); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + 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; + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#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( + json, + jsonSerializerOptions); + } + + } +} \ No newline at end of file diff --git a/src/libs/Instill/Generated/JsonSerializerContextTypes.g.cs b/src/libs/Instill/Generated/JsonSerializerContextTypes.g.cs index e1ef82a..142c960 100644 --- a/src/libs/Instill/Generated/JsonSerializerContextTypes.g.cs +++ b/src/libs/Instill/Generated/JsonSerializerContextTypes.g.cs @@ -470,122 +470,130 @@ public sealed partial class JsonSerializerContextTypes /// /// /// - public global::Instill.GetObjectUploadURLResponse? Type113 { get; set; } + public global::Instill.GetObjectURLResponse? Type113 { get; set; } /// /// /// - public global::Instill.GetRepositoryTagResponse? Type114 { get; set; } + public global::Instill.ObjectURL? Type114 { get; set; } /// /// /// - public global::Instill.GetSourceFileResponse? Type115 { get; set; } + public global::Instill.GetObjectUploadURLResponse? Type115 { get; set; } /// /// /// - public global::Instill.SourceFile? Type116 { get; set; } + public global::Instill.GetRepositoryTagResponse? Type116 { get; set; } /// /// /// - public global::Instill.ListCatalogFilesFilter? Type117 { get; set; } + public global::Instill.GetSourceFileResponse? Type117 { get; set; } /// /// /// - public global::Instill.ListCatalogFilesResponse? Type118 { get; set; } + public global::Instill.SourceFile? Type118 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type119 { get; set; } + public global::Instill.ListCatalogFilesFilter? Type119 { get; set; } /// /// /// - public global::Instill.ListCatalogRunsResponse? Type120 { get; set; } + public global::Instill.ListCatalogFilesResponse? Type120 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type121 { get; set; } + public global::System.Collections.Generic.IList? Type121 { get; set; } /// /// /// - public global::Instill.ListCatalogsResponse? Type122 { get; set; } + public global::Instill.ListCatalogRunsResponse? Type122 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type123 { get; set; } + public global::System.Collections.Generic.IList? Type123 { get; set; } /// /// /// - public global::Instill.ListChunksResponse? Type124 { get; set; } + public global::Instill.ListCatalogsResponse? Type124 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type125 { get; set; } + public global::System.Collections.Generic.IList? Type125 { get; set; } /// /// /// - public global::Instill.ListRepositoryTagsResponse? Type126 { get; set; } + public global::Instill.ListChunksResponse? Type126 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type127 { get; set; } + public global::System.Collections.Generic.IList? Type127 { get; set; } /// /// /// - public global::Instill.ProcessCatalogFilesRequest? Type128 { get; set; } + public global::Instill.ListRepositoryTagsResponse? Type128 { get; set; } /// /// /// - public global::Instill.ProcessCatalogFilesResponse? Type129 { get; set; } + public global::System.Collections.Generic.IList? Type129 { get; set; } /// /// /// - public global::Instill.QuestionAnsweringResponse? Type130 { get; set; } + public global::Instill.ProcessCatalogFilesRequest? Type130 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type131 { get; set; } + public global::Instill.ProcessCatalogFilesResponse? Type131 { get; set; } /// /// /// - public global::Instill.SimilarityChunk? Type132 { get; set; } + public global::Instill.QuestionAnsweringResponse? Type132 { get; set; } /// /// /// - public global::Instill.SimilarityChunksSearchResponse? Type133 { get; set; } + public global::System.Collections.Generic.IList? Type133 { get; set; } /// /// /// - public global::Instill.UpdateCatalogResponse? Type134 { get; set; } + public global::Instill.SimilarityChunk? Type134 { get; set; } /// /// /// - public global::Instill.UpdateChunkResponse? Type135 { get; set; } + public global::Instill.SimilarityChunksSearchResponse? Type135 { get; set; } /// /// /// - public global::Instill.UploadCatalogFileResponse? Type136 { get; set; } + public global::Instill.UpdateCatalogResponse? Type136 { get; set; } /// /// /// - public global::Instill.ListUsersView? Type137 { get; set; } + public global::Instill.UpdateChunkResponse? Type137 { get; set; } /// /// /// - public global::Instill.GetUserView? Type138 { get; set; } + public global::Instill.UploadCatalogFileResponse? Type138 { get; set; } /// /// /// - public global::Instill.ListOrganizationsView? Type139 { get; set; } + public global::Instill.ListUsersView? Type139 { get; set; } /// /// /// - public global::Instill.GetOrganizationView? Type140 { get; set; } + public global::Instill.GetUserView? Type140 { get; set; } /// /// /// - public global::Instill.GetUserMembershipView? Type141 { get; set; } + public global::Instill.ListOrganizationsView? Type141 { get; set; } /// /// /// - public global::Instill.GetOrganizationMembershipView? Type142 { get; set; } + public global::Instill.GetOrganizationView? Type142 { get; set; } + /// + /// + /// + public global::Instill.GetUserMembershipView? Type143 { get; set; } + /// + /// + /// + public global::Instill.GetOrganizationMembershipView? Type144 { get; set; } } } \ No newline at end of file diff --git a/src/libs/Instill/openapi.yaml b/src/libs/Instill/openapi.yaml index b680c00..9730cab 100644 --- a/src/libs/Instill/openapi.yaml +++ b/src/libs/Instill/openapi.yaml @@ -3266,6 +3266,14 @@ components: title: object allOf: - $ref: '#/components/schemas/Object' + GetObjectURLResponse: + title: GetObjectURLResponse + type: object + properties: + objectUrl: + title: object upload url + allOf: + - $ref: '#/components/schemas/ObjectURL' GetObjectUploadURLResponse: title: GetObjectUploadURLResponse type: object @@ -3441,6 +3449,44 @@ components: title: updated time type: string format: date-time + ObjectURL: + title: ObjectUploadURL + type: object + properties: + uid: + title: The unique identifier of the ObjectURL + type: string + namespaceUid: + title: The namespace UID associated with this ObjectURL + type: string + objectUid: + title: The object UID associated with this ObjectURL + type: string + urlExpireAt: + title: The expiration time of the URL + type: string + format: date-time + minioUrlPath: + title: The MinIO URL path + type: string + encodedUrlPath: + title: The encoded URL path + type: string + type: + title: The type of URL (download or upload) + type: string + createTime: + title: The creation time of the ObjectURL + type: string + format: date-time + updateTime: + title: The last update time of the ObjectURL + type: string + format: date-time + deleteTime: + title: 'The deletion time of the ObjectURL, if applicable' + type: string + format: date-time ProcessCatalogFilesRequest: title: Process Catalog File Request required: