コード例 #1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="ServerConfigResult" /> class.
 /// </summary>
 /// <param name="Ancestors">Ancestors is an array containing the MO references of the ancestors in the object containment hierarchy. .</param>
 /// <param name="Moid">A unique identifier of this Managed Object instance.  .</param>
 /// <param name="Owners">An array of owners which represent effective ownership of this object.   .</param>
 /// <param name="Parent">The direct ancestor of this managed object in the containment hierarchy. .</param>
 /// <param name="Tags">An array of tags, which allow to add key, value meta-data to managed objects.  .</param>
 /// <param name="VersionContext">The versioning info for this managed object   .</param>
 /// <param name="ConfigStage">The current running stage of the configuration or workflow.  .</param>
 /// <param name="ConfigState">Indicates overall configuration state for applying the configuration to the end point Values  - - ok, ok-with-warning, errored  .</param>
 /// <param name="ValidationState">Indicates overall state for logical model validation Values  - - ok, ok-with-warning, errored   .</param>
 /// <param name="Profile">Profile.</param>
 /// <param name="ResultEntries">Detailed result entries for both validation &amp; configration. Each result entry can be error/warning/info messages and the context. .</param>
 public ServerConfigResult(List <MoBaseMoRef> Ancestors = default(List <MoBaseMoRef>), string Moid = default(string), List <string> Owners = default(List <string>), MoBaseMoRef Parent = default(MoBaseMoRef), List <MoTag> Tags = default(List <MoTag>), MoVersionContext VersionContext = default(MoVersionContext), string ConfigStage = default(string), string ConfigState = default(string), string ValidationState = default(string), ServerProfileRef Profile = default(ServerProfileRef), List <ServerConfigResultEntryRef> ResultEntries = default(List <ServerConfigResultEntryRef>))
 {
     this.Ancestors       = Ancestors;
     this.Moid            = Moid;
     this.Owners          = Owners;
     this.Parent          = Parent;
     this.Tags            = Tags;
     this.VersionContext  = VersionContext;
     this.ConfigStage     = ConfigStage;
     this.ConfigState     = ConfigState;
     this.ValidationState = ValidationState;
     this.Profile         = Profile;
     this.ResultEntries   = ResultEntries;
 }
コード例 #2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="ServerConfigChangeDetail" /> class.
 /// </summary>
 /// <param name="Ancestors">Ancestors is an array containing the MO references of the ancestors in the object containment hierarchy. .</param>
 /// <param name="Moid">A unique identifier of this Managed Object instance.  .</param>
 /// <param name="Owners">An array of owners which represent effective ownership of this object.   .</param>
 /// <param name="Parent">The direct ancestor of this managed object in the containment hierarchy. .</param>
 /// <param name="Tags">An array of tags, which allow to add key, value meta-data to managed objects.  .</param>
 /// <param name="VersionContext">The versioning info for this managed object   .</param>
 /// <param name="Changes">Type of the configuration change  .</param>
 /// <param name="ConfigChangeContext">Context information on the change.  .</param>
 /// <param name="Disruptions">Possible discrution the configuration change might cause  .</param>
 /// <param name="Message">Detailed description of the config change  .</param>
 /// <param name="ModStatus">Modification status of the mo in this config change    (default to ModStatusEnum.None).</param>
 /// <param name="Profile">Profile.</param>
 public ServerConfigChangeDetail(List <MoBaseMoRef> Ancestors = default(List <MoBaseMoRef>), string Moid = default(string), List <string> Owners = default(List <string>), MoBaseMoRef Parent = default(MoBaseMoRef), List <MoTag> Tags = default(List <MoTag>), MoVersionContext VersionContext = default(MoVersionContext), List <string> Changes = default(List <string>), PolicyConfigResultContext ConfigChangeContext = default(PolicyConfigResultContext), List <string> Disruptions = default(List <string>), string Message = default(string), ModStatusEnum?ModStatus = ModStatusEnum.None, ServerProfileRef Profile = default(ServerProfileRef))
 {
     this.Ancestors           = Ancestors;
     this.Moid                = Moid;
     this.Owners              = Owners;
     this.Parent              = Parent;
     this.Tags                = Tags;
     this.VersionContext      = VersionContext;
     this.Changes             = Changes;
     this.ConfigChangeContext = ConfigChangeContext;
     this.Disruptions         = Disruptions;
     this.Message             = Message;
     // use default value if no "ModStatus" provided
     if (ModStatus == null)
     {
         this.ModStatus = ModStatusEnum.None;
     }
     else
     {
         this.ModStatus = ModStatus;
     }
     this.Profile = Profile;
 }