Model/AdminConfigObjects.ps1
# # SMServer V6 # Syncplify Server! REST API # Version: 1.0.0 # Generated by OpenAPI Generator: https://openapi-generator.tech # <# .SYNOPSIS No summary available. .DESCRIPTION No description available. .OUTPUTS AdminConfigObjects<PSCustomObject> #> function Initialize-SS6AdminConfigObjects { [CmdletBinding()] Param ( ) Process { 'Creating PSCustomObject: SS6AdminModule => SS6AdminConfigObjects' | Write-Debug $PSBoundParameters | Out-DebugParameter | Write-Debug $PSO = [PSCustomObject]@{ } return $PSO } } <# .SYNOPSIS Convert from JSON to AdminConfigObjects<PSCustomObject> .DESCRIPTION Convert from JSON to AdminConfigObjects<PSCustomObject> .PARAMETER Json Json object .OUTPUTS AdminConfigObjects<PSCustomObject> #> function ConvertFrom-SS6JsonToAdminConfigObjects { Param( [AllowEmptyString()] [string]$Json ) Process { 'Converting JSON to PSCustomObject: SS6AdminModule => SS6AdminConfigObjects' | Write-Debug $PSBoundParameters | Out-DebugParameter | Write-Debug $JsonParameters = ConvertFrom-Json -InputObject $Json # check if Json contains properties not defined in SS6AdminConfigObjects $AllProperties = @() foreach ($name in $JsonParameters.PsObject.Properties.Name) { if (!($AllProperties.Contains($name))) { throw "Error! JSON key '$name' not found in the properties: $($AllProperties)" } } $PSO = [PSCustomObject]@{ } return $PSO } } |