Model/SODViolationMitigatedPayloadAppliedControlsInner.ps1
|
# # Identity Security Cloud API - Triggers # 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 No description available. .PARAMETER AppliedDate When the control was applied. .PARAMETER Applier No description available. .PARAMETER Comments Optional comments from the applier. .PARAMETER Control No description available. .PARAMETER Expiration When this application of the control expires. .PARAMETER Id ID of the control application record. .PARAMETER Status No description available. .PARAMETER Violation ID of the violation this application belongs to. .PARAMETER WorkflowId Optional workflow correlation ID. .OUTPUTS SODViolationMitigatedPayloadAppliedControlsInner<PSCustomObject> #> function Initialize-SODViolationMitigatedPayloadAppliedControlsInner { [CmdletBinding()] Param ( [Parameter(ValueFromPipelineByPropertyName = $true)] [System.Nullable[System.DateTime]] ${AppliedDate}, [Parameter(ValueFromPipelineByPropertyName = $true)] [PSCustomObject] ${Applier}, [Parameter(ValueFromPipelineByPropertyName = $true)] [String] ${Comments}, [Parameter(ValueFromPipelineByPropertyName = $true)] [PSCustomObject] ${Control}, [Parameter(ValueFromPipelineByPropertyName = $true)] [System.Nullable[System.DateTime]] ${Expiration}, [Parameter(ValueFromPipelineByPropertyName = $true)] [String] ${Id}, [Parameter(ValueFromPipelineByPropertyName = $true)] [ValidateSet("Pending", "Active", "Completed", "Canceled", "Failed")] [PSCustomObject] ${Status}, [Parameter(ValueFromPipelineByPropertyName = $true)] [String] ${Violation}, [Parameter(ValueFromPipelineByPropertyName = $true)] [String] ${WorkflowId} ) Process { 'Creating PSCustomObject: PSSailpoint.Triggers => SODViolationMitigatedPayloadAppliedControlsInner' | Write-Debug $PSBoundParameters | Out-DebugParameter | Write-Debug $PSO = [PSCustomObject]@{ "appliedDate" = ${AppliedDate} "applier" = ${Applier} "comments" = ${Comments} "control" = ${Control} "expiration" = ${Expiration} "id" = ${Id} "status" = ${Status} "violation" = ${Violation} "workflowId" = ${WorkflowId} } return $PSO } } <# .SYNOPSIS Convert from JSON to SODViolationMitigatedPayloadAppliedControlsInner<PSCustomObject> .DESCRIPTION Convert from JSON to SODViolationMitigatedPayloadAppliedControlsInner<PSCustomObject> .PARAMETER Json Json object .OUTPUTS SODViolationMitigatedPayloadAppliedControlsInner<PSCustomObject> #> function ConvertFrom-JsonToSODViolationMitigatedPayloadAppliedControlsInner { Param( [AllowEmptyString()] [string]$Json ) Process { 'Converting JSON to PSCustomObject: PSSailpoint.Triggers => SODViolationMitigatedPayloadAppliedControlsInner' | Write-Debug $PSBoundParameters | Out-DebugParameter | Write-Debug $JsonParameters = ConvertFrom-Json -InputObject $Json # check if Json contains properties not defined in SODViolationMitigatedPayloadAppliedControlsInner $AllProperties = ("appliedDate", "applier", "comments", "control", "expiration", "id", "status", "violation", "workflowId") 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 "appliedDate"))) { #optional property not found $AppliedDate = $null } else { $AppliedDate = $JsonParameters.PSobject.Properties["appliedDate"].value } if (!([bool]($JsonParameters.PSobject.Properties.name -match "applier"))) { #optional property not found $Applier = $null } else { $Applier = $JsonParameters.PSobject.Properties["applier"].value } if (!([bool]($JsonParameters.PSobject.Properties.name -match "comments"))) { #optional property not found $Comments = $null } else { $Comments = $JsonParameters.PSobject.Properties["comments"].value } if (!([bool]($JsonParameters.PSobject.Properties.name -match "control"))) { #optional property not found $Control = $null } else { $Control = $JsonParameters.PSobject.Properties["control"].value } if (!([bool]($JsonParameters.PSobject.Properties.name -match "expiration"))) { #optional property not found $Expiration = $null } else { $Expiration = $JsonParameters.PSobject.Properties["expiration"].value } 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 "status"))) { #optional property not found $Status = $null } else { $Status = $JsonParameters.PSobject.Properties["status"].value } if (!([bool]($JsonParameters.PSobject.Properties.name -match "violation"))) { #optional property not found $Violation = $null } else { $Violation = $JsonParameters.PSobject.Properties["violation"].value } if (!([bool]($JsonParameters.PSobject.Properties.name -match "workflowId"))) { #optional property not found $WorkflowId = $null } else { $WorkflowId = $JsonParameters.PSobject.Properties["workflowId"].value } $PSO = [PSCustomObject]@{ "appliedDate" = ${AppliedDate} "applier" = ${Applier} "comments" = ${Comments} "control" = ${Control} "expiration" = ${Expiration} "id" = ${Id} "status" = ${Status} "violation" = ${Violation} "workflowId" = ${WorkflowId} } return $PSO } } |