< Summary

Class:Microsoft.Azure.Batch.OutputFileUploadOptions
Assembly:Microsoft.Azure.Batch
File(s):C:\Git\azure-sdk-for-net\sdk\batch\Microsoft.Azure.Batch\src\Generated\OutputFileUploadOptions.cs
Covered lines:14
Uncovered lines:2
Coverable lines:16
Total lines:90
Line coverage:87.5% (14 of 16)
Covered branches:0
Total branches:0

Metrics

MethodCyclomatic complexity Line coverage Branch coverage
.ctor(...)-100%100%
.ctor(...)-100%100%
get_UploadCondition()-100%100%
Microsoft.Azure.Batch.IModifiable.get_HasBeenModified()-0%100%
Microsoft.Azure.Batch.IReadOnly.get_IsReadOnly()-0%100%
Microsoft.Azure.Batch.IReadOnly.set_IsReadOnly(...)-100%100%
Microsoft.Azure.Batch.ITransportObjectProvider<Microsoft.Azure.Batch.Protocol.Models.OutputFileUploadOptions>.GetTransportObject()-100%100%

File(s)

C:\Git\azure-sdk-for-net\sdk\batch\Microsoft.Azure.Batch\src\Generated\OutputFileUploadOptions.cs

#LineLine coverage
 1// Copyright (c) Microsoft Corporation. All rights reserved.
 2// Licensed under the MIT License. See License.txt in the project root for license information.
 3//
 4// Code generated by Microsoft (R) AutoRest Code Generator.
 5// Changes may cause incorrect behavior and will be lost if the code is
 6// regenerated.
 7
 8//
 9// This file was autogenerated by a tool.
 10// Do not modify it.
 11//
 12
 13namespace Microsoft.Azure.Batch
 14{
 15    using Models = Microsoft.Azure.Batch.Protocol.Models;
 16    using System;
 17    using System.Collections.Generic;
 18    using System.Linq;
 19
 20    /// <summary>
 21    /// Details about an output file upload operation, including under what conditions to perform the upload.
 22    /// </summary>
 23    public partial class OutputFileUploadOptions : ITransportObjectProvider<Models.OutputFileUploadOptions>, IPropertyMe
 24    {
 25        #region Constructors
 26        /// <summary>
 27        /// Initializes a new instance of the <see cref="OutputFileUploadOptions"/> class.
 28        /// </summary>
 29        /// <param name='uploadCondition'>The conditions under which the file(s) should be uploaded.</param>
 89930        public OutputFileUploadOptions(
 89931            Common.OutputFileUploadCondition uploadCondition)
 32        {
 89933            this.UploadCondition = uploadCondition;
 89934        }
 35
 188136        internal OutputFileUploadOptions(Models.OutputFileUploadOptions protocolObject)
 37        {
 188138            this.UploadCondition = UtilitiesInternal.MapEnum<Models.OutputFileUploadCondition, Common.OutputFileUploadCo
 188139        }
 40
 41        #endregion Constructors
 42
 43        #region OutputFileUploadOptions
 44
 45        /// <summary>
 46        /// Gets the conditions under which the file(s) should be uploaded.
 47        /// </summary>
 367648        public Common.OutputFileUploadCondition UploadCondition { get; }
 49
 50        #endregion // OutputFileUploadOptions
 51
 52        #region IPropertyMetadata
 53
 54        bool IModifiable.HasBeenModified
 55        {
 56            //This class is compile time readonly so it cannot have been modified
 057            get { return false; }
 58        }
 59
 60        bool IReadOnly.IsReadOnly
 61        {
 062            get { return true; }
 63            set
 64            {
 65                // This class is compile time readonly already
 188266            }
 67        }
 68
 69        #endregion // IPropertyMetadata
 70
 71        #region Internal/private methods
 72
 73        /// <summary>
 74        /// Return a protocol object of the requested type.
 75        /// </summary>
 76        /// <returns>The protocol object of the requested type.</returns>
 77        Models.OutputFileUploadOptions ITransportObjectProvider<Models.OutputFileUploadOptions>.GetTransportObject()
 78        {
 89779            Models.OutputFileUploadOptions result = new Models.OutputFileUploadOptions()
 89780            {
 89781                UploadCondition = UtilitiesInternal.MapEnum<Common.OutputFileUploadCondition, Models.OutputFileUploadCon
 89782            };
 83
 89784            return result;
 85        }
 86
 87
 88        #endregion // Internal/private methods
 89    }
 90}