Model/GETNodesQueryocirepotagsRB.ps1
|
# # Proxmox PowerShell VE # Generated module to access all Proxmox VE Api Endpoints. This module has been generated from the proxmox api description v. 9.1.1 # Version: 9.1.1 # Contact: mail@timo-wolf.de # Generated by OpenAPI Generator: https://openapi-generator.tech # <# .SYNOPSIS No summary available. .DESCRIPTION No description available. .PARAMETER Reference No description available. .OUTPUTS GETNodesQueryocirepotagsRB<PSCustomObject> #> function Initialize-PVEGETNodesQueryocirepotagsRB { [CmdletBinding()] Param ( [Parameter(ValueFromPipelineByPropertyName = $true)] [ValidatePattern("^(?:(?:[a-zA-Z\d]|[a-zA-Z\d][a-zA-Z\d-]*[a-zA-Z\d])(?:\.(?:[a-zA-Z\d]|[a-zA-Z\d][a-zA-Z\d-]*[a-zA-Z\d]))*(?::\d+)?/)?[a-z\d]+(?:(?:[._]|__|[-]*)[a-z\d]+)*(?:/[a-z\d]+(?:(?:[._]|__|[-]*)[a-z\d]+)*)*$")] [String] ${Reference} ) Process { 'Creating PSCustomObject: ProxmoxPVE => PVEGETNodesQueryocirepotagsRB' | Write-Debug $PSBoundParameters | Out-DebugParameter | Write-Debug $DisplayNameMapping =@{ "Reference"="reference" } $OBJ = @{} foreach($parameter in $PSBoundParameters.Keys){ #If Specifield map the Display name back $OBJ.($DisplayNameMapping.($parameter)) = $PSBoundParameters.$parameter } $PSO = [PSCustomObject]$OBJ return $PSO } } <# .SYNOPSIS Convert from JSON to GETNodesQueryocirepotagsRB<PSCustomObject> .DESCRIPTION Convert from JSON to GETNodesQueryocirepotagsRB<PSCustomObject> .PARAMETER Json Json object .OUTPUTS GETNodesQueryocirepotagsRB<PSCustomObject> #> function ConvertFrom-PVEJsonToGETNodesQueryocirepotagsRB { Param( [AllowEmptyString()] [string]$Json ) Process { 'Converting JSON to PSCustomObject: ProxmoxPVE => PVEGETNodesQueryocirepotagsRB' | Write-Debug $PSBoundParameters | Out-DebugParameter | Write-Debug $JsonParameters = ConvertFrom-Json -InputObject $Json # check if Json contains properties not defined in PVEGETNodesQueryocirepotagsRB $AllProperties = ("reference") 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 "reference"))) { #optional property not found $Reference = $null } else { $Reference = $JsonParameters.PSobject.Properties["reference"].value } $PSO = [PSCustomObject]@{ "reference" = ${Reference} } return $PSO } } |