@classmethod
def grant_permission(cls, identifier, acl_class, user_name, principal, mask):
    api = cls.instance()
    payload = {}
    if (acl_class is not None):
        payload['aclClass'] = acl_class.upper()
    if (identifier is not None):
        payload['id'] = identifier
    if (mask is not None):
        payload['mask'] = mask
    if (principal is not None):
        payload['principal'] = principal
    if (user_name is not None):
        payload['userName'] = user_name
    data = json.dumps(payload)
    api.call('grant', data)
@classmethod
def grant_permission(cls, identifier, acl_class, user_name, principal, mask):
    api = cls.instance()
    payload = {}
    if (acl_class is not None):
        payload['aclClass'] = acl_class.upper()
    if (identifier is not None):
        payload['id'] = identifier
    if (mask is not None):
        payload['mask'] = mask
    if (principal is not None):
        payload['principal'] = principal
    if (user_name is not None):
        payload['userName'] = user_name
    data = json.dumps(payload)
    api.call('grant', data)