Model/DelegationsPost201Response.ps1
|
# # NERM API v2025 # The NERM API v2025 accesss and modifies resources in your environment. # Version: 1.0.0 # Generated by OpenAPI Generator: https://openapi-generator.tech # <# .SYNOPSIS No summary available. .DESCRIPTION No description available. .PARAMETER Delegation No description available. .OUTPUTS DelegationsPost201Response<PSCustomObject> #> function Initialize-NERMV2025DelegationsPost201Response { [CmdletBinding()] Param ( [Parameter(ValueFromPipelineByPropertyName = $true)] [PSCustomObject] ${Delegation} ) Process { 'Creating PSCustomObject: PSSailpoint.NERMV2025 => NERMV2025DelegationsPost201Response' | Write-Debug $PSBoundParameters | Out-DebugParameter | Write-Debug $PSO = [PSCustomObject]@{ "delegation" = ${Delegation} } return $PSO } } <# .SYNOPSIS Convert from JSON to DelegationsPost201Response<PSCustomObject> .DESCRIPTION Convert from JSON to DelegationsPost201Response<PSCustomObject> .PARAMETER Json Json object .OUTPUTS DelegationsPost201Response<PSCustomObject> #> function ConvertFrom-NERMV2025JsonToDelegationsPost201Response { Param( [AllowEmptyString()] [string]$Json ) Process { 'Converting JSON to PSCustomObject: PSSailpoint.NERMV2025 => NERMV2025DelegationsPost201Response' | Write-Debug $PSBoundParameters | Out-DebugParameter | Write-Debug $JsonParameters = ConvertFrom-Json -InputObject $Json # check if Json contains properties not defined in NERMV2025DelegationsPost201Response $AllProperties = ("delegation") foreach ($name in $JsonParameters.PsObject.Properties.Name) { if (!($AllProperties.Contains($name))) { throw "Error! JSON key '$name' not found in the properties: $($AllProperties)" } } if (!([bool]($JsonParameters.PSobject.Properties.name -match "delegation"))) { #optional property not found $Delegation = $null } else { $Delegation = $JsonParameters.PSobject.Properties["delegation"].value } $PSO = [PSCustomObject]@{ "delegation" = ${Delegation} } return $PSO } } |