# glance.api.authorization module

class glance.api.authorization.ImageFactoryProxy(image_factory, context)

  Bases: `glance.domain.proxy.ImageFactory`

  new_image(**kwargs)

class glance.api.authorization.ImageMemberFactoryProxy(image_member_factory, context)

  Bases: `glance.domain.proxy.ImageMembershipFactory`

  new_image_member(image, member_id)

class glance.api.authorization.ImageMemberProxy(image_member, context)

  Bases: `glance.domain.proxy.ImageMember`

class glance.api.authorization.ImageMemberRepoProxy(member_repo, image, context)

  Bases: `glance.domain.proxy.MemberRepo`

  add(image_member)
  get(member_id)
  list(*args, **kwargs)
  remove(image_member)
  save(image_member, from_state=None)

class glance.api.authorization.ImageProxy(image, context)

  Bases: `glance.domain.proxy.Image`

class glance.api.authorization.ImageRepoProxy(image_repo, context)

  Bases: `glance.domain.proxy.Repo`

  get(image_id)
  list(*args, **kwargs)

class glance.api.authorization.ImmutableImageProxy(base, context)

  Bases: `object`

  property checksum
  property container_format
  property created_at
  deactivate(*args, **kwargs)
  delete()
  property disk_format
  property extra_properties
  get_data(*args, **kwargs)
  property image_id
  property locations
  property member
  property min_disk
  property min_ram
  property name
  property os_hash_algo
  property os_hash_value
  property os_hidden
  property owner
  property protected
  reactivate(*args, **kwargs)
  set_data(*args, **kwargs)
  property size
  property status
  property tags
  property updated_at
  property virtual_size
  property visibility

class glance.api.authorization.ImmutableLocations(iterable=(), /)

  Bases: `list`

  append(*args, **kwargs)

    Append object to the end of the list.

  extend(*args, **kwargs)

    Extend list by appending elements from the iterable.

  forbidden(*args, **kwargs)
  insert(*args, **kwargs)

    Insert object before index.

  pop(*args, **kwargs)

    Remove and return item at index (default last).

    Raises IndexError if list is empty or index is out of range.

  remove(*args, **kwargs)

    Remove first occurrence of value.

    Raises ValueError if the value is not present.

  reverse(*args, **kwargs)

    Reverse IN PLACE.

  sort(*args, **kwargs)

    Sort the list in ascending order and return None.

    The sort is in-place (i.e. the list itself is modified) and stable (i.e. the order of two equal elements is maintained).

    If a key function is given, apply it once to each list item and sort them, ascending or descending, according to their function values.

    The reverse flag can be set to sort in descending order.

class glance.api.authorization.ImmutableMemberProxy(base)

  Bases: `object`

  property created_at
  property id
  property image_id
  property member_id
  property status
  property updated_at

class glance.api.authorization.ImmutableMetadefNamespaceProxy(base)

  Bases: `object`

  property created_at
  delete()
  property description
  property display_name
  property namespace
  property namespace_id
  property owner
  property protected
  save()
  property updated_at
  property visibility

class glance.api.authorization.ImmutableMetadefObjectProxy(base)

  Bases: `object`

  property created_at
  delete()
  property description
  property name
  property object_id
  property properties
  property required
  save()
  property updated_at

class glance.api.authorization.ImmutableMetadefPropertyProxy(base)

  Bases: `object`

  delete()
  property name
  property property_id
  save()
  property schema

class glance.api.authorization.ImmutableMetadefResourceTypeProxy(base)

  Bases: `object`

  property created_at
  delete()
  property name
  property namespace
  property prefix
  property properties_target
  property updated_at

class glance.api.authorization.ImmutableMetadefTagProxy(base)

  Bases: `object`

  property created_at
  delete()
  property name
  save()
  property tag_id
  property updated_at

class glance.api.authorization.ImmutableProperties

  Bases: `dict`

  forbidden(*args, **kwargs)
  forbidden_key(key, *args, **kwargs)
  pop(k[, d]) → v, remove specified key and return the corresponding value.

    If the key is not found, return the default if given; otherwise, raise a KeyError.

  popitem(*args, **kwargs)

    Remove and return a (key, value) pair as a 2-tuple.

    Pairs are returned in LIFO (last-in, first-out) order. Raises KeyError if the dict is empty.

  setdefault(*args, **kwargs)

    Insert key with a value of default if key is not in the dictionary.

    Return the value for key if key is in the dictionary, else default.

  update([E, ]**F) → None. Update D from dict/iterable E and F.

    If E is present and has a .keys() method, then does: for k in E: D[k] = E[k] If E is present and lacks a .keys() method, then does: for k, v in E: D[k] = v In either case, this is followed by: for k in F: D[k] = F[k]

class glance.api.authorization.ImmutableTags

  Bases: `set`

  add(*args, **kwargs)

    Add an element to a set.

    This has no effect if the element is already present.

  clear(*args, **kwargs)

    Remove all elements from this set.

  difference_update(*args, **kwargs)

    Remove all elements of another set from this set.

  forbidden(*args, **kwargs)
  intersection_update(*args, **kwargs)

    Update a set with the intersection of itself and another.

  pop(*args, **kwargs)

    Remove and return an arbitrary set element. Raises KeyError if the set is empty.

  remove(*args, **kwargs)

    Remove an element from a set; it must be a member.

    If the element is not a member, raise a KeyError.

  symmetric_difference_update(*args, **kwargs)

    Update a set with the symmetric difference of itself and another.

  update(*args, **kwargs)

    Update a set with the union of itself and others.

