v2024/src/PSSailpoint.V2024/Model/DimensionCriteriaLevel3.ps1
# # Identity Security Cloud V2024 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: v2024 # Generated by OpenAPI Generator: https://openapi-generator.tech # <# .SYNOPSIS No summary available. .DESCRIPTION Defines STANDARD type Dimension membership .PARAMETER Operation No description available. .PARAMETER Key No description available. .PARAMETER StringValue String value to test the Identity attribute specified in the key w/r/t the specified operation. If this criteria is a leaf node, that is, if the operation is one of EQUALS, this field is required. Otherwise, specifying it is an error. .OUTPUTS DimensionCriteriaLevel3<PSCustomObject> #> function Initialize-V2024DimensionCriteriaLevel3 { [CmdletBinding()] Param ( [Parameter(ValueFromPipelineByPropertyName = $true)] [ValidateSet("EQUALS", "AND", "OR")] [PSCustomObject] ${Operation}, [Parameter(ValueFromPipelineByPropertyName = $true)] [PSCustomObject] ${Key}, [Parameter(ValueFromPipelineByPropertyName = $true)] [String] ${StringValue} ) Process { 'Creating PSCustomObject: PSSailpoint.V2024 => V2024DimensionCriteriaLevel3' | Write-Debug $PSBoundParameters | Out-DebugParameter | Write-Debug $PSO = [PSCustomObject]@{ "operation" = ${Operation} "key" = ${Key} "stringValue" = ${StringValue} } return $PSO } } <# .SYNOPSIS Convert from JSON to DimensionCriteriaLevel3<PSCustomObject> .DESCRIPTION Convert from JSON to DimensionCriteriaLevel3<PSCustomObject> .PARAMETER Json Json object .OUTPUTS DimensionCriteriaLevel3<PSCustomObject> #> function ConvertFrom-V2024JsonToDimensionCriteriaLevel3 { Param( [AllowEmptyString()] [string]$Json ) Process { 'Converting JSON to PSCustomObject: PSSailpoint.V2024 => V2024DimensionCriteriaLevel3' | Write-Debug $PSBoundParameters | Out-DebugParameter | Write-Debug $JsonParameters = ConvertFrom-Json -InputObject $Json # check if Json contains properties not defined in V2024DimensionCriteriaLevel3 $AllProperties = ("operation", "key", "stringValue") 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 "operation"))) { #optional property not found $Operation = $null } else { $Operation = $JsonParameters.PSobject.Properties["operation"].value } if (!([bool]($JsonParameters.PSobject.Properties.name -match "key"))) { #optional property not found $Key = $null } else { $Key = $JsonParameters.PSobject.Properties["key"].value } if (!([bool]($JsonParameters.PSobject.Properties.name -match "stringValue"))) { #optional property not found $StringValue = $null } else { $StringValue = $JsonParameters.PSobject.Properties["stringValue"].value } $PSO = [PSCustomObject]@{ "operation" = ${Operation} "key" = ${Key} "stringValue" = ${StringValue} } return $PSO } } |