internal/autorest/out/user/New-DracoonARUserAccountCustomer.ps1
function New-DracoonARUserAccountCustomer { <# .SYNOPSIS Activate client-side encryption for customer .DESCRIPTION <h3 style='padding: 5px; background-color: #F6F7F8; border: 1px solid #AAA; border-radius: 5px; display: table-cell;'>🚧 Deprecated since v4.24.0</h3> ### Use `POST /settings/keypair` API ### Description: Activate client-side encryption for according customer. ### Precondition: Right <span style='padding: 3px; background-color: #F6F7F8; border: 1px solid #000; border-radius: 5px; display: inline;'>🔓 change config</span> required. ### Postcondition: Client-side encryption is enabled. ### Further Information: Sets the ability for this customer to encrypt rooms. Once enabled on customer level, it **CANNOT** be unset. On activation, a customer rescue key pair **MUST** be set. .PARAMETER Connection Object of Class ARAHConnection, stores the authentication Token and the API Base-URL .PARAMETER XSdsAuthToken Authentication token .EXAMPLE PS C:\> New-DracoonARUserAccountCustomer -Connection $connection <h3 style='padding: 5px; background-color: #F6F7F8; border: 1px solid #AAA; border-radius: 5px; display: table-cell;'>🚧 Deprecated since v4.24.0</h3> ### Use `POST /settings/keypair` API ### Description: Activate client-side encryption for according customer. ### Precondition: Right <span style='padding: 3px; background-color: #F6F7F8; border: 1px solid #000; border-radius: 5px; display: inline;'>🔓 change config</span> required. ### Postcondition: Client-side encryption is enabled. ### Further Information: Sets the ability for this customer to encrypt rooms. Once enabled on customer level, it **CANNOT** be unset. On activation, a customer rescue key pair **MUST** be set. .LINK <unknown> #> [CmdletBinding(DefaultParameterSetName = 'default')] param ( [Parameter(Mandatory = $true, ValueFromPipelineByPropertyName = $true, ParameterSetName = 'default')] [object] $Connection, [Parameter(ValueFromPipelineByPropertyName = $true, ParameterSetName = 'default')] [string] $XSdsAuthToken ) process { $__mapping = @{ 'Connection' = 'Connection' 'XSdsAuthToken' = 'X-Sds-Auth-Token' } $__body = $PSBoundParameters | ConvertTo-DracoonARHashtable -Include @() -Mapping $__mapping $__query = $PSBoundParameters | ConvertTo-DracoonARHashtable -Include @() -Mapping $__mapping $__header = $PSBoundParameters | ConvertTo-DracoonARHashtable -Include @('XSdsAuthToken') -Mapping $__mapping $__path = 'user/account/customer' Invoke-DracoonAPI -Path $__path -Method put -Body $__body -Query $__query -Header $__header -Connection $Connection } } |