def type(self, type):
        """
        Sets the type of this WebAuthorization.
        The authorization scheme.  Usually this is \"Bearer\" but it could be other values like \"Token\" or \"Basic\" etc.

        :param type: The type of this WebAuthorization.
        :type: str
        """
        if type is None:
            raise ValueError("Invalid value for `type`, must not be `None`")
        if type is not None and len(type) > 50:
            raise ValueError("Invalid value for `type`, length must be less than or equal to `50`")
        if type is not None and not re.search('[\\x21-\\x7E \\t]*', type):
            raise ValueError("Invalid value for `type`, must be a follow pattern or equal to `/[\\x21-\\x7E \\t]*/`")

        self._type = type