/
AutomationScheduleData.cs
121 lines (115 loc) · 6.27 KB
/
AutomationScheduleData.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
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// <auto-generated/>
#nullable disable
using System;
using Azure.Core;
using Azure.ResourceManager.Automation.Models;
using Azure.ResourceManager.Models;
namespace Azure.ResourceManager.Automation
{
/// <summary>
/// A class representing the AutomationSchedule data model.
/// Definition of the schedule.
/// </summary>
public partial class AutomationScheduleData : ResourceData
{
/// <summary> Initializes a new instance of AutomationScheduleData. </summary>
public AutomationScheduleData()
{
}
/// <summary> Initializes a new instance of AutomationScheduleData. </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="startOn"> Gets or sets the start time of the schedule. </param>
/// <param name="startInMinutes"> Gets the start time's offset in minutes. </param>
/// <param name="expireOn"> Gets or sets the end time of the schedule. </param>
/// <param name="expireInMinutes"> Gets or sets the expiry time's offset in minutes. </param>
/// <param name="isEnabled"> Gets or sets a value indicating whether this schedule is enabled. </param>
/// <param name="nextRunOn"> Gets or sets the next run time of the schedule. </param>
/// <param name="nextRunInMinutes"> Gets or sets the next run time's offset in minutes. </param>
/// <param name="interval"> Gets or sets the interval of the schedule. </param>
/// <param name="frequency"> Gets or sets the frequency of the schedule. </param>
/// <param name="timeZone"> Gets or sets the time zone of the schedule. </param>
/// <param name="advancedSchedule"> Gets or sets the advanced schedule. </param>
/// <param name="createdOn"> Gets or sets the creation time. </param>
/// <param name="lastModifiedOn"> Gets or sets the last modified time. </param>
/// <param name="description"> Gets or sets the description. </param>
internal AutomationScheduleData(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, DateTimeOffset? startOn, double? startInMinutes, DateTimeOffset? expireOn, double? expireInMinutes, bool? isEnabled, DateTimeOffset? nextRunOn, double? nextRunInMinutes, BinaryData interval, AutomationScheduleFrequency? frequency, string timeZone, AutomationAdvancedSchedule advancedSchedule, DateTimeOffset? createdOn, DateTimeOffset? lastModifiedOn, string description) : base(id, name, resourceType, systemData)
{
StartOn = startOn;
StartInMinutes = startInMinutes;
ExpireOn = expireOn;
ExpireInMinutes = expireInMinutes;
IsEnabled = isEnabled;
NextRunOn = nextRunOn;
NextRunInMinutes = nextRunInMinutes;
Interval = interval;
Frequency = frequency;
TimeZone = timeZone;
AdvancedSchedule = advancedSchedule;
CreatedOn = createdOn;
LastModifiedOn = lastModifiedOn;
Description = description;
}
/// <summary> Gets or sets the start time of the schedule. </summary>
public DateTimeOffset? StartOn { get; set; }
/// <summary> Gets the start time's offset in minutes. </summary>
public double? StartInMinutes { get; }
/// <summary> Gets or sets the end time of the schedule. </summary>
public DateTimeOffset? ExpireOn { get; set; }
/// <summary> Gets or sets the expiry time's offset in minutes. </summary>
public double? ExpireInMinutes { get; set; }
/// <summary> Gets or sets a value indicating whether this schedule is enabled. </summary>
public bool? IsEnabled { get; set; }
/// <summary> Gets or sets the next run time of the schedule. </summary>
public DateTimeOffset? NextRunOn { get; set; }
/// <summary> Gets or sets the next run time's offset in minutes. </summary>
public double? NextRunInMinutes { get; set; }
/// <summary>
/// Gets or sets the interval of the schedule.
/// <para>
/// To assign an object to this property use <see cref="BinaryData.FromObjectAsJson{T}(T, System.Text.Json.JsonSerializerOptions?)"/>.
/// </para>
/// <para>
/// To assign an already formated json string to this property use <see cref="BinaryData.FromString(string)"/>.
/// </para>
/// <para>
/// Examples:
/// <list type="bullet">
/// <item>
/// <term>BinaryData.FromObjectAsJson("foo")</term>
/// <description>Creates a payload of "foo".</description>
/// </item>
/// <item>
/// <term>BinaryData.FromString("\"foo\"")</term>
/// <description>Creates a payload of "foo".</description>
/// </item>
/// <item>
/// <term>BinaryData.FromObjectAsJson(new { key = "value" })</term>
/// <description>Creates a payload of { "key": "value" }.</description>
/// </item>
/// <item>
/// <term>BinaryData.FromString("{\"key\": \"value\"}")</term>
/// <description>Creates a payload of { "key": "value" }.</description>
/// </item>
/// </list>
/// </para>
/// </summary>
public BinaryData Interval { get; set; }
/// <summary> Gets or sets the frequency of the schedule. </summary>
public AutomationScheduleFrequency? Frequency { get; set; }
/// <summary> Gets or sets the time zone of the schedule. </summary>
public string TimeZone { get; set; }
/// <summary> Gets or sets the advanced schedule. </summary>
public AutomationAdvancedSchedule AdvancedSchedule { get; set; }
/// <summary> Gets or sets the creation time. </summary>
public DateTimeOffset? CreatedOn { get; set; }
/// <summary> Gets or sets the last modified time. </summary>
public DateTimeOffset? LastModifiedOn { get; set; }
/// <summary> Gets or sets the description. </summary>
public string Description { get; set; }
}
}