intelligence/src/PSSailpoint.Intelligence/Model/Intelaccessaccountwire.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 No description available. .PARAMETER Id Unique account identifier in Identity Security Cloud. .PARAMETER Name Account name or login value on the correlated source. .PARAMETER Source Source metadata for the account as returned by List Accounts wire format. .PARAMETER Disabled True when the account is administratively disabled on the source. .PARAMETER Locked True when the account is locked from interactive sign-in on the source. .PARAMETER Authoritative True when the account is treated as authoritative for attribute synchronization. .PARAMETER SystemAccount True when the account represents a non-interactive or system principal. .PARAMETER IsMachine True when the account belongs to a machine or service identity. .PARAMETER ManuallyCorrelated True when an administrator manually correlated the account to an identity. .PARAMETER NativeIdentity Native identifier string on the source directory or application. .PARAMETER Created Timestamp when the account record was created in Identity Security Cloud. .PARAMETER Modified Timestamp when the account record was last modified in Identity Security Cloud. .OUTPUTS Intelaccessaccountwire<PSCustomObject> #> function Initialize-Intelaccessaccountwire { [CmdletBinding()] Param ( [Parameter(ValueFromPipelineByPropertyName = $true)] [String] ${Id}, [Parameter(ValueFromPipelineByPropertyName = $true)] [String] ${Name}, [Parameter(ValueFromPipelineByPropertyName = $true)] [PSCustomObject] ${Source}, [Parameter(ValueFromPipelineByPropertyName = $true)] [Boolean] ${Disabled}, [Parameter(ValueFromPipelineByPropertyName = $true)] [Boolean] ${Locked}, [Parameter(ValueFromPipelineByPropertyName = $true)] [Boolean] ${Authoritative}, [Parameter(ValueFromPipelineByPropertyName = $true)] [Boolean] ${SystemAccount}, [Parameter(ValueFromPipelineByPropertyName = $true)] [Boolean] ${IsMachine}, [Parameter(ValueFromPipelineByPropertyName = $true)] [Boolean] ${ManuallyCorrelated}, [Parameter(ValueFromPipelineByPropertyName = $true)] [String] ${NativeIdentity}, [Parameter(ValueFromPipelineByPropertyName = $true)] [System.DateTime] ${Created}, [Parameter(ValueFromPipelineByPropertyName = $true)] [System.DateTime] ${Modified} ) Process { 'Creating PSCustomObject: PSSailpoint.Intelligence => Intelaccessaccountwire' | Write-Debug $PSBoundParameters | Out-DebugParameter | Write-Debug if (!$Id) { throw "invalid value for 'Id', 'Id' cannot be null." } if (!$Name) { throw "invalid value for 'Name', 'Name' cannot be null." } if (!$Disabled) { throw "invalid value for 'Disabled', 'Disabled' cannot be null." } if (!$Locked) { throw "invalid value for 'Locked', 'Locked' cannot be null." } if (!$Authoritative) { throw "invalid value for 'Authoritative', 'Authoritative' cannot be null." } if (!$SystemAccount) { throw "invalid value for 'SystemAccount', 'SystemAccount' cannot be null." } if (!$IsMachine) { throw "invalid value for 'IsMachine', 'IsMachine' cannot be null." } if (!$ManuallyCorrelated) { throw "invalid value for 'ManuallyCorrelated', 'ManuallyCorrelated' cannot be null." } if (!$Created) { throw "invalid value for 'Created', 'Created' cannot be null." } if (!$Modified) { throw "invalid value for 'Modified', 'Modified' cannot be null." } $PSO = [PSCustomObject]@{ "id" = ${Id} "name" = ${Name} "source" = ${Source} "disabled" = ${Disabled} "locked" = ${Locked} "authoritative" = ${Authoritative} "systemAccount" = ${SystemAccount} "isMachine" = ${IsMachine} "manuallyCorrelated" = ${ManuallyCorrelated} "nativeIdentity" = ${NativeIdentity} "created" = ${Created} "modified" = ${Modified} } return $PSO } } <# .SYNOPSIS Convert from JSON to Intelaccessaccountwire<PSCustomObject> .DESCRIPTION Convert from JSON to Intelaccessaccountwire<PSCustomObject> .PARAMETER Json Json object .OUTPUTS Intelaccessaccountwire<PSCustomObject> #> function ConvertFrom-JsonToIntelaccessaccountwire { Param( [AllowEmptyString()] [string]$Json ) Process { 'Converting JSON to PSCustomObject: PSSailpoint.Intelligence => Intelaccessaccountwire' | Write-Debug $PSBoundParameters | Out-DebugParameter | Write-Debug $JsonParameters = ConvertFrom-Json -InputObject $Json # check if Json contains properties not defined in Intelaccessaccountwire $AllProperties = ("id", "name", "source", "disabled", "locked", "authoritative", "systemAccount", "isMachine", "manuallyCorrelated", "nativeIdentity", "created", "modified") 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 'id' missing." } if (!([bool]($JsonParameters.PSobject.Properties.name -match "id"))) { throw "Error! JSON cannot be serialized due to the required property 'id' missing." } else { $Id = $JsonParameters.PSobject.Properties["id"].value } if (!([bool]($JsonParameters.PSobject.Properties.name -match "name"))) { throw "Error! JSON cannot be serialized due to the required property 'name' missing." } else { $Name = $JsonParameters.PSobject.Properties["name"].value } if (!([bool]($JsonParameters.PSobject.Properties.name -match "disabled"))) { throw "Error! JSON cannot be serialized due to the required property 'disabled' missing." } else { $Disabled = $JsonParameters.PSobject.Properties["disabled"].value } if (!([bool]($JsonParameters.PSobject.Properties.name -match "locked"))) { throw "Error! JSON cannot be serialized due to the required property 'locked' missing." } else { $Locked = $JsonParameters.PSobject.Properties["locked"].value } if (!([bool]($JsonParameters.PSobject.Properties.name -match "authoritative"))) { throw "Error! JSON cannot be serialized due to the required property 'authoritative' missing." } else { $Authoritative = $JsonParameters.PSobject.Properties["authoritative"].value } if (!([bool]($JsonParameters.PSobject.Properties.name -match "systemAccount"))) { throw "Error! JSON cannot be serialized due to the required property 'systemAccount' missing." } else { $SystemAccount = $JsonParameters.PSobject.Properties["systemAccount"].value } if (!([bool]($JsonParameters.PSobject.Properties.name -match "isMachine"))) { throw "Error! JSON cannot be serialized due to the required property 'isMachine' missing." } else { $IsMachine = $JsonParameters.PSobject.Properties["isMachine"].value } if (!([bool]($JsonParameters.PSobject.Properties.name -match "manuallyCorrelated"))) { throw "Error! JSON cannot be serialized due to the required property 'manuallyCorrelated' missing." } else { $ManuallyCorrelated = $JsonParameters.PSobject.Properties["manuallyCorrelated"].value } if (!([bool]($JsonParameters.PSobject.Properties.name -match "created"))) { throw "Error! JSON cannot be serialized due to the required property 'created' missing." } else { $Created = $JsonParameters.PSobject.Properties["created"].value } if (!([bool]($JsonParameters.PSobject.Properties.name -match "modified"))) { throw "Error! JSON cannot be serialized due to the required property 'modified' missing." } else { $Modified = $JsonParameters.PSobject.Properties["modified"].value } if (!([bool]($JsonParameters.PSobject.Properties.name -match "source"))) { #optional property not found $Source = $null } else { $Source = $JsonParameters.PSobject.Properties["source"].value } if (!([bool]($JsonParameters.PSobject.Properties.name -match "nativeIdentity"))) { #optional property not found $NativeIdentity = $null } else { $NativeIdentity = $JsonParameters.PSobject.Properties["nativeIdentity"].value } $PSO = [PSCustomObject]@{ "id" = ${Id} "name" = ${Name} "source" = ${Source} "disabled" = ${Disabled} "locked" = ${Locked} "authoritative" = ${Authoritative} "systemAccount" = ${SystemAccount} "isMachine" = ${IsMachine} "manuallyCorrelated" = ${ManuallyCorrelated} "nativeIdentity" = ${NativeIdentity} "created" = ${Created} "modified" = ${Modified} } return $PSO } } |