v3/src/PSSailpoint/Model/EventAllOf.ps1
# # IdentityNow V3 API # Use these APIs to interact with the IdentityNow 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: 3.0.0 # Generated by OpenAPI Generator: https://openapi-generator.tech # <# .SYNOPSIS No summary available. .DESCRIPTION No description available. .PARAMETER Created A date-time in ISO-8601 format .PARAMETER Synced A date-time in ISO-8601 format .PARAMETER Action The action that was performed .PARAMETER Type The type of event .PARAMETER Actor No description available. .PARAMETER Target No description available. .PARAMETER Stack No description available. .PARAMETER TrackingNumber No description available. .PARAMETER IpAddress No description available. .PARAMETER Details No description available. .PARAMETER Attributes No description available. .PARAMETER Objects No description available. .PARAMETER Operation No description available. .PARAMETER Status No description available. .PARAMETER TechnicalName No description available. .OUTPUTS EventAllOf<PSCustomObject> #> function Initialize-EventAllOf { [CmdletBinding()] Param ( [Parameter(Position = 0, ValueFromPipelineByPropertyName = $true)] [System.Nullable[System.DateTime]] ${Created}, [Parameter(Position = 1, ValueFromPipelineByPropertyName = $true)] [System.Nullable[System.DateTime]] ${Synced}, [Parameter(Position = 2, ValueFromPipelineByPropertyName = $true)] [String] ${Action}, [Parameter(Position = 3, ValueFromPipelineByPropertyName = $true)] [String] ${Type}, [Parameter(Position = 4, ValueFromPipelineByPropertyName = $true)] [PSCustomObject] ${Actor}, [Parameter(Position = 5, ValueFromPipelineByPropertyName = $true)] [PSCustomObject] ${Target}, [Parameter(Position = 6, ValueFromPipelineByPropertyName = $true)] [String] ${Stack}, [Parameter(Position = 7, ValueFromPipelineByPropertyName = $true)] [String] ${TrackingNumber}, [Parameter(Position = 8, ValueFromPipelineByPropertyName = $true)] [String] ${IpAddress}, [Parameter(Position = 9, ValueFromPipelineByPropertyName = $true)] [String] ${Details}, [Parameter(Position = 10, ValueFromPipelineByPropertyName = $true)] [System.Collections.Hashtable] ${Attributes}, [Parameter(Position = 11, ValueFromPipelineByPropertyName = $true)] [String[]] ${Objects}, [Parameter(Position = 12, ValueFromPipelineByPropertyName = $true)] [String] ${Operation}, [Parameter(Position = 13, ValueFromPipelineByPropertyName = $true)] [String] ${Status}, [Parameter(Position = 14, ValueFromPipelineByPropertyName = $true)] [String] ${TechnicalName} ) Process { 'Creating PSCustomObject: PSSailpoint => EventAllOf' | Write-Debug $PSBoundParameters | Out-DebugParameter | Write-Debug $PSO = [PSCustomObject]@{ "created" = ${Created} "synced" = ${Synced} "action" = ${Action} "type" = ${Type} "actor" = ${Actor} "target" = ${Target} "stack" = ${Stack} "trackingNumber" = ${TrackingNumber} "ipAddress" = ${IpAddress} "details" = ${Details} "attributes" = ${Attributes} "objects" = ${Objects} "operation" = ${Operation} "status" = ${Status} "technicalName" = ${TechnicalName} } return $PSO } } <# .SYNOPSIS Convert from JSON to EventAllOf<PSCustomObject> .DESCRIPTION Convert from JSON to EventAllOf<PSCustomObject> .PARAMETER Json Json object .OUTPUTS EventAllOf<PSCustomObject> #> function ConvertFrom-JsonToEventAllOf { Param( [AllowEmptyString()] [string]$Json ) Process { 'Converting JSON to PSCustomObject: PSSailpoint => EventAllOf' | Write-Debug $PSBoundParameters | Out-DebugParameter | Write-Debug $JsonParameters = ConvertFrom-Json -InputObject $Json # check if Json contains properties not defined in EventAllOf $AllProperties = ("created", "synced", "action", "type", "actor", "target", "stack", "trackingNumber", "ipAddress", "details", "attributes", "objects", "operation", "status", "technicalName") 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 "created"))) { #optional property not found $Created = $null } else { $Created = $JsonParameters.PSobject.Properties["created"].value } if (!([bool]($JsonParameters.PSobject.Properties.name -match "synced"))) { #optional property not found $Synced = $null } else { $Synced = $JsonParameters.PSobject.Properties["synced"].value } if (!([bool]($JsonParameters.PSobject.Properties.name -match "action"))) { #optional property not found $Action = $null } else { $Action = $JsonParameters.PSobject.Properties["action"].value } if (!([bool]($JsonParameters.PSobject.Properties.name -match "type"))) { #optional property not found $Type = $null } else { $Type = $JsonParameters.PSobject.Properties["type"].value } if (!([bool]($JsonParameters.PSobject.Properties.name -match "actor"))) { #optional property not found $Actor = $null } else { $Actor = $JsonParameters.PSobject.Properties["actor"].value } if (!([bool]($JsonParameters.PSobject.Properties.name -match "target"))) { #optional property not found $Target = $null } else { $Target = $JsonParameters.PSobject.Properties["target"].value } if (!([bool]($JsonParameters.PSobject.Properties.name -match "stack"))) { #optional property not found $Stack = $null } else { $Stack = $JsonParameters.PSobject.Properties["stack"].value } if (!([bool]($JsonParameters.PSobject.Properties.name -match "trackingNumber"))) { #optional property not found $TrackingNumber = $null } else { $TrackingNumber = $JsonParameters.PSobject.Properties["trackingNumber"].value } if (!([bool]($JsonParameters.PSobject.Properties.name -match "ipAddress"))) { #optional property not found $IpAddress = $null } else { $IpAddress = $JsonParameters.PSobject.Properties["ipAddress"].value } if (!([bool]($JsonParameters.PSobject.Properties.name -match "details"))) { #optional property not found $Details = $null } else { $Details = $JsonParameters.PSobject.Properties["details"].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 "objects"))) { #optional property not found $Objects = $null } else { $Objects = $JsonParameters.PSobject.Properties["objects"].value } if (!([bool]($JsonParameters.PSobject.Properties.name -match "operation"))) { #optional property not found $Operation = $null } else { $Operation = $JsonParameters.PSobject.Properties["operation"].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 "technicalName"))) { #optional property not found $TechnicalName = $null } else { $TechnicalName = $JsonParameters.PSobject.Properties["technicalName"].value } $PSO = [PSCustomObject]@{ "created" = ${Created} "synced" = ${Synced} "action" = ${Action} "type" = ${Type} "actor" = ${Actor} "target" = ${Target} "stack" = ${Stack} "trackingNumber" = ${TrackingNumber} "ipAddress" = ${IpAddress} "details" = ${Details} "attributes" = ${Attributes} "objects" = ${Objects} "operation" = ${Operation} "status" = ${Status} "technicalName" = ${TechnicalName} } return $PSO } } |