vantage6.client.subclients.store.policy.PolicySubClient

class PolicySubClient(parent)

Bases: SubClient

Subclient for the algorithm store policies.

__init__(parent)

Methods

__init__(parent)

get([public])

Get the policies of the algorithm store.

get(public=False)

Get the policies of the algorithm store.

Parameters:
  • public (bool, optional) – If True, only the public policies are returned. If False, all policies are returned.

  • field (str, optional) – Which data field to keep in the result. For instance, “field=’name’” will only return the name of the policy. Default is None.

  • fields (list[str], optional) – Which data fields to keep in the result. For instance, “fields=[‘name’, ‘id’]” will only return the name and id of the policy. Default is None.

Returns:

The policies of the algorithm store.

Return type:

list[dict]