Model/ProjectMappingSummaryModelJobProgressDetail.ps1
# # Fly SDK API # No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # Version: 1.0 # Contact: support@avepoint.com # Generated by OpenAPI Generator: https://openapi-generator.tech # <# .SYNOPSIS No summary available. .DESCRIPTION The migration job progress detail of the project mapping, only available for the project mapping which is executing migration job .PARAMETER TotalCount The addressed object count during migration job .OUTPUTS ProjectMappingSummaryModelJobProgressDetail<PSCustomObject> #> function Initialize-ProjectMappingSummaryModelJobProgressDetail { [CmdletBinding()] Param ( [Parameter(ValueFromPipelineByPropertyName = $true)] [System.Nullable[Int64]] ${TotalCount} ) Process { 'Creating PSCustomObject: FLY.Client => ProjectMappingSummaryModelJobProgressDetail' | Write-Debug $PSBoundParameters | Out-DebugParameter | Write-Debug $PSO = [PSCustomObject]@{ "totalCount" = ${TotalCount} } return $PSO } } <# .SYNOPSIS Convert from JSON to ProjectMappingSummaryModelJobProgressDetail<PSCustomObject> .DESCRIPTION Convert from JSON to ProjectMappingSummaryModelJobProgressDetail<PSCustomObject> .PARAMETER Json Json object .OUTPUTS ProjectMappingSummaryModelJobProgressDetail<PSCustomObject> #> function ConvertFrom-JsonToProjectMappingSummaryModelJobProgressDetail { Param( [AllowEmptyString()] [string]$Json ) Process { 'Converting JSON to PSCustomObject: FLY.Client => ProjectMappingSummaryModelJobProgressDetail' | Write-Debug $PSBoundParameters | Out-DebugParameter | Write-Debug $JsonParameters = ConvertFrom-Json -InputObject $Json # check if Json contains properties not defined in ProjectMappingSummaryModelJobProgressDetail $AllProperties = ("totalCount") 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 "totalCount"))) { #optional property not found $TotalCount = $null } else { $TotalCount = $JsonParameters.PSobject.Properties["totalCount"].value } $PSO = [PSCustomObject]@{ "totalCount" = ${TotalCount} } return $PSO } } |