cc/src/PSSailpointCC/Model/GetIdentity200ResponseAuth.ps1
# # IdentityNow cc (private) APIs # No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # Version: 1.0.0 # Generated by OpenAPI Generator: https://openapi-generator.tech # <# .SYNOPSIS No summary available. .DESCRIPTION No description available. .PARAMETER Service No description available. .PARAMETER Encryption No description available. .OUTPUTS GetIdentity200ResponseAuth<PSCustomObject> #> function Initialize-CCGetIdentity200ResponseAuth { [CmdletBinding()] Param ( [Parameter(Position = 0, ValueFromPipelineByPropertyName = $true)] [String] ${Service}, [Parameter(Position = 1, ValueFromPipelineByPropertyName = $true)] [String] ${Encryption} ) Process { 'Creating PSCustomObject: PSSailpointCC => CCGetIdentity200ResponseAuth' | Write-Debug $PSBoundParameters | Out-DebugParameter | Write-Debug $PSO = [PSCustomObject]@{ "service" = ${Service} "encryption" = ${Encryption} } return $PSO } } <# .SYNOPSIS Convert from JSON to GetIdentity200ResponseAuth<PSCustomObject> .DESCRIPTION Convert from JSON to GetIdentity200ResponseAuth<PSCustomObject> .PARAMETER Json Json object .OUTPUTS GetIdentity200ResponseAuth<PSCustomObject> #> function ConvertFrom-CCJsonToGetIdentity200ResponseAuth { Param( [AllowEmptyString()] [string]$Json ) Process { 'Converting JSON to PSCustomObject: PSSailpointCC => CCGetIdentity200ResponseAuth' | Write-Debug $PSBoundParameters | Out-DebugParameter | Write-Debug $JsonParameters = ConvertFrom-Json -InputObject $Json # check if Json contains properties not defined in CCGetIdentity200ResponseAuth $AllProperties = ("service", "encryption") 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 "service"))) { #optional property not found $Service = $null } else { $Service = $JsonParameters.PSobject.Properties["service"].value } if (!([bool]($JsonParameters.PSobject.Properties.name -match "encryption"))) { #optional property not found $Encryption = $null } else { $Encryption = $JsonParameters.PSobject.Properties["encryption"].value } $PSO = [PSCustomObject]@{ "service" = ${Service} "encryption" = ${Encryption} } return $PSO } } |