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