< Summary

Class:Microsoft.Azure.Batch.Protocol.Models.NodeDisableSchedulingParameter
Assembly:Microsoft.Azure.Batch
File(s):C:\Git\azure-sdk-for-net\sdk\batch\Microsoft.Azure.Batch\src\GeneratedProtocol\Models\NodeDisableSchedulingParameter.cs
Covered lines:0
Uncovered lines:6
Coverable lines:6
Total lines:60
Line coverage:0% (0 of 6)
Covered branches:0
Total branches:0

Metrics

MethodCyclomatic complexity Line coverage Branch coverage
.ctor()-0%100%
.ctor(...)-0%100%
get_NodeDisableSchedulingOption()-0%100%

File(s)

C:\Git\azure-sdk-for-net\sdk\batch\Microsoft.Azure.Batch\src\GeneratedProtocol\Models\NodeDisableSchedulingParameter.cs

#LineLine coverage
 1// <auto-generated>
 2// Copyright (c) Microsoft Corporation. All rights reserved.
 3// Licensed under the MIT License. See License.txt in the project root for
 4// license information.
 5//
 6// Code generated by Microsoft (R) AutoRest Code Generator.
 7// Changes may cause incorrect behavior and will be lost if the code is
 8// regenerated.
 9// </auto-generated>
 10
 11namespace Microsoft.Azure.Batch.Protocol.Models
 12{
 13    using Newtonsoft.Json;
 14    using System.Linq;
 15
 16    /// <summary>
 17    /// Options for disabling scheduling on a Compute Node.
 18    /// </summary>
 19    public partial class NodeDisableSchedulingParameter
 20    {
 21        /// <summary>
 22        /// Initializes a new instance of the NodeDisableSchedulingParameter
 23        /// class.
 24        /// </summary>
 025        public NodeDisableSchedulingParameter()
 26        {
 27            CustomInit();
 028        }
 29
 30        /// <summary>
 31        /// Initializes a new instance of the NodeDisableSchedulingParameter
 32        /// class.
 33        /// </summary>
 34        /// <param name="nodeDisableSchedulingOption">What to do with currently
 35        /// running Tasks when disabling Task scheduling on the Compute
 36        /// Node.</param>
 037        public NodeDisableSchedulingParameter(DisableComputeNodeSchedulingOption? nodeDisableSchedulingOption = default(
 38        {
 039            NodeDisableSchedulingOption = nodeDisableSchedulingOption;
 40            CustomInit();
 041        }
 42
 43        /// <summary>
 44        /// An initialization method that performs custom operations like setting defaults
 45        /// </summary>
 46        partial void CustomInit();
 47
 48        /// <summary>
 49        /// Gets or sets what to do with currently running Tasks when disabling
 50        /// Task scheduling on the Compute Node.
 51        /// </summary>
 52        /// <remarks>
 53        /// The default value is requeue. Possible values include: 'requeue',
 54        /// 'terminate', 'taskCompletion'
 55        /// </remarks>
 56        [JsonProperty(PropertyName = "nodeDisableSchedulingOption")]
 057        public DisableComputeNodeSchedulingOption? NodeDisableSchedulingOption { get; set; }
 58
 59    }
 60}