internal/autorest/out/shares/Set-DracoonARShareDownload.ps1
function Set-DracoonARShareDownload { <# .SYNOPSIS Create new Download Share .DESCRIPTION ### Description: Create a new Download Share. ### Precondition: User with <span style='padding: 3px; background-color: #F6F7F8; border: 1px solid #000; border-radius: 5px; display: inline;'>🔓 manage download share</span> permissions on target node. ### Postcondition: Download Share is created. ### Further Information: If the target node is a room: subordinary rooms are excluded from a Download Share. * `name` is limited to **150** characters. * `notes` are limited to **255** characters. * `password` is limited to **1024** characters. Use `POST /shares/downloads/{share_id}/email` API for sending emails. Forbidden characters in passwords: [`&`, `'`, `<`, `>`] .PARAMETER XSdsDateFormat Date time format (cf. [RFC 3339](https://www.ietf.org/rfc/rfc3339.txt) & [leettime.de](http://leettime.de/)) .PARAMETER XSdsAuthToken Authentication token .PARAMETER Connection Object of Class ARAHConnection, stores the authentication Token and the API Base-URL .EXAMPLE PS C:\> Set-DracoonARShareDownload -Connection $connection ### Description: Create a new Download Share. ### Precondition: User with <span style='padding: 3px; background-color: #F6F7F8; border: 1px solid #000; border-radius: 5px; display: inline;'>🔓 manage download share</span> permissions on target node. ### Postcondition: Download Share is created. ### Further Information: If the target node is a room: subordinary rooms are excluded from a Download Share. * `name` is limited to **150** characters. * `notes` are limited to **255** characters. * `password` is limited to **1024** characters. Use `POST /shares/downloads/{share_id}/email` API for sending emails. Forbidden characters in passwords: [`&`, `'`, `<`, `>`] .LINK <unknown> #> [CmdletBinding(DefaultParameterSetName = 'default')] param ( [Parameter(ValueFromPipelineByPropertyName = $true, ParameterSetName = 'default')] [object] $XSdsDateFormat, [Parameter(ValueFromPipelineByPropertyName = $true, ParameterSetName = 'default')] [string] $XSdsAuthToken, [Parameter(Mandatory = $true, ValueFromPipelineByPropertyName = $true, ParameterSetName = 'default')] [object] $Connection ) process { $__mapping = @{ 'XSdsDateFormat' = 'X-Sds-Date-Format' 'XSdsAuthToken' = 'X-Sds-Auth-Token' 'Connection' = 'Connection' } $__body = $PSBoundParameters | ConvertTo-DracoonARHashtable -Include @() -Mapping $__mapping $__query = $PSBoundParameters | ConvertTo-DracoonARHashtable -Include @() -Mapping $__mapping $__header = $PSBoundParameters | ConvertTo-DracoonARHashtable -Include @('XSdsDateFormat','XSdsAuthToken') -Mapping $__mapping $__path = 'shares/downloads' Invoke-DracoonAPI -Path $__path -Method post -Body $__body -Query $__query -Header $__header -Connection $Connection } } |