< Summary

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

Metrics

MethodCyclomatic complexity Line coverage Branch coverage
.ctor()-100%100%
.ctor(...)-0%100%
get_Timeout()-0%100%
get_ClientRequestId()-0%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\JobTerminateOptions.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 Terminate operation.
 20    /// </summary>
 21    public partial class JobTerminateOptions
 22    {
 23        /// <summary>
 24        /// Initializes a new instance of the JobTerminateOptions class.
 25        /// </summary>
 126        public JobTerminateOptions()
 27        {
 28            CustomInit();
 129        }
 30
 31        /// <summary>
 32        /// Initializes a new instance of the JobTerminateOptions class.
 33        /// </summary>
 34        /// <param name="timeout">The maximum time that the server can spend
 35        /// processing the request, in seconds. The default is 30
 36        /// seconds.</param>
 37        /// <param name="clientRequestId">The caller-generated request
 38        /// identity, in the form of a GUID with no decoration such as curly
 39        /// braces, e.g. 9C4D50EE-2D56-4CD3-8152-34347DC9F2B0.</param>
 40        /// <param name="returnClientRequestId">Whether the server should
 41        /// return the client-request-id in the response.</param>
 42        /// <param name="ocpDate">The time the request was issued. Client
 43        /// libraries typically set this to the current system clock time; set
 44        /// it explicitly if you are calling the REST API directly.</param>
 45        /// <param name="ifMatch">An ETag value associated with the version of
 46        /// the resource known to the client. The operation will be performed
 47        /// only if the resource's current ETag on the service exactly matches
 48        /// the value specified by the client.</param>
 49        /// <param name="ifNoneMatch">An ETag value associated with the version
 50        /// of the resource known to the client. The operation will be
 51        /// performed only if the resource's current ETag on the service does
 52        /// not match the value specified by the client.</param>
 53        /// <param name="ifModifiedSince">A timestamp indicating the last
 54        /// modified time of the resource known to the client. The operation
 55        /// will be performed only if the resource on the service has been
 56        /// modified since the specified time.</param>
 57        /// <param name="ifUnmodifiedSince">A timestamp indicating the last
 58        /// modified time of the resource known to the client. The operation
 59        /// will be performed only if the resource on the service has not been
 60        /// modified since the specified time.</param>
 061        public JobTerminateOptions(int? timeout = default(int?), System.Guid? clientRequestId = default(System.Guid?), b
 62        {
 063            Timeout = timeout;
 064            ClientRequestId = clientRequestId;
 065            ReturnClientRequestId = returnClientRequestId;
 066            OcpDate = ocpDate;
 067            IfMatch = ifMatch;
 068            IfNoneMatch = ifNoneMatch;
 069            IfModifiedSince = ifModifiedSince;
 070            IfUnmodifiedSince = ifUnmodifiedSince;
 71            CustomInit();
 072        }
 73
 74        /// <summary>
 75        /// An initialization method that performs custom operations like setting defaults
 76        /// </summary>
 77        partial void CustomInit();
 78
 79        /// <summary>
 80        /// Gets or sets the maximum time that the server can spend processing
 81        /// the request, in seconds. The default is 30 seconds.
 82        /// </summary>
 83        [Newtonsoft.Json.JsonIgnore]
 084        public int? Timeout { get; set; }
 85
 86        /// <summary>
 87        /// Gets or sets the caller-generated request identity, in the form of
 88        /// a GUID with no decoration such as curly braces, e.g.
 89        /// 9C4D50EE-2D56-4CD3-8152-34347DC9F2B0.
 90        /// </summary>
 91        [Newtonsoft.Json.JsonIgnore]
 092        public System.Guid? ClientRequestId { get; set; }
 93
 94        /// <summary>
 95        /// Gets or sets whether the server should return the client-request-id
 96        /// in the response.
 97        /// </summary>
 98        [Newtonsoft.Json.JsonIgnore]
 099        public bool? ReturnClientRequestId { get; set; }
 100
 101        /// <summary>
 102        /// Gets or sets the time the request was issued. Client libraries
 103        /// typically set this to the current system clock time; set it
 104        /// explicitly if you are calling the REST API directly.
 105        /// </summary>
 106        [JsonConverter(typeof(DateTimeRfc1123JsonConverter))]
 107        [Newtonsoft.Json.JsonIgnore]
 0108        public System.DateTime? OcpDate { get; set; }
 109
 110        /// <summary>
 111        /// Gets or sets an ETag value associated with the version of the
 112        /// resource known to the client. The operation will be performed only
 113        /// if the resource's current ETag on the service exactly matches the
 114        /// value specified by the client.
 115        /// </summary>
 116        [Newtonsoft.Json.JsonIgnore]
 0117        public string IfMatch { get; set; }
 118
 119        /// <summary>
 120        /// Gets or sets an ETag value associated with the version of the
 121        /// resource known to the client. The operation will be performed only
 122        /// if the resource's current ETag on the service does not match the
 123        /// value specified by the client.
 124        /// </summary>
 125        [Newtonsoft.Json.JsonIgnore]
 0126        public string IfNoneMatch { get; set; }
 127
 128        /// <summary>
 129        /// Gets or sets a timestamp indicating the last modified time of the
 130        /// resource known to the client. The operation will be performed only
 131        /// if the resource on the service has been modified since the
 132        /// specified time.
 133        /// </summary>
 134        [JsonConverter(typeof(DateTimeRfc1123JsonConverter))]
 135        [Newtonsoft.Json.JsonIgnore]
 0136        public System.DateTime? IfModifiedSince { get; set; }
 137
 138        /// <summary>
 139        /// Gets or sets a timestamp indicating the last modified time of the
 140        /// resource known to the client. The operation will be performed only
 141        /// if the resource on the service has not been modified since the
 142        /// specified time.
 143        /// </summary>
 144        [JsonConverter(typeof(DateTimeRfc1123JsonConverter))]
 145        [Newtonsoft.Json.JsonIgnore]
 0146        public System.DateTime? IfUnmodifiedSince { get; set; }
 147
 148    }
 149}