CreateVmClient.ps1
Class CreateVmClient : ApiClient { CreateVmClient([hashtable]$values) : base ($values) {} Cleanup() {} [psobject]CreateVm() { return $null } } Function New-CreateVmClient([hashtable]$values) { $platform = $values.CloudPlatform if ($platform -eq "gcp") { return [GcpCreateVmClient]::New($values) } else { throw "Unable to create CreateVM. Invalid CloudPlatform specified '$platform'." } } |