Model/CertificateRequest.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 CommonName No description available. .PARAMETER Country No description available. .PARAMETER Organization No description available. .PARAMETER OrganizationalUnit No description available. .PARAMETER Locality No description available. .PARAMETER Province No description available. .PARAMETER Bits No description available. .PARAMETER Algo No description available. .PARAMETER Hosts No description available. .PARAMETER ValidForDays if 0 or not set 365 will be assumed .PARAMETER ValidFrom if nil `now` will be assumed .OUTPUTS CertificateRequest<PSCustomObject> #> function New-SS6CertificateRequest { [CmdletBinding()] Param ( [Parameter(Position = 0, ValueFromPipelineByPropertyName = $true)] [String] ${CommonName}, [Parameter(Position = 1, ValueFromPipelineByPropertyName = $true)] [String] ${Country}, [Parameter(Position = 2, ValueFromPipelineByPropertyName = $true)] [String] ${Organization}, [Parameter(Position = 3, ValueFromPipelineByPropertyName = $true)] [String] ${OrganizationalUnit}, [Parameter(Position = 4, ValueFromPipelineByPropertyName = $true)] [String] ${Locality}, [Parameter(Position = 5, ValueFromPipelineByPropertyName = $true)] [String] ${Province}, [Parameter(Position = 6, ValueFromPipelineByPropertyName = $true)] [System.Nullable[Int32]] ${Bits}, [Parameter(Position = 7, ValueFromPipelineByPropertyName = $true)] [String] ${Algo}, [Parameter(Position = 8, ValueFromPipelineByPropertyName = $true)] [String[]] ${Hosts}, [Parameter(Position = 9, ValueFromPipelineByPropertyName = $true)] [System.Nullable[Int32]] ${ValidForDays}, [Parameter(Position = 10, ValueFromPipelineByPropertyName = $true)] [System.Nullable[System.DateTime]] ${ValidFrom} ) Process { 'Creating object: SS6AdminModule => SS6CertificateRequest' | Write-Debug $PSBoundParameters | Out-DebugParameter | Write-Debug $PSO = [PSCustomObject]@{ "commonName" = ${CommonName} "country" = ${Country} "organization" = ${Organization} "organizationalUnit" = ${OrganizationalUnit} "locality" = ${Locality} "province" = ${Province} "bits" = ${Bits} "algo" = ${Algo} "hosts" = ${Hosts} "validForDays" = ${ValidForDays} "validFrom" = ${ValidFrom} } return $PSO } } |