示例#1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="ServerConfigResultEntry" /> 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="CompletedTime">The completed time of the task in installer  .</param>
 /// <param name="Context">Context.</param>
 /// <param name="Message">Localized message based on the locale setting of the user&#39;s context  .</param>
 /// <param name="OwnerId">OwnerId.</param>
 /// <param name="State">Values  - - ok, ok-with-warning, errored  .</param>
 /// <param name="Type">Indicates if the result is reported during the logical model validation/resource allocation phase or the configuration applying phase. Values - - validation, config   .</param>
 /// <param name="ConfigResult">ConfigResult.</param>
 public ServerConfigResultEntry(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 CompletedTime = default(string), PolicyConfigResultContext Context = default(PolicyConfigResultContext), string Message = default(string), string OwnerId = default(string), string State = default(string), string Type = default(string), ServerConfigResultRef ConfigResult = default(ServerConfigResultRef))
 {
     this.Ancestors      = Ancestors;
     this.Moid           = Moid;
     this.Owners         = Owners;
     this.Parent         = Parent;
     this.Tags           = Tags;
     this.VersionContext = VersionContext;
     this.CompletedTime  = CompletedTime;
     this.Context        = Context;
     this.Message        = Message;
     this.OwnerId        = OwnerId;
     this.State          = State;
     this.Type           = Type;
     this.ConfigResult   = ConfigResult;
 }
示例#2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="ServerProfile" /> 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="Description">Description of the profile.  .</param>
 /// <param name="Name">Name of the profile.  .</param>
 /// <param name="SrcTemplate">SrcTemplate.</param>
 /// <param name="Type">Defines the type of the profile. Accepted value is instance.    (default to TypeEnum.Instance).</param>
 /// <param name="Action">User initiated action. Each profile type has its own supported actions. For hyperflex cluster profile, the supported actions are - - Validate, Deploy, Continue, Retry, Abort, Unassign For server profile, the support actions are - - Deploy, Unassign  .</param>
 /// <param name="ConfigContext">ConfigContext.</param>
 /// <param name="AssignedServer">The assigned physical server to the profile. A physical server can be assigned to more than one server profiles as long as it is only associated with one .</param>
 /// <param name="AssociatedServer">The associated physical server to the profile. A physical server can only be associated to one server profiles .</param>
 /// <param name="ConfigChangeDetails">Represents the configuration change details .</param>
 /// <param name="ConfigChanges">Represents the pending configuration changes at the summary level. Detail changes save in configChangeDetails as a separate object   .</param>
 /// <param name="ConfigResult">Represents the configuration (including deploy, undeploy, compliance-check) results. The errors usually are detected and reported during the apply/deploy phases .</param>
 /// <param name="Organization">Organization .</param>
 /// <param name="RunningWorkflows">The WorkflowInfo&#39;s on fusion that are running for this server Profile. .</param>
 public ServerProfile(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 Description = default(string), string Name = default(string), PolicyAbstractProfileRef SrcTemplate = default(PolicyAbstractProfileRef), TypeEnum?Type = TypeEnum.Instance, string Action = default(string), PolicyConfigContext ConfigContext = default(PolicyConfigContext), ComputeRackUnitRef AssignedServer = default(ComputeRackUnitRef), ComputeRackUnitRef AssociatedServer = default(ComputeRackUnitRef), List <ServerConfigChangeDetailRef> ConfigChangeDetails = default(List <ServerConfigChangeDetailRef>), PolicyConfigChange ConfigChanges = default(PolicyConfigChange), ServerConfigResultRef ConfigResult = default(ServerConfigResultRef), IamAccountRef Organization = default(IamAccountRef), List <WorkflowWorkflowInfoRef> RunningWorkflows = default(List <WorkflowWorkflowInfoRef>))
 {
     this.Ancestors      = Ancestors;
     this.Moid           = Moid;
     this.Owners         = Owners;
     this.Parent         = Parent;
     this.Tags           = Tags;
     this.VersionContext = VersionContext;
     this.Description    = Description;
     this.Name           = Name;
     this.SrcTemplate    = SrcTemplate;
     // use default value if no "Type" provided
     if (Type == null)
     {
         this.Type = TypeEnum.Instance;
     }
     else
     {
         this.Type = Type;
     }
     this.Action              = Action;
     this.ConfigContext       = ConfigContext;
     this.AssignedServer      = AssignedServer;
     this.AssociatedServer    = AssociatedServer;
     this.ConfigChangeDetails = ConfigChangeDetails;
     this.ConfigChanges       = ConfigChanges;
     this.ConfigResult        = ConfigResult;
     this.Organization        = Organization;
     this.RunningWorkflows    = RunningWorkflows;
 }