beta/src/PSSailpointBeta/Model/ResourceObject.ps1
# # IdentityNow Beta API # Use these APIs to interact with the IdentityNow platform to achieve repeatable, automated processes with greater scalability. These APIs are in beta and are subject to change. 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: 3.1.0-beta # Generated by OpenAPI Generator: https://openapi-generator.tech # <# .SYNOPSIS No summary available. .DESCRIPTION Representation of the object which is returned from source connectors. .OUTPUTS ResourceObject<PSCustomObject> #> function Initialize-BetaResourceObject { [CmdletBinding()] Param ( ) Process { 'Creating PSCustomObject: PSSailpointBeta => BetaResourceObject' | Write-Debug $PSBoundParameters | Out-DebugParameter | Write-Debug $PSO = [PSCustomObject]@{ } return $PSO } } <# .SYNOPSIS Convert from JSON to ResourceObject<PSCustomObject> .DESCRIPTION Convert from JSON to ResourceObject<PSCustomObject> .PARAMETER Json Json object .OUTPUTS ResourceObject<PSCustomObject> #> function ConvertFrom-BetaJsonToResourceObject { Param( [AllowEmptyString()] [string]$Json ) Process { 'Converting JSON to PSCustomObject: PSSailpointBeta => BetaResourceObject' | Write-Debug $PSBoundParameters | Out-DebugParameter | Write-Debug $JsonParameters = ConvertFrom-Json -InputObject $Json # check if Json contains properties not defined in BetaResourceObject $AllProperties = ("instance", "identity", "uuid", "previousIdentity", "name", "objectType", "incomplete", "incremental", "delete", "remove", "missing", "attributes", "finalUpdate") 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 "instance"))) { #optional property not found $Instance = $null } else { $Instance = $JsonParameters.PSobject.Properties["instance"].value } if (!([bool]($JsonParameters.PSobject.Properties.name -match "identity"))) { #optional property not found $Identity = $null } else { $Identity = $JsonParameters.PSobject.Properties["identity"].value } if (!([bool]($JsonParameters.PSobject.Properties.name -match "uuid"))) { #optional property not found $Uuid = $null } else { $Uuid = $JsonParameters.PSobject.Properties["uuid"].value } if (!([bool]($JsonParameters.PSobject.Properties.name -match "previousIdentity"))) { #optional property not found $PreviousIdentity = $null } else { $PreviousIdentity = $JsonParameters.PSobject.Properties["previousIdentity"].value } if (!([bool]($JsonParameters.PSobject.Properties.name -match "name"))) { #optional property not found $Name = $null } else { $Name = $JsonParameters.PSobject.Properties["name"].value } if (!([bool]($JsonParameters.PSobject.Properties.name -match "objectType"))) { #optional property not found $ObjectType = $null } else { $ObjectType = $JsonParameters.PSobject.Properties["objectType"].value } if (!([bool]($JsonParameters.PSobject.Properties.name -match "incomplete"))) { #optional property not found $Incomplete = $null } else { $Incomplete = $JsonParameters.PSobject.Properties["incomplete"].value } if (!([bool]($JsonParameters.PSobject.Properties.name -match "incremental"))) { #optional property not found $Incremental = $null } else { $Incremental = $JsonParameters.PSobject.Properties["incremental"].value } if (!([bool]($JsonParameters.PSobject.Properties.name -match "delete"))) { #optional property not found $Delete = $null } else { $Delete = $JsonParameters.PSobject.Properties["delete"].value } if (!([bool]($JsonParameters.PSobject.Properties.name -match "remove"))) { #optional property not found $Remove = $null } else { $Remove = $JsonParameters.PSobject.Properties["remove"].value } if (!([bool]($JsonParameters.PSobject.Properties.name -match "missing"))) { #optional property not found $Missing = $null } else { $Missing = $JsonParameters.PSobject.Properties["missing"].value } if (!([bool]($JsonParameters.PSobject.Properties.name -match "attributes"))) { #optional property not found $Attributes = $null } else { $Attributes = $JsonParameters.PSobject.Properties["attributes"].value } if (!([bool]($JsonParameters.PSobject.Properties.name -match "finalUpdate"))) { #optional property not found $FinalUpdate = $null } else { $FinalUpdate = $JsonParameters.PSobject.Properties["finalUpdate"].value } $PSO = [PSCustomObject]@{ "instance" = ${Instance} "identity" = ${Identity} "uuid" = ${Uuid} "previousIdentity" = ${PreviousIdentity} "name" = ${Name} "objectType" = ${ObjectType} "incomplete" = ${Incomplete} "incremental" = ${Incremental} "delete" = ${Delete} "remove" = ${Remove} "missing" = ${Missing} "attributes" = ${Attributes} "finalUpdate" = ${FinalUpdate} } return $PSO } } |