code: def create(self, friendly_name, type, permission):
          
          data = values.of({
              'FriendlyName': friendly_name,
              'Type': type,
              'Permission': serialize.map(permission, lambda e: e),
          })
  
          payload = self._version.create(
              'POST',
              self._uri,
              data=data,
          )
  
          return RoleInstance(self._version, payload, service_sid=self._solution['service_sid'], )
docs: Create a new RoleInstance
  
          :param unicode friendly_name: A string to describe the new resource
          :param RoleInstance.RoleType type: The type of role
          :param unicode permission: A permission the role should have
  
          :returns: Newly created RoleInstance
          :rtype: twilio.rest.chat.v2.service.role.RoleInstance