< Summary

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

Metrics

MethodCyclomatic complexity Line coverage Branch coverage
.ctor()-100%100%
.ctor(...)-0%100%
get_Code()-100%100%
get_Message()-100%100%
get_Values()-100%100%

File(s)

C:\Git\azure-sdk-for-net\sdk\batch\Microsoft.Azure.Batch\src\GeneratedProtocol\Models\ResizeError.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.Collections;
 15    using System.Collections.Generic;
 16    using System.Linq;
 17
 18    /// <summary>
 19    /// An error that occurred when resizing a Pool.
 20    /// </summary>
 21    public partial class ResizeError
 22    {
 23        /// <summary>
 24        /// Initializes a new instance of the ResizeError class.
 25        /// </summary>
 243526        public ResizeError()
 27        {
 28            CustomInit();
 243529        }
 30
 31        /// <summary>
 32        /// Initializes a new instance of the ResizeError class.
 33        /// </summary>
 34        /// <param name="code">An identifier for the Pool resize error. Codes
 35        /// are invariant and are intended to be consumed
 36        /// programmatically.</param>
 37        /// <param name="message">A message describing the Pool resize error,
 38        /// intended to be suitable for display in a user interface.</param>
 39        /// <param name="values">A list of additional error details related to
 40        /// the Pool resize error.</param>
 041        public ResizeError(string code = default(string), string message = default(string), IList<NameValuePair> values 
 42        {
 043            Code = code;
 044            Message = message;
 045            Values = values;
 46            CustomInit();
 047        }
 48
 49        /// <summary>
 50        /// An initialization method that performs custom operations like setting defaults
 51        /// </summary>
 52        partial void CustomInit();
 53
 54        /// <summary>
 55        /// Gets or sets an identifier for the Pool resize error. Codes are
 56        /// invariant and are intended to be consumed programmatically.
 57        /// </summary>
 58        [JsonProperty(PropertyName = "code")]
 607059        public string Code { get; set; }
 60
 61        /// <summary>
 62        /// Gets or sets a message describing the Pool resize error, intended
 63        /// to be suitable for display in a user interface.
 64        /// </summary>
 65        [JsonProperty(PropertyName = "message")]
 606666        public string Message { get; set; }
 67
 68        /// <summary>
 69        /// Gets or sets a list of additional error details related to the Pool
 70        /// resize error.
 71        /// </summary>
 72        [JsonProperty(PropertyName = "values")]
 606873        public IList<NameValuePair> Values { get; set; }
 74
 75    }
 76}