Пример #1
0
 protected function build()
 {
     $this->request = $this->client->get($this->client->getTenantId() . '/flavors');
     if ($this->hasKey('minDisk')) {
         $this->request->getQuery()->set('minDisk', $this->get('minDisk'));
     }
     if ($this->hasKey('minRam')) {
         $this->request->getQuery()->set('minRam', $this->get('minRam'));
     }
     parent::build();
 }
Пример #2
0
 protected function build()
 {
     $this->request = $this->client->get('tenants/' . $this->get('id') . '/users');
     parent::build();
 }
 protected function build()
 {
     $this->request = $this->client->get($this->client->getTenantId() . '/servers/detail');
     if ($this->hasKey('image')) {
         $this->request->getQuery()->set('image', $this->get('image'));
     }
     if ($this->hasKey('flavor')) {
         $this->request->getQuery()->set('flavor', $this->get('flavor'));
     }
     if ($this->hasKey('name')) {
         $this->request->getQuery()->set('name', $this->get('name'));
     }
     if ($this->hasKey('status')) {
         $this->request->getQuery()->set('status', $this->get('status'));
     }
     if ($this->hasKey('changes-since')) {
         $this->request->getQuery()->set('changes-since', $this->get('changes-since'));
     }
     parent::build();
 }
Пример #4
0
 protected function build()
 {
     $this->request = $this->client->get('images');
     if ($this->hasKey('server')) {
         $this->request->getQuery()->set('server', $this->get('server'));
     }
     if ($this->hasKey('name')) {
         $this->request->getQuery()->set('name', $this->get('name'));
     }
     if ($this->hasKey('status')) {
         $this->request->getQuery()->set('status', $this->get('status'));
     }
     if ($this->hasKey('changes-since')) {
         $this->request->getQuery()->set('changes-since', $this->get('changes-since'));
     }
     if ($this->hasKey('type')) {
         $this->request->getQuery()->set('type', $this->get('type'));
     }
     parent::build();
 }
Пример #5
0
 protected function build()
 {
     $this->request = $this->client->get('users');
     parent::build();
 }
Пример #6
0
 protected function build()
 {
     $this->request = $this->client->get('AUTH_' . $this->get('tenantId') . '?format=json');
     parent::build();
 }