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