< Summary

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

Metrics

MethodCyclomatic complexity Line coverage Branch coverage
.ctor()-100%100%
.ctor(...)-0%100%
get_Select()-0%100%
get_Expand()-0%100%
get_Timeout()-0%100%
get_ClientRequestId()-100%100%
get_ReturnClientRequestId()-0%100%
get_OcpDate()-0%100%
get_IfMatch()-0%100%
get_IfNoneMatch()-0%100%
get_IfModifiedSince()-0%100%
get_IfUnmodifiedSince()-0%100%

File(s)

C:\Git\azure-sdk-for-net\sdk\batch\Microsoft.Azure.Batch\src\GeneratedProtocol\Models\JobGetOptions.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 Get operation.
 20    /// </summary>
 21    public partial class JobGetOptions
 22    {
 23        /// <summary>
 24        /// Initializes a new instance of the JobGetOptions class.
 25        /// </summary>
 2926        public JobGetOptions()
 27        {
 28            CustomInit();
 2929        }
 30
 31        /// <summary>
 32        /// Initializes a new instance of the JobGetOptions class.
 33        /// </summary>
 34        /// <param name="select">An OData $select clause.</param>
 35        /// <param name="expand">An OData $expand clause.</param>
 36        /// <param name="timeout">The maximum time that the server can spend
 37        /// processing the request, in seconds. The default is 30
 38        /// seconds.</param>
 39        /// <param name="clientRequestId">The caller-generated request
 40        /// identity, in the form of a GUID with no decoration such as curly
 41        /// braces, e.g. 9C4D50EE-2D56-4CD3-8152-34347DC9F2B0.</param>
 42        /// <param name="returnClientRequestId">Whether the server should
 43        /// return the client-request-id in the response.</param>
 44        /// <param name="ocpDate">The time the request was issued. Client
 45        /// libraries typically set this to the current system clock time; set
 46        /// it explicitly if you are calling the REST API directly.</param>
 47        /// <param name="ifMatch">An ETag value associated with the version of
 48        /// the resource known to the client. The operation will be performed
 49        /// only if the resource's current ETag on the service exactly matches
 50        /// the value specified by the client.</param>
 51        /// <param name="ifNoneMatch">An ETag value associated with the version
 52        /// of the resource known to the client. The operation will be
 53        /// performed only if the resource's current ETag on the service does
 54        /// not match the value specified by the client.</param>
 55        /// <param name="ifModifiedSince">A timestamp indicating the last
 56        /// modified time of the resource known to the client. The operation
 57        /// will be performed only if the resource on the service has been
 58        /// modified since the specified time.</param>
 59        /// <param name="ifUnmodifiedSince">A timestamp indicating the last
 60        /// modified time of the resource known to the client. The operation
 61        /// will be performed only if the resource on the service has not been
 62        /// modified since the specified time.</param>
 063        public JobGetOptions(string select = default(string), string expand = default(string), int? timeout = default(in
 64        {
 065            Select = select;
 066            Expand = expand;
 067            Timeout = timeout;
 068            ClientRequestId = clientRequestId;
 069            ReturnClientRequestId = returnClientRequestId;
 070            OcpDate = ocpDate;
 071            IfMatch = ifMatch;
 072            IfNoneMatch = ifNoneMatch;
 073            IfModifiedSince = ifModifiedSince;
 074            IfUnmodifiedSince = ifUnmodifiedSince;
 75            CustomInit();
 076        }
 77
 78        /// <summary>
 79        /// An initialization method that performs custom operations like setting defaults
 80        /// </summary>
 81        partial void CustomInit();
 82
 83        /// <summary>
 84        /// Gets or sets an OData $select clause.
 85        /// </summary>
 86        [Newtonsoft.Json.JsonIgnore]
 087        public string Select { get; set; }
 88
 89        /// <summary>
 90        /// Gets or sets an OData $expand clause.
 91        /// </summary>
 92        [Newtonsoft.Json.JsonIgnore]
 093        public string Expand { get; set; }
 94
 95        /// <summary>
 96        /// Gets or sets the maximum time that the server can spend processing
 97        /// the request, in seconds. The default is 30 seconds.
 98        /// </summary>
 99        [Newtonsoft.Json.JsonIgnore]
 0100        public int? Timeout { get; set; }
 101
 102        /// <summary>
 103        /// Gets or sets the caller-generated request identity, in the form of
 104        /// a GUID with no decoration such as curly braces, e.g.
 105        /// 9C4D50EE-2D56-4CD3-8152-34347DC9F2B0.
 106        /// </summary>
 107        [Newtonsoft.Json.JsonIgnore]
 31108        public System.Guid? ClientRequestId { get; set; }
 109
 110        /// <summary>
 111        /// Gets or sets whether the server should return the client-request-id
 112        /// in the response.
 113        /// </summary>
 114        [Newtonsoft.Json.JsonIgnore]
 0115        public bool? ReturnClientRequestId { get; set; }
 116
 117        /// <summary>
 118        /// Gets or sets the time the request was issued. Client libraries
 119        /// typically set this to the current system clock time; set it
 120        /// explicitly if you are calling the REST API directly.
 121        /// </summary>
 122        [JsonConverter(typeof(DateTimeRfc1123JsonConverter))]
 123        [Newtonsoft.Json.JsonIgnore]
 0124        public System.DateTime? OcpDate { get; set; }
 125
 126        /// <summary>
 127        /// Gets or sets an ETag value associated with the version of the
 128        /// resource known to the client. The operation will be performed only
 129        /// if the resource's current ETag on the service exactly matches the
 130        /// value specified by the client.
 131        /// </summary>
 132        [Newtonsoft.Json.JsonIgnore]
 0133        public string IfMatch { get; set; }
 134
 135        /// <summary>
 136        /// Gets or sets an ETag value associated with the version of the
 137        /// resource known to the client. The operation will be performed only
 138        /// if the resource's current ETag on the service does not match the
 139        /// value specified by the client.
 140        /// </summary>
 141        [Newtonsoft.Json.JsonIgnore]
 0142        public string IfNoneMatch { get; set; }
 143
 144        /// <summary>
 145        /// Gets or sets a timestamp indicating the last modified time of the
 146        /// resource known to the client. The operation will be performed only
 147        /// if the resource on the service has been modified since the
 148        /// specified time.
 149        /// </summary>
 150        [JsonConverter(typeof(DateTimeRfc1123JsonConverter))]
 151        [Newtonsoft.Json.JsonIgnore]
 0152        public System.DateTime? IfModifiedSince { get; set; }
 153
 154        /// <summary>
 155        /// Gets or sets a timestamp indicating the last modified time of the
 156        /// resource known to the client. The operation will be performed only
 157        /// if the resource on the service has not been modified since the
 158        /// specified time.
 159        /// </summary>
 160        [JsonConverter(typeof(DateTimeRfc1123JsonConverter))]
 161        [Newtonsoft.Json.JsonIgnore]
 0162        public System.DateTime? IfUnmodifiedSince { get; set; }
 163
 164    }
 165}