glance.api.authorization module¶
- class glance.api.authorization.ImageProxy(image, context)[source]¶
Bases:
glance.domain.proxy.Image
- class glance.api.authorization.ImageRepoProxy(image_repo, context)[source]¶
Bases:
glance.domain.proxy.Repo
- class glance.api.authorization.ImmutableImageProxy(base, context)[source]¶
Bases:
object
- property checksum¶
- property container_format¶
- property created_at¶
- property disk_format¶
- property extra_properties¶
- 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¶
- property size¶
- property status¶
- property tags¶
- property updated_at¶
- property virtual_size¶
- property visibility¶
- class glance.api.authorization.ImmutableLocations(iterable=(), /)[source]¶
Bases:
list
- append(*args, **kwargs)¶
Append object to the end of the list.
- extend(*args, **kwargs)¶
Extend list by appending elements from the iterable.
- 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)[source]¶
Bases:
object
- property created_at¶
- property id¶
- property image_id¶
- property member_id¶
- property status¶
- property updated_at¶
- class glance.api.authorization.ImmutableMetadefNamespaceProxy(base)[source]¶
Bases:
object
- property created_at¶
- property description¶
- property display_name¶
- property namespace¶
- property namespace_id¶
- property owner¶
- property protected¶
- property updated_at¶
- property visibility¶
- class glance.api.authorization.ImmutableMetadefObjectProxy(base)[source]¶
Bases:
object
- property created_at¶
- property description¶
- property name¶
- property object_id¶
- property properties¶
- property required¶
- property updated_at¶
- class glance.api.authorization.ImmutableMetadefPropertyProxy(base)[source]¶
Bases:
object
- property name¶
- property property_id¶
- property schema¶
- class glance.api.authorization.ImmutableMetadefResourceTypeProxy(base)[source]¶
Bases:
object
- property created_at¶
- property name¶
- property namespace¶
- property prefix¶
- property properties_target¶
- property updated_at¶
- class glance.api.authorization.ImmutableMetadefTagProxy(base)[source]¶
Bases:
object
- property created_at¶
- property name¶
- property tag_id¶
- property updated_at¶
- class glance.api.authorization.ImmutableProperties[source]¶
Bases:
dict
- pop(k[, d]) → v, remove specified key and return the corresponding value.¶
If key is not found, default is returned if given, otherwise KeyError is raised
- 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[source]¶
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.
- 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)[source]¶
Bases:
object
- property created_at¶
- property expires_at¶
- property input¶
- property message¶
- property owner¶
- property result¶
- property status¶
- property task_id¶
- property type¶
- property updated_at¶
- class glance.api.authorization.ImmutableTaskStubProxy(base)[source]¶
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)[source]¶
- class glance.api.authorization.MetadefPropertyFactoryProxy(namespace_property_factory, context)[source]¶
- class glance.api.authorization.MetadefResourceTypeFactoryProxy(resource_type_factory, context)[source]¶
- class glance.api.authorization.MetadefResourceTypeRepoProxy(meta_resource_type_repo, context)[source]¶
- class glance.api.authorization.TaskProxy(task)[source]¶
Bases:
glance.domain.proxy.Task
- class glance.api.authorization.TaskRepoProxy(task_repo, context)[source]¶
Bases:
glance.domain.proxy.TaskRepo
- glance.api.authorization.is_image_mutable(context, image)[source]¶
Return True if the image is mutable in this context.
- glance.api.authorization.is_member_mutable(context, member)[source]¶
Return True if the image is mutable in this context.
- glance.api.authorization.is_meta_resource_type_mutable(context, meta_resource_type)[source]¶
Return True if the meta_resource_type is mutable in this context.
- glance.api.authorization.is_namespace_mutable(context, namespace)[source]¶
Return True if the namespace is mutable in this context.
- glance.api.authorization.is_namespace_property_mutable(context, namespace_property)[source]¶
Return True if the object is mutable in this context.
- glance.api.authorization.is_object_mutable(context, object)[source]¶
Return True if the object is mutable in this context.
- glance.api.authorization.is_tag_mutable(context, tag)[source]¶
Return True if the tag is mutable in this context.
- glance.api.authorization.is_task_mutable(context, task)[source]¶
Return True if the task is mutable in this context.