Model/UpdateProfileRequestProfile.ps1
|
# # NERM API # The NERM API accesss and modifies resources in your environment. # Version: 1.0.0 # Generated by OpenAPI Generator: https://openapi-generator.tech # <# .SYNOPSIS No summary available. .DESCRIPTION The profile object to be updated with its schema-mapped attributes. .PARAMETER Attributes schema-mapped attributes to be updated .OUTPUTS UpdateProfileRequestProfile<PSCustomObject> #> function Initialize-NERMUpdateProfileRequestProfile { [CmdletBinding()] Param ( [Parameter(ValueFromPipelineByPropertyName = $true)] [System.Collections.Hashtable] ${Attributes} ) Process { 'Creating PSCustomObject: PSSailpoint.NERM => NERMUpdateProfileRequestProfile' | Write-Debug $PSBoundParameters | Out-DebugParameter | Write-Debug $PSO = [PSCustomObject]@{ "attributes" = ${Attributes} } return $PSO } } <# .SYNOPSIS Convert from JSON to UpdateProfileRequestProfile<PSCustomObject> .DESCRIPTION Convert from JSON to UpdateProfileRequestProfile<PSCustomObject> .PARAMETER Json Json object .OUTPUTS UpdateProfileRequestProfile<PSCustomObject> #> function ConvertFrom-NERMJsonToUpdateProfileRequestProfile { Param( [AllowEmptyString()] [string]$Json ) Process { 'Converting JSON to PSCustomObject: PSSailpoint.NERM => NERMUpdateProfileRequestProfile' | Write-Debug $PSBoundParameters | Out-DebugParameter | Write-Debug $JsonParameters = ConvertFrom-Json -InputObject $Json # check if Json contains properties not defined in NERMUpdateProfileRequestProfile $AllProperties = ("attributes") 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 "attributes"))) { #optional property not found $Attributes = $null } else { $Attributes = $JsonParameters.PSobject.Properties["attributes"].value } $PSO = [PSCustomObject]@{ "attributes" = ${Attributes} } return $PSO } } |