internal static string ToSerializedValue(this AllocationState value)
        {
            switch (value)
            {
            case AllocationState.Steady:
                return("steady");

            case AllocationState.Resizing:
                return("resizing");
            }
            return(null);
        }
 /// <summary>
 /// Initializes a new instance of the ClusterInner class.
 /// </summary>
 /// <param name="vmSize">VM size.</param>
 /// <param name="vmPriority">VM priority.</param>
 /// <param name="scaleSettings">Scale settings.</param>
 /// <param name="virtualMachineConfiguration">VM configuration.</param>
 /// <param name="nodeSetup">Node setup.</param>
 /// <param name="userAccountSettings">User account settings.</param>
 /// <param name="subnet">Subnet.</param>
 /// <param name="creationTime">Creation time.</param>
 /// <param name="provisioningState">Provisioning state.</param>
 /// <param name="provisioningStateTransitionTime">Provisioning State
 /// Transition time.</param>
 /// <param name="allocationState">Allocation state.</param>
 /// <param name="allocationStateTransitionTime">Allocation state
 /// transition time.</param>
 /// <param name="errors">Errors.</param>
 /// <param name="currentNodeCount">Current node count.</param>
 /// <param name="nodeStateCounts">Node state counts.</param>
 public ClusterInner(string id = default(string), string name = default(string), string type = default(string), string vmSize = default(string), VmPriority?vmPriority = default(VmPriority?), ScaleSettings scaleSettings = default(ScaleSettings), VirtualMachineConfiguration virtualMachineConfiguration = default(VirtualMachineConfiguration), NodeSetup nodeSetup = default(NodeSetup), UserAccountSettings userAccountSettings = default(UserAccountSettings), ResourceId subnet = default(ResourceId), System.DateTime?creationTime = default(System.DateTime?), ProvisioningState provisioningState = default(ProvisioningState), System.DateTime?provisioningStateTransitionTime = default(System.DateTime?), AllocationState allocationState = default(AllocationState), System.DateTime?allocationStateTransitionTime = default(System.DateTime?), IList <BatchAIError> errors = default(IList <BatchAIError>), int?currentNodeCount = default(int?), NodeStateCounts nodeStateCounts = default(NodeStateCounts))
     : base(id, name, type)
 {
     VmSize        = vmSize;
     VmPriority    = vmPriority;
     ScaleSettings = scaleSettings;
     VirtualMachineConfiguration = virtualMachineConfiguration;
     NodeSetup           = nodeSetup;
     UserAccountSettings = userAccountSettings;
     Subnet            = subnet;
     CreationTime      = creationTime;
     ProvisioningState = provisioningState;
     ProvisioningStateTransitionTime = provisioningStateTransitionTime;
     AllocationState = allocationState;
     AllocationStateTransitionTime = allocationStateTransitionTime;
     Errors           = errors;
     CurrentNodeCount = currentNodeCount;
     NodeStateCounts  = nodeStateCounts;
     CustomInit();
 }