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