nextpyp.client.gen.Group#

class nextpyp.client.gen.Group#

Bases: object

Represents a group of users (usually an academic lab)

Methods

__init__

deserialize

rtype:

Group

from_json

Creates a new class instance from JSON

serialize

rtype:

str

to_json

Converts this class instance into JSON

Attributes

TYPE_ID

name

a display name

id

a unique identifier

Details

__init__(name, id)#
Parameters:
  • name (str) –

  • id (str | None) –

Return type:

None

classmethod from_json(json, type_ids=None)#

Creates a new class instance from JSON

Return type:

Group

Parameters:
  • json (Dict[str, Any]) –

  • type_ids (Dict[str, str] | None) –

id: Optional[str]#

a unique identifier

name: str#

a display name

to_json()#

Converts this class instance into JSON

Return type:

Dict[str, Any]