data-access-security/src/PSSailpoint.DataAccessSecurity/Model/Identitycollectordependenciesconflicterror.ps1
|
# # Identity Security Cloud API - Data Access Security # 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 Conflict response returned when an identity collector cannot be deleted because it is in use. .PARAMETER DetailCode Fine-grained error code providing more detail of the error. .PARAMETER TrackingId Unique tracking id for the error. .PARAMETER Messages Generic localized reason for error. .PARAMETER Dependencies Dependent objects blocking deletion. At most three items are returned. .PARAMETER ExtendedDependenciesCount Number of additional dependent objects not included in `dependencies`. .OUTPUTS Identitycollectordependenciesconflicterror<PSCustomObject> #> function Initialize-Identitycollectordependenciesconflicterror { [CmdletBinding()] Param ( [Parameter(ValueFromPipelineByPropertyName = $true)] [String] ${DetailCode}, [Parameter(ValueFromPipelineByPropertyName = $true)] [String] ${TrackingId}, [Parameter(ValueFromPipelineByPropertyName = $true)] [PSCustomObject[]] ${Messages}, [Parameter(ValueFromPipelineByPropertyName = $true)] [PSCustomObject[]] ${Dependencies}, [Parameter(ValueFromPipelineByPropertyName = $true)] [System.Nullable[Int32]] ${ExtendedDependenciesCount} ) Process { 'Creating PSCustomObject: PSSailpoint.DataAccessSecurity => Identitycollectordependenciesconflicterror' | Write-Debug $PSBoundParameters | Out-DebugParameter | Write-Debug $PSO = [PSCustomObject]@{ "detailCode" = ${DetailCode} "trackingId" = ${TrackingId} "messages" = ${Messages} "dependencies" = ${Dependencies} "extendedDependenciesCount" = ${ExtendedDependenciesCount} } return $PSO } } <# .SYNOPSIS Convert from JSON to Identitycollectordependenciesconflicterror<PSCustomObject> .DESCRIPTION Convert from JSON to Identitycollectordependenciesconflicterror<PSCustomObject> .PARAMETER Json Json object .OUTPUTS Identitycollectordependenciesconflicterror<PSCustomObject> #> function ConvertFrom-JsonToIdentitycollectordependenciesconflicterror { Param( [AllowEmptyString()] [string]$Json ) Process { 'Converting JSON to PSCustomObject: PSSailpoint.DataAccessSecurity => Identitycollectordependenciesconflicterror' | Write-Debug $PSBoundParameters | Out-DebugParameter | Write-Debug $JsonParameters = ConvertFrom-Json -InputObject $Json # check if Json contains properties not defined in Identitycollectordependenciesconflicterror $AllProperties = ("detailCode", "trackingId", "messages", "dependencies", "extendedDependenciesCount") 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 "detailCode"))) { #optional property not found $DetailCode = $null } else { $DetailCode = $JsonParameters.PSobject.Properties["detailCode"].value } if (!([bool]($JsonParameters.PSobject.Properties.name -match "trackingId"))) { #optional property not found $TrackingId = $null } else { $TrackingId = $JsonParameters.PSobject.Properties["trackingId"].value } if (!([bool]($JsonParameters.PSobject.Properties.name -match "messages"))) { #optional property not found $Messages = $null } else { $Messages = $JsonParameters.PSobject.Properties["messages"].value } if (!([bool]($JsonParameters.PSobject.Properties.name -match "dependencies"))) { #optional property not found $Dependencies = $null } else { $Dependencies = $JsonParameters.PSobject.Properties["dependencies"].value } if (!([bool]($JsonParameters.PSobject.Properties.name -match "extendedDependenciesCount"))) { #optional property not found $ExtendedDependenciesCount = $null } else { $ExtendedDependenciesCount = $JsonParameters.PSobject.Properties["extendedDependenciesCount"].value } $PSO = [PSCustomObject]@{ "detailCode" = ${DetailCode} "trackingId" = ${TrackingId} "messages" = ${Messages} "dependencies" = ${Dependencies} "extendedDependenciesCount" = ${ExtendedDependenciesCount} } return $PSO } } |