SchemeControllerPutPartition - метод
Save partition, creating new one or modifying existent.
Method is available for administrators only.
Пространство имён: Tessa.Web.ControllersСборка: Tessa.Web (в Tessa.Web.dll) Версия: 4.0.4
[HttpPutAttribute("partitions/{id:guid}")]
[TypedJsonBodyAttribute]
[ConsumesAttribute("application/json", new string[] { ... })]
[ProducesResponseTypeAttribute(200)]
[ProducesResponseTypeAttribute(201)]
public ValueTask<IActionResult> PutPartition(
[FromRouteAttribute] Guid id,
[FromBodyAttribute] PlainSchemePartition partition,
CancellationToken cancellationToken = default
)
<HttpPutAttribute("partitions/{id:guid}")>
<TypedJsonBodyAttribute>
<ConsumesAttribute("application/json", New String() { ... })>
<ProducesResponseTypeAttribute(200)>
<ProducesResponseTypeAttribute(201)>
Public Function PutPartition (
<FromRouteAttribute> id As Guid,
<FromBodyAttribute> partition As PlainSchemePartition,
Optional cancellationToken As CancellationToken = Nothing
) As ValueTask(Of IActionResult)
public:
[HttpPutAttribute(L"partitions/{id:guid}")]
[TypedJsonBodyAttribute]
[ConsumesAttribute(L"application/json", __gc new array<String^>^ { ... })]
[ProducesResponseTypeAttribute(200)]
[ProducesResponseTypeAttribute(201)]
ValueTask<IActionResult^> PutPartition(
[FromRouteAttribute] Guid id,
[FromBodyAttribute] PlainSchemePartition^ partition,
CancellationToken cancellationToken = CancellationToken()
)
[<HttpPutAttribute("partitions/{id:guid}")>]
[<TypedJsonBodyAttribute>]
[<ConsumesAttribute("application/json", new string[] { ... })>]
[<ProducesResponseTypeAttribute(200)>]
[<ProducesResponseTypeAttribute(201)>]
member PutPartition :
[<FromRouteAttribute>] id : Guid *
[<FromBodyAttribute>] partition : PlainSchemePartition *
?cancellationToken : CancellationToken
(* Defaults:
let _cancellationToken = defaultArg cancellationToken new CancellationToken()
*)
-> ValueTask<IActionResult>
- id Guid
- Identifier of partition to save.
- partition PlainSchemePartition
- Partition to save.
- cancellationToken CancellationToken (Optional)
- Token to cancel async task.
ValueTaskIActionResult204 (No Content).