public function update($permission) {
        $data = Values::of(array('Permission' => Serialize::map($permission, function($e) { return $e; }), ));

        $payload = $this->version->update(
            'POST',
            $this->uri,
            array(),
            $data
        );

        return new RoleInstance(
            $this->version,
            $payload,
            $this->solution['serviceSid'],
            $this->solution['sid']
        );
    }
public function update($permission) {
        $data = Values::of(array('Permission' => Serialize::map($permission, function($e) { return $e; }), ));

        $payload = $this->version->update(
            'POST',
            $this->uri,
            array(),
            $data
        );

        return new RoleInstance(
            $this->version,
            $payload,
            $this->solution['serviceSid'],
            $this->solution['sid']
        );
    }
public function update ( $ permission ) { $ data = Values :: of ( array ( 'Permission' => Serialize :: map ( $ permission , function ( $ e ) { return $ e ; } ) , ) ) ; $ payload = $ this -> version -> update ( 'POST' , $ this -> uri , array ( ) , $ data ) ; return new RoleInstance ( $ this -> version , $ payload , $ this -> solution [ 'serviceSid' ] , $ this -> solution [ 'sid' ] ) ; }
Update the RoleInstance

@param string $permission A permission this role should have.
@return RoleInstance Updated RoleInstance
@throws TwilioException When an HTTP error occurs.
Update the RoleInstance