File tree 1 file changed +12
-12
lines changed
1 file changed +12
-12
lines changed Original file line number Diff line number Diff line change @@ -30,17 +30,17 @@ class Datatap(AbstractResource):
30
30
# Platform API.
31
31
# TODO: Verify this with the specification
32
32
all_fields = (
33
- "self_href " ,
34
- "label_name " ,
35
- "label_description " ,
33
+ "id " ,
34
+ "name " ,
35
+ "description " ,
36
36
"type" ,
37
37
"status" ,
38
38
)
39
39
40
40
default_display_fields = [
41
- "self_href " ,
42
- "label_name " ,
43
- "label_description " ,
41
+ "id " ,
42
+ "name " ,
43
+ "description " ,
44
44
"type" ,
45
45
"status" ,
46
46
]
@@ -51,18 +51,18 @@ class Datatap(AbstractResource):
51
51
default_display_fields = all_fields
52
52
53
53
@property
54
- def label_name (self ):
55
- """@Field: from json['_embedded']['name']."""
54
+ def name (self ):
55
+ """@Field: from json['_embedded']['label'][' name']."""
56
56
try :
57
- return self .json ["_embedded" ]["name" ]
57
+ return self .json ["_embedded" ]["label" ][ " name" ]
58
58
except KeyError :
59
59
return ""
60
60
61
61
@property
62
- def label_description (self ):
63
- """@Field: from json['_embedded']['description']."""
62
+ def description (self ):
63
+ """@Field: from json['_embedded']['label'][' description']."""
64
64
try :
65
- return self .json ["_embedded" ]["description" ]
65
+ return self .json ["_embedded" ]["label" ][ " description" ]
66
66
except KeyError :
67
67
return ""
68
68
You can’t perform that action at this time.
0 commit comments