public function __get($name)
{
$services = $this->getAvailableServices();
if (isset($services[$name])) {
if (!isset($this->services[$name])) {
$servicePath = __NAMESPACE__ . '\\Azure\\Services\\' . ucfirst($services[$name]) . 'Service';
$this->services[$name] = new $servicePath($this);
}
return $this->services[$name];
}
throw new AzureException(sprintf('Invalid Service name "%s" for Azure', $name));
}