Skip to content
Snippets Groups Projects
Commit 7d9b2986 authored by Firat Yusuf Duran's avatar Firat Yusuf Duran :moyai:
Browse files

add FluxioEnumType

parent ccc1e433
No related branches found
No related tags found
2 merge requests!72Dev fluxio get types,!68Fluxio preliminary release
......@@ -170,3 +170,22 @@ class FluxioObjectType(FluxioBasicType):
def add_attribute(self, name: str, type: FluxioBasicType):
self._attributes[name] = type
class FluxioEnumType(FluxioBasicType):
def __init__(
self,
name: str,
description: str = "",
type_identifier: str = FluxioTypeIdentifier.ENUM,
):
super().__init__(name, description)
self._attributes = {}
self._type_identifier = type_identifier
@property
def attributes(self):
return self._attributes
def add_attribute(self, name: str):
self._attributes[name] = len(self._attributes)
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment