Skip to content

Latest commit

 

History

History
37 lines (28 loc) · 1.37 KB

File metadata and controls

37 lines (28 loc) · 1.37 KB

Policy

Policy Serializer

Properties

Name Type Description Notes
pk UUID [readonly]
name str
execution_logging bool When this option is enabled, all executions of this policy will be logged. By default, only execution errors are logged. [optional]
component str Get object component so that we know how to edit the object [readonly]
verbose_name str Return object's verbose_name [readonly]
verbose_name_plural str Return object's plural verbose_name [readonly]
meta_model_name str Return internal model name [readonly]
bound_to int Return objects policy is bound to [readonly]

Example

from authentik_client.models.policy import Policy

# TODO update the JSON string below
json = "{}"
# create an instance of Policy from a JSON string
policy_instance = Policy.from_json(json)
# print the JSON string representation of the object
print(Policy.to_json())

# convert the object into a dict
policy_dict = policy_instance.to_dict()
# create an instance of Policy from a dict
policy_from_dict = Policy.from_dict(policy_dict)

[Back to Model list] [Back to API list] [Back to README]