Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
P
Python3 ArmarX
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Software
ArmarX
Python3 ArmarX
Commits
7d9b2986
Commit
7d9b2986
authored
9 months ago
by
Firat Yusuf Duran
Browse files
Options
Downloads
Patches
Plain Diff
add FluxioEnumType
parent
ccc1e433
No related branches found
No related tags found
2 merge requests
!72
Dev fluxio get types
,
!68
Fluxio preliminary release
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
armarx_skills/manager/fluxio_types.py
+19
-0
19 additions, 0 deletions
armarx_skills/manager/fluxio_types.py
with
19 additions
and
0 deletions
armarx_skills/manager/fluxio_types.py
+
19
−
0
View file @
7d9b2986
...
...
@@ -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
)
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment