Model/Binding.ps1
# # SMServer V6 # Syncplify.me Server! REST API # Version: 1.0.0 # Generated by OpenAPI Generator: https://openapi-generator.tech # <# .SYNOPSIS No summary available. .DESCRIPTION No description available. .PARAMETER Service No description available. .PARAMETER IpVersion No description available. .PARAMETER Ip This is the IP v4/v6 the service will try bind to .PARAMETER Port The port this service will bind to .PARAMETER HostName Optional host name related to this binding (useful for web-based sharing functionality) .PARAMETER BehindHaProxy This particular binding must expect the HAProxy header in the first packet .PARAMETER DataPort The data port this service will bindto. Only valid for FTP protocol .PARAMETER PortRangeMin The lower limit of the port range for passive FTP dynamic ports .PARAMETER PortRangeMax The upper limit of the port range for passive FTP dynamic ports .OUTPUTS Binding<PSCustomObject> #> function New-SS6Binding { [CmdletBinding()] Param ( [Parameter(Position = 0, ValueFromPipelineByPropertyName = $true)] [PSCustomObject] ${Service}, [Parameter(Position = 1, ValueFromPipelineByPropertyName = $true)] [PSCustomObject] ${IpVersion}, [Parameter(Position = 2, ValueFromPipelineByPropertyName = $true)] [String] ${Ip}, [Parameter(Position = 3, ValueFromPipelineByPropertyName = $true)] [System.Nullable[Int32]] ${Port}, [Parameter(Position = 4, ValueFromPipelineByPropertyName = $true)] [String] ${HostName}, [Parameter(Position = 5, ValueFromPipelineByPropertyName = $true)] [System.Nullable[Boolean]] ${BehindHaProxy}, [Parameter(Position = 6, ValueFromPipelineByPropertyName = $true)] [System.Nullable[Int32]] ${DataPort}, [Parameter(Position = 7, ValueFromPipelineByPropertyName = $true)] [System.Nullable[Int32]] ${PortRangeMin}, [Parameter(Position = 8, ValueFromPipelineByPropertyName = $true)] [System.Nullable[Int32]] ${PortRangeMax} ) Process { 'Creating object: SS6AdminModule => SS6Binding' | Write-Debug $PSBoundParameters | Out-DebugParameter | Write-Debug $PSO = [PSCustomObject]@{ "service" = ${Service} "ipVersion" = ${IpVersion} "ip" = ${Ip} "port" = ${Port} "hostName" = ${HostName} "behindHaProxy" = ${BehindHaProxy} "dataPort" = ${DataPort} "portRangeMin" = ${PortRangeMin} "portRangeMax" = ${PortRangeMax} } return $PSO } } |