# glance.domain package

## Submodules

- glance.domain.proxy module
  - `Helper`
    - `Helper.proxy()`
    - `Helper.unproxy()`
  - `Image`
    - `Image.checksum`
    - `Image.container_format`
    - `Image.created_at`
    - `Image.deactivate()`
    - `Image.delete()`
    - `Image.disk_format`
    - `Image.extra_properties`
    - `Image.get_data()`
    - `Image.image_id`
    - `Image.locations`
    - `Image.member`
    - `Image.min_disk`
    - `Image.min_ram`
    - `Image.name`
    - `Image.os_hash_algo`
    - `Image.os_hash_value`
    - `Image.os_hidden`
    - `Image.owner`
    - `Image.protected`
    - `Image.reactivate()`
    - `Image.set_data()`
    - `Image.size`
    - `Image.status`
    - `Image.tags`
    - `Image.updated_at`
    - `Image.virtual_size`
    - `Image.visibility`
  - `ImageFactory`
    - `ImageFactory.new_image()`
  - `ImageMember`
    - `ImageMember.created_at`
    - `ImageMember.id`
    - `ImageMember.image_id`
    - `ImageMember.member_id`
    - `ImageMember.status`
    - `ImageMember.updated_at`
  - `ImageMembershipFactory`
    - `ImageMembershipFactory.new_image_member()`
  - `MemberRepo`
    - `MemberRepo.add()`
    - `MemberRepo.get()`
    - `MemberRepo.list()`
    - `MemberRepo.remove()`
    - `MemberRepo.save()`
  - `MetadefNamespace`
    - `MetadefNamespace.created_at`
    - `MetadefNamespace.delete()`
    - `MetadefNamespace.description`
    - `MetadefNamespace.display_name`
    - `MetadefNamespace.namespace`
    - `MetadefNamespace.namespace_id`
    - `MetadefNamespace.owner`
    - `MetadefNamespace.protected`
    - `MetadefNamespace.updated_at`
    - `MetadefNamespace.visibility`
  - `MetadefNamespaceFactory`
    - `MetadefNamespaceFactory.new_namespace()`
  - `MetadefNamespaceRepo`
    - `MetadefNamespaceRepo.add()`
    - `MetadefNamespaceRepo.get()`
    - `MetadefNamespaceRepo.list()`
    - `MetadefNamespaceRepo.remove()`
    - `MetadefNamespaceRepo.remove_objects()`
    - `MetadefNamespaceRepo.remove_properties()`
    - `MetadefNamespaceRepo.remove_tags()`
    - `MetadefNamespaceRepo.save()`
  - `MetadefObject`
    - `MetadefObject.created_at`
    - `MetadefObject.delete()`
    - `MetadefObject.description`
    - `MetadefObject.name`
    - `MetadefObject.namespace`
    - `MetadefObject.object_id`
    - `MetadefObject.properties`
    - `MetadefObject.required`
    - `MetadefObject.updated_at`
  - `MetadefObjectFactory`
    - `MetadefObjectFactory.new_object()`
  - `MetadefObjectRepo`
    - `MetadefObjectRepo.add()`
    - `MetadefObjectRepo.get()`
    - `MetadefObjectRepo.list()`
    - `MetadefObjectRepo.remove()`
    - `MetadefObjectRepo.save()`
  - `MetadefProperty`
    - `MetadefProperty.delete()`
    - `MetadefProperty.name`
    - `MetadefProperty.namespace`
    - `MetadefProperty.property_id`
    - `MetadefProperty.schema`
  - `MetadefPropertyFactory`
    - `MetadefPropertyFactory.new_namespace_property()`
  - `MetadefPropertyRepo`
    - `MetadefPropertyRepo.add()`
    - `MetadefPropertyRepo.get()`
    - `MetadefPropertyRepo.list()`
    - `MetadefPropertyRepo.remove()`
    - `MetadefPropertyRepo.save()`
  - `MetadefResourceType`
    - `MetadefResourceType.created_at`
    - `MetadefResourceType.delete()`
    - `MetadefResourceType.name`
    - `MetadefResourceType.namespace`
    - `MetadefResourceType.prefix`
    - `MetadefResourceType.properties_target`
    - `MetadefResourceType.updated_at`
  - `MetadefResourceTypeFactory`
    - `MetadefResourceTypeFactory.new_resource_type()`
  - `MetadefResourceTypeRepo`
    - `MetadefResourceTypeRepo.add()`
    - `MetadefResourceTypeRepo.get()`
    - `MetadefResourceTypeRepo.list()`
    - `MetadefResourceTypeRepo.remove()`
  - `MetadefTag`
    - `MetadefTag.created_at`
    - `MetadefTag.delete()`
    - `MetadefTag.name`
    - `MetadefTag.namespace`
    - `MetadefTag.tag_id`
    - `MetadefTag.updated_at`
  - `MetadefTagFactory`
    - `MetadefTagFactory.new_tag()`
  - `MetadefTagRepo`
    - `MetadefTagRepo.add()`
    - `MetadefTagRepo.add_tags()`
    - `MetadefTagRepo.get()`
    - `MetadefTagRepo.list()`
    - `MetadefTagRepo.remove()`
    - `MetadefTagRepo.save()`
  - `Repo`
    - `Repo.add()`
    - `Repo.delete_property_atomic()`
    - `Repo.get()`
    - `Repo.list()`
    - `Repo.remove()`
    - `Repo.save()`
    - `Repo.set_property_atomic()`
  - `Task`
    - `Task.begin_processing()`
    - `Task.created_at`
    - `Task.expires_at`
    - `Task.fail()`
    - `Task.image_id`
    - `Task.message`
    - `Task.owner`
    - `Task.request_id`
    - `Task.result`
    - `Task.run()`
    - `Task.status`
    - `Task.succeed()`
    - `Task.task_id`
    - `Task.task_input`
    - `Task.type`
    - `Task.updated_at`
    - `Task.user_id`
  - `TaskFactory`
    - `TaskFactory.new_task()`
  - `TaskRepo`
    - `TaskRepo.add()`
    - `TaskRepo.get()`
    - `TaskRepo.remove()`
    - `TaskRepo.save()`
  - `TaskStub`
    - `TaskStub.created_at`
    - `TaskStub.expires_at`
    - `TaskStub.owner`
    - `TaskStub.status`
    - `TaskStub.task_id`
    - `TaskStub.type`
    - `TaskStub.updated_at`
  - `TaskStubRepo`
    - `TaskStubRepo.list()`

