Sample handler

Handler to work with a sample

class luna_api.app.handlers.sample_handler.BodySampleProxyHandler(request)[source]

Body sample proxy. See spec body sample.

Resource: “/{api_version}/sample/bodies/{sample_id}”

checkTokenPermissions()[source]

Description see checkTokenPermissions().

Return type:

None

property serviceAddress: ImageStoreAddressSettings

Get a image store service address :returns: a image store service address

Return type:

ImageStoreAddressSettings

property serviceTimeouts: ServiceTimeoutsSettings

Get image store service timeouts :returns: image store service timeouts

Return type:

ServiceTimeoutsSettings

class luna_api.app.handlers.sample_handler.FaceSampleProxyHandler(request)[source]

Face sample proxy. See spec face sample.

Resource: “/{api_version}/sample/faces/{sample_id}”

checkTokenPermissions()[source]

Description see checkTokenPermissions().

Return type:

None

property serviceAddress: ImageStoreAddressSettings

Get a image store service address :returns: a image store service address

Return type:

ImageStoreAddressSettings

property serviceTimeouts: ServiceTimeoutsSettings

Get a image store service timeouts :returns: a image store service timeouts

Return type:

ServiceTimeoutsSettings

class luna_api.app.handlers.sample_handler.SampleProxyHandlerPreviousVersion(request)[source]

Proxy handler for LIS for previous version

Resource: “/{previous_version}/sample/{sample_id}”

checkTokenPermissions()[source]

Description see checkTokenPermissions().

Return type:

None