machine-accounts/src/PSSailpoint.MachineAccounts/Model/MachineAccountDeleteRequest.ps1
|
# # SailPoint Identity Security API - Machine Accounts # 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 Details for a request to delete a machine account. .PARAMETER Comments Comments about the deletion request. Depending on the tenant's account deletion approval settings, comments can be required. .OUTPUTS MachineAccountDeleteRequest<PSCustomObject> #> function Initialize-MachineAccountDeleteRequest { [CmdletBinding()] Param ( [Parameter(ValueFromPipelineByPropertyName = $true)] [String] ${Comments} ) Process { 'Creating PSCustomObject: PSSailpoint.MachineAccounts => MachineAccountDeleteRequest' | Write-Debug $PSBoundParameters | Out-DebugParameter | Write-Debug $PSO = [PSCustomObject]@{ "comments" = ${Comments} } return $PSO } } <# .SYNOPSIS Convert from JSON to MachineAccountDeleteRequest<PSCustomObject> .DESCRIPTION Convert from JSON to MachineAccountDeleteRequest<PSCustomObject> .PARAMETER Json Json object .OUTPUTS MachineAccountDeleteRequest<PSCustomObject> #> function ConvertFrom-JsonToMachineAccountDeleteRequest { Param( [AllowEmptyString()] [string]$Json ) Process { 'Converting JSON to PSCustomObject: PSSailpoint.MachineAccounts => MachineAccountDeleteRequest' | Write-Debug $PSBoundParameters | Out-DebugParameter | Write-Debug $JsonParameters = ConvertFrom-Json -InputObject $Json # check if Json contains properties not defined in MachineAccountDeleteRequest $AllProperties = ("comments") 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 "comments"))) { #optional property not found $Comments = $null } else { $Comments = $JsonParameters.PSobject.Properties["comments"].value } $PSO = [PSCustomObject]@{ "comments" = ${Comments} } return $PSO } } |