v2/src/PSSailpointV2/Model/ListWorkgroups200ResponseInnerOwner.ps1
# # SailPoint SaaS API # No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # Version: 2.0.0 # Generated by OpenAPI Generator: https://openapi-generator.tech # <# .SYNOPSIS No summary available. .DESCRIPTION No description available. .PARAMETER DisplayName No description available. .PARAMETER EmailAddress No description available. .PARAMETER Id No description available. .PARAMETER Name No description available. .OUTPUTS ListWorkgroups200ResponseInnerOwner<PSCustomObject> #> function Initialize-V2ListWorkgroups200ResponseInnerOwner { [CmdletBinding()] Param ( [Parameter(Position = 0, ValueFromPipelineByPropertyName = $true)] [String] ${DisplayName}, [Parameter(Position = 1, ValueFromPipelineByPropertyName = $true)] [String] ${EmailAddress}, [Parameter(Position = 2, ValueFromPipelineByPropertyName = $true)] [String] ${Id}, [Parameter(Position = 3, ValueFromPipelineByPropertyName = $true)] [String] ${Name} ) Process { 'Creating PSCustomObject: PSSailpointV2 => V2ListWorkgroups200ResponseInnerOwner' | Write-Debug $PSBoundParameters | Out-DebugParameter | Write-Debug $PSO = [PSCustomObject]@{ "displayName" = ${DisplayName} "emailAddress" = ${EmailAddress} "id" = ${Id} "name" = ${Name} } return $PSO } } <# .SYNOPSIS Convert from JSON to ListWorkgroups200ResponseInnerOwner<PSCustomObject> .DESCRIPTION Convert from JSON to ListWorkgroups200ResponseInnerOwner<PSCustomObject> .PARAMETER Json Json object .OUTPUTS ListWorkgroups200ResponseInnerOwner<PSCustomObject> #> function ConvertFrom-V2JsonToListWorkgroups200ResponseInnerOwner { Param( [AllowEmptyString()] [string]$Json ) Process { 'Converting JSON to PSCustomObject: PSSailpointV2 => V2ListWorkgroups200ResponseInnerOwner' | Write-Debug $PSBoundParameters | Out-DebugParameter | Write-Debug $JsonParameters = ConvertFrom-Json -InputObject $Json # check if Json contains properties not defined in V2ListWorkgroups200ResponseInnerOwner $AllProperties = ("displayName", "emailAddress", "id", "name") 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 "displayName"))) { #optional property not found $DisplayName = $null } else { $DisplayName = $JsonParameters.PSobject.Properties["displayName"].value } if (!([bool]($JsonParameters.PSobject.Properties.name -match "emailAddress"))) { #optional property not found $EmailAddress = $null } else { $EmailAddress = $JsonParameters.PSobject.Properties["emailAddress"].value } if (!([bool]($JsonParameters.PSobject.Properties.name -match "id"))) { #optional property not found $Id = $null } else { $Id = $JsonParameters.PSobject.Properties["id"].value } if (!([bool]($JsonParameters.PSobject.Properties.name -match "name"))) { #optional property not found $Name = $null } else { $Name = $JsonParameters.PSobject.Properties["name"].value } $PSO = [PSCustomObject]@{ "displayName" = ${DisplayName} "emailAddress" = ${EmailAddress} "id" = ${Id} "name" = ${Name} } return $PSO } } |