Ovh\Dedicated\Server\Server::setBootdevice PHP Метод

setBootdevice() публичный Метод

public setBootdevice ( $bootDevice ) : boolean
$bootDevice
Результат boolean true
    public function setBootdevice($bootDevice)
    {
        // ugly alert - the OVH API assumes any values not passed as part of the "PUT" are null/blank/0.
        // so when we reset the boot device, we need to capture the current state of =monitoring= , =rootdevice= and =state= from
        // getProperties and pass those along too... easiest way is to call getProperties as part of the setBootDevice call, and
        // update hoping that nothing else is updating in the intervening nanoseconds
        self::getClient()->setBootDevice($this->getDomain(), $this->getProperties(), $bootDevice);
        return true;
    }