< Summary

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

Metrics

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

File(s)

C:\Git\azure-sdk-for-net\sdk\batch\Microsoft.Azure.Batch\src\GeneratedProtocol\Models\OutputFileUploadOptions.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    /// Details about an output file upload operation, including under what
 18    /// conditions to perform the upload.
 19    /// </summary>
 20    public partial class OutputFileUploadOptions
 21    {
 22        /// <summary>
 23        /// Initializes a new instance of the OutputFileUploadOptions class.
 24        /// </summary>
 277825        public OutputFileUploadOptions()
 26        {
 27            CustomInit();
 277828        }
 29
 30        /// <summary>
 31        /// Initializes a new instance of the OutputFileUploadOptions class.
 32        /// </summary>
 33        /// <param name="uploadCondition">The conditions under which the Task
 34        /// output file or set of files should be uploaded.</param>
 035        public OutputFileUploadOptions(OutputFileUploadCondition uploadCondition)
 36        {
 037            UploadCondition = uploadCondition;
 38            CustomInit();
 039        }
 40
 41        /// <summary>
 42        /// An initialization method that performs custom operations like setting defaults
 43        /// </summary>
 44        partial void CustomInit();
 45
 46        /// <summary>
 47        /// Gets or sets the conditions under which the Task output file or set
 48        /// of files should be uploaded.
 49        /// </summary>
 50        /// <remarks>
 51        /// The default is taskcompletion. Possible values include:
 52        /// 'taskSuccess', 'taskFailure', 'taskCompletion'
 53        /// </remarks>
 54        [JsonProperty(PropertyName = "uploadCondition")]
 653655        public OutputFileUploadCondition UploadCondition { get; set; }
 56
 57    }
 58}