mfa-configuration/src/PSSailpoint.MfaConfiguration/Model/Mfaclear1establishedidentityflowconfig.ps1
|
# # SailPoint Identity Security API - MFA Configuration # 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 No description available. .PARAMETER Enabled If the established identity flow is enabled for the CLEAR1 MFA method. .PARAMETER ProjectId The ID of the CLEAR1 project used for the established identity flow. This field is required if `enabled` is *true*. It may be null if `enabled` is *false*. .PARAMETER UserProfileMatchingAttributes No description available. .OUTPUTS Mfaclear1establishedidentityflowconfig<PSCustomObject> #> function Initialize-Mfaclear1establishedidentityflowconfig { [CmdletBinding()] Param ( [Parameter(ValueFromPipelineByPropertyName = $true)] [System.Nullable[Boolean]] ${Enabled} = $false, [Parameter(ValueFromPipelineByPropertyName = $true)] [String] ${ProjectId}, [Parameter(ValueFromPipelineByPropertyName = $true)] [PSCustomObject] ${UserProfileMatchingAttributes} ) Process { 'Creating PSCustomObject: PSSailpoint.MfaConfiguration => Mfaclear1establishedidentityflowconfig' | Write-Debug $PSBoundParameters | Out-DebugParameter | Write-Debug $PSO = [PSCustomObject]@{ "enabled" = ${Enabled} "projectId" = ${ProjectId} "userProfileMatchingAttributes" = ${UserProfileMatchingAttributes} } return $PSO } } <# .SYNOPSIS Convert from JSON to Mfaclear1establishedidentityflowconfig<PSCustomObject> .DESCRIPTION Convert from JSON to Mfaclear1establishedidentityflowconfig<PSCustomObject> .PARAMETER Json Json object .OUTPUTS Mfaclear1establishedidentityflowconfig<PSCustomObject> #> function ConvertFrom-JsonToMfaclear1establishedidentityflowconfig { Param( [AllowEmptyString()] [string]$Json ) Process { 'Converting JSON to PSCustomObject: PSSailpoint.MfaConfiguration => Mfaclear1establishedidentityflowconfig' | Write-Debug $PSBoundParameters | Out-DebugParameter | Write-Debug $JsonParameters = ConvertFrom-Json -InputObject $Json # check if Json contains properties not defined in Mfaclear1establishedidentityflowconfig $AllProperties = ("enabled", "projectId", "userProfileMatchingAttributes") 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 "enabled"))) { #optional property not found $Enabled = $null } else { $Enabled = $JsonParameters.PSobject.Properties["enabled"].value } if (!([bool]($JsonParameters.PSobject.Properties.name -match "projectId"))) { #optional property not found $ProjectId = $null } else { $ProjectId = $JsonParameters.PSobject.Properties["projectId"].value } if (!([bool]($JsonParameters.PSobject.Properties.name -match "userProfileMatchingAttributes"))) { #optional property not found $UserProfileMatchingAttributes = $null } else { $UserProfileMatchingAttributes = $JsonParameters.PSobject.Properties["userProfileMatchingAttributes"].value } $PSO = [PSCustomObject]@{ "enabled" = ${Enabled} "projectId" = ${ProjectId} "userProfileMatchingAttributes" = ${UserProfileMatchingAttributes} } return $PSO } } |