v2/src/PSSailpointV2/Model/BulkDeleteWorkGroups200Response.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 Deleted No description available. .PARAMETER InUse No description available. .PARAMETER NotFound No description available. .OUTPUTS BulkDeleteWorkGroups200Response<PSCustomObject> #> function Initialize-V2BulkDeleteWorkGroups200Response { [CmdletBinding()] Param ( [Parameter(Position = 0, ValueFromPipelineByPropertyName = $true)] [String[]] ${Deleted}, [Parameter(Position = 1, ValueFromPipelineByPropertyName = $true)] [String[]] ${InUse}, [Parameter(Position = 2, ValueFromPipelineByPropertyName = $true)] [String[]] ${NotFound} ) Process { 'Creating PSCustomObject: PSSailpointV2 => V2BulkDeleteWorkGroups200Response' | Write-Debug $PSBoundParameters | Out-DebugParameter | Write-Debug $PSO = [PSCustomObject]@{ "deleted" = ${Deleted} "inUse" = ${InUse} "notFound" = ${NotFound} } return $PSO } } <# .SYNOPSIS Convert from JSON to BulkDeleteWorkGroups200Response<PSCustomObject> .DESCRIPTION Convert from JSON to BulkDeleteWorkGroups200Response<PSCustomObject> .PARAMETER Json Json object .OUTPUTS BulkDeleteWorkGroups200Response<PSCustomObject> #> function ConvertFrom-V2JsonToBulkDeleteWorkGroups200Response { Param( [AllowEmptyString()] [string]$Json ) Process { 'Converting JSON to PSCustomObject: PSSailpointV2 => V2BulkDeleteWorkGroups200Response' | Write-Debug $PSBoundParameters | Out-DebugParameter | Write-Debug $JsonParameters = ConvertFrom-Json -InputObject $Json # check if Json contains properties not defined in V2BulkDeleteWorkGroups200Response $AllProperties = ("deleted", "inUse", "notFound") 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 "deleted"))) { #optional property not found $Deleted = $null } else { $Deleted = $JsonParameters.PSobject.Properties["deleted"].value } if (!([bool]($JsonParameters.PSobject.Properties.name -match "inUse"))) { #optional property not found $InUse = $null } else { $InUse = $JsonParameters.PSobject.Properties["inUse"].value } if (!([bool]($JsonParameters.PSobject.Properties.name -match "notFound"))) { #optional property not found $NotFound = $null } else { $NotFound = $JsonParameters.PSobject.Properties["notFound"].value } $PSO = [PSCustomObject]@{ "deleted" = ${Deleted} "inUse" = ${InUse} "notFound" = ${NotFound} } return $PSO } } |