intelligence/src/PSSailpoint.Intelligence/Model/Responseactionstatus.ps1
|
# # Identity Security Cloud API - Intelligence # Use these APIs to interact with the Identity Security Cloud platform to achieve repeatable, automated processes with greater scalability. 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: v1 # Generated by OpenAPI Generator: https://openapi-generator.tech # <# .SYNOPSIS No summary available. .DESCRIPTION Current tracked status of a response action. Target fields from the create request (identityType, identityId, accountIds, context) are not echoed here; they travel on the action event used to start the workflow(s). .PARAMETER RequestId Tracking handle and correlation id for the response action. .PARAMETER ActionType The action that was requested. .PARAMETER Status Aggregate status across the correlated workflow execution(s): SUBMITTED (registered, no execution yet), IN_PROGRESS (any still non-terminal), COMPLETED (all terminal and at least one succeeded), or FAILED (all terminal and none succeeded). .PARAMETER SubmittedAt When the response action was accepted. .PARAMETER UpdatedAt When the response action status last changed. .OUTPUTS Responseactionstatus<PSCustomObject> #> function Initialize-Responseactionstatus { [CmdletBinding()] Param ( [Parameter(ValueFromPipelineByPropertyName = $true)] [String] ${RequestId}, [Parameter(ValueFromPipelineByPropertyName = $true)] [ValidateSet("DISABLE_IDENTITY", "DISABLE_ACCOUNT")] [String] ${ActionType}, [Parameter(ValueFromPipelineByPropertyName = $true)] [ValidateSet("SUBMITTED", "IN_PROGRESS", "COMPLETED", "FAILED")] [String] ${Status}, [Parameter(ValueFromPipelineByPropertyName = $true)] [System.DateTime] ${SubmittedAt}, [Parameter(ValueFromPipelineByPropertyName = $true)] [System.DateTime] ${UpdatedAt} ) Process { 'Creating PSCustomObject: PSSailpoint.Intelligence => Responseactionstatus' | Write-Debug $PSBoundParameters | Out-DebugParameter | Write-Debug if (!$RequestId) { throw "invalid value for 'RequestId', 'RequestId' cannot be null." } if (!$ActionType) { throw "invalid value for 'ActionType', 'ActionType' cannot be null." } if (!$Status) { throw "invalid value for 'Status', 'Status' cannot be null." } if (!$SubmittedAt) { throw "invalid value for 'SubmittedAt', 'SubmittedAt' cannot be null." } if (!$UpdatedAt) { throw "invalid value for 'UpdatedAt', 'UpdatedAt' cannot be null." } $PSO = [PSCustomObject]@{ "requestId" = ${RequestId} "actionType" = ${ActionType} "status" = ${Status} "submittedAt" = ${SubmittedAt} "updatedAt" = ${UpdatedAt} } return $PSO } } <# .SYNOPSIS Convert from JSON to Responseactionstatus<PSCustomObject> .DESCRIPTION Convert from JSON to Responseactionstatus<PSCustomObject> .PARAMETER Json Json object .OUTPUTS Responseactionstatus<PSCustomObject> #> function ConvertFrom-JsonToResponseactionstatus { Param( [AllowEmptyString()] [string]$Json ) Process { 'Converting JSON to PSCustomObject: PSSailpoint.Intelligence => Responseactionstatus' | Write-Debug $PSBoundParameters | Out-DebugParameter | Write-Debug $JsonParameters = ConvertFrom-Json -InputObject $Json # check if Json contains properties not defined in Responseactionstatus $AllProperties = ("requestId", "actionType", "status", "submittedAt", "updatedAt") foreach ($name in $JsonParameters.PsObject.Properties.Name) { if (!($AllProperties.Contains($name))) { throw "Error! JSON key '$name' not found in the properties: $($AllProperties)" } } If ([string]::IsNullOrEmpty($Json) -or $Json -eq "{}") { # empty json throw "Error! Empty JSON cannot be serialized due to the required property 'requestId' missing." } if (!([bool]($JsonParameters.PSobject.Properties.name -match "requestId"))) { throw "Error! JSON cannot be serialized due to the required property 'requestId' missing." } else { $RequestId = $JsonParameters.PSobject.Properties["requestId"].value } if (!([bool]($JsonParameters.PSobject.Properties.name -match "actionType"))) { throw "Error! JSON cannot be serialized due to the required property 'actionType' missing." } else { $ActionType = $JsonParameters.PSobject.Properties["actionType"].value } if (!([bool]($JsonParameters.PSobject.Properties.name -match "status"))) { throw "Error! JSON cannot be serialized due to the required property 'status' missing." } else { $Status = $JsonParameters.PSobject.Properties["status"].value } if (!([bool]($JsonParameters.PSobject.Properties.name -match "submittedAt"))) { throw "Error! JSON cannot be serialized due to the required property 'submittedAt' missing." } else { $SubmittedAt = $JsonParameters.PSobject.Properties["submittedAt"].value } if (!([bool]($JsonParameters.PSobject.Properties.name -match "updatedAt"))) { throw "Error! JSON cannot be serialized due to the required property 'updatedAt' missing." } else { $UpdatedAt = $JsonParameters.PSobject.Properties["updatedAt"].value } $PSO = [PSCustomObject]@{ "requestId" = ${RequestId} "actionType" = ${ActionType} "status" = ${Status} "submittedAt" = ${SubmittedAt} "updatedAt" = ${UpdatedAt} } return $PSO } } |