Model/MicrosoftODataEdmIEdmExpression.ps1
# # Portal Api # Portal Api HTTP API V1 # Version: v1 # Generated by OpenAPI Generator: https://openapi-generator.tech # <# .SYNOPSIS No summary available. .DESCRIPTION No description available. .PARAMETER ExpressionKind No description available. .OUTPUTS MicrosoftODataEdmIEdmExpression<PSCustomObject> #> function Initialize-ElementsMicrosoftODataEdmIEdmExpression { [CmdletBinding()] Param ( [Parameter(ValueFromPipelineByPropertyName = $true)] [ValidateSet("0", "1", "2", "3", "4", "5", "6", "7", "8", "9", "10", "11", "12", "13", "14", "15", "16", "17", "18", "19", "20", "21", "22", "23", "24", "25")] [PSCustomObject] ${ExpressionKind} ) Process { 'Creating PSCustomObject: Elements.Client => ElementsMicrosoftODataEdmIEdmExpression' | Write-Debug $PSBoundParameters | Out-DebugParameter | Write-Debug $PSO = [PSCustomObject]@{ "expressionKind" = ${ExpressionKind} } return $PSO } } <# .SYNOPSIS Convert from JSON to MicrosoftODataEdmIEdmExpression<PSCustomObject> .DESCRIPTION Convert from JSON to MicrosoftODataEdmIEdmExpression<PSCustomObject> .PARAMETER Json Json object .OUTPUTS MicrosoftODataEdmIEdmExpression<PSCustomObject> #> function ConvertFrom-ElementsJsonToMicrosoftODataEdmIEdmExpression { Param( [AllowEmptyString()] [string]$Json ) Process { 'Converting JSON to PSCustomObject: Elements.Client => ElementsMicrosoftODataEdmIEdmExpression' | Write-Debug $PSBoundParameters | Out-DebugParameter | Write-Debug $JsonParameters = ConvertFrom-Json -InputObject $Json # check if Json contains properties not defined in ElementsMicrosoftODataEdmIEdmExpression $AllProperties = ("expressionKind") 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 "expressionKind"))) { #optional property not found $ExpressionKind = $null } else { $ExpressionKind = $JsonParameters.PSobject.Properties["expressionKind"].value } $PSO = [PSCustomObject]@{ "expressionKind" = ${ExpressionKind} } return $PSO } } |