cc/src/PSSailpointCC/Model/UpdateApplicationRequest.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 Description No description available. .OUTPUTS UpdateApplicationRequest<PSCustomObject> #> function Initialize-CCUpdateApplicationRequest { [CmdletBinding()] Param ( [Parameter(Position = 0, ValueFromPipelineByPropertyName = $true)] [String] ${Description} ) Process { 'Creating PSCustomObject: PSSailpointCC => CCUpdateApplicationRequest' | Write-Debug $PSBoundParameters | Out-DebugParameter | Write-Debug $PSO = [PSCustomObject]@{ "description" = ${Description} } return $PSO } } <# .SYNOPSIS Convert from JSON to UpdateApplicationRequest<PSCustomObject> .DESCRIPTION Convert from JSON to UpdateApplicationRequest<PSCustomObject> .PARAMETER Json Json object .OUTPUTS UpdateApplicationRequest<PSCustomObject> #> function ConvertFrom-CCJsonToUpdateApplicationRequest { Param( [AllowEmptyString()] [string]$Json ) Process { 'Converting JSON to PSCustomObject: PSSailpointCC => CCUpdateApplicationRequest' | Write-Debug $PSBoundParameters | Out-DebugParameter | Write-Debug $JsonParameters = ConvertFrom-Json -InputObject $Json # check if Json contains properties not defined in CCUpdateApplicationRequest $AllProperties = ("description") 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 "description"))) { #optional property not found $Description = $null } else { $Description = $JsonParameters.PSobject.Properties["description"].value } $PSO = [PSCustomObject]@{ "description" = ${Description} } return $PSO } } |