Model/UnsetIscsiDataset.ps1
# # Storvix APIs # List of all APIs accessible with the AiRE filer # Version: 3.0.0 # Contact: support@storvix.eu # Generated by OpenAPI Generator: https://openapi-generator.tech # <# .SYNOPSIS No summary available. .DESCRIPTION No description available. .PARAMETER Action No description available. .PARAMETER Guid No description available. .OUTPUTS UnsetIscsiDataset<PSCustomObject> #> function Initialize-UnsetIscsiDataset { [CmdletBinding()] Param ( [Parameter(Position = 0, ValueFromPipelineByPropertyName = $true)] [String] ${Action} = "deliscsi", [Parameter(Position = 1, ValueFromPipelineByPropertyName = $true)] [String] ${Guid} = "600144f0184045790000608bd7420001" ) Process { 'Creating PSCustomObject: AiRE => UnsetIscsiDataset' | Write-Debug $PSBoundParameters | Out-DebugParameter | Write-Debug $PSO = [PSCustomObject]@{ "action" = ${Action} "guid" = ${Guid} } return $PSO } } <# .SYNOPSIS Convert from JSON to UnsetIscsiDataset<PSCustomObject> .DESCRIPTION Convert from JSON to UnsetIscsiDataset<PSCustomObject> .PARAMETER Json Json object .OUTPUTS UnsetIscsiDataset<PSCustomObject> #> function ConvertFrom-JsonToUnsetIscsiDataset { Param( [AllowEmptyString()] [string]$Json ) Process { 'Converting JSON to PSCustomObject: AiRE => UnsetIscsiDataset' | Write-Debug $PSBoundParameters | Out-DebugParameter | Write-Debug $JsonParameters = ConvertFrom-Json -InputObject $Json # check if Json contains properties not defined in UnsetIscsiDataset $AllProperties = ("action", "guid") 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 "action"))) { #optional property not found $Action = $null } else { $Action = $JsonParameters.PSobject.Properties["action"].value } if (!([bool]($JsonParameters.PSobject.Properties.name -match "guid"))) { #optional property not found $Guid = $null } else { $Guid = $JsonParameters.PSobject.Properties["guid"].value } $PSO = [PSCustomObject]@{ "action" = ${Action} "guid" = ${Guid} } return $PSO } } |