Model/BulkClassifyMachineAccountResult.ps1
|
# # SailPoint Identity Security API - Machine Account Classify # 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 Classification result for one account in a bulk classify request. .PARAMETER Id Account ID from the request. .PARAMETER Status HTTP status code for this account. `200` means the account was classified, `404` means the account was not found, and other codes describe why classification failed. .PARAMETER IsMachine Indicates if the account is classified as machine. `false` when classification did not succeed. .PARAMETER Message Result message for this account. .OUTPUTS BulkClassifyMachineAccountResult<PSCustomObject> #> function Initialize-BulkClassifyMachineAccountResult { [CmdletBinding()] Param ( [Parameter(ValueFromPipelineByPropertyName = $true)] [String] ${Id}, [Parameter(ValueFromPipelineByPropertyName = $true)] [System.Nullable[Int32]] ${Status}, [Parameter(ValueFromPipelineByPropertyName = $true)] [System.Nullable[Boolean]] ${IsMachine} = $false, [Parameter(ValueFromPipelineByPropertyName = $true)] [String] ${Message} ) Process { 'Creating PSCustomObject: PSSailpoint.MachineAccountClassify => BulkClassifyMachineAccountResult' | Write-Debug $PSBoundParameters | Out-DebugParameter | Write-Debug $PSO = [PSCustomObject]@{ "id" = ${Id} "status" = ${Status} "isMachine" = ${IsMachine} "message" = ${Message} } return $PSO } } <# .SYNOPSIS Convert from JSON to BulkClassifyMachineAccountResult<PSCustomObject> .DESCRIPTION Convert from JSON to BulkClassifyMachineAccountResult<PSCustomObject> .PARAMETER Json Json object .OUTPUTS BulkClassifyMachineAccountResult<PSCustomObject> #> function ConvertFrom-JsonToBulkClassifyMachineAccountResult { Param( [AllowEmptyString()] [string]$Json ) Process { 'Converting JSON to PSCustomObject: PSSailpoint.MachineAccountClassify => BulkClassifyMachineAccountResult' | Write-Debug $PSBoundParameters | Out-DebugParameter | Write-Debug $JsonParameters = ConvertFrom-Json -InputObject $Json # check if Json contains properties not defined in BulkClassifyMachineAccountResult $AllProperties = ("id", "status", "isMachine", "message") 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 "id"))) { #optional property not found $Id = $null } else { $Id = $JsonParameters.PSobject.Properties["id"].value } if (!([bool]($JsonParameters.PSobject.Properties.name -match "status"))) { #optional property not found $Status = $null } else { $Status = $JsonParameters.PSobject.Properties["status"].value } if (!([bool]($JsonParameters.PSobject.Properties.name -match "isMachine"))) { #optional property not found $IsMachine = $null } else { $IsMachine = $JsonParameters.PSobject.Properties["isMachine"].value } if (!([bool]($JsonParameters.PSobject.Properties.name -match "message"))) { #optional property not found $Message = $null } else { $Message = $JsonParameters.PSobject.Properties["message"].value } $PSO = [PSCustomObject]@{ "id" = ${Id} "status" = ${Status} "isMachine" = ${IsMachine} "message" = ${Message} } return $PSO } } |