glance.domain.proxy module

class glance.domain.proxy.Helper(proxy_class=None, proxy_kwargs=None)[source]

Bases: object

proxy(obj)[source]
unproxy(obj)[source]
class glance.domain.proxy.Image(base, member_repo_proxy_class=None, member_repo_proxy_kwargs=None)[source]

Bases: object

property checksum
property container_format
property created_at
deactivate()[source]
delete()[source]
property disk_format
property extra_properties
get_data(*args, **kwargs)[source]
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()[source]
set_data(data, size=None, backend=None, set_active=True)[source]
property size
property status
property tags
property updated_at
property virtual_size
property visibility
class glance.domain.proxy.ImageFactory(base, proxy_class=None, proxy_kwargs=None)[source]

Bases: object

new_image(**kwargs)[source]
class glance.domain.proxy.ImageMember(base)[source]

Bases: object

property created_at
property id
property image_id
property member_id
property status
property updated_at
class glance.domain.proxy.ImageMembershipFactory(base, proxy_class=None, proxy_kwargs=None)[source]

Bases: object

new_image_member(image, member, **kwargs)[source]
class glance.domain.proxy.MemberRepo(image, base, member_proxy_class=None, member_proxy_kwargs=None)[source]

Bases: object

add(member)[source]
get(member_id)[source]
list(*args, **kwargs)[source]
remove(member)[source]
save(member, from_state=None)[source]
class glance.domain.proxy.MetadefNamespace(base)[source]

Bases: object

property created_at
delete()[source]
property description
property display_name
property namespace
property namespace_id
property owner
property protected
property updated_at
property visibility
class glance.domain.proxy.MetadefNamespaceFactory(base, meta_namespace_proxy_class=None, meta_namespace_proxy_kwargs=None)[source]

Bases: object

new_namespace(**kwargs)[source]
class glance.domain.proxy.MetadefNamespaceRepo(base, namespace_proxy_class=None, namespace_proxy_kwargs=None)[source]

Bases: object

add(namespace)[source]
get(namespace)[source]
list(*args, **kwargs)[source]
remove(item)[source]
remove_objects(item)[source]
remove_properties(item)[source]
remove_tags(item)[source]
save(item)[source]
class glance.domain.proxy.MetadefObject(base)[source]

Bases: object

property created_at
delete()[source]
property description
property name
property namespace
property object_id
property properties
property required
property updated_at
class glance.domain.proxy.MetadefObjectFactory(base, meta_object_proxy_class=None, meta_object_proxy_kwargs=None)[source]

Bases: object

new_object(**kwargs)[source]
class glance.domain.proxy.MetadefObjectRepo(base, object_proxy_class=None, object_proxy_kwargs=None)[source]

Bases: object

add(meta_object)[source]
get(namespace, object_name)[source]
list(*args, **kwargs)[source]
remove(item)[source]
save(item)[source]
class glance.domain.proxy.MetadefProperty(base)[source]

Bases: object

delete()[source]
property name
property namespace
property property_id
property schema
class glance.domain.proxy.MetadefPropertyFactory(base, property_proxy_class=None, property_proxy_kwargs=None)[source]

Bases: object

new_namespace_property(**kwargs)[source]
class glance.domain.proxy.MetadefPropertyRepo(base, property_proxy_class=None, property_proxy_kwargs=None)[source]

Bases: object

add(property)[source]
get(namespace, property_name)[source]
list(*args, **kwargs)[source]
remove(item)[source]
save(item)[source]
class glance.domain.proxy.MetadefResourceType(base)[source]

Bases: object

property created_at
delete()[source]
property name
property namespace
property prefix
property properties_target
property updated_at
class glance.domain.proxy.MetadefResourceTypeFactory(base, resource_type_proxy_class=None, resource_type_proxy_kwargs=None)[source]

Bases: object

new_resource_type(**kwargs)[source]
class glance.domain.proxy.MetadefResourceTypeRepo(base, resource_type_proxy_class=None, resource_type_proxy_kwargs=None)[source]

Bases: object

add(meta_resource_type)[source]
get(*args, **kwargs)[source]
list(*args, **kwargs)[source]
remove(item)[source]
class glance.domain.proxy.MetadefTag(base)[source]

Bases: object

property created_at
delete()[source]
property name
property namespace
property tag_id
property updated_at
class glance.domain.proxy.MetadefTagFactory(base, meta_tag_proxy_class=None, meta_tag_proxy_kwargs=None)[source]

Bases: object

new_tag(**kwargs)[source]
class glance.domain.proxy.MetadefTagRepo(base, tag_proxy_class=None, tag_proxy_kwargs=None)[source]

Bases: object

add(meta_tag)[source]
add_tags(meta_tags, can_append=False)[source]
get(namespace, name)[source]
list(*args, **kwargs)[source]
remove(item)[source]
save(item)[source]
class glance.domain.proxy.Repo(base, item_proxy_class=None, item_proxy_kwargs=None)[source]

Bases: object

add(item)[source]
delete_property_atomic(item, name, value)[source]
get(item_id)[source]
list(*args, **kwargs)[source]
remove(item)[source]
save(item, from_state=None)[source]
set_property_atomic(item, name, value)[source]
class glance.domain.proxy.Task(base)[source]

Bases: object

begin_processing()[source]
property created_at
property expires_at
fail(message)[source]
property image_id
property message
property owner
property request_id
property result
run(executor)[source]
property status
succeed(result)[source]
property task_id
property task_input
property type
property updated_at
property user_id
class glance.domain.proxy.TaskFactory(base, task_proxy_class=None, task_proxy_kwargs=None)[source]

Bases: object

new_task(**kwargs)[source]
class glance.domain.proxy.TaskRepo(base, task_proxy_class=None, task_proxy_kwargs=None)[source]

Bases: object

add(task)[source]
get(task_id)[source]
remove(task)[source]
save(task)[source]
class glance.domain.proxy.TaskStub(base)[source]

Bases: object

property created_at
property expires_at
property owner
property status
property task_id
property type
property updated_at
class glance.domain.proxy.TaskStubRepo(base, task_stub_proxy_class=None, task_stub_proxy_kwargs=None)[source]

Bases: object

list(*args, **kwargs)[source]