/** * Creates a new Object Store v1 service. * * @param array $options Options that will be used in configuring the service. * * @return \OpenStack\ObjectStore\v1\Service */ public function objectStoreV1(array $options = []) { return $this->builder->createService('ObjectStore', 1, array_merge($options, ['catalogName' => 'swift', 'catalogType' => 'object-store'])); }
/** * Creates a new Block Storage v2 service. * * @param array $options Options that will be used in configuring the service. * * @return \OpenStack\BlockStorage\v2\Service */ public function blockStorageV2(array $options = []) { $defaults = ['catalogName' => 'cinderv2', 'catalogType' => 'volumev2']; return $this->builder->createService('BlockStorage', 2, array_merge($defaults, $options)); }
/** * Creates a new Images v2 service. * * @param array $options Options that will be used in configuring the service. * * @return \OpenStack\Images\v2\Service */ public function imagesV2(array $options = []) : \OpenStack\Images\v2\Service { $defaults = ['catalogName' => 'glance', 'catalogType' => 'image']; return $this->builder->createService('Images\\v2', array_merge($defaults, $options)); }