Scalr\Service\OpenStack\Services\Network\V2\NetworkApi::updateLbVip PHP Method

updateLbVip() public method

Update LBaaS VIP (PUT /lb/vips/vip-id)
public updateLbVip ( string $vipId, array | object $options ) : object
$vipId string The Id of the LBaaS VIP to update
$options array | object Raw options object (It will be json_encoded and passed as is.)
return object Returns LBaaS VIP object on success or throws an exception otherwise
    public function updateLbVip($vipId, $options)
    {
        $result = null;
        $response = $this->getClient()->call($this->service, sprintf('/lb/vips/%s', $this->escape($vipId)), array('_putData' => json_encode(array('vip' => $options))), 'PUT');
        if ($response->hasError() === false) {
            $result = json_decode($response->getContent());
            $result = $result->vip;
        }
        return $result;
    }