beta/src/PSSailpointBeta/Model/IdentityCertificationTask.ps1
# # IdentityNow Beta API # Use these APIs to interact with the IdentityNow platform to achieve repeatable, automated processes with greater scalability. These APIs are in beta and are subject to change. We encourage you to join the SailPoint Developer Community forum at https://developer.sailpoint.com/discuss to connect with other developers using our APIs. # Version: 3.1.0-beta # Generated by OpenAPI Generator: https://openapi-generator.tech # <# .SYNOPSIS No summary available. .DESCRIPTION No description available. .PARAMETER Id The task id .PARAMETER CertificationId The certification id .PARAMETER Type No description available. .PARAMETER Status No description available. .PARAMETER Errors Any errors executing the task (Optional). .OUTPUTS IdentityCertificationTask<PSCustomObject> #> function Initialize-BetaIdentityCertificationTask { [CmdletBinding()] Param ( [Parameter(ValueFromPipelineByPropertyName = $true)] [String] ${Id}, [Parameter(ValueFromPipelineByPropertyName = $true)] [String] ${CertificationId}, [Parameter(ValueFromPipelineByPropertyName = $true)] [ValidateSet("REASSIGN")] [String] ${Type}, [Parameter(ValueFromPipelineByPropertyName = $true)] [ValidateSet("QUEUED", "IN_PROGRESS", "SUCCESS", "ERROR")] [String] ${Status}, [Parameter(ValueFromPipelineByPropertyName = $true)] [String[]] ${Errors} ) Process { 'Creating PSCustomObject: PSSailpointBeta => BetaIdentityCertificationTask' | Write-Debug $PSBoundParameters | Out-DebugParameter | Write-Debug $PSO = [PSCustomObject]@{ "id" = ${Id} "certificationId" = ${CertificationId} "type" = ${Type} "status" = ${Status} "errors" = ${Errors} } return $PSO } } <# .SYNOPSIS Convert from JSON to IdentityCertificationTask<PSCustomObject> .DESCRIPTION Convert from JSON to IdentityCertificationTask<PSCustomObject> .PARAMETER Json Json object .OUTPUTS IdentityCertificationTask<PSCustomObject> #> function ConvertFrom-BetaJsonToIdentityCertificationTask { Param( [AllowEmptyString()] [string]$Json ) Process { 'Converting JSON to PSCustomObject: PSSailpointBeta => BetaIdentityCertificationTask' | Write-Debug $PSBoundParameters | Out-DebugParameter | Write-Debug $JsonParameters = ConvertFrom-Json -InputObject $Json # check if Json contains properties not defined in BetaIdentityCertificationTask $AllProperties = ("id", "certificationId", "type", "status", "errors") 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 "id"))) { #optional property not found $Id = $null } else { $Id = $JsonParameters.PSobject.Properties["id"].value } if (!([bool]($JsonParameters.PSobject.Properties.name -match "certificationId"))) { #optional property not found $CertificationId = $null } else { $CertificationId = $JsonParameters.PSobject.Properties["certificationId"].value } if (!([bool]($JsonParameters.PSobject.Properties.name -match "type"))) { #optional property not found $Type = $null } else { $Type = $JsonParameters.PSobject.Properties["type"].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 "errors"))) { #optional property not found $Errors = $null } else { $Errors = $JsonParameters.PSobject.Properties["errors"].value } $PSO = [PSCustomObject]@{ "id" = ${Id} "certificationId" = ${CertificationId} "type" = ${Type} "status" = ${Status} "errors" = ${Errors} } return $PSO } } |