models.access_token module

class models.access_token.AccessToken(access_token=None, privileges=None, token_type=None)[source]

Bases: object

Implementation of the ‘AccessToken’ model.

Specifies an Access Token that provides permissions for a client to access the Cohesity REST API available from a Cohesity Cluster.

Attributes:

access_token (string): Generated access token. privileges (list of string): Privileges for the user. token_type (string): Access token type.

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.