< Summary

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

Metrics

MethodCyclomatic complexity Line coverage Branch coverage
.ctor()-100%100%
.ctor(...)-0%100%
get_Filter()-100%100%
get_Select()-100%100%
get_MaxResults()-0%100%
get_Timeout()-0%100%
get_ClientRequestId()-0%100%
get_ReturnClientRequestId()-0%100%
get_OcpDate()-0%100%

File(s)

C:\Git\azure-sdk-for-net\sdk\batch\Microsoft.Azure.Batch\src\GeneratedProtocol\Models\ComputeNodeListOptions.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 Microsoft.Rest;
 14    using Microsoft.Rest.Serialization;
 15    using Newtonsoft.Json;
 16    using System.Linq;
 17
 18    /// <summary>
 19    /// Additional parameters for List operation.
 20    /// </summary>
 21    public partial class ComputeNodeListOptions
 22    {
 23        /// <summary>
 24        /// Initializes a new instance of the ComputeNodeListOptions class.
 25        /// </summary>
 326        public ComputeNodeListOptions()
 27        {
 28            CustomInit();
 329        }
 30
 31        /// <summary>
 32        /// Initializes a new instance of the ComputeNodeListOptions class.
 33        /// </summary>
 34        /// <param name="filter">An OData $filter clause. For more information
 35        /// on constructing this filter, see
 36        /// https://docs.microsoft.com/en-us/rest/api/batchservice/odata-filters-in-batch#list-nodes-in-a-pool.</param>
 37        /// <param name="select">An OData $select clause.</param>
 38        /// <param name="maxResults">The maximum number of items to return in
 39        /// the response. A maximum of 1000 Compute Nodes can be
 40        /// returned.</param>
 41        /// <param name="timeout">The maximum time that the server can spend
 42        /// processing the request, in seconds. The default is 30
 43        /// seconds.</param>
 44        /// <param name="clientRequestId">The caller-generated request
 45        /// identity, in the form of a GUID with no decoration such as curly
 46        /// braces, e.g. 9C4D50EE-2D56-4CD3-8152-34347DC9F2B0.</param>
 47        /// <param name="returnClientRequestId">Whether the server should
 48        /// return the client-request-id in the response.</param>
 49        /// <param name="ocpDate">The time the request was issued. Client
 50        /// libraries typically set this to the current system clock time; set
 51        /// it explicitly if you are calling the REST API directly.</param>
 052        public ComputeNodeListOptions(string filter = default(string), string select = default(string), int? maxResults 
 53        {
 054            Filter = filter;
 055            Select = select;
 056            MaxResults = maxResults;
 057            Timeout = timeout;
 058            ClientRequestId = clientRequestId;
 059            ReturnClientRequestId = returnClientRequestId;
 060            OcpDate = ocpDate;
 61            CustomInit();
 062        }
 63
 64        /// <summary>
 65        /// An initialization method that performs custom operations like setting defaults
 66        /// </summary>
 67        partial void CustomInit();
 68
 69        /// <summary>
 70        /// Gets or sets an OData $filter clause. For more information on
 71        /// constructing this filter, see
 72        /// https://docs.microsoft.com/en-us/rest/api/batchservice/odata-filters-in-batch#list-nodes-in-a-pool.
 73        /// </summary>
 74        [Newtonsoft.Json.JsonIgnore]
 275        public string Filter { get; set; }
 76
 77        /// <summary>
 78        /// Gets or sets an OData $select clause.
 79        /// </summary>
 80        [Newtonsoft.Json.JsonIgnore]
 281        public string Select { get; set; }
 82
 83        /// <summary>
 84        /// Gets or sets the maximum number of items to return in the response.
 85        /// A maximum of 1000 Compute Nodes can be returned.
 86        /// </summary>
 87        [Newtonsoft.Json.JsonIgnore]
 088        public int? MaxResults { get; set; }
 89
 90        /// <summary>
 91        /// Gets or sets the maximum time that the server can spend processing
 92        /// the request, in seconds. The default is 30 seconds.
 93        /// </summary>
 94        [Newtonsoft.Json.JsonIgnore]
 095        public int? Timeout { get; set; }
 96
 97        /// <summary>
 98        /// Gets or sets the caller-generated request identity, in the form of
 99        /// a GUID with no decoration such as curly braces, e.g.
 100        /// 9C4D50EE-2D56-4CD3-8152-34347DC9F2B0.
 101        /// </summary>
 102        [Newtonsoft.Json.JsonIgnore]
 0103        public System.Guid? ClientRequestId { get; set; }
 104
 105        /// <summary>
 106        /// Gets or sets whether the server should return the client-request-id
 107        /// in the response.
 108        /// </summary>
 109        [Newtonsoft.Json.JsonIgnore]
 0110        public bool? ReturnClientRequestId { get; set; }
 111
 112        /// <summary>
 113        /// Gets or sets the time the request was issued. Client libraries
 114        /// typically set this to the current system clock time; set it
 115        /// explicitly if you are calling the REST API directly.
 116        /// </summary>
 117        [JsonConverter(typeof(DateTimeRfc1123JsonConverter))]
 118        [Newtonsoft.Json.JsonIgnore]
 0119        public System.DateTime? OcpDate { get; set; }
 120
 121    }
 122}