Model/Privilegedrecommendationgroup.ps1
|
# # Identity Security Cloud API - Suggested Entitlement Description # Use these APIs to interact with the Identity Security Cloud platform to achieve repeatable, automated processes with greater scalability. We encourage you to join the SailPoint Developer Community forum at https://developer.sailpoint.com/discuss to connect with other developers using our APIs. # Version: v1 # Generated by OpenAPI Generator: https://openapi-generator.tech # <# .SYNOPSIS No summary available. .DESCRIPTION A group of entitlement instances that share the same entitlement name and connector type, aggregated for privileged-access review. .PARAMETER EntitlementName The name of the entitlement shared across all instances in this group. .PARAMETER ConnectorType The connector type associated with all instances in this group. .PARAMETER RecommendationScore A decimal string representing the confidence score of the privilege recommendation (0.0-1.0). .PARAMETER OrgCount The number of organizations in which this entitlement appears as privileged. .PARAMETER InstanceCount The total number of individual entitlement instances in this group. .PARAMETER Instances The individual entitlement instances belonging to this group. .OUTPUTS Privilegedrecommendationgroup<PSCustomObject> #> function Initialize-Privilegedrecommendationgroup { [CmdletBinding()] Param ( [Parameter(ValueFromPipelineByPropertyName = $true)] [String] ${EntitlementName}, [Parameter(ValueFromPipelineByPropertyName = $true)] [String] ${ConnectorType}, [Parameter(ValueFromPipelineByPropertyName = $true)] [String] ${RecommendationScore}, [Parameter(ValueFromPipelineByPropertyName = $true)] [System.Nullable[Int32]] ${OrgCount}, [Parameter(ValueFromPipelineByPropertyName = $true)] [System.Nullable[Int32]] ${InstanceCount}, [Parameter(ValueFromPipelineByPropertyName = $true)] [PSCustomObject[]] ${Instances} ) Process { 'Creating PSCustomObject: PSSailpoint.SuggestedEntitlementDescription => Privilegedrecommendationgroup' | Write-Debug $PSBoundParameters | Out-DebugParameter | Write-Debug $PSO = [PSCustomObject]@{ "entitlementName" = ${EntitlementName} "connectorType" = ${ConnectorType} "recommendationScore" = ${RecommendationScore} "orgCount" = ${OrgCount} "instanceCount" = ${InstanceCount} "instances" = ${Instances} } return $PSO } } <# .SYNOPSIS Convert from JSON to Privilegedrecommendationgroup<PSCustomObject> .DESCRIPTION Convert from JSON to Privilegedrecommendationgroup<PSCustomObject> .PARAMETER Json Json object .OUTPUTS Privilegedrecommendationgroup<PSCustomObject> #> function ConvertFrom-JsonToPrivilegedrecommendationgroup { Param( [AllowEmptyString()] [string]$Json ) Process { 'Converting JSON to PSCustomObject: PSSailpoint.SuggestedEntitlementDescription => Privilegedrecommendationgroup' | Write-Debug $PSBoundParameters | Out-DebugParameter | Write-Debug $JsonParameters = ConvertFrom-Json -InputObject $Json # check if Json contains properties not defined in Privilegedrecommendationgroup $AllProperties = ("entitlementName", "connectorType", "recommendationScore", "orgCount", "instanceCount", "instances") 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 "entitlementName"))) { #optional property not found $EntitlementName = $null } else { $EntitlementName = $JsonParameters.PSobject.Properties["entitlementName"].value } if (!([bool]($JsonParameters.PSobject.Properties.name -match "connectorType"))) { #optional property not found $ConnectorType = $null } else { $ConnectorType = $JsonParameters.PSobject.Properties["connectorType"].value } if (!([bool]($JsonParameters.PSobject.Properties.name -match "recommendationScore"))) { #optional property not found $RecommendationScore = $null } else { $RecommendationScore = $JsonParameters.PSobject.Properties["recommendationScore"].value } if (!([bool]($JsonParameters.PSobject.Properties.name -match "orgCount"))) { #optional property not found $OrgCount = $null } else { $OrgCount = $JsonParameters.PSobject.Properties["orgCount"].value } if (!([bool]($JsonParameters.PSobject.Properties.name -match "instanceCount"))) { #optional property not found $InstanceCount = $null } else { $InstanceCount = $JsonParameters.PSobject.Properties["instanceCount"].value } if (!([bool]($JsonParameters.PSobject.Properties.name -match "instances"))) { #optional property not found $Instances = $null } else { $Instances = $JsonParameters.PSobject.Properties["instances"].value } $PSO = [PSCustomObject]@{ "entitlementName" = ${EntitlementName} "connectorType" = ${ConnectorType} "recommendationScore" = ${RecommendationScore} "orgCount" = ${OrgCount} "instanceCount" = ${InstanceCount} "instances" = ${Instances} } return $PSO } } |