Coverage for fingerprint_server_sdk / models / rule_action_type.py: 91%
11 statements
« prev ^ index » next coverage.py v7.13.4, created at 2026-03-11 18:41 +0000
« prev ^ index » next coverage.py v7.13.4, created at 2026-03-11 18:41 +0000
1"""
2Server API
3Fingerprint Server API allows you to get, search, and update Events in a server environment. It can be used for data exports, decision-making, and data analysis scenarios.
4Server API is intended for server-side usage, it's not intended to be used from the client side, whether it's a browser or a mobile device.
6The version of the OpenAPI document: 4
7Contact: support@fingerprint.com
8Generated by OpenAPI Generator (https://openapi-generator.tech)
10Do not edit the class manually.
11""" # noqa: E501
13from __future__ import annotations
15import json
16from enum import Enum
18from typing_extensions import Self
21class RuleActionType(str, Enum):
22 """
23 Describes the action to take with the request.
24 """
26 """
27 allowed enum values
28 """
29 ALLOW = 'allow'
30 BLOCK = 'block'
32 @classmethod
33 def from_json(cls, json_str: str) -> Self:
34 """Create an instance of RuleActionType from a JSON string"""
35 return cls(json.loads(json_str))