glance.domain package

Submodules

Module contents

class glance.domain.ExtraProperties[source]

Bases: MutableMapping, dict

keys() a set-like object providing a view on D's keys[source]
class glance.domain.Image(image_id, status, created_at, updated_at, **kwargs)[source]

Bases: object

property container_format
deactivate()[source]
delete()[source]
property disk_format
get_data(*args, **kwargs)[source]
property min_disk
property min_ram
reactivate()[source]
set_data(data, size=None, backend=None, set_active=True)[source]
property status
property tags
valid_state_targets = {'active': ('pending_delete', 'deleted', 'deactivated'), 'deactivated': ('active', 'deleted'), 'deleted': (), 'importing': ('active', 'deleted', 'queued'), 'killed': ('deleted',), 'pending_delete': ('deleted', 'active'), 'queued': ('saving', 'uploading', 'importing', 'active', 'deleted'), 'saving': ('active', 'killed', 'deleted', 'queued'), 'uploading': ('importing', 'queued', 'deleted')}
property visibility
class glance.domain.ImageFactory[source]

Bases: object

new_image(image_id=None, name=None, visibility='shared', min_disk=0, min_ram=0, protected=False, owner=None, disk_format=None, container_format=None, extra_properties=None, tags=None, os_hidden=False, **other_args)[source]
class glance.domain.ImageMemberFactory[source]

Bases: object

new_image_member(image, member_id)[source]
class glance.domain.ImageMembership(image_id, member_id, created_at, updated_at, id=None, status=None)[source]

Bases: object

property status
class glance.domain.MetadefNamespace(namespace_id, namespace, display_name, description, owner, visibility, protected, created_at, updated_at)[source]

Bases: object

delete()[source]
class glance.domain.MetadefNamespaceFactory[source]

Bases: object

new_namespace(namespace, owner, **kwargs)[source]
class glance.domain.MetadefObject(namespace, object_id, name, created_at, updated_at, required, description, properties)[source]

Bases: object

delete()[source]
class glance.domain.MetadefObjectFactory[source]

Bases: object

new_object(namespace, name, **kwargs)[source]
class glance.domain.MetadefProperty(namespace, property_id, name, schema)[source]

Bases: object

delete()[source]
class glance.domain.MetadefPropertyFactory[source]

Bases: object

new_namespace_property(namespace, name, schema, **kwargs)[source]
class glance.domain.MetadefResourceType(namespace, name, prefix, properties_target, created_at, updated_at)[source]

Bases: object

delete()[source]
class glance.domain.MetadefResourceTypeFactory[source]

Bases: object

new_resource_type(namespace, name, **kwargs)[source]
class glance.domain.MetadefTag(namespace, tag_id, name, created_at, updated_at)[source]

Bases: object

delete()[source]
class glance.domain.MetadefTagFactory[source]

Bases: object

new_tag(namespace, name, **kwargs)[source]
class glance.domain.Task(task_id, task_type, status, owner, image_id, user_id, request_id, expires_at, created_at, updated_at, task_input, result, message)[source]

Bases: object

begin_processing()[source]
fail(message)[source]
property message
run(executor)[source]
property status
succeed(result)[source]
class glance.domain.TaskExecutorFactory(task_repo, image_repo, image_factory, admin_repo=None)[source]

Bases: object

eventlet_deprecation_warned = False
new_task_executor(context)[source]
class glance.domain.TaskFactory[source]

Bases: object

new_task(task_type, owner, image_id, user_id, request_id, task_input=None, **kwargs)[source]
class glance.domain.TaskStub(task_id, task_type, status, owner, expires_at, created_at, updated_at, image_id, user_id, request_id)[source]

Bases: object

property status