intelligence/src/PSSailpoint.Intelligence/Model/Intelblastradiussummary.ps1
|
# # Identity Security Cloud API - Intelligence # 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 Fast SOC view of impact across sources, accounts, and humans. .PARAMETER ImpactedSources Source systems that may be impacted if compromised. .PARAMETER ImpactedAccounts Linked machine accounts that may be impacted if compromised. .PARAMETER ImpactedHumans Unique owners and authorized humans potentially impacted if compromised. .PARAMETER HasEntitlements Whether this NHI holds entitlements included in summary. .PARAMETER Environments Environment labels for impacted access in this summary. .PARAMETER AccessTypes Access type labels for impacted access in this summary. .OUTPUTS Intelblastradiussummary<PSCustomObject> #> function Initialize-Intelblastradiussummary { [CmdletBinding()] Param ( [Parameter(ValueFromPipelineByPropertyName = $true)] [String[]] ${ImpactedSources}, [Parameter(ValueFromPipelineByPropertyName = $true)] [Int32] ${ImpactedAccounts}, [Parameter(ValueFromPipelineByPropertyName = $true)] [Int32] ${ImpactedHumans}, [Parameter(ValueFromPipelineByPropertyName = $true)] [System.Nullable[Boolean]] ${HasEntitlements} = $false, [Parameter(ValueFromPipelineByPropertyName = $true)] [String[]] ${Environments}, [Parameter(ValueFromPipelineByPropertyName = $true)] [String[]] ${AccessTypes} ) Process { 'Creating PSCustomObject: PSSailpoint.Intelligence => Intelblastradiussummary' | Write-Debug $PSBoundParameters | Out-DebugParameter | Write-Debug if (!$ImpactedSources) { throw "invalid value for 'ImpactedSources', 'ImpactedSources' cannot be null." } if (!$ImpactedAccounts) { throw "invalid value for 'ImpactedAccounts', 'ImpactedAccounts' cannot be null." } if (!$ImpactedHumans) { throw "invalid value for 'ImpactedHumans', 'ImpactedHumans' cannot be null." } $PSO = [PSCustomObject]@{ "impactedSources" = ${ImpactedSources} "impactedAccounts" = ${ImpactedAccounts} "impactedHumans" = ${ImpactedHumans} "hasEntitlements" = ${HasEntitlements} "environments" = ${Environments} "accessTypes" = ${AccessTypes} } return $PSO } } <# .SYNOPSIS Convert from JSON to Intelblastradiussummary<PSCustomObject> .DESCRIPTION Convert from JSON to Intelblastradiussummary<PSCustomObject> .PARAMETER Json Json object .OUTPUTS Intelblastradiussummary<PSCustomObject> #> function ConvertFrom-JsonToIntelblastradiussummary { Param( [AllowEmptyString()] [string]$Json ) Process { 'Converting JSON to PSCustomObject: PSSailpoint.Intelligence => Intelblastradiussummary' | Write-Debug $PSBoundParameters | Out-DebugParameter | Write-Debug $JsonParameters = ConvertFrom-Json -InputObject $Json # check if Json contains properties not defined in Intelblastradiussummary $AllProperties = ("impactedSources", "impactedAccounts", "impactedHumans", "hasEntitlements", "environments", "accessTypes") foreach ($name in $JsonParameters.PsObject.Properties.Name) { if (!($AllProperties.Contains($name))) { throw "Error! JSON key '$name' not found in the properties: $($AllProperties)" } } If ([string]::IsNullOrEmpty($Json) -or $Json -eq "{}") { # empty json throw "Error! Empty JSON cannot be serialized due to the required property 'impactedSources' missing." } if (!([bool]($JsonParameters.PSobject.Properties.name -match "impactedSources"))) { throw "Error! JSON cannot be serialized due to the required property 'impactedSources' missing." } else { $ImpactedSources = $JsonParameters.PSobject.Properties["impactedSources"].value } if (!([bool]($JsonParameters.PSobject.Properties.name -match "impactedAccounts"))) { throw "Error! JSON cannot be serialized due to the required property 'impactedAccounts' missing." } else { $ImpactedAccounts = $JsonParameters.PSobject.Properties["impactedAccounts"].value } if (!([bool]($JsonParameters.PSobject.Properties.name -match "impactedHumans"))) { throw "Error! JSON cannot be serialized due to the required property 'impactedHumans' missing." } else { $ImpactedHumans = $JsonParameters.PSobject.Properties["impactedHumans"].value } if (!([bool]($JsonParameters.PSobject.Properties.name -match "hasEntitlements"))) { #optional property not found $HasEntitlements = $null } else { $HasEntitlements = $JsonParameters.PSobject.Properties["hasEntitlements"].value } if (!([bool]($JsonParameters.PSobject.Properties.name -match "environments"))) { #optional property not found $Environments = $null } else { $Environments = $JsonParameters.PSobject.Properties["environments"].value } if (!([bool]($JsonParameters.PSobject.Properties.name -match "accessTypes"))) { #optional property not found $AccessTypes = $null } else { $AccessTypes = $JsonParameters.PSobject.Properties["accessTypes"].value } $PSO = [PSCustomObject]@{ "impactedSources" = ${ImpactedSources} "impactedAccounts" = ${ImpactedAccounts} "impactedHumans" = ${ImpactedHumans} "hasEntitlements" = ${HasEntitlements} "environments" = ${Environments} "accessTypes" = ${AccessTypes} } return $PSO } } |