models.access_token_credential module

class models.access_token_credential.AccessTokenCredential(password=None, username=None, domain=None)[source]

Bases: object

Implementation of the ‘AccessTokenCredential’ model.

Specifies the Cohesity credentials required for generating an access token.

Attributes:
domain (string): Specifies the domain the user is logging in to. For a

Local user model, the domain is always LOCAL. For LDAP/AD user models, the domain will map to an LDAP connection string. A user is uniquely identified by a combination of username and domain. If this is not set, LOCAL is assumed.

password (string): Specifies the password of the Cohesity user

account.

username (string): Specifies the login name of the Cohesity user.

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.