class glance.api.authorization.ImmutableTaskProxy(base)

  Bases: `object`

  begin_processing()
  property created_at
  property expires_at
  fail(message)
  property input
  property message
  property owner
  property result
  run(executor)
  property status
  succeed(result)
  property task_id
  property type
  property updated_at

class glance.api.authorization.ImmutableTaskStubProxy(base)

  Bases: `object`

  property created_at
  property expires_at
  property owner
  property status
  property task_id
  property type
  property updated_at

class glance.api.authorization.MetadefNamespaceFactoryProxy(meta_namespace_factory, context)

  Bases: `glance.domain.proxy.MetadefNamespaceFactory`

  new_namespace(**kwargs)

class glance.api.authorization.MetadefNamespaceProxy(namespace)

  Bases: `glance.domain.proxy.MetadefNamespace`

class glance.api.authorization.MetadefNamespaceRepoProxy(namespace_repo, context)

  Bases: `glance.domain.proxy.MetadefNamespaceRepo`

  get(namespace)
  list(*args, **kwargs)

class glance.api.authorization.MetadefObjectFactoryProxy(meta_object_factory, context)

  Bases: `glance.domain.proxy.MetadefObjectFactory`

  new_object(**kwargs)

class glance.api.authorization.MetadefObjectProxy(meta_object)

  Bases: `glance.domain.proxy.MetadefObject`

class glance.api.authorization.MetadefObjectRepoProxy(object_repo, context)

  Bases: `glance.domain.proxy.MetadefObjectRepo`

  get(namespace, object_name)
  list(*args, **kwargs)

class glance.api.authorization.MetadefPropertyFactoryProxy(namespace_property_factory, context)

  Bases: `glance.domain.proxy.MetadefPropertyFactory`

  new_namespace_property(**kwargs)

class glance.api.authorization.MetadefPropertyProxy(namespace_property)

  Bases: `glance.domain.proxy.MetadefProperty`

class glance.api.authorization.MetadefPropertyRepoProxy(namespace_property_repo, context)

  Bases: `glance.domain.proxy.MetadefPropertyRepo`

  get(namespace, object_name)
  list(*args, **kwargs)

class glance.api.authorization.MetadefResourceTypeFactoryProxy(resource_type_factory, context)

  Bases: `glance.domain.proxy.MetadefResourceTypeFactory`

  new_resource_type(**kwargs)

class glance.api.authorization.MetadefResourceTypeProxy(meta_resource_type)

  Bases: `glance.domain.proxy.MetadefResourceType`

class glance.api.authorization.MetadefResourceTypeRepoProxy(meta_resource_type_repo, context)

  Bases: `glance.domain.proxy.MetadefResourceTypeRepo`

  get(*args, **kwargs)
  list(*args, **kwargs)

class glance.api.authorization.MetadefTagFactoryProxy(meta_tag_factory, context)

  Bases: `glance.domain.proxy.MetadefTagFactory`

  new_tag(**kwargs)

class glance.api.authorization.MetadefTagProxy(base)

  Bases: `glance.domain.proxy.MetadefTag`

class glance.api.authorization.MetadefTagRepoProxy(tag_repo, context)

  Bases: `glance.domain.proxy.MetadefTagRepo`

  get(namespace, tag_name)
  list(*args, **kwargs)

class glance.api.authorization.TaskFactoryProxy(task_factory, context)

  Bases: `glance.domain.proxy.TaskFactory`

  new_task(**kwargs)

class glance.api.authorization.TaskProxy(task)

  Bases: `glance.domain.proxy.Task`

class glance.api.authorization.TaskRepoProxy(task_repo, context)

  Bases: `glance.domain.proxy.TaskRepo`

  get(task_id)

class glance.api.authorization.TaskStubRepoProxy(task_stub_repo, context)

  Bases: `glance.domain.proxy.TaskStubRepo`

  list(*args, **kwargs)

glance.api.authorization.is_image_mutable(context, image)

  Return True if the image is mutable in this context.

glance.api.authorization.is_member_mutable(context, member)

  Return True if the image is mutable in this context.

glance.api.authorization.is_meta_resource_type_mutable(context, meta_resource_type)

  Return True if the meta_resource_type is mutable in this context.

glance.api.authorization.is_namespace_mutable(context, namespace)

  Return True if the namespace is mutable in this context.

glance.api.authorization.is_namespace_property_mutable(context, namespace_property)

  Return True if the object is mutable in this context.

glance.api.authorization.is_object_mutable(context, object)

  Return True if the object is mutable in this context.

glance.api.authorization.is_tag_mutable(context, tag)

  Return True if the tag is mutable in this context.

glance.api.authorization.is_task_mutable(context, task)

  Return True if the task is mutable in this context.

glance.api.authorization.is_task_stub_mutable(context, task_stub)

  Return True if the task stub is mutable in this context.

glance.api.authorization.proxy_image(context, image, image_repo)

glance.api.authorization.proxy_member(context, member)

glance.api.authorization.proxy_meta_resource_type(context, meta_resource_type)

glance.api.authorization.proxy_namespace(context, namespace)

glance.api.authorization.proxy_namespace_property(context, namespace_property)

glance.api.authorization.proxy_object(context, object)

glance.api.authorization.proxy_tag(context, tag)

glance.api.authorization.proxy_task(context, task)

glance.api.authorization.proxy_task_stub(context, task_stub)

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