'serviceId']; /** * {@inheritdoc} * * @param array $data {@see \OpenStack\Identity\v3\Api::postEndpoints} */ public function create(array $data): Creatable { $response = $this->execute($this->api->postEndpoints(), $data); return $this->populateFromResponse($response); } /** * {@inheritdoc} */ public function retrieve() { $response = $this->executeWithState($this->api->getEndpoint()); $this->populateFromResponse($response); } /** * {@inheritdoc} */ public function update() { $response = $this->executeWithState($this->api->patchEndpoint()); $this->populateFromResponse($response); } /** * {@inheritdoc} */ public function delete() { $this->execute($this->api->deleteEndpoint(), $this->getAttrs(['id'])); } public function regionMatches(string $value): bool { return in_array($this->region, ['*', $value]); } public function interfaceMatches(string $value): bool { return $this->interface && $this->interface == $value; } }