intelligence/src/PSSailpoint.Intelligence/Model/Intelnhicapabilities.ps1
|
# # SailPoint Identity Security API - Intelligence # Use these APIs to interact with the SailPoint Identity Security 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 Linked MCP servers, tools, and skills for a non-human identity. When the list loads successfully, `mcp`, `tool`, and `skill` are present. When it could not be loaded, those properties are omitted and only `message` and `reason` are returned. .PARAMETER Mcp Linked MCP servers for this identity. .PARAMETER Tool Linked tools for this identity. .PARAMETER Skill Linked skills for this identity. .PARAMETER Message Set when linked capabilities could not be loaded. The `mcp`, `tool`, and `skill` properties are omitted; only `message` and `reason` are present. .PARAMETER Reason No description available. .OUTPUTS Intelnhicapabilities<PSCustomObject> #> function Initialize-Intelnhicapabilities { [CmdletBinding()] Param ( [Parameter(ValueFromPipelineByPropertyName = $true)] [PSCustomObject] ${Mcp}, [Parameter(ValueFromPipelineByPropertyName = $true)] [PSCustomObject] ${Tool}, [Parameter(ValueFromPipelineByPropertyName = $true)] [PSCustomObject] ${Skill}, [Parameter(ValueFromPipelineByPropertyName = $true)] [String] ${Message}, [Parameter(ValueFromPipelineByPropertyName = $true)] [ValidateSet("RESOURCE_NOT_FOUND", "UPSTREAM_UNAVAILABLE")] [PSCustomObject] ${Reason} ) Process { 'Creating PSCustomObject: PSSailpoint.Intelligence => Intelnhicapabilities' | Write-Debug $PSBoundParameters | Out-DebugParameter | Write-Debug $PSO = [PSCustomObject]@{ "mcp" = ${Mcp} "tool" = ${Tool} "skill" = ${Skill} "message" = ${Message} "reason" = ${Reason} } return $PSO } } <# .SYNOPSIS Convert from JSON to Intelnhicapabilities<PSCustomObject> .DESCRIPTION Convert from JSON to Intelnhicapabilities<PSCustomObject> .PARAMETER Json Json object .OUTPUTS Intelnhicapabilities<PSCustomObject> #> function ConvertFrom-JsonToIntelnhicapabilities { Param( [AllowEmptyString()] [string]$Json ) Process { 'Converting JSON to PSCustomObject: PSSailpoint.Intelligence => Intelnhicapabilities' | Write-Debug $PSBoundParameters | Out-DebugParameter | Write-Debug $JsonParameters = ConvertFrom-Json -InputObject $Json # check if Json contains properties not defined in Intelnhicapabilities $AllProperties = ("mcp", "tool", "skill", "message", "reason") 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 "mcp"))) { #optional property not found $Mcp = $null } else { $Mcp = $JsonParameters.PSobject.Properties["mcp"].value } if (!([bool]($JsonParameters.PSobject.Properties.name -match "tool"))) { #optional property not found $Tool = $null } else { $Tool = $JsonParameters.PSobject.Properties["tool"].value } if (!([bool]($JsonParameters.PSobject.Properties.name -match "skill"))) { #optional property not found $Skill = $null } else { $Skill = $JsonParameters.PSobject.Properties["skill"].value } if (!([bool]($JsonParameters.PSobject.Properties.name -match "message"))) { #optional property not found $Message = $null } else { $Message = $JsonParameters.PSobject.Properties["message"].value } if (!([bool]($JsonParameters.PSobject.Properties.name -match "reason"))) { #optional property not found $Reason = $null } else { $Reason = $JsonParameters.PSobject.Properties["reason"].value } $PSO = [PSCustomObject]@{ "mcp" = ${Mcp} "tool" = ${Tool} "skill" = ${Skill} "message" = ${Message} "reason" = ${Reason} } return $PSO } } |