Descriptors handler¶
Descriptors Handler.
Module implements handler for working with descriptors.
- class luna_backport3.app.handlers.descriptors_handler.DescriptorsHandler(request)[source]¶
- Handler for working with descriptors - Resource: “/{api_version}/storage/descriptors” - async get()[source]¶
- Get info about all descriptors owned by current account, see spec_get_descriptors. - Return type:
- HTTPResponse
 
 - async post()[source]¶
- Extract (or load) descriptors and create faces, see spec_create_descriptors. - Raises:
- VLException(Error.NoFaces, 500, isCriticalError=False) if no faces found – 
- Return type:
- HTTPResponse
 
 
Descriptor handler¶
Descriptor Handler.
Module implements handler for working with descriptor.
- class luna_backport3.app.handlers.descriptor_handler.DescriptorHandler(request)[source]¶
- Handler for obtaining the descriptor info - Resource: “/{api_version}/storage/descriptors/{descriptor_id}” - async get(descriptorId)[source]¶
- Get descriptor info, see spec_get_descriptor. - Raises:
- VLException(Error.Backport3DescriptorNotFound, 404, isCriticalError=False) id descriptor not found – 
- Return type:
- HTTPResponse
 
 
Descriptor lists handler¶
Descriptor Lists Handler
Module realize Descriptor Lists handler.
- class luna_backport3.app.handlers.descriptor_lists_handler.DescriptorListsHandler(request)[source]¶
- Handler for resource /storage/descriptors/{descriptor_id}/linked_lists - async get(descriptorId)[source]¶
- Get get descriptor lists, see spec get descriptor lists. - Raises:
- VLException(Error.Backport3DescriptorNotFound, 404, isCriticalError=False) if descriptor not found – 
- Return type:
- HTTPResponse
 
 - async patch(descriptorId)[source]¶
- Get change descriptor lists, see spec patch descriptor lists. - Raises:
- VLException(Error.ListNotFound, 404, isCriticalError=False) if list not found – 
- VLException(Error.WrongListType, 404, isCriticalError=False) if wrong list type – 
 
- Return type:
- HTTPResponse
 
 
