GeoIP Policy Serializer
| 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] |
| asns | List[int] | [optional] | |
| countries | List[CountryCodeEnum] | ||
| countries_obj | List[GeoIPPolicyCountriesObjInner] | [readonly] | |
| check_history_distance | bool | [optional] | |
| history_max_distance_km | int | [optional] | |
| distance_tolerance_km | int | [optional] | |
| history_login_count | int | [optional] | |
| check_impossible_travel | bool | [optional] | |
| impossible_tolerance_km | int | [optional] |
from authentik_client.models.geo_ip_policy import GeoIPPolicy
# TODO update the JSON string below
json = "{}"
# create an instance of GeoIPPolicy from a JSON string
geo_ip_policy_instance = GeoIPPolicy.from_json(json)
# print the JSON string representation of the object
print(GeoIPPolicy.to_json())
# convert the object into a dict
geo_ip_policy_dict = geo_ip_policy_instance.to_dict()
# create an instance of GeoIPPolicy from a dict
geo_ip_policy_from_dict = GeoIPPolicy.from_dict(geo_ip_policy_dict)