csle_rest_api.resources.training_jobs package

Submodules

csle_rest_api.resources.training_jobs.routes module

Routes and sub-resources for the /training-jobs resource

csle_rest_api.resources.training_jobs.routes.training_jobs() Tuple[flask.wrappers.Response, int][source]

The /training-jobs resource.

Returns

A list of training-jobs or a list of ids of the jobs or deletes the jobs

csle_rest_api.resources.training_jobs.routes.training_jobs_ids() Tuple[flask.wrappers.Response, int][source]
Returns

An HTTP response with all training jobs ids

csle_rest_api.resources.training_jobs.routes.training_policy(job_id: int) Tuple[flask.wrappers.Response, int][source]

The /training-jobs/id resource.

Parameters

job_id – the id of the policy

Returns

The given policy or deletes the policy

Module contents