Model/Machineidentityagentdiscoveredcounts.ps1
|
# # SailPoint Identity Security API - Machine Identities # 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 No description available. .PARAMETER Count Number of machine identities created within the window. .PARAMETER WindowDays Length of the window, in days. .PARAMETER VarFrom Start of the window, in UTC, and the exact cutoff used for `count`. Identities created at or after this time are included. .OUTPUTS Machineidentityagentdiscoveredcounts<PSCustomObject> #> function Initialize-Machineidentityagentdiscoveredcounts { [CmdletBinding()] Param ( [Parameter(ValueFromPipelineByPropertyName = $true)] [System.Nullable[Int64]] ${Count}, [Parameter(ValueFromPipelineByPropertyName = $true)] [System.Nullable[Int32]] ${WindowDays}, [Parameter(ValueFromPipelineByPropertyName = $true)] [System.Nullable[System.DateTime]] ${VarFrom} ) Process { 'Creating PSCustomObject: PSSailpoint.MachineIdentities => Machineidentityagentdiscoveredcounts' | Write-Debug $PSBoundParameters | Out-DebugParameter | Write-Debug $PSO = [PSCustomObject]@{ "count" = ${Count} "windowDays" = ${WindowDays} "from" = ${VarFrom} } return $PSO } } <# .SYNOPSIS Convert from JSON to Machineidentityagentdiscoveredcounts<PSCustomObject> .DESCRIPTION Convert from JSON to Machineidentityagentdiscoveredcounts<PSCustomObject> .PARAMETER Json Json object .OUTPUTS Machineidentityagentdiscoveredcounts<PSCustomObject> #> function ConvertFrom-JsonToMachineidentityagentdiscoveredcounts { Param( [AllowEmptyString()] [string]$Json ) Process { 'Converting JSON to PSCustomObject: PSSailpoint.MachineIdentities => Machineidentityagentdiscoveredcounts' | Write-Debug $PSBoundParameters | Out-DebugParameter | Write-Debug $JsonParameters = ConvertFrom-Json -InputObject $Json # check if Json contains properties not defined in Machineidentityagentdiscoveredcounts $AllProperties = ("count", "windowDays", "from") 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 "count"))) { #optional property not found $Count = $null } else { $Count = $JsonParameters.PSobject.Properties["count"].value } if (!([bool]($JsonParameters.PSobject.Properties.name -match "windowDays"))) { #optional property not found $WindowDays = $null } else { $WindowDays = $JsonParameters.PSobject.Properties["windowDays"].value } if (!([bool]($JsonParameters.PSobject.Properties.name -match "from"))) { #optional property not found $VarFrom = $null } else { $VarFrom = $JsonParameters.PSobject.Properties["from"].value } $PSO = [PSCustomObject]@{ "count" = ${Count} "windowDays" = ${WindowDays} "from" = ${VarFrom} } return $PSO } } |