Model/SourceAgentDeletionTaskStatus.ps1
|
# # SailPoint Identity Security API - Sources # Use these APIs to interact with the SailPoint Identity Security 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 Details and current status of the task that deletes AI agents from a source. .PARAMETER Id System-generated unique ID of the deletion task. .PARAMETER Type Type of the deletion task. .PARAMETER UniqueName Name of the deletion task. .PARAMETER Description Description of the deletion task. .PARAMETER ParentName Name of the parent of the deletion task. .PARAMETER Launcher Service or user that launched the deletion task. .PARAMETER Target No description available. .PARAMETER Created Creation date of the deletion task. .PARAMETER Modified Last modification date of the deletion task. .PARAMETER Launched Launch date of the deletion task. .PARAMETER Completed Completion date of the deletion task. `null` until the task finishes. .PARAMETER TaskDefinitionSummary No description available. .PARAMETER CompletionStatus Completion status of the deletion task. `null` until the task finishes. .PARAMETER Messages Messages associated with the deletion task. .PARAMETER Returns Return values from the deletion task. .PARAMETER Attributes Attributes of the deletion task. .PARAMETER Progress Current progress of the deletion task. .PARAMETER PercentComplete Current percentage completion of the deletion task. .OUTPUTS SourceAgentDeletionTaskStatus<PSCustomObject> #> function Initialize-SourceAgentDeletionTaskStatus { [CmdletBinding()] Param ( [Parameter(ValueFromPipelineByPropertyName = $true)] [String] ${Id}, [Parameter(ValueFromPipelineByPropertyName = $true)] [ValidateSet("QUARTZ", "QPOC", "QUEUED_TASK")] [String] ${Type}, [Parameter(ValueFromPipelineByPropertyName = $true)] [String] ${UniqueName}, [Parameter(ValueFromPipelineByPropertyName = $true)] [String] ${Description}, [Parameter(ValueFromPipelineByPropertyName = $true)] [String] ${ParentName}, [Parameter(ValueFromPipelineByPropertyName = $true)] [String] ${Launcher}, [Parameter(ValueFromPipelineByPropertyName = $true)] [PSCustomObject] ${Target}, [Parameter(ValueFromPipelineByPropertyName = $true)] [System.Nullable[System.DateTime]] ${Created}, [Parameter(ValueFromPipelineByPropertyName = $true)] [System.Nullable[System.DateTime]] ${Modified}, [Parameter(ValueFromPipelineByPropertyName = $true)] [System.Nullable[System.DateTime]] ${Launched}, [Parameter(ValueFromPipelineByPropertyName = $true)] [System.Nullable[System.DateTime]] ${Completed}, [Parameter(ValueFromPipelineByPropertyName = $true)] [PSCustomObject] ${TaskDefinitionSummary}, [Parameter(ValueFromPipelineByPropertyName = $true)] [ValidateSet("SUCCESS", "WARNING", "ERROR", "TERMINATED", "TEMPERROR", "")] [String] ${CompletionStatus}, [Parameter(ValueFromPipelineByPropertyName = $true)] [PSCustomObject[]] ${Messages}, [Parameter(ValueFromPipelineByPropertyName = $true)] [PSCustomObject[]] ${Returns}, [Parameter(ValueFromPipelineByPropertyName = $true)] [System.Collections.Hashtable] ${Attributes}, [Parameter(ValueFromPipelineByPropertyName = $true)] [String] ${Progress}, [Parameter(ValueFromPipelineByPropertyName = $true)] [System.Nullable[Int32]] ${PercentComplete} ) Process { 'Creating PSCustomObject: PSSailpoint.Sources => SourceAgentDeletionTaskStatus' | Write-Debug $PSBoundParameters | Out-DebugParameter | Write-Debug $PSO = [PSCustomObject]@{ "id" = ${Id} "type" = ${Type} "uniqueName" = ${UniqueName} "description" = ${Description} "parentName" = ${ParentName} "launcher" = ${Launcher} "target" = ${Target} "created" = ${Created} "modified" = ${Modified} "launched" = ${Launched} "completed" = ${Completed} "taskDefinitionSummary" = ${TaskDefinitionSummary} "completionStatus" = ${CompletionStatus} "messages" = ${Messages} "returns" = ${Returns} "attributes" = ${Attributes} "progress" = ${Progress} "percentComplete" = ${PercentComplete} } return $PSO } } <# .SYNOPSIS Convert from JSON to SourceAgentDeletionTaskStatus<PSCustomObject> .DESCRIPTION Convert from JSON to SourceAgentDeletionTaskStatus<PSCustomObject> .PARAMETER Json Json object .OUTPUTS SourceAgentDeletionTaskStatus<PSCustomObject> #> function ConvertFrom-JsonToSourceAgentDeletionTaskStatus { Param( [AllowEmptyString()] [string]$Json ) Process { 'Converting JSON to PSCustomObject: PSSailpoint.Sources => SourceAgentDeletionTaskStatus' | Write-Debug $PSBoundParameters | Out-DebugParameter | Write-Debug $JsonParameters = ConvertFrom-Json -InputObject $Json # check if Json contains properties not defined in SourceAgentDeletionTaskStatus $AllProperties = ("id", "type", "uniqueName", "description", "parentName", "launcher", "target", "created", "modified", "launched", "completed", "taskDefinitionSummary", "completionStatus", "messages", "returns", "attributes", "progress", "percentComplete") 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 "type"))) { #optional property not found $Type = $null } else { $Type = $JsonParameters.PSobject.Properties["type"].value } if (!([bool]($JsonParameters.PSobject.Properties.name -match "uniqueName"))) { #optional property not found $UniqueName = $null } else { $UniqueName = $JsonParameters.PSobject.Properties["uniqueName"].value } if (!([bool]($JsonParameters.PSobject.Properties.name -match "description"))) { #optional property not found $Description = $null } else { $Description = $JsonParameters.PSobject.Properties["description"].value } if (!([bool]($JsonParameters.PSobject.Properties.name -match "parentName"))) { #optional property not found $ParentName = $null } else { $ParentName = $JsonParameters.PSobject.Properties["parentName"].value } if (!([bool]($JsonParameters.PSobject.Properties.name -match "launcher"))) { #optional property not found $Launcher = $null } else { $Launcher = $JsonParameters.PSobject.Properties["launcher"].value } if (!([bool]($JsonParameters.PSobject.Properties.name -match "target"))) { #optional property not found $Target = $null } else { $Target = $JsonParameters.PSobject.Properties["target"].value } if (!([bool]($JsonParameters.PSobject.Properties.name -match "created"))) { #optional property not found $Created = $null } else { $Created = $JsonParameters.PSobject.Properties["created"].value } if (!([bool]($JsonParameters.PSobject.Properties.name -match "modified"))) { #optional property not found $Modified = $null } else { $Modified = $JsonParameters.PSobject.Properties["modified"].value } if (!([bool]($JsonParameters.PSobject.Properties.name -match "launched"))) { #optional property not found $Launched = $null } else { $Launched = $JsonParameters.PSobject.Properties["launched"].value } if (!([bool]($JsonParameters.PSobject.Properties.name -match "completed"))) { #optional property not found $Completed = $null } else { $Completed = $JsonParameters.PSobject.Properties["completed"].value } if (!([bool]($JsonParameters.PSobject.Properties.name -match "taskDefinitionSummary"))) { #optional property not found $TaskDefinitionSummary = $null } else { $TaskDefinitionSummary = $JsonParameters.PSobject.Properties["taskDefinitionSummary"].value } if (!([bool]($JsonParameters.PSobject.Properties.name -match "completionStatus"))) { #optional property not found $CompletionStatus = $null } else { $CompletionStatus = $JsonParameters.PSobject.Properties["completionStatus"].value } if (!([bool]($JsonParameters.PSobject.Properties.name -match "messages"))) { #optional property not found $Messages = $null } else { $Messages = $JsonParameters.PSobject.Properties["messages"].value } if (!([bool]($JsonParameters.PSobject.Properties.name -match "returns"))) { #optional property not found $Returns = $null } else { $Returns = $JsonParameters.PSobject.Properties["returns"].value } if (!([bool]($JsonParameters.PSobject.Properties.name -match "attributes"))) { #optional property not found $Attributes = $null } else { $Attributes = $JsonParameters.PSobject.Properties["attributes"].value } if (!([bool]($JsonParameters.PSobject.Properties.name -match "progress"))) { #optional property not found $Progress = $null } else { $Progress = $JsonParameters.PSobject.Properties["progress"].value } if (!([bool]($JsonParameters.PSobject.Properties.name -match "percentComplete"))) { #optional property not found $PercentComplete = $null } else { $PercentComplete = $JsonParameters.PSobject.Properties["percentComplete"].value } $PSO = [PSCustomObject]@{ "id" = ${Id} "type" = ${Type} "uniqueName" = ${UniqueName} "description" = ${Description} "parentName" = ${ParentName} "launcher" = ${Launcher} "target" = ${Target} "created" = ${Created} "modified" = ${Modified} "launched" = ${Launched} "completed" = ${Completed} "taskDefinitionSummary" = ${TaskDefinitionSummary} "completionStatus" = ${CompletionStatus} "messages" = ${Messages} "returns" = ${Returns} "attributes" = ${Attributes} "progress" = ${Progress} "percentComplete" = ${PercentComplete} } return $PSO } } |