code: def set_type(self, value):
          
          if self.action == "remove" and value != "probes":
              log = "Sources field 'type' when action is remove should always be 'probes'."
              raise MalFormattedSource(log)
          self._type = value
docs: Setter for type attribute