/
MediaJobData.cs
95 lines (89 loc) · 6.27 KB
/
MediaJobData.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// <auto-generated/>
#nullable disable
using System;
using System.Collections.Generic;
using Azure.Core;
using Azure.ResourceManager.Media.Models;
using Azure.ResourceManager.Models;
namespace Azure.ResourceManager.Media
{
/// <summary>
/// A class representing the MediaJob data model.
/// A Job resource type. The progress and state can be obtained by polling a Job or subscribing to events using EventGrid.
/// </summary>
public partial class MediaJobData : ResourceData
{
/// <summary> Initializes a new instance of MediaJobData. </summary>
public MediaJobData()
{
Outputs = new ChangeTrackingList<MediaJobOutput>();
CorrelationData = new ChangeTrackingDictionary<string, string>();
}
/// <summary> Initializes a new instance of MediaJobData. </summary>
/// <param name="id"> The id. </param>
/// <param name="name"> The name. </param>
/// <param name="resourceType"> The resourceType. </param>
/// <param name="systemData"> The systemData. </param>
/// <param name="createdOn"> The UTC date and time when the customer has created the Job, in 'YYYY-MM-DDThh:mm:ssZ' format. </param>
/// <param name="state"> The current state of the job. </param>
/// <param name="description"> Optional customer supplied description of the Job. </param>
/// <param name="input">
/// The inputs for the Job.
/// Please note <see cref="MediaJobInputBasicProperties"/> is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes.
/// The available derived classes include <see cref="MediaJobInputAsset"/>, <see cref="MediaJobInputClip"/>, <see cref="MediaJobInputHttp"/>, <see cref="MediaJobInputSequence"/> and <see cref="MediaJobInputs"/>.
/// </param>
/// <param name="lastModifiedOn"> The UTC date and time when the customer has last updated the Job, in 'YYYY-MM-DDThh:mm:ssZ' format. </param>
/// <param name="outputs">
/// The outputs for the Job.
/// Please note <see cref="MediaJobOutput"/> is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes.
/// The available derived classes include <see cref="MediaJobOutputAsset"/>.
/// </param>
/// <param name="priority"> Priority with which the job should be processed. Higher priority jobs are processed before lower priority jobs. If not set, the default is normal. </param>
/// <param name="correlationData"> Customer provided key, value pairs that will be returned in Job and JobOutput state events. </param>
/// <param name="startOn"> The UTC date and time at which this Job began processing. </param>
/// <param name="endOn"> The UTC date and time at which this Job finished processing. </param>
internal MediaJobData(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, DateTimeOffset? createdOn, MediaJobState? state, string description, MediaJobInputBasicProperties input, DateTimeOffset? lastModifiedOn, IList<MediaJobOutput> outputs, MediaJobPriority? priority, IDictionary<string, string> correlationData, DateTimeOffset? startOn, DateTimeOffset? endOn) : base(id, name, resourceType, systemData)
{
CreatedOn = createdOn;
State = state;
Description = description;
Input = input;
LastModifiedOn = lastModifiedOn;
Outputs = outputs;
Priority = priority;
CorrelationData = correlationData;
StartOn = startOn;
EndOn = endOn;
}
/// <summary> The UTC date and time when the customer has created the Job, in 'YYYY-MM-DDThh:mm:ssZ' format. </summary>
public DateTimeOffset? CreatedOn { get; }
/// <summary> The current state of the job. </summary>
public MediaJobState? State { get; }
/// <summary> Optional customer supplied description of the Job. </summary>
public string Description { get; set; }
/// <summary>
/// The inputs for the Job.
/// Please note <see cref="MediaJobInputBasicProperties"/> is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes.
/// The available derived classes include <see cref="MediaJobInputAsset"/>, <see cref="MediaJobInputClip"/>, <see cref="MediaJobInputHttp"/>, <see cref="MediaJobInputSequence"/> and <see cref="MediaJobInputs"/>.
/// </summary>
public MediaJobInputBasicProperties Input { get; set; }
/// <summary> The UTC date and time when the customer has last updated the Job, in 'YYYY-MM-DDThh:mm:ssZ' format. </summary>
public DateTimeOffset? LastModifiedOn { get; }
/// <summary>
/// The outputs for the Job.
/// Please note <see cref="MediaJobOutput"/> is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes.
/// The available derived classes include <see cref="MediaJobOutputAsset"/>.
/// </summary>
public IList<MediaJobOutput> Outputs { get; }
/// <summary> Priority with which the job should be processed. Higher priority jobs are processed before lower priority jobs. If not set, the default is normal. </summary>
public MediaJobPriority? Priority { get; set; }
/// <summary> Customer provided key, value pairs that will be returned in Job and JobOutput state events. </summary>
public IDictionary<string, string> CorrelationData { get; }
/// <summary> The UTC date and time at which this Job began processing. </summary>
public DateTimeOffset? StartOn { get; }
/// <summary> The UTC date and time at which this Job finished processing. </summary>
public DateTimeOffset? EndOn { get; }
}
}