code: def activate(self):
          
          if 'activate' in self.data.links:
              self.make_request(
                  ActionCommandFailed,
                  method='update',
                  etag=self.etag,
                  resource='activate')
              self._del_cache()
          else:
              raise ActionCommandFailed('Task is already activated. To '
                  'suspend, call suspend() on this task schedule')
docs: If a task is suspended, this will re-activate the task.
          Usually it's best to check for activated before running
          this::
          
              task = RefreshPolicyTask('mytask')
              for scheduler in task.task_schedule:
                  if scheduler.activated:
                      scheduler.suspend()
                  else:
                      scheduler.activate()