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