- 'record_id': Parameter(int, 'An id that uniquely identifies this record'),
+ 'record_id': Parameter(int, 'An id that uniquely identifies this record', ro=True),
'hrn': Parameter(str, "Human readable name of object"),
'gid': Parameter(str, "GID of the object"),
'type': Parameter(str, "Record type"),
'hrn': Parameter(str, "Human readable name of object"),
'gid': Parameter(str, "GID of the object"),
'type': Parameter(str, "Record type"),
- 'last_updated': Parameter(int, 'Date and time of last update'),
- 'date_created': Parameter(int, 'Date and time this record was created'),
+ 'last_updated': Parameter(int, 'Date and time of last update', ro=True),
+ 'date_created': Parameter(int, 'Date and time this record was created', ro=True),
#
# @param name if !=None, assign the name of the record
# @param gid if !=None, assign the gid of the record
#
# @param name if !=None, assign the name of the record
# @param gid if !=None, assign the gid of the record
def update(self, new_dict):
if isinstance(new_dict, list):
def update(self, new_dict):
if isinstance(new_dict, list):
# self.get_gid_object().dump(8, dump_parents)
#print " pointer:", self.pointer
# self.get_gid_object().dump(8, dump_parents)
#print " pointer:", self.pointer
'key': Parameter(str, 'Public key'),
'slices': Parameter([str], 'List of slices this user belongs to'),
}
'key': Parameter(str, 'Public key'),
'slices': Parameter([str], 'List of slices this user belongs to'),
}
fields = {
'name': Parameter(str, 'Slice name'),
'url': Parameter(str, 'Slice url'),
fields = {
'name': Parameter(str, 'Slice name'),
'url': Parameter(str, 'Slice url'),
'researcher': Parameter([str], 'List of users for this slice'),
'description': Parameter([str], 'Description of this slice'),
}
'researcher': Parameter([str], 'List of users for this slice'),
'description': Parameter([str], 'Description of this slice'),
}
fields = {
'hostname': Parameter(str, 'This nodes dns name'),
'node_type': Parameter(str, 'Type of node this is'),
fields = {
'hostname': Parameter(str, 'This nodes dns name'),
'node_type': Parameter(str, 'Type of node this is'),
'latitude': Parameter(str, 'latitude'),
'longitude': Parameter(str, 'longitude'),
}
'latitude': Parameter(str, 'latitude'),
'longitude': Parameter(str, 'longitude'),
}
fields = {
'name': Parameter(str, 'Name'),
'login_base': Parameter(str, 'login base'),
fields = {
'name': Parameter(str, 'Name'),
'login_base': Parameter(str, 'login base'),
'researcher': Parameter([str], 'List of researchers'),
'PI': Parameter([str], 'List of Principal Investigators'),
}
'researcher': Parameter([str], 'List of researchers'),
'PI': Parameter([str], 'List of Principal Investigators'),
}