public function ServiceRegister(AgentServiceRegistration $agentServiceRegistration) {
        $r = new Request('PUT', 'v1/agent/service/register', $this->config, $agentServiceRegistration);

        return $this->requireOK($this->doRequest($r))[2];
    }