Model/MicrosoftODataODataTypeAnnotation.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. .OUTPUTS MicrosoftODataODataTypeAnnotation<PSCustomObject> #> function Initialize-ElementsMicrosoftODataODataTypeAnnotation { [CmdletBinding()] Param ( ) Process { 'Creating PSCustomObject: Elements.Client => ElementsMicrosoftODataODataTypeAnnotation' | Write-Debug $PSBoundParameters | Out-DebugParameter | Write-Debug $PSO = [PSCustomObject]@{ } return $PSO } } <# .SYNOPSIS Convert from JSON to MicrosoftODataODataTypeAnnotation<PSCustomObject> .DESCRIPTION Convert from JSON to MicrosoftODataODataTypeAnnotation<PSCustomObject> .PARAMETER Json Json object .OUTPUTS MicrosoftODataODataTypeAnnotation<PSCustomObject> #> function ConvertFrom-ElementsJsonToMicrosoftODataODataTypeAnnotation { Param( [AllowEmptyString()] [string]$Json ) Process { 'Converting JSON to PSCustomObject: Elements.Client => ElementsMicrosoftODataODataTypeAnnotation' | Write-Debug $PSBoundParameters | Out-DebugParameter | Write-Debug $JsonParameters = ConvertFrom-Json -InputObject $Json # check if Json contains properties not defined in ElementsMicrosoftODataODataTypeAnnotation $AllProperties = ("typeName") 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 "typeName"))) { #optional property not found $TypeName = $null } else { $TypeName = $JsonParameters.PSobject.Properties["typeName"].value } $PSO = [PSCustomObject]@{ "typeName" = ${TypeName} } return $PSO } } |