def ex_edit_image(self, **kwargs):

        image = kwargs['image']
        public = kwargs['public']

        params = {'id': image.id,
                'isPublic': str(public).lower()}

        if 'ex_description' in kwargs:
            params['description'] = kwargs['ex_description']

        if 'name' in kwargs:
            params['friendlyName'] = kwargs['name']

        object = self.connection.request('/api/grid/image/edit',
                params=params).object

        return self._to_image(object['list'][0])
Edit metadata of a server image.
dataset/ETHPy150Open cloudkick/libcloud/libcloud/compute/drivers/gogrid.py/GoGridNodeDriver.ex_edit_image