Model/MoveMultipleProjectMappings.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 No description available. .PARAMETER ProjectId No description available. .PARAMETER MappingIds No description available. .OUTPUTS MoveMultipleProjectMappings<PSCustomObject> #> function Initialize-FlyMoveMultipleProjectMappings { [CmdletBinding()] Param ( [Parameter(ValueFromPipelineByPropertyName = $true)] [String] ${ProjectId}, [Parameter(ValueFromPipelineByPropertyName = $true)] [String[]] ${MappingIds} ) Process { 'Creating PSCustomObject: Fly.Client => FlyMoveMultipleProjectMappings' | Write-Debug $PSBoundParameters | Out-DebugParameter | Write-Debug $PSO = [PSCustomObject]@{ "projectId" = ${ProjectId} "mappingIds" = ${MappingIds} } return $PSO } } <# .SYNOPSIS Convert from JSON to MoveMultipleProjectMappings<PSCustomObject> .DESCRIPTION Convert from JSON to MoveMultipleProjectMappings<PSCustomObject> .PARAMETER Json Json object .OUTPUTS MoveMultipleProjectMappings<PSCustomObject> #> function ConvertFrom-FlyJsonToMoveMultipleProjectMappings { Param( [AllowEmptyString()] [string]$Json ) Process { 'Converting JSON to PSCustomObject: Fly.Client => FlyMoveMultipleProjectMappings' | Write-Debug $PSBoundParameters | Out-DebugParameter | Write-Debug $JsonParameters = ConvertFrom-Json -InputObject $Json # check if Json contains properties not defined in FlyMoveMultipleProjectMappings $AllProperties = ("projectId", "mappingIds") 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 "projectId"))) { #optional property not found $ProjectId = $null } else { $ProjectId = $JsonParameters.PSobject.Properties["projectId"].value } if (!([bool]($JsonParameters.PSobject.Properties.name -match "mappingIds"))) { #optional property not found $MappingIds = $null } else { $MappingIds = $JsonParameters.PSobject.Properties["mappingIds"].value } $PSO = [PSCustomObject]@{ "projectId" = ${ProjectId} "mappingIds" = ${MappingIds} } return $PSO } } |