mixcoatl/infrastructure/machine_image.py
def update(self, **kwargs):
        """Updates meta-data for an image.

        :param description: The description of an image.
        :type description: str.
        :param name: The name of an image.
        :type name: str.
        :param label: The label of an image.
        :type label: str.
        :returns: True if successful or an error message if fails.
        """
        payload = {'describeImage': [{}]}

        if 'description' in kwargs:
            payload['describeImage'][0]['description'] = kwargs['description']
        if 'name' in kwargs:
            payload['describeImage'][0]['name'] = kwargs['name']
        if 'label' in kwargs:
            payload['describeImage'][0]['label'] = kwargs['label']

        p = self.PATH + "/" + str(self.machine_image_id)
        return self.put(p, data=json.dumps(payload))
Updates meta-data for an image.

        :param description: The description of an image.
        :type description: str.
        :param name: The name of an image.
        :type name: str.
        :param label: The label of an image.
        :type label: str.
        :returns: True if successful or an error message if fails.
        
Updates meta-data for an image.
Updates meta - data for an image .
def update(self, **kwargs):
        payload = {'describeImage': [{}]}
        if 'description' in kwargs:
            payload['describeImage'][0]['description'] = kwargs['description']
        if 'name' in kwargs:
            payload['describeImage'][0]['name'] = kwargs['name']
        if 'label' in kwargs:
            payload['describeImage'][0]['label'] = kwargs['label']
        p = self.PATH + "/" + str(self.machine_image_id)
        return self.put(p, data=json.dumps(payload))
def update ( self , ** kwargs ) : payload = { 'describeImage' : [ { } ] } if 'description' in kwargs : payload [ 'describeImage' ] [ 0 ] [ 'description' ] = kwargs [ 'description' ] if 'name' in kwargs : payload [ 'describeImage' ] [ 0 ] [ 'name' ] = kwargs [ 'name' ] if 'label' in kwargs : payload [ 'describeImage' ] [ 0 ] [ 'label' ] = kwargs [ 'label' ] p = self . PATH + "/" + str ( self . machine_image_id ) return self . put ( p , data = json . dumps ( payload ) )
Updates meta-data for an image.
Updates meta - data for an image .
"""Updates meta-data for an image.

        :param description: The description of an image.
        :type description: str.
        :param name: The name of an image.
        :type name: str.
        :param label: The label of an image.
        :type label: str.
        :returns: True if successful or an error message if fails.
        """
True if successful or an error message if fails.
True if successful or an error message if fails .
self
description
The description of an image.
The description of an image .
name
The name of an image.
The name of an image .
label
The label of an image.
The label of an image .