Model/ApplicationDiscoveryResponse.ps1
|
# # Identity Security Cloud V2025 API # 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: v2025 # Generated by OpenAPI Generator: https://openapi-generator.tech # <# .SYNOPSIS No summary available. .DESCRIPTION No description available. .PARAMETER Id System-generated unique ID of the Object .PARAMETER Type Type of task for app discovery .PARAMETER UniqueName Name of the task for app discovery .PARAMETER Description Description of the app discovery aggregation .PARAMETER ParentName Name of the parent of the task for app discovery .PARAMETER Launcher Service to execute app discovery .PARAMETER Target No description available. .PARAMETER Created Creation date of app discovery task .PARAMETER Modified Last modification date of app discovery task .PARAMETER Launched Launch date of app discovery task .PARAMETER Completed Completion date of app discovery task .PARAMETER TaskDefinitionSummary No description available. .PARAMETER CompletionStatus Completion status of app discovery task .PARAMETER Messages Messages associated with the app discovery task .PARAMETER Returns Return values associated with the app discovery task .PARAMETER Attributes Attributes of the app discovery task .PARAMETER Progress Current progress of aggregation .PARAMETER PercentComplete Current percentage completion of app discovery task .OUTPUTS ApplicationDiscoveryResponse<PSCustomObject> #> function Initialize-V2025ApplicationDiscoveryResponse { [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.V2025 => V2025ApplicationDiscoveryResponse' | 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 ApplicationDiscoveryResponse<PSCustomObject> .DESCRIPTION Convert from JSON to ApplicationDiscoveryResponse<PSCustomObject> .PARAMETER Json Json object .OUTPUTS ApplicationDiscoveryResponse<PSCustomObject> #> function ConvertFrom-V2025JsonToApplicationDiscoveryResponse { Param( [AllowEmptyString()] [string]$Json ) Process { 'Converting JSON to PSCustomObject: PSSailpoint.V2025 => V2025ApplicationDiscoveryResponse' | Write-Debug $PSBoundParameters | Out-DebugParameter | Write-Debug $JsonParameters = ConvertFrom-Json -InputObject $Json # check if Json contains properties not defined in V2025ApplicationDiscoveryResponse $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 } } |