csle_rest_api.resources.linear_threshold_policies package

Submodules

csle_rest_api.resources.linear_threshold_policies.routes module

Routes and sub-resources for the /linear-threshold-policies resource

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

The /linear-threshold-policies resource.

Returns

A list of linear-threshold-policies or a list of ids of the policies or deletes the policies

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

An HTTP response with all linear theshold policies ids

csle_rest_api.resources.linear_threshold_policies.routes.linear_threshold_policy(policy_id: int) Tuple[flask.wrappers.Response, int][source]

The /linear-threshold-policies/id resource.

Parameters

policy_id – the id of the policy

Returns

The given policy or deletes the policy

Module contents