< Summary

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

Metrics

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

File(s)

C:\Git\azure-sdk-for-net\sdk\batch\Microsoft.Azure.Batch\src\GeneratedProtocol\Models\UploadBatchServiceLogsResult.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    /// The result of uploading Batch service log files from a specific Compute
 18    /// Node.
 19    /// </summary>
 20    public partial class UploadBatchServiceLogsResult
 21    {
 22        /// <summary>
 23        /// Initializes a new instance of the UploadBatchServiceLogsResult
 24        /// class.
 25        /// </summary>
 126        public UploadBatchServiceLogsResult()
 27        {
 28            CustomInit();
 129        }
 30
 31        /// <summary>
 32        /// Initializes a new instance of the UploadBatchServiceLogsResult
 33        /// class.
 34        /// </summary>
 35        /// <param name="virtualDirectoryName">The virtual directory within
 36        /// Azure Blob Storage container to which the Batch Service log file(s)
 37        /// will be uploaded.</param>
 38        /// <param name="numberOfFilesUploaded">The number of log files which
 39        /// will be uploaded.</param>
 040        public UploadBatchServiceLogsResult(string virtualDirectoryName, int numberOfFilesUploaded)
 41        {
 042            VirtualDirectoryName = virtualDirectoryName;
 043            NumberOfFilesUploaded = numberOfFilesUploaded;
 44            CustomInit();
 045        }
 46
 47        /// <summary>
 48        /// An initialization method that performs custom operations like setting defaults
 49        /// </summary>
 50        partial void CustomInit();
 51
 52        /// <summary>
 53        /// Gets or sets the virtual directory within Azure Blob Storage
 54        /// container to which the Batch Service log file(s) will be uploaded.
 55        /// </summary>
 56        /// <remarks>
 57        /// The virtual directory name is part of the blob name for each log
 58        /// file uploaded, and it is built based poolId, nodeId and a unique
 59        /// identifier.
 60        /// </remarks>
 61        [JsonProperty(PropertyName = "virtualDirectoryName")]
 262        public string VirtualDirectoryName { get; set; }
 63
 64        /// <summary>
 65        /// Gets or sets the number of log files which will be uploaded.
 66        /// </summary>
 67        [JsonProperty(PropertyName = "numberOfFilesUploaded")]
 268        public int NumberOfFilesUploaded { get; set; }
 69
 70    }
 71}