intelligence/src/PSSailpoint.Intelligence/Model/Responseactionaccepted.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 Acknowledgement returned when a response action is accepted for asynchronous processing. .PARAMETER RequestId Tracking handle and correlation id for the response action. .PARAMETER Status Aggregate status of the response action. SUBMITTED at creation (registered; no correlated workflow execution observed yet). .PARAMETER StatusUrl Relative URL to poll for the current status of the response action. .OUTPUTS Responseactionaccepted<PSCustomObject> #> function Initialize-Responseactionaccepted { [CmdletBinding()] Param ( [Parameter(ValueFromPipelineByPropertyName = $true)] [String] ${RequestId}, [Parameter(ValueFromPipelineByPropertyName = $true)] [ValidateSet("SUBMITTED", "IN_PROGRESS", "COMPLETED", "FAILED")] [String] ${Status}, [Parameter(ValueFromPipelineByPropertyName = $true)] [String] ${StatusUrl} ) Process { 'Creating PSCustomObject: PSSailpoint.Intelligence => Responseactionaccepted' | Write-Debug $PSBoundParameters | Out-DebugParameter | Write-Debug if (!$RequestId) { throw "invalid value for 'RequestId', 'RequestId' cannot be null." } if (!$Status) { throw "invalid value for 'Status', 'Status' cannot be null." } if (!$StatusUrl) { throw "invalid value for 'StatusUrl', 'StatusUrl' cannot be null." } $PSO = [PSCustomObject]@{ "requestId" = ${RequestId} "status" = ${Status} "statusUrl" = ${StatusUrl} } return $PSO } } <# .SYNOPSIS Convert from JSON to Responseactionaccepted<PSCustomObject> .DESCRIPTION Convert from JSON to Responseactionaccepted<PSCustomObject> .PARAMETER Json Json object .OUTPUTS Responseactionaccepted<PSCustomObject> #> function ConvertFrom-JsonToResponseactionaccepted { Param( [AllowEmptyString()] [string]$Json ) Process { 'Converting JSON to PSCustomObject: PSSailpoint.Intelligence => Responseactionaccepted' | Write-Debug $PSBoundParameters | Out-DebugParameter | Write-Debug $JsonParameters = ConvertFrom-Json -InputObject $Json # check if Json contains properties not defined in Responseactionaccepted $AllProperties = ("requestId", "status", "statusUrl") 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 'requestId' missing." } if (!([bool]($JsonParameters.PSobject.Properties.name -match "requestId"))) { throw "Error! JSON cannot be serialized due to the required property 'requestId' missing." } else { $RequestId = $JsonParameters.PSobject.Properties["requestId"].value } if (!([bool]($JsonParameters.PSobject.Properties.name -match "status"))) { throw "Error! JSON cannot be serialized due to the required property 'status' missing." } else { $Status = $JsonParameters.PSobject.Properties["status"].value } if (!([bool]($JsonParameters.PSobject.Properties.name -match "statusUrl"))) { throw "Error! JSON cannot be serialized due to the required property 'statusUrl' missing." } else { $StatusUrl = $JsonParameters.PSobject.Properties["statusUrl"].value } $PSO = [PSCustomObject]@{ "requestId" = ${RequestId} "status" = ${Status} "statusUrl" = ${StatusUrl} } return $PSO } } |