< Summary

Class:Microsoft.Azure.CognitiveServices.Vision.CustomVision.Training.Models.ProjectSettings
Assembly:Microsoft.Azure.CognitiveServices.Vision.CustomVision.Training
File(s):C:\Git\azure-sdk-for-net\sdk\cognitiveservices\Vision.CustomVision.Training\src\Generated\Models\ProjectSettings.cs
Covered lines:8
Uncovered lines:8
Coverable lines:16
Total lines:102
Line coverage:50% (8 of 16)
Covered branches:0
Total branches:0

Metrics

MethodCyclomatic complexity Line coverage Branch coverage
.ctor()-100%100%
.ctor(...)-0%100%
get_DomainId()-100%100%
get_ClassificationType()-100%100%
get_TargetExportPlatforms()-100%100%
get_UseNegativeSet()-100%100%
get_DetectionParameters()-100%100%
get_ImageProcessingSettings()-100%100%

File(s)

C:\Git\azure-sdk-for-net\sdk\cognitiveservices\Vision.CustomVision.Training\src\Generated\Models\ProjectSettings.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.CognitiveServices.Vision.CustomVision.Training.Models
 12{
 13    using Newtonsoft.Json;
 14    using System.Collections;
 15    using System.Collections.Generic;
 16    using System.Linq;
 17
 18    /// <summary>
 19    /// Represents settings associated with a project.
 20    /// </summary>
 21    public partial class ProjectSettings
 22    {
 23        /// <summary>
 24        /// Initializes a new instance of the ProjectSettings class.
 25        /// </summary>
 9026        public ProjectSettings()
 27        {
 28            CustomInit();
 9029        }
 30
 31        /// <summary>
 32        /// Initializes a new instance of the ProjectSettings class.
 33        /// </summary>
 34        /// <param name="domainId">Gets or sets the id of the Domain to use
 35        /// with this project.</param>
 36        /// <param name="classificationType">Gets or sets the classification
 37        /// type of the project. Possible values include: 'Multiclass',
 38        /// 'Multilabel'</param>
 39        /// <param name="targetExportPlatforms">A list of ExportPlatform that
 40        /// the trained model should be able to support.</param>
 41        /// <param name="useNegativeSet">Indicates if negative set is being
 42        /// used.</param>
 43        /// <param name="detectionParameters">Detection parameters in use, if
 44        /// any.</param>
 45        /// <param name="imageProcessingSettings">Gets or sets image
 46        /// preprocessing settings.</param>
 047        public ProjectSettings(System.Guid domainId = default(System.Guid), string classificationType = default(string),
 48        {
 049            DomainId = domainId;
 050            ClassificationType = classificationType;
 051            TargetExportPlatforms = targetExportPlatforms;
 052            UseNegativeSet = useNegativeSet;
 053            DetectionParameters = detectionParameters;
 054            ImageProcessingSettings = imageProcessingSettings;
 55            CustomInit();
 056        }
 57
 58        /// <summary>
 59        /// An initialization method that performs custom operations like setting defaults
 60        /// </summary>
 61        partial void CustomInit();
 62
 63        /// <summary>
 64        /// Gets or sets the id of the Domain to use with this project.
 65        /// </summary>
 66        [JsonProperty(PropertyName = "domainId")]
 10267        public System.Guid DomainId { get; set; }
 68
 69        /// <summary>
 70        /// Gets or sets the classification type of the project. Possible
 71        /// values include: 'Multiclass', 'Multilabel'
 72        /// </summary>
 73        [JsonProperty(PropertyName = "classificationType")]
 9274        public string ClassificationType { get; set; }
 75
 76        /// <summary>
 77        /// Gets or sets a list of ExportPlatform that the trained model should
 78        /// be able to support.
 79        /// </summary>
 80        [JsonProperty(PropertyName = "targetExportPlatforms")]
 18481        public IList<string> TargetExportPlatforms { get; set; }
 82
 83        /// <summary>
 84        /// Gets indicates if negative set is being used.
 85        /// </summary>
 86        [JsonProperty(PropertyName = "useNegativeSet")]
 9287        public bool? UseNegativeSet { get; private set; }
 88
 89        /// <summary>
 90        /// Gets detection parameters in use, if any.
 91        /// </summary>
 92        [JsonProperty(PropertyName = "detectionParameters")]
 493        public string DetectionParameters { get; private set; }
 94
 95        /// <summary>
 96        /// Gets or sets image preprocessing settings.
 97        /// </summary>
 98        [JsonProperty(PropertyName = "imageProcessingSettings")]
 18299        public ImageProcessingSettings ImageProcessingSettings { get; set; }
 100
 101    }
 102}