cfxdb.mrealm.permission

Classes

Permission

Role permission database object.

Module Contents

class Permission(oid: uuid.UUID | None = None, label: str | None = None, description: str | None = None, tags: List[str] | None = None, role_oid: uuid.UUID | None = None, uri: str | None = None, uri_check_level: int | None = None, match: int | None = None, allow_call: bool | None = None, allow_register: bool | None = None, allow_publish: bool | None = None, allow_subscribe: bool | None = None, disclose_caller: bool | None = None, disclose_publisher: bool | None = None, cache: bool | None = None, created: numpy.datetime64 | None = None, owner: uuid.UUID | None = None, _unknown=None)[source]

Bases: cfxdb.common.ConfigurationElement

Role permission database object.

MATCH_TYPES_FROMSTR[source]
MATCH_TYPES_TOSTR[source]
MATCH_TYPE_EXACT: int = 1[source]
MATCH_TYPE_NONE: int = 0[source]
MATCH_TYPE_PREFIX: int = 2[source]
MATCH_TYPE_WILDCARD: int = 3[source]
URI_CHECK_LEVELS_FROMSTR[source]
URI_CHECK_LEVELS_TOSTR[source]
URI_CHECK_LEVEL_LOOSE: int = 2[source]
URI_CHECK_LEVEL_NONE: int = 0[source]
URI_CHECK_LEVEL_STRICT: int = 1[source]
__eq__(other)[source]
__ne__(other)[source]
__str__()[source]
_unknown = None[source]
allow_call = None[source]
allow_publish = None[source]
allow_register = None[source]
allow_subscribe = None[source]
cache = None[source]
copy(other, overwrite=False)[source]

Copy over other object.

Parameters:

other (instance of ManagementRealm) – Other permission to copy data from.

Returns:

created = None[source]
disclose_caller = None[source]
disclose_publisher = None[source]
marshal()[source]

Marshal this object to a generic host language object.

Returns:

dict

match = None[source]
owner = None[source]
static parse(data)[source]

Parse generic host language object into an object of this class.

Parameters:

data (dict) – Generic host language object

Returns:

instance of ManagementRealm

role_oid = None[source]
uri = None[source]
uri_check_level = None[source]