The heat.engine.clients.os.glance Module¶
-
class
heat.engine.clients.os.glance.GlanceClientPlugin(context)[source]¶ Bases:
heat.engine.clients.client_plugin.ClientPlugin-
IMAGE= 'image'¶
-
exceptions_module= [<module 'glanceclient.openstack.common.apiclient.exceptions' from '/usr/lib/python2.7/site-packages/glanceclient/openstack/common/apiclient/exceptions.pyc'>, <module 'glanceclient.exc' from '/usr/lib/python2.7/site-packages/glanceclient/exc.pyc'>]¶
-
find_image_by_name_or_id(image_identifier)[source]¶ Return the ID for the specified image name or identifier.
Parameters: image_identifier – image name or a UUID-like identifier Returns: the id of the requested :image_identifier:
-
get_image(image_identifier)[source]¶ Return the image object for the specified image name/id.
Parameters: image_identifier – image name Returns: an image object with name/id :image_identifier:
-
service_types= ['image']¶
-
-
class
heat.engine.clients.os.glance.ImageConstraint[source]¶ Bases:
heat.engine.constraints.BaseCustomConstraint-
expected_exceptions= (<class 'glanceclient.openstack.common.apiclient.exceptions.NotFound'>, <class 'glanceclient.openstack.common.apiclient.exceptions.NoUniqueMatch'>)¶
-
resource_client_name= 'glance'¶
-
resource_getter_name= 'find_image_by_name_or_id'¶
-