cterasdk.common.object module#

class cterasdk.common.object.Device(uid, version, firmware)#

Bases: Object

class cterasdk.common.object.Object#

Bases: object

cterasdk.common.object.delete_attr(obj, path)#

Delete attribute

Parameters:
Returns:

The modified object

Return type:

cterasdk.common.object.Object

cterasdk.common.object.delete_attrs(obj, paths)#

Delete attributes

Parameters:
Returns:

The modified object

Return type:

cterasdk.common.object.Object

cterasdk.common.object.find_attr(obj, path)#

Find attribute

Parameters:
Returns:

The attribute, or None if not found

cterasdk.common.object.get_attr(obj, attr)#

Get attribute

Parameters:
Returns:

The attribute, or None if not found

cterasdk.common.object.remove_array_element(array, attr)#
cterasdk.common.object.remove_array_element_by_key(array, key, value)#
cterasdk.common.object.remove_attr(obj, attr)#

Remove attribute

Parameters: