Ags.ControllerResource

Fields

Name

Type

Access

Description

access_mode

int

r/w

the access mode of permissions

group_id

str

r/w

the group id of permissions

ref_count

int

r/w

the reference count

user_id

str

r/w

the user id of permissions

Methods

class

alloc (group_id, user_id, access_mode)

class

free (controller_resource)

class

ref (controller_resource)

class

unref (controller_resource)

Details

class Ags.ControllerResource

Specifing attributes of resources.

classmethod alloc(group_id, user_id, access_mode)
Parameters:
  • group_id (str) – the group id

  • user_id (str) – the user id

  • access_mode (int) – the access mode

Returns:

the newly allocated Ags.ControllerResource-struct

Return type:

object or None

Allocated Ags.ControllerResource-struct.

New in version 3.0.0.

classmethod free(controller_resource)
Parameters:

controller_resource (object or None) – the Ags.ControllerResource-struct

Free controller_resource.

New in version 3.0.0.

classmethod ref(controller_resource)
Parameters:

controller_resource (object or None) – the Ags.ControllerResource-struct

Increase ref-count of controller_resource.

New in version 3.0.0.

classmethod unref(controller_resource)
Parameters:

controller_resource (object or None) – the Ags.ControllerResource-struct

Decrease ref-count of controller_resource and free it if ref-count drops to 0.

New in version 3.0.0.