-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathcheck_result.py
More file actions
46 lines (31 loc) · 1.11 KB
/
check_result.py
File metadata and controls
46 lines (31 loc) · 1.11 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
# coding: utf-8
"""
Permify API
Permify is an open source authorization service for creating fine-grained and scalable authorization systems.
The version of the OpenAPI document: v1.6.8
Contact: hello@permify.co
Generated by OpenAPI Generator (https://openapi-generator.tech)
Do not edit the class manually.
""" # noqa: E501
from __future__ import annotations
import json
import pprint
import re # noqa: F401
from enum import Enum
try:
from typing import Self
except ImportError:
from typing_extensions import Self
class CheckResult(str, Enum):
"""
Enumerates results of a check operation. - CHECK_RESULT_ALLOWED: Represents a successful check (the check allowed the operation). - CHECK_RESULT_DENIED: Represents a failed check (the check denied the operation).
"""
"""
allowed enum values
"""
CHECK_RESULT_ALLOWED = 'CHECK_RESULT_ALLOWED'
CHECK_RESULT_DENIED = 'CHECK_RESULT_DENIED'
@classmethod
def from_json(cls, json_str: str) -> Self:
"""Create an instance of CheckResult from a JSON string"""
return cls(json.loads(json_str))