machine-accounts/src/PSSailpoint.MachineAccounts/Model/MachineAccountClassificationCount.ps1
|
# # SailPoint Identity Security API - Machine Accounts # Use these APIs to interact with the SailPoint Identity Security 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 The number of machine account candidates found by one classification method. .PARAMETER ClassificationMethod The classification method that found the candidates. .PARAMETER Count The number of candidates found by this classification method. .OUTPUTS MachineAccountClassificationCount<PSCustomObject> #> function Initialize-MachineAccountClassificationCount { [CmdletBinding()] Param ( [Parameter(ValueFromPipelineByPropertyName = $true)] [ValidateSet("CRITERIA", "SOURCE", "DISCOVERY")] [String] ${ClassificationMethod}, [Parameter(ValueFromPipelineByPropertyName = $true)] [System.Nullable[Int32]] ${Count} ) Process { 'Creating PSCustomObject: PSSailpoint.MachineAccounts => MachineAccountClassificationCount' | Write-Debug $PSBoundParameters | Out-DebugParameter | Write-Debug $PSO = [PSCustomObject]@{ "classificationMethod" = ${ClassificationMethod} "count" = ${Count} } return $PSO } } <# .SYNOPSIS Convert from JSON to MachineAccountClassificationCount<PSCustomObject> .DESCRIPTION Convert from JSON to MachineAccountClassificationCount<PSCustomObject> .PARAMETER Json Json object .OUTPUTS MachineAccountClassificationCount<PSCustomObject> #> function ConvertFrom-JsonToMachineAccountClassificationCount { Param( [AllowEmptyString()] [string]$Json ) Process { 'Converting JSON to PSCustomObject: PSSailpoint.MachineAccounts => MachineAccountClassificationCount' | Write-Debug $PSBoundParameters | Out-DebugParameter | Write-Debug $JsonParameters = ConvertFrom-Json -InputObject $Json # check if Json contains properties not defined in MachineAccountClassificationCount $AllProperties = ("classificationMethod", "count") 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 "classificationMethod"))) { #optional property not found $ClassificationMethod = $null } else { $ClassificationMethod = $JsonParameters.PSobject.Properties["classificationMethod"].value } if (!([bool]($JsonParameters.PSobject.Properties.name -match "count"))) { #optional property not found $Count = $null } else { $Count = $JsonParameters.PSobject.Properties["count"].value } $PSO = [PSCustomObject]@{ "classificationMethod" = ${ClassificationMethod} "count" = ${Count} } return $PSO } } |