< Summary

Class:Microsoft.Azure.Search.Models.IndexingSchedule
Assembly:Microsoft.Azure.Search.Service
File(s):C:\Git\azure-sdk-for-net\sdk\search\Microsoft.Azure.Search.Service\src\Generated\Models\IndexingSchedule.cs
Covered lines:9
Uncovered lines:0
Coverable lines:9
Total lines:71
Line coverage:100% (9 of 9)
Covered branches:0
Total branches:0

Metrics

MethodCyclomatic complexity Line coverage Branch coverage
.ctor()-100%100%
.ctor(...)-100%100%
get_Interval()-100%100%
get_StartTime()-100%100%
Validate()-100%100%

File(s)

C:\Git\azure-sdk-for-net\sdk\search\Microsoft.Azure.Search.Service\src\Generated\Models\IndexingSchedule.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.Search.Models
 12{
 13    using Newtonsoft.Json;
 14    using System.Linq;
 15
 16    /// <summary>
 17    /// Represents a schedule for indexer execution.
 18    /// </summary>
 19    public partial class IndexingSchedule
 20    {
 21        /// <summary>
 22        /// Initializes a new instance of the IndexingSchedule class.
 23        /// </summary>
 5224        public IndexingSchedule()
 25        {
 26            CustomInit();
 5227        }
 28
 29        /// <summary>
 30        /// Initializes a new instance of the IndexingSchedule class.
 31        /// </summary>
 32        /// <param name="interval">The interval of time between indexer
 33        /// executions.</param>
 34        /// <param name="startTime">The time when an indexer should start
 35        /// running.</param>
 4236        public IndexingSchedule(System.TimeSpan interval, System.DateTimeOffset? startTime = default(System.DateTimeOffs
 37        {
 4238            Interval = interval;
 4239            StartTime = startTime;
 40            CustomInit();
 4241        }
 42
 43        /// <summary>
 44        /// An initialization method that performs custom operations like setting defaults
 45        /// </summary>
 46        partial void CustomInit();
 47
 48        /// <summary>
 49        /// Gets or sets the interval of time between indexer executions.
 50        /// </summary>
 51        [JsonProperty(PropertyName = "interval")]
 21252        public System.TimeSpan Interval { get; set; }
 53
 54        /// <summary>
 55        /// Gets or sets the time when an indexer should start running.
 56        /// </summary>
 57        [JsonProperty(PropertyName = "startTime")]
 17258        public System.DateTimeOffset? StartTime { get; set; }
 59
 60        /// <summary>
 61        /// Validate the object.
 62        /// </summary>
 63        /// <exception cref="Rest.ValidationException">
 64        /// Thrown if validation fails
 65        /// </exception>
 66        public virtual void Validate()
 67        {
 68            //Nothing to validate
 5469        }
 70    }
 71}