code: public Schedule schedule(String name, Duration iterationLength, Duration iterationGap,
                               Map<String, Object> attributes) {
          Schedule schedule = new Schedule(instance);
          schedule.setName(name);
          schedule.setIterationLength(iterationLength);
          schedule.setIterationGap(iterationGap);
          addAttributes(schedule, attributes);
          schedule.save();
          return schedule;
      }
docs: Create a new schedule entity with a name, iteration length, and iteration gap
  
  @param name            Name of the new schedule
  @param iterationLength The duration an iteration will last in this schedule
  @param iterationGap    The duration between iterations in this schedule.
  @param attributes      additional attributes for the Schedule.
  @return A newly minted Schedule that exists in the VersionOne system.