public static function getClient($version = "1.0") {
		$acceptable_versions = array('1.0', '1.5');
		
		if(!in_array($version, $acceptable_versions)) {
			throw new InvalidArgumentException("API Version $version is not supported, please try 1.0 or 1.5");
		}
		
		$version = str_ireplace('.', '_', $version);
		
		return ClientFactory::getBuilder()->get( "guzzle-rs-$version" );
	}
public static function getClient($version = "1.0") {
		$acceptable_versions = array('1.0', '1.5');
		
		if(!in_array($version, $acceptable_versions)) {
			throw new InvalidArgumentException("API Version $version is not supported, please try 1.0 or 1.5");
		}
		
		$version = str_ireplace('.', '_', $version);
		
		return ClientFactory::getBuilder()->get( "guzzle-rs-$version" );
	}
public static function getClient ( $ version = "1.0" ) { $ acceptable_versions = array ( '1.0' , '1.5' ) ; if ( ! in_array ( $ version , $ acceptable_versions ) ) { throw new InvalidArgumentException ( "API Version $version is not supported, please try 1.0 or 1.5" ) ; } $ version = str_ireplace ( '.' , '_' , $ version ) ; return ClientFactory :: getBuilder ( ) -> get ( "guzzle-rs-$version" ) ; }
Returns a persistent instance of the Guzzle RightScaleClient.

@param string $version The API version of the returned client, currently acceptable options are "1.0" and "1.5"

@throws \InvalidArgumentException When the version is not 1.0 or 1.5, or when no credentials are set.

@return \RGeyer\Guzzle\Rs\RightScaleClient
Returns a persistent instance of the Guzzle RightScaleClient .