models.role_create_parameters module

class models.role_create_parameters.RoleCreateParameters(description=None, name=None, privileges=None)[source]

Bases: object

Implementation of the ‘RoleCreateParameters’ model.

Specifies the parameters required to create a new custom role such as the name, description and the privileges to assign to the role.

Attributes:

description (string): Specifies a description about the role. name (string): Specifies the name of the custom role. privileges (list of string): Array of Privileges. Specifies the list

of privileges to assign to the role.

classmethod from_dictionary(dictionary)[source]

Creates an instance of this model from a dictionary

Args:

dictionary (dictionary): A dictionary representation of the object as obtained from the deserialization of the server’s response. The keys MUST match property names in the API description.

Returns:

object: An instance of this structure class.