RecordID = $recordID; } use \DigiComp\HetznerDnsApi\Runtime\Client\EndpointTrait; public function getMethod() : string { return 'DELETE'; } public function getUri() : string { return str_replace(array('{RecordID}'), array($this->RecordID), '/records/{RecordID}'); } public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null) : array { return array(array(), null); } /** * {@inheritdoc} * * @throws \DigiComp\HetznerDnsApi\Exception\DeleteRecordUnauthorizedException * @throws \DigiComp\HetznerDnsApi\Exception\DeleteRecordForbiddenException * @throws \DigiComp\HetznerDnsApi\Exception\DeleteRecordNotFoundException * @throws \DigiComp\HetznerDnsApi\Exception\DeleteRecordNotAcceptableException * * @return null */ protected function transformResponseBody(string $body, int $status, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) { if (200 === $status) { return null; } if (401 === $status) { throw new \DigiComp\HetznerDnsApi\Exception\DeleteRecordUnauthorizedException(); } if (403 === $status) { throw new \DigiComp\HetznerDnsApi\Exception\DeleteRecordForbiddenException(); } if (404 === $status) { throw new \DigiComp\HetznerDnsApi\Exception\DeleteRecordNotFoundException(); } if (406 === $status) { throw new \DigiComp\HetznerDnsApi\Exception\DeleteRecordNotAcceptableException(); } } public function getAuthenticationScopes() : array { return array('Auth-API-Token'); } }