## Module contents

class glance.domain.ExtraProperties

  Bases: `MutableMapping`, `dict`

  keys() → a set-like object providing a view on D's keys

class glance.domain.Image(image_id, status, created_at, updated_at, **kwargs)

  Bases: `object`

  property container_format
  deactivate()
  delete()
  property disk_format
  get_data(*args, **kwargs)
  property min_disk
  property min_ram
  reactivate()
  set_data(data, size=None, backend=None, set_active=True)
  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

  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)

class glance.domain.ImageMemberFactory

  Bases: `object`

  new_image_member(image, member_id)

class glance.domain.ImageMembership(image_id, member_id, created_at, updated_at, id=None, status=None)

  Bases: `object`

  property status

class glance.domain.MetadefNamespace(namespace_id, namespace, display_name, description, owner, visibility, protected, created_at, updated_at)

  Bases: `object`

  delete()

class glance.domain.MetadefNamespaceFactory

  Bases: `object`

  new_namespace(namespace, owner, **kwargs)

class glance.domain.MetadefObject(namespace, object_id, name, created_at, updated_at, required, description, properties)

  Bases: `object`

  delete()

class glance.domain.MetadefObjectFactory

  Bases: `object`

  new_object(namespace, name, **kwargs)

class glance.domain.MetadefProperty(namespace, property_id, name, schema)

  Bases: `object`

  delete()

class glance.domain.MetadefPropertyFactory

  Bases: `object`

  new_namespace_property(namespace, name, schema, **kwargs)

class glance.domain.MetadefResourceType(namespace, name, prefix, properties_target, created_at, updated_at)

  Bases: `object`

  delete()

class glance.domain.MetadefResourceTypeFactory

  Bases: `object`

  new_resource_type(namespace, name, **kwargs)

class glance.domain.MetadefTag(namespace, tag_id, name, created_at, updated_at)

  Bases: `object`

  delete()

class glance.domain.MetadefTagFactory

  Bases: `object`

  new_tag(namespace, name, **kwargs)

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)

  Bases: `object`

  begin_processing()
  fail(message)
  property message
  run(executor)
  property status
  succeed(result)

class glance.domain.TaskExecutorFactory(task_repo, image_repo, image_factory, admin_repo=None)

  Bases: `object`

  eventlet_deprecation_warned = False
  new_task_executor(context)

class glance.domain.TaskFactory

  Bases: `object`

  new_task(task_type, owner, image_id, user_id, request_id, task_input=None, **kwargs)

class glance.domain.TaskStub(task_id, task_type, status, owner, expires_at, created_at, updated_at, image_id, user_id, request_id)

  Bases: `object`

  property status

this page last updated: 2026-04-16 16:57:26

Except where otherwise noted, this document is licensed under Creative Commons Attribution 3.0 License. See all OpenStack Legal Documents.

found an error? report a bug