class_docstr: NOTE: This class is auto generated by the swagger code generator program.
  
  Do not edit the class manually.
class_docstr_tok: ["NOTE",":","This","class","is","auto","generated","by","the","swagger","code","generator","program",".","Do","not","edit","the","class","manually","."]
docstr: Sets the role of this Collaborator.
  
  Role of the collaborator  # noqa: E501
  
  :param role: The role of this Collaborator.  # noqa: E501
  :type: str
docstr_tok: ["Sets","the","role","of","this","Collaborator",".","Role","of","the","collaborator","#","noqa",":","E501",":","param","role",":","The","role","of","this","Collaborator",".","#","noqa",":","E501",":","type",":","str"]
code: def role(self, role):
      """Sets the role of this Collaborator.
  
      Role of the collaborator  # noqa: E501
  
      :param role: The role of this Collaborator.  # noqa: E501
      :type: str
      """
      if role is None:
          raise ValueError(
              "Invalid value for `role`, must not be `None`"
          )  # noqa: E501
      allowed_values = ["reader", "writer"]  # noqa: E501
      if role not in allowed_values:
          raise ValueError(
              "Invalid value for `role` ({0}), must be one of {1}".format(  # noqa: E501
                  role, allowed_values
              )
          )
  
      self._role = role
  
file_path: kaggle-api/kaggle/models/collaborator.py
imports: import pprint
  import re
  import six
label_desc: Use image node_id 5 for calling the Collaborator obj's underlying member method code with example usage: obj.role(role) without return types