public static function newFromIdentity($identity, $region) {
    $cat = $identity->serviceCatalog();
    $tok = $identity->token();
    return self::newFromServiceCatalog($cat, $tok, $region);
  }
public static function newFromIdentity($identity, $region) {
    $cat = $identity->serviceCatalog();
    $tok = $identity->token();
    return self::newFromServiceCatalog($cat, $tok, $region);
  }
public static function newFromIdentity ( $ identity , $ region ) { $ cat = $ identity -> serviceCatalog ( ) ; $ tok = $ identity -> token ( ) ; return self :: newFromServiceCatalog ( $ cat , $ tok , $ region ) ; }
Given an IdentityServices instance, create an ObjectStorage instance.

This constructs a new ObjectStorage from an authenticated instance
of an HPCloud::Services::IdentityServices object.

@param HPCloud::Services::IdentityServices $identity
An identity services object that already has a valid token and a
service catalog.
@param string $region
The region being used for this service.

@retval HPCloud::Storage::ObjectStorage
@return \HPCloud\Storage\ObjectStorage
A new ObjectStorage instance.
Given an IdentityServices instance create an ObjectStorage instance .