public static function convertDataCenterRegionToArray(IDataCenterRegion $region)
 {
     $res = array();
     $res['name'] = $region->getName();
     $res['color'] = $region->getColor();
     $res['endpoint'] = $region->getEndpoint();
     return $res;
 }
 /**
  * @param string $city
  * @param string $state
  * @param string $country
  * @param float $lat
  * @param float $lng
  * @param IDataCenterRegion $region
  * @return IDataCenterLocation
  */
 public function buildDataCenterLocation($city, $state, $country, $lat, $lng, IDataCenterRegion $region)
 {
     $location = new DataCenterLocationDraft();
     $location->setCity($city);
     $location->setState($state);
     $location->setCountry($country);
     $location->setLat($lat);
     $location->setLng($lng);
     $region->addLocation($location);
     $location->setDataCenterRegion($region);
     return $location;
 }