public static function factory($config = array())
	{
		$default = array(
			'compute_type'  => 'compute',
			'identity_type' => 'identity',
			'storage_type'  => 'storage',
			'region'        => 'RegionOne'
		);
		$required = array('auth_url');
		$config = Inspector::prepareConfig($config, $default, $required);

		$client = new self($config->get('auth_url'), $config->get(
			'username'
		), $config->get('password'), $config->get('tenantName'));
		$client->setConfig($config);

		return $client;
	}
public static function factory($config = array())
	{
		$default = array(
			'compute_type'  => 'compute',
			'identity_type' => 'identity',
			'storage_type'  => 'storage',
			'region'        => 'RegionOne'
		);
		$required = array('auth_url');
		$config = Inspector::prepareConfig($config, $default, $required);

		$client = new self($config->get('auth_url'), $config->get(
			'username'
		), $config->get('password'), $config->get('tenantName'));
		$client->setConfig($config);

		return $client;
	}
public static function factory ( $ config = array ( ) ) { $ default = array ( 'compute_type' => 'compute' , 'identity_type' => 'identity' , 'storage_type' => 'storage' , 'region' => 'RegionOne' ) ; $ required = array ( 'auth_url' ) ; $ config = Inspector :: prepareConfig ( $ config , $ default , $ required ) ; $ client = new self ( $ config -> get ( 'auth_url' ) , $ config -> get ( 'username' ) , $ config -> get ( 'password' ) , $ config -> get ( 'tenantName' ) ) ; $ client -> setConfig ( $ config ) ; return $ client ; }
Factory method to create a new OpenstackClient

@static

@param array|Collection $config Configuration data. Array keys:
auth_url - Authentication service URL
username - API username
password - API password
tenantName - API tenantName

@return \Guzzle\Common\FromConfigInterface|OpenstackClient|\Guzzle\Service\Client
Factory method to create a new OpenstackClient