# Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. # typed: true # frozen_string_literal: true module StackOne module Shared class UnifiedUploadRequestDto < ::StackOne::Utils::FieldAugmented extend T::Sig # The category object for associating uploaded files. If both an ID and a name are provided, the ID takes precedence. field :category, T.nilable(::StackOne::Shared::UnifiedUploadRequestDtoCategory), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('category') } } # The confidentiality level of the file to be uploaded field :confidential, T.nilable(::StackOne::Shared::UnifiedUploadRequestDtoConfidential), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('confidential') } } # The base64 encoded content of the file to upload field :content, T.nilable(::String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('content') } } # The file format of the file field :file_format, T.nilable(::StackOne::Shared::UnifiedUploadRequestDtoFileFormat), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('file_format') } } # The filename of the file to upload field :name, T.nilable(::String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('name') } } # The path for the file to be uploaded to field :path, T.nilable(::String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('path') } } sig { params(category: T.nilable(::StackOne::Shared::UnifiedUploadRequestDtoCategory), confidential: T.nilable(::StackOne::Shared::UnifiedUploadRequestDtoConfidential), content: T.nilable(::String), file_format: T.nilable(::StackOne::Shared::UnifiedUploadRequestDtoFileFormat), name: T.nilable(::String), path: T.nilable(::String)).void } def initialize(category: nil, confidential: nil, content: nil, file_format: nil, name: nil, path: nil) @category = category @confidential = confidential @content = content @file_format = file_format @name = name @path = path end end end end