/// <summary>
 /// Initializes a new instance of the JobScheduleCreateParameters
 /// class.
 /// </summary>
 /// <param name="schedule">Gets or sets the schedule.</param>
 /// <param name="runbook">Gets or sets the runbook.</param>
 /// <param name="runOn">Gets or sets the hybrid worker group that the
 /// scheduled job should run on.</param>
 /// <param name="parameters">Gets or sets a list of job
 /// properties.</param>
 public JobScheduleCreateParameters(ScheduleAssociationProperty schedule, RunbookAssociationProperty runbook, string runOn = default(string), IDictionary <string, string> parameters = default(IDictionary <string, string>))
 {
     Schedule   = schedule;
     Runbook    = runbook;
     RunOn      = runOn;
     Parameters = parameters;
     CustomInit();
 }
Ejemplo n.º 2
0
 /// <summary>
 /// Initializes a new instance of the JobSchedule class.
 /// </summary>
 /// <param name="id">Gets the id of the resource.</param>
 /// <param name="name">Gets the name of the variable.</param>
 /// <param name="type">Resource type</param>
 /// <param name="jobScheduleId">Gets or sets the id of job
 /// schedule.</param>
 /// <param name="schedule">Gets or sets the schedule.</param>
 /// <param name="runbook">Gets or sets the runbook.</param>
 /// <param name="runOn">Gets or sets the hybrid worker group that the
 /// scheduled job should run on.</param>
 /// <param name="parameters">Gets or sets the parameters of the job
 /// schedule.</param>
 public JobSchedule(string id = default(string), string name = default(string), string type = default(string), string jobScheduleId = default(string), ScheduleAssociationProperty schedule = default(ScheduleAssociationProperty), RunbookAssociationProperty runbook = default(RunbookAssociationProperty), string runOn = default(string), IDictionary <string, string> parameters = default(IDictionary <string, string>))
 {
     Id            = id;
     Name          = name;
     Type          = type;
     JobScheduleId = jobScheduleId;
     Schedule      = schedule;
     Runbook       = runbook;
     RunOn         = runOn;
     Parameters    = parameters;
     CustomInit();
 }
 /// <summary>
 /// Initializes a new instance of the JobScheduleCreateProperties class
 /// with required arguments.
 /// </summary>
 public JobScheduleCreateProperties(ScheduleAssociationProperty schedule, RunbookAssociationProperty runbook)
     : this()
 {
     if (schedule == null)
     {
         throw new ArgumentNullException("schedule");
     }
     if (runbook == null)
     {
         throw new ArgumentNullException("runbook");
     }
     this.Schedule = schedule;
     this.Runbook  = runbook;
 }
 /// <summary>
 /// Initializes a new instance of the JobScheduleCreateProperties class
 /// with required arguments.
 /// </summary>
 public JobScheduleCreateProperties(ScheduleAssociationProperty schedule, RunbookAssociationProperty runbook)
     : this()
 {
     if (schedule == null)
     {
         throw new ArgumentNullException("schedule");
     }
     if (runbook == null)
     {
         throw new ArgumentNullException("runbook");
     }
     this.Schedule = schedule;
     this.Runbook = runbook;
 }