< Summary

Class:Microsoft.Azure.EventGrid.Models.MediaJobOutputStateChangeEventData
Assembly:Microsoft.Azure.EventGrid
File(s):C:\Git\azure-sdk-for-net\sdk\eventgrid\Microsoft.Azure.EventGrid\src\Generated\Models\MediaJobOutputStateChangeEventData.cs
Covered lines:5
Uncovered lines:8
Coverable lines:13
Total lines:90
Line coverage:38.4% (5 of 13)
Covered branches:0
Total branches:2
Branch coverage:0% (0 of 2)

Metrics

MethodCyclomatic complexity Line coverage Branch coverage
.ctor()-100%100%
.ctor(...)-0%100%
get_PreviousState()-100%100%
get_Output()-100%100%
get_JobCorrelationData()-100%100%
Validate()-0%0%

File(s)

C:\Git\azure-sdk-for-net\sdk\eventgrid\Microsoft.Azure.EventGrid\src\Generated\Models\MediaJobOutputStateChangeEventData.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.EventGrid.Models
 12{
 13    using Newtonsoft.Json;
 14    using System.Collections;
 15    using System.Collections.Generic;
 16    using System.Linq;
 17
 18    /// <summary>
 19    /// Schema of the Data property of an EventGridEvent for a
 20    /// Microsoft.Media.JobOutputStateChange event.
 21    /// </summary>
 22    public partial class MediaJobOutputStateChangeEventData
 23    {
 24        /// <summary>
 25        /// Initializes a new instance of the
 26        /// MediaJobOutputStateChangeEventData class.
 27        /// </summary>
 728        public MediaJobOutputStateChangeEventData()
 29        {
 30            CustomInit();
 731        }
 32
 33        /// <summary>
 34        /// Initializes a new instance of the
 35        /// MediaJobOutputStateChangeEventData class.
 36        /// </summary>
 37        /// <param name="previousState">The previous state of the Job. Possible
 38        /// values include: 'Canceled', 'Canceling', 'Error', 'Finished',
 39        /// 'Processing', 'Queued', 'Scheduled'</param>
 40        /// <param name="output">Gets the output.</param>
 41        /// <param name="jobCorrelationData">Gets the Job correlation
 42        /// data.</param>
 043        public MediaJobOutputStateChangeEventData(MediaJobState previousState = default(MediaJobState), MediaJobOutput o
 44        {
 045            PreviousState = previousState;
 046            Output = output;
 047            JobCorrelationData = jobCorrelationData;
 48            CustomInit();
 049        }
 50
 51        /// <summary>
 52        /// An initialization method that performs custom operations like setting defaults
 53        /// </summary>
 54        partial void CustomInit();
 55
 56        /// <summary>
 57        /// Gets the previous state of the Job. Possible values include:
 58        /// 'Canceled', 'Canceling', 'Error', 'Finished', 'Processing',
 59        /// 'Queued', 'Scheduled'
 60        /// </summary>
 61        [JsonProperty(PropertyName = "previousState")]
 2162        public MediaJobState PreviousState { get; private set; }
 63
 64        /// <summary>
 65        /// Gets the output.
 66        /// </summary>
 67        [JsonProperty(PropertyName = "output")]
 3468        public MediaJobOutput Output { get; set; }
 69
 70        /// <summary>
 71        /// Gets the Job correlation data.
 72        /// </summary>
 73        [JsonProperty(PropertyName = "jobCorrelationData")]
 1474        public IDictionary<string, string> JobCorrelationData { get; set; }
 75
 76        /// <summary>
 77        /// Validate the object.
 78        /// </summary>
 79        /// <exception cref="Rest.ValidationException">
 80        /// Thrown if validation fails
 81        /// </exception>
 82        public virtual void Validate()
 83        {
 084            if (Output != null)
 85            {
 086                Output.Validate();
 87            }
 088        }
 89    }
 90}