nermV2025/src/PSSailpoint.NERMV2025/Model/DelegationsGet200Response.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 Delegations No description available. .OUTPUTS DelegationsGet200Response<PSCustomObject> #> function Initialize-NERMV2025DelegationsGet200Response { [CmdletBinding()] Param ( [Parameter(ValueFromPipelineByPropertyName = $true)] [PSCustomObject[]] ${Delegations} ) Process { 'Creating PSCustomObject: PSSailpoint.NERMV2025 => NERMV2025DelegationsGet200Response' | Write-Debug $PSBoundParameters | Out-DebugParameter | Write-Debug $PSO = [PSCustomObject]@{ "delegations" = ${Delegations} } return $PSO } } <# .SYNOPSIS Convert from JSON to DelegationsGet200Response<PSCustomObject> .DESCRIPTION Convert from JSON to DelegationsGet200Response<PSCustomObject> .PARAMETER Json Json object .OUTPUTS DelegationsGet200Response<PSCustomObject> #> function ConvertFrom-NERMV2025JsonToDelegationsGet200Response { Param( [AllowEmptyString()] [string]$Json ) Process { 'Converting JSON to PSCustomObject: PSSailpoint.NERMV2025 => NERMV2025DelegationsGet200Response' | Write-Debug $PSBoundParameters | Out-DebugParameter | Write-Debug $JsonParameters = ConvertFrom-Json -InputObject $Json # check if Json contains properties not defined in NERMV2025DelegationsGet200Response $AllProperties = ("delegations") 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 "delegations"))) { #optional property not found $Delegations = $null } else { $Delegations = $JsonParameters.PSobject.Properties["delegations"].value } $PSO = [PSCustomObject]@{ "delegations" = ${Delegations} } return $PSO } } |