Model/AccessProfileListFilterDTO.ps1
|
# # Identity Security Cloud API - Access Profiles # 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 Filter criteria and Access Model Metadata key/values used to select access profiles. .PARAMETER Filters Filter results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#filtering-results) Filtering is supported for the following fields and operators: **id**: *eq, in* **name**: *eq, sw* **created**: *gt, ge, le* **modified**: *gt, lt, ge, le* **owner.id**: *eq, in* **requestable**: *eq* **source.id**: *eq, in* Supported composite operators are *and, or* .PARAMETER AmmKeyValues The Access Model Metadata attributes and values used to filter the results. .OUTPUTS AccessProfileListFilterDTO<PSCustomObject> #> function Initialize-AccessProfileListFilterDTO { [CmdletBinding()] Param ( [Parameter(ValueFromPipelineByPropertyName = $true)] [String] ${Filters}, [Parameter(ValueFromPipelineByPropertyName = $true)] [PSCustomObject[]] ${AmmKeyValues} ) Process { 'Creating PSCustomObject: PSSailpoint.AccessProfiles => AccessProfileListFilterDTO' | Write-Debug $PSBoundParameters | Out-DebugParameter | Write-Debug $PSO = [PSCustomObject]@{ "filters" = ${Filters} "ammKeyValues" = ${AmmKeyValues} } return $PSO } } <# .SYNOPSIS Convert from JSON to AccessProfileListFilterDTO<PSCustomObject> .DESCRIPTION Convert from JSON to AccessProfileListFilterDTO<PSCustomObject> .PARAMETER Json Json object .OUTPUTS AccessProfileListFilterDTO<PSCustomObject> #> function ConvertFrom-JsonToAccessProfileListFilterDTO { Param( [AllowEmptyString()] [string]$Json ) Process { 'Converting JSON to PSCustomObject: PSSailpoint.AccessProfiles => AccessProfileListFilterDTO' | Write-Debug $PSBoundParameters | Out-DebugParameter | Write-Debug $JsonParameters = ConvertFrom-Json -InputObject $Json # check if Json contains properties not defined in AccessProfileListFilterDTO $AllProperties = ("filters", "ammKeyValues") 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 "filters"))) { #optional property not found $Filters = $null } else { $Filters = $JsonParameters.PSobject.Properties["filters"].value } if (!([bool]($JsonParameters.PSobject.Properties.name -match "ammKeyValues"))) { #optional property not found $AmmKeyValues = $null } else { $AmmKeyValues = $JsonParameters.PSobject.Properties["ammKeyValues"].value } $PSO = [PSCustomObject]@{ "filters" = ${Filters} "ammKeyValues" = ${AmmKeyValues} } return $PSO } } |