# glance.domain package

## Submodules

- glance.domain.proxy module

## Module contents

class glance.domain.ExtraProperties

  Bases: `collections.abc.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-03-19 02:17:34

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