AiFilesControllerPutLooseFile - метод
Put the file with content into AI cache, and start a requested operation with such a file.
If a file with the same content is already added, then it is reused from the cache.
Пространство имён: Tessa.Web.ControllersСборка: Tessa.Web (в Tessa.Web.dll) Версия: 4.2.0+ffad8363f63902f18b3b3f4cfa533a14b2fb19a6
[HttpPutAttribute("loose")]
[SessionMethodAttribute(UserAccessLevel.Regular, false, new string[] { ... })]
[DisableRequestSizeLimitAttribute]
[ConsumesAttribute("application/octet-stream", new string[] { ... })]
[ProducesAttribute("application/json", new string[] { ... })]
[ProducesResponseTypeAttribute(200)]
public Task<ActionResult<AiFileOperationResponse>> PutLooseFile(
[FromBodyAttribute] Stream contentStream,
[FromQueryAttribute] string name,
[FromQueryAttribute] AiFileRequestOperation operation = AiFileRequestOperation.AsIs,
CancellationToken cancellationToken = default
)
<HttpPutAttribute("loose")>
<SessionMethodAttribute(UserAccessLevel.Regular, false, New String() { ... })>
<DisableRequestSizeLimitAttribute>
<ConsumesAttribute("application/octet-stream", New String() { ... })>
<ProducesAttribute("application/json", New String() { ... })>
<ProducesResponseTypeAttribute(200)>
Public Function PutLooseFile (
<FromBodyAttribute> contentStream As Stream,
<FromQueryAttribute> name As String,
<FromQueryAttribute> Optional operation As AiFileRequestOperation = AiFileRequestOperation.AsIs,
Optional cancellationToken As CancellationToken = Nothing
) As Task(Of ActionResult(Of AiFileOperationResponse))
public:
[HttpPutAttribute(L"loose")]
[SessionMethodAttribute(UserAccessLevel::Regular, false, __gc new array<String^>^ { ... })]
[DisableRequestSizeLimitAttribute]
[ConsumesAttribute(L"application/octet-stream", __gc new array<String^>^ { ... })]
[ProducesAttribute(L"application/json", __gc new array<String^>^ { ... })]
[ProducesResponseTypeAttribute(200)]
Task<ActionResult<AiFileOperationResponse^>^>^ PutLooseFile(
[FromBodyAttribute] Stream^ contentStream,
[FromQueryAttribute] String^ name,
[FromQueryAttribute] AiFileRequestOperation operation = AiFileRequestOperation::AsIs,
CancellationToken cancellationToken = CancellationToken()
)
[<HttpPutAttribute("loose")>]
[<SessionMethodAttribute(UserAccessLevel.Regular, false, new string[] { ... })>]
[<DisableRequestSizeLimitAttribute>]
[<ConsumesAttribute("application/octet-stream", new string[] { ... })>]
[<ProducesAttribute("application/json", new string[] { ... })>]
[<ProducesResponseTypeAttribute(200)>]
member PutLooseFile :
[<FromBodyAttribute>] contentStream : Stream *
[<FromQueryAttribute>] name : string *
[<FromQueryAttribute>] ?operation : AiFileRequestOperation *
?cancellationToken : CancellationToken
(* Defaults:
let _operation = defaultArg operation AiFileRequestOperation.AsIs
let _cancellationToken = defaultArg cancellationToken new CancellationToken()
*)
-> Task<ActionResult<AiFileOperationResponse>>
- contentStream Stream
- Request body contains the file contents.
- name String
- File name with extension.
- operation AiFileRequestOperation (Optional)
Operation to be performed alongside putting the file in AI cache.
- cancellationToken CancellationToken (Optional)
Propagates notification that operations should be canceled.
TaskActionResultAiFileOperationResponse
Status and access info on a file in AI cache.