-
Notifications
You must be signed in to change notification settings - Fork 4.6k
/
ScheduledSynchronizationSetting.cs
60 lines (54 loc) · 3.14 KB
/
ScheduledSynchronizationSetting.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
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// <auto-generated/>
#nullable disable
using System;
using Azure.Core;
using Azure.ResourceManager.DataShare;
using Azure.ResourceManager.Models;
namespace Azure.ResourceManager.DataShare.Models
{
/// <summary> A type of synchronization setting based on schedule. </summary>
public partial class ScheduledSynchronizationSetting : DataShareSynchronizationSettingData
{
/// <summary> Initializes a new instance of ScheduledSynchronizationSetting. </summary>
/// <param name="recurrenceInterval"> Recurrence Interval. </param>
/// <param name="synchronizeOn"> Synchronization time. </param>
public ScheduledSynchronizationSetting(DataShareSynchronizationRecurrenceInterval recurrenceInterval, DateTimeOffset synchronizeOn)
{
RecurrenceInterval = recurrenceInterval;
SynchronizeOn = synchronizeOn;
Kind = SynchronizationSettingKind.ScheduleBased;
}
/// <summary> Initializes a new instance of ScheduledSynchronizationSetting. </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="kind"> Kind of synchronization setting. </param>
/// <param name="createdOn"> Time at which the synchronization setting was created. </param>
/// <param name="provisioningState"> Gets or sets the provisioning state. </param>
/// <param name="recurrenceInterval"> Recurrence Interval. </param>
/// <param name="synchronizeOn"> Synchronization time. </param>
/// <param name="userName"> Name of the user who created the synchronization setting. </param>
internal ScheduledSynchronizationSetting(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, SynchronizationSettingKind kind, DateTimeOffset? createdOn, DataShareProvisioningState? provisioningState, DataShareSynchronizationRecurrenceInterval recurrenceInterval, DateTimeOffset synchronizeOn, string userName) : base(id, name, resourceType, systemData, kind)
{
CreatedOn = createdOn;
ProvisioningState = provisioningState;
RecurrenceInterval = recurrenceInterval;
SynchronizeOn = synchronizeOn;
UserName = userName;
Kind = kind;
}
/// <summary> Time at which the synchronization setting was created. </summary>
public DateTimeOffset? CreatedOn { get; }
/// <summary> Gets or sets the provisioning state. </summary>
public DataShareProvisioningState? ProvisioningState { get; }
/// <summary> Recurrence Interval. </summary>
public DataShareSynchronizationRecurrenceInterval RecurrenceInterval { get; set; }
/// <summary> Synchronization time. </summary>
public DateTimeOffset SynchronizeOn { get; set; }
/// <summary> Name of the user who created the synchronization setting. </summary>
public string UserName { get; }
}
}