-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathattribute_type.py
More file actions
52 lines (37 loc) · 1.76 KB
/
attribute_type.py
File metadata and controls
52 lines (37 loc) · 1.76 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
45
46
47
48
49
50
# 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.4.3
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 AttributeType(str, Enum):
"""
Enumerates the types of attribute. - ATTRIBUTE_TYPE_BOOLEAN: A boolean attribute type. - ATTRIBUTE_TYPE_BOOLEAN_ARRAY: A boolean array attribute type. - ATTRIBUTE_TYPE_STRING: A string attribute type. - ATTRIBUTE_TYPE_STRING_ARRAY: A string array attribute type. - ATTRIBUTE_TYPE_INTEGER: An integer attribute type. - ATTRIBUTE_TYPE_INTEGER_ARRAY: An integer array attribute type. - ATTRIBUTE_TYPE_DOUBLE: A double attribute type. - ATTRIBUTE_TYPE_DOUBLE_ARRAY: A double array attribute type.
"""
"""
allowed enum values
"""
ATTRIBUTE_TYPE_BOOLEAN = 'ATTRIBUTE_TYPE_BOOLEAN'
ATTRIBUTE_TYPE_BOOLEAN_ARRAY = 'ATTRIBUTE_TYPE_BOOLEAN_ARRAY'
ATTRIBUTE_TYPE_STRING = 'ATTRIBUTE_TYPE_STRING'
ATTRIBUTE_TYPE_STRING_ARRAY = 'ATTRIBUTE_TYPE_STRING_ARRAY'
ATTRIBUTE_TYPE_INTEGER = 'ATTRIBUTE_TYPE_INTEGER'
ATTRIBUTE_TYPE_INTEGER_ARRAY = 'ATTRIBUTE_TYPE_INTEGER_ARRAY'
ATTRIBUTE_TYPE_DOUBLE = 'ATTRIBUTE_TYPE_DOUBLE'
ATTRIBUTE_TYPE_DOUBLE_ARRAY = 'ATTRIBUTE_TYPE_DOUBLE_ARRAY'
@classmethod
def from_json(cls, json_str: str) -> Self:
"""Create an instance of AttributeType from a JSON string"""
return cls(json.loads(json_str))