/// <summary> /// Initializes a new instance of the ScaleUnit class. /// </summary> /// <param name="id">URI of the resource.</param> /// <param name="name">Name of the resource.</param> /// <param name="type">Type of resource.</param> /// <param name="location">The region where the resource is /// located.</param> /// <param name="tags">List of key-value pairs.</param> /// <param name="scaleUnitType">Type of cluster. Possible values /// include: 'Unknown', 'ComputeOnly', 'StorageOnly', /// 'HyperConverged'</param> /// <param name="logicalFaultDomain">Fault domain name of the /// cluster.</param> /// <param name="nodes">List of nodes in the server.</param> /// <param name="state">Current state of the cluster. Possible values /// include: 'Unknown', 'Creating', 'Running', 'Upgrading', /// 'Deleting'</param> /// <param name="model">Model of the servers in the cluster.</param> /// <param name="totalCapacity">Capacity information for the /// cluster.</param> /// <param name="isMultiNode">Denotes if more than one node in /// cluster.</param> public ScaleUnit(string id = default(string), string name = default(string), string type = default(string), string location = default(string), IDictionary <string, string> tags = default(IDictionary <string, string>), string scaleUnitType = default(string), int?logicalFaultDomain = default(int?), IList <string> nodes = default(IList <string>), string state = default(string), string model = default(string), ScaleUnitCapacity totalCapacity = default(ScaleUnitCapacity), bool?isMultiNode = default(bool?)) : base(id, name, type, location, tags) { ScaleUnitType = scaleUnitType; LogicalFaultDomain = logicalFaultDomain; Nodes = nodes; State = state; Model = model; TotalCapacity = totalCapacity; IsMultiNode = isMultiNode; CustomInit(); }
/// <summary> /// Initializes a new instance of the ScaleUnitNode class. /// </summary> /// <param name="id">URI of the resource.</param> /// <param name="name">Name of the resource.</param> /// <param name="type">Type of resource.</param> /// <param name="location">The region where the resource is /// located.</param> /// <param name="tags">List of key-value pairs.</param> /// <param name="scaleUnitNodeStatus">Status of the physical machine. /// Possible values include: 'Running', 'Maintenance', /// 'Stopped'</param> /// <param name="powerState">PowerState of the physical machine. /// Possible values include: 'Stopped', 'Starting', 'Running', /// 'Stopping'</param> /// <param name="bmcAddress">BMC address of the physical /// machine.</param> /// <param name="scaleUnitName">Cluster name of the physical /// machine.</param> /// <param name="scaleUnitUri">URI of the corresponding /// cluster.</param> /// <param name="canPowerOff">Value indicating whether the node can be /// powered off.</param> /// <param name="vendor">Vendor of the physical machine.</param> /// <param name="model">Model of the physical machine.</param> /// <param name="serialNumber">Serial number of the physical /// machine.</param> /// <param name="biosVersion">BIOS version of the physical /// machine.</param> /// <param name="capacity">Capacity of the physical machine.</param> public ScaleUnitNode(string id = default(string), string name = default(string), string type = default(string), string location = default(string), IDictionary <string, string> tags = default(IDictionary <string, string>), string scaleUnitNodeStatus = default(string), string powerState = default(string), string bmcAddress = default(string), string scaleUnitName = default(string), string scaleUnitUri = default(string), bool?canPowerOff = default(bool?), string vendor = default(string), string model = default(string), string serialNumber = default(string), string biosVersion = default(string), ScaleUnitCapacity capacity = default(ScaleUnitCapacity)) : base(id, name, type, location, tags) { ScaleUnitNodeStatus = scaleUnitNodeStatus; PowerState = powerState; BmcAddress = bmcAddress; ScaleUnitName = scaleUnitName; ScaleUnitUri = scaleUnitUri; CanPowerOff = canPowerOff; Vendor = vendor; Model = model; SerialNumber = serialNumber; BiosVersion = biosVersion; Capacity = capacity; CustomInit(); }