Exemple #1
0
 /// <summary>
 /// Initializes a new instance of the
 /// SoftwareUpdateConfigurationCollectionItem class.
 /// </summary>
 /// <param name="name">Name of the software update
 /// configuration.</param>
 /// <param name="id">Resource Id of the software update
 /// configuration</param>
 /// <param name="updateConfiguration">Update specific properties of the
 /// software update configuration.</param>
 /// <param name="tasks">Pre and Post Tasks defined</param>
 /// <param name="frequency">execution frequency of the schedule
 /// associated with the software update configuration. Possible values
 /// include: 'OneTime', 'Day', 'Hour', 'Week', 'Month',
 /// 'Minute'</param>
 /// <param name="startTime">the start time of the update.</param>
 /// <param name="creationTime">Creation time of the software update
 /// configuration, which only appears in the response.</param>
 /// <param name="lastModifiedTime">Last time software update
 /// configuration was modified, which only appears in the
 /// response.</param>
 /// <param name="provisioningState">Provisioning state for the software
 /// update configuration, which only appears in the response.</param>
 /// <param name="nextRun">ext run time of the update.</param>
 public SoftwareUpdateConfigurationCollectionItem(string name = default(string), string id = default(string), UpdateConfiguration updateConfiguration = default(UpdateConfiguration), SoftwareUpdateConfigurationTasks tasks = default(SoftwareUpdateConfigurationTasks), string frequency = default(string), System.DateTimeOffset startTime = default(System.DateTimeOffset), System.DateTimeOffset creationTime = default(System.DateTimeOffset), System.DateTimeOffset lastModifiedTime = default(System.DateTimeOffset), string provisioningState = default(string), System.DateTimeOffset?nextRun = default(System.DateTimeOffset?))
 {
     Name = name;
     Id   = id;
     UpdateConfiguration = updateConfiguration;
     Tasks             = tasks;
     Frequency         = frequency;
     StartTime         = startTime;
     CreationTime      = creationTime;
     LastModifiedTime  = lastModifiedTime;
     ProvisioningState = provisioningState;
     NextRun           = nextRun;
     CustomInit();
 }
 /// <summary>
 /// Validate the object.
 /// </summary>
 /// <exception cref="ValidationException">
 /// Thrown if validation fails
 /// </exception>
 public virtual void Validate()
 {
     if (UpdateConfiguration == null)
     {
         throw new ValidationException(ValidationRules.CannotBeNull, "UpdateConfiguration");
     }
     if (ScheduleInfo == null)
     {
         throw new ValidationException(ValidationRules.CannotBeNull, "ScheduleInfo");
     }
     if (UpdateConfiguration != null)
     {
         UpdateConfiguration.Validate();
     }
 }
 /// <summary>
 /// Initializes a new instance of the SoftwareUpdateConfiguration
 /// class.
 /// </summary>
 /// <param name="updateConfiguration">update specific properties for
 /// the Software update configuration</param>
 /// <param name="scheduleInfo">Schedule information for the Software
 /// update configuration</param>
 /// <param name="name">Resource name.</param>
 /// <param name="id">Resource Id.</param>
 /// <param name="type">Resource type</param>
 /// <param name="provisioningState">Provisioning state for the software
 /// update configuration, which only appears in the response.</param>
 /// <param name="error">Details of provisioning error</param>
 /// <param name="creationTime">Creation time of the resource, which
 /// only appears in the response.</param>
 /// <param name="createdBy">CreatedBy property, which only appears in
 /// the response.</param>
 /// <param name="lastModifiedTime">Last time resource was modified,
 /// which only appears in the response.</param>
 /// <param name="lastModifiedBy">LastModifiedBy property, which only
 /// appears in the response.</param>
 /// <param name="tasks">Tasks information for the Software update
 /// configuration.</param>
 public SoftwareUpdateConfiguration(UpdateConfiguration updateConfiguration, ScheduleProperties scheduleInfo, string name = default(string), string id = default(string), string type = default(string), string provisioningState = default(string), ErrorResponse error = default(ErrorResponse), System.DateTimeOffset creationTime = default(System.DateTimeOffset), string createdBy = default(string), System.DateTimeOffset lastModifiedTime = default(System.DateTimeOffset), string lastModifiedBy = default(string), SoftwareUpdateConfigurationTasks tasks = default(SoftwareUpdateConfigurationTasks))
 {
     Name = name;
     Id   = id;
     Type = type;
     UpdateConfiguration = updateConfiguration;
     ScheduleInfo        = scheduleInfo;
     ProvisioningState   = provisioningState;
     Error            = error;
     CreationTime     = creationTime;
     CreatedBy        = createdBy;
     LastModifiedTime = lastModifiedTime;
     LastModifiedBy   = lastModifiedBy;
     Tasks            = tasks;
     CustomInit();
 }