mfa-configuration/src/PSSailpoint.MfaConfiguration/Model/Mfaclear1userprofilematchingattributes.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 FirstName Name of the identity attribute mapped to the CLEAR1 first name attribute. .PARAMETER LastName Name of the identity attribute mapped to the CLEAR1 last name attribute. .PARAMETER Dob Name of the identity attribute mapped to the CLEAR1 date of birth attribute. .PARAMETER Email Name of the identity attribute mapped to the CLEAR1 email address attribute. .PARAMETER Phone Name of the identity attribute mapped to the CLEAR1 phone number attribute. .PARAMETER Line1 Name of the identity attribute mapped to the first line of the CLEAR1 street address attribute. .PARAMETER Line2 Name of the identity attribute mapped to the second line of the CLEAR1 street address attribute. .PARAMETER City Name of the identity attribute mapped to the CLEAR1 city attribute. .PARAMETER State Name of the identity attribute mapped to the CLEAR1 state attribute. .PARAMETER PostalCode Name of the identity attribute mapped to the CLEAR1 postal code attribute. .PARAMETER Country Name of the identity attribute mapped to the CLEAR1 country attribute. .OUTPUTS Mfaclear1userprofilematchingattributes<PSCustomObject> #> function Initialize-Mfaclear1userprofilematchingattributes { [CmdletBinding()] Param ( [Parameter(ValueFromPipelineByPropertyName = $true)] [String] ${FirstName}, [Parameter(ValueFromPipelineByPropertyName = $true)] [String] ${LastName}, [Parameter(ValueFromPipelineByPropertyName = $true)] [String] ${Dob}, [Parameter(ValueFromPipelineByPropertyName = $true)] [String] ${Email}, [Parameter(ValueFromPipelineByPropertyName = $true)] [String] ${Phone}, [Parameter(ValueFromPipelineByPropertyName = $true)] [String] ${Line1}, [Parameter(ValueFromPipelineByPropertyName = $true)] [String] ${Line2}, [Parameter(ValueFromPipelineByPropertyName = $true)] [String] ${City}, [Parameter(ValueFromPipelineByPropertyName = $true)] [String] ${State}, [Parameter(ValueFromPipelineByPropertyName = $true)] [String] ${PostalCode}, [Parameter(ValueFromPipelineByPropertyName = $true)] [String] ${Country} ) Process { 'Creating PSCustomObject: PSSailpoint.MfaConfiguration => Mfaclear1userprofilematchingattributes' | Write-Debug $PSBoundParameters | Out-DebugParameter | Write-Debug $PSO = [PSCustomObject]@{ "first_name" = ${FirstName} "last_name" = ${LastName} "dob" = ${Dob} "email" = ${Email} "phone" = ${Phone} "line1" = ${Line1} "line2" = ${Line2} "city" = ${City} "state" = ${State} "postal_code" = ${PostalCode} "country" = ${Country} } return $PSO } } <# .SYNOPSIS Convert from JSON to Mfaclear1userprofilematchingattributes<PSCustomObject> .DESCRIPTION Convert from JSON to Mfaclear1userprofilematchingattributes<PSCustomObject> .PARAMETER Json Json object .OUTPUTS Mfaclear1userprofilematchingattributes<PSCustomObject> #> function ConvertFrom-JsonToMfaclear1userprofilematchingattributes { Param( [AllowEmptyString()] [string]$Json ) Process { 'Converting JSON to PSCustomObject: PSSailpoint.MfaConfiguration => Mfaclear1userprofilematchingattributes' | Write-Debug $PSBoundParameters | Out-DebugParameter | Write-Debug $JsonParameters = ConvertFrom-Json -InputObject $Json # check if Json contains properties not defined in Mfaclear1userprofilematchingattributes $AllProperties = ("first_name", "last_name", "dob", "email", "phone", "line1", "line2", "city", "state", "postal_code", "country") 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 "first_name"))) { #optional property not found $FirstName = $null } else { $FirstName = $JsonParameters.PSobject.Properties["first_name"].value } if (!([bool]($JsonParameters.PSobject.Properties.name -match "last_name"))) { #optional property not found $LastName = $null } else { $LastName = $JsonParameters.PSobject.Properties["last_name"].value } if (!([bool]($JsonParameters.PSobject.Properties.name -match "dob"))) { #optional property not found $Dob = $null } else { $Dob = $JsonParameters.PSobject.Properties["dob"].value } if (!([bool]($JsonParameters.PSobject.Properties.name -match "email"))) { #optional property not found $Email = $null } else { $Email = $JsonParameters.PSobject.Properties["email"].value } if (!([bool]($JsonParameters.PSobject.Properties.name -match "phone"))) { #optional property not found $Phone = $null } else { $Phone = $JsonParameters.PSobject.Properties["phone"].value } if (!([bool]($JsonParameters.PSobject.Properties.name -match "line1"))) { #optional property not found $Line1 = $null } else { $Line1 = $JsonParameters.PSobject.Properties["line1"].value } if (!([bool]($JsonParameters.PSobject.Properties.name -match "line2"))) { #optional property not found $Line2 = $null } else { $Line2 = $JsonParameters.PSobject.Properties["line2"].value } if (!([bool]($JsonParameters.PSobject.Properties.name -match "city"))) { #optional property not found $City = $null } else { $City = $JsonParameters.PSobject.Properties["city"].value } if (!([bool]($JsonParameters.PSobject.Properties.name -match "state"))) { #optional property not found $State = $null } else { $State = $JsonParameters.PSobject.Properties["state"].value } if (!([bool]($JsonParameters.PSobject.Properties.name -match "postal_code"))) { #optional property not found $PostalCode = $null } else { $PostalCode = $JsonParameters.PSobject.Properties["postal_code"].value } if (!([bool]($JsonParameters.PSobject.Properties.name -match "country"))) { #optional property not found $Country = $null } else { $Country = $JsonParameters.PSobject.Properties["country"].value } $PSO = [PSCustomObject]@{ "first_name" = ${FirstName} "last_name" = ${LastName} "dob" = ${Dob} "email" = ${Email} "phone" = ${Phone} "line1" = ${Line1} "line2" = ${Line2} "city" = ${City} "state" = ${State} "postal_code" = ${PostalCode} "country" = ${Country} } return $PSO } } |