Пример #1
0
 public static function addEndpoint($endpointName, $regionId, $product, $domain)
 {
     if (null == self::$endpoints) {
         self::$endpoints = self::getEndpoints();
     }
     $endpoint = self::findEndpointByName($endpointName);
     if (null == $endpoint) {
         self::addEndpoint_($regionId, $product, $domain, $endpoint);
     } else {
         self::updateEndpoint($regionId, $product, $domain, $endpoint);
     }
 }