Model/GetJobStatus200Response.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 Uid No description available. .PARAMETER Status No description available. .PARAMETER JobType No description available. .PARAMETER JobData No description available. .OUTPUTS GetJobStatus200Response<PSCustomObject> #> function Initialize-NERMGetJobStatus200Response { [CmdletBinding()] Param ( [Parameter(ValueFromPipelineByPropertyName = $true)] [String] ${Uid}, [Parameter(ValueFromPipelineByPropertyName = $true)] [String] ${Status}, [Parameter(ValueFromPipelineByPropertyName = $true)] [String] ${JobType}, [Parameter(ValueFromPipelineByPropertyName = $true)] [PSCustomObject[]] ${JobData} ) Process { 'Creating PSCustomObject: PSSailpoint.NERM => NERMGetJobStatus200Response' | Write-Debug $PSBoundParameters | Out-DebugParameter | Write-Debug $PSO = [PSCustomObject]@{ "uid" = ${Uid} "status" = ${Status} "job_type" = ${JobType} "job_data" = ${JobData} } return $PSO } } <# .SYNOPSIS Convert from JSON to GetJobStatus200Response<PSCustomObject> .DESCRIPTION Convert from JSON to GetJobStatus200Response<PSCustomObject> .PARAMETER Json Json object .OUTPUTS GetJobStatus200Response<PSCustomObject> #> function ConvertFrom-NERMJsonToGetJobStatus200Response { Param( [AllowEmptyString()] [string]$Json ) Process { 'Converting JSON to PSCustomObject: PSSailpoint.NERM => NERMGetJobStatus200Response' | Write-Debug $PSBoundParameters | Out-DebugParameter | Write-Debug $JsonParameters = ConvertFrom-Json -InputObject $Json # check if Json contains properties not defined in NERMGetJobStatus200Response $AllProperties = ("uid", "status", "job_type", "job_data") 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 "uid"))) { #optional property not found $Uid = $null } else { $Uid = $JsonParameters.PSobject.Properties["uid"].value } if (!([bool]($JsonParameters.PSobject.Properties.name -match "status"))) { #optional property not found $Status = $null } else { $Status = $JsonParameters.PSobject.Properties["status"].value } if (!([bool]($JsonParameters.PSobject.Properties.name -match "job_type"))) { #optional property not found $JobType = $null } else { $JobType = $JsonParameters.PSobject.Properties["job_type"].value } if (!([bool]($JsonParameters.PSobject.Properties.name -match "job_data"))) { #optional property not found $JobData = $null } else { $JobData = $JsonParameters.PSobject.Properties["job_data"].value } $PSO = [PSCustomObject]@{ "uid" = ${Uid} "status" = ${Status} "job_type" = ${JobType} "job_data" = ${JobData} } return $PSO } } |