Beispiel #1
0
 /// <summary>
 /// Initializes a new instance of the Workload class.
 /// </summary>
 /// <param name="state">Possible values include: 'Disabled', 'Enabled',
 /// 'Unsupported'</param>
 /// <param name="name">The workload name</param>
 /// <param name="maxMemoryPercentageSetByUser">The memory percentage
 /// maximum Limit set by the user</param>
 public Workload(WorkloadState state, string name = default(string), int?maxMemoryPercentageSetByUser = default(int?))
 {
     Name  = name;
     State = state;
     MaxMemoryPercentageSetByUser = maxMemoryPercentageSetByUser;
     CustomInit();
 }
Beispiel #2
0
        internal static string ToSerializedValue(this WorkloadState value)
        {
            switch (value)
            {
            case WorkloadState.Disabled:
                return("Disabled");

            case WorkloadState.Enabled:
                return("Enabled");

            case WorkloadState.Unsupported:
                return("Unsupported");
            }
            return(null);
        }
 /// <summary>
 /// Initializes a new instance of the PatchWorkloadRequest class.
 /// </summary>
 /// <param name="state">Possible values include: 'Disabled', 'Enabled',
 /// 'Unsupported'</param>
 /// <param name="maxMemoryPercentageSetByUser">The memory percentage
 /// maximum Limit set by the user</param>
 public PatchWorkloadRequest(WorkloadState state, int?maxMemoryPercentageSetByUser = default(int?))
 {
     State = state;
     MaxMemoryPercentageSetByUser = maxMemoryPercentageSetByUser;
     CustomInit();
 }