'projectId', 'user_id' => 'userId', ]; /** * {@inheritdoc} * * @param array $data {@see \OpenStack\Identity\v3\Api::postPolicies} */ public function create(array $data): Creatable { $response = $this->execute($this->api->postPolicies(), $data); return $this->populateFromResponse($response); } /** * {@inheritdoc} */ public function retrieve() { $response = $this->execute($this->api->getPolicy(), ['id' => $this->id]); $this->populateFromResponse($response); } /** * {@inheritdoc} */ public function update() { $response = $this->executeWithState($this->api->patchPolicy()); $this->populateFromResponse($response); } /** * {@inheritdoc} */ public function delete() { $this->execute($this->api->deletePolicy(), ['id' => $this->id]); } }