Model/ApplicationItem.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 The unique identifier of the application. .PARAMETER Name The display name of the application. .PARAMETER Description A brief description of the application and its purpose. .PARAMETER Type The type of the application. .PARAMETER Tags A list of tags associated with the application. .PARAMETER TestConnectionStatus The status of the last connection test performed on the application. .PARAMETER TestConnectionDate The timestamp of the last connection test performed on the application, in milliseconds since epoch. .PARAMETER RcClusterId The identifier of the cluster used for crawling resources. .PARAMETER DcClusterId The identifier of the cluster used for data classification. .PARAMETER PcClusterId The identifier of the cluster used for permission collection. .OUTPUTS ApplicationItem<PSCustomObject> #> function Initialize-V2025ApplicationItem { [CmdletBinding()] Param ( [Parameter(ValueFromPipelineByPropertyName = $true)] [System.Nullable[Int64]] ${Id}, [Parameter(ValueFromPipelineByPropertyName = $true)] [String] ${Name}, [Parameter(ValueFromPipelineByPropertyName = $true)] [String] ${Description}, [Parameter(ValueFromPipelineByPropertyName = $true)] [String] ${Type}, [Parameter(ValueFromPipelineByPropertyName = $true)] [PSCustomObject[]] ${Tags}, [Parameter(ValueFromPipelineByPropertyName = $true)] [String] ${TestConnectionStatus}, [Parameter(ValueFromPipelineByPropertyName = $true)] [System.Nullable[Int64]] ${TestConnectionDate}, [Parameter(ValueFromPipelineByPropertyName = $true)] [String] ${RcClusterId}, [Parameter(ValueFromPipelineByPropertyName = $true)] [String] ${DcClusterId}, [Parameter(ValueFromPipelineByPropertyName = $true)] [String] ${PcClusterId} ) Process { 'Creating PSCustomObject: PSSailpoint.V2025 => V2025ApplicationItem' | Write-Debug $PSBoundParameters | Out-DebugParameter | Write-Debug $PSO = [PSCustomObject]@{ "id" = ${Id} "name" = ${Name} "description" = ${Description} "type" = ${Type} "tags" = ${Tags} "testConnectionStatus" = ${TestConnectionStatus} "testConnectionDate" = ${TestConnectionDate} "rcClusterId" = ${RcClusterId} "dcClusterId" = ${DcClusterId} "pcClusterId" = ${PcClusterId} } return $PSO } } <# .SYNOPSIS Convert from JSON to ApplicationItem<PSCustomObject> .DESCRIPTION Convert from JSON to ApplicationItem<PSCustomObject> .PARAMETER Json Json object .OUTPUTS ApplicationItem<PSCustomObject> #> function ConvertFrom-V2025JsonToApplicationItem { Param( [AllowEmptyString()] [string]$Json ) Process { 'Converting JSON to PSCustomObject: PSSailpoint.V2025 => V2025ApplicationItem' | Write-Debug $PSBoundParameters | Out-DebugParameter | Write-Debug $JsonParameters = ConvertFrom-Json -InputObject $Json # check if Json contains properties not defined in V2025ApplicationItem $AllProperties = ("id", "name", "description", "type", "tags", "testConnectionStatus", "testConnectionDate", "rcClusterId", "dcClusterId", "pcClusterId") 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 "name"))) { #optional property not found $Name = $null } else { $Name = $JsonParameters.PSobject.Properties["name"].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 "type"))) { #optional property not found $Type = $null } else { $Type = $JsonParameters.PSobject.Properties["type"].value } if (!([bool]($JsonParameters.PSobject.Properties.name -match "tags"))) { #optional property not found $Tags = $null } else { $Tags = $JsonParameters.PSobject.Properties["tags"].value } if (!([bool]($JsonParameters.PSobject.Properties.name -match "testConnectionStatus"))) { #optional property not found $TestConnectionStatus = $null } else { $TestConnectionStatus = $JsonParameters.PSobject.Properties["testConnectionStatus"].value } if (!([bool]($JsonParameters.PSobject.Properties.name -match "testConnectionDate"))) { #optional property not found $TestConnectionDate = $null } else { $TestConnectionDate = $JsonParameters.PSobject.Properties["testConnectionDate"].value } if (!([bool]($JsonParameters.PSobject.Properties.name -match "rcClusterId"))) { #optional property not found $RcClusterId = $null } else { $RcClusterId = $JsonParameters.PSobject.Properties["rcClusterId"].value } if (!([bool]($JsonParameters.PSobject.Properties.name -match "dcClusterId"))) { #optional property not found $DcClusterId = $null } else { $DcClusterId = $JsonParameters.PSobject.Properties["dcClusterId"].value } if (!([bool]($JsonParameters.PSobject.Properties.name -match "pcClusterId"))) { #optional property not found $PcClusterId = $null } else { $PcClusterId = $JsonParameters.PSobject.Properties["pcClusterId"].value } $PSO = [PSCustomObject]@{ "id" = ${Id} "name" = ${Name} "description" = ${Description} "type" = ${Type} "tags" = ${Tags} "testConnectionStatus" = ${TestConnectionStatus} "testConnectionDate" = ${TestConnectionDate} "rcClusterId" = ${RcClusterId} "dcClusterId" = ${DcClusterId} "pcClusterId" = ${PcClusterId} } return $PSO } } |