-
Notifications
You must be signed in to change notification settings - Fork 4.5k
/
DscNodeConfigurationData.cs
72 lines (65 loc) · 3.41 KB
/
DscNodeConfigurationData.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
// 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 DscNodeConfiguration data model.
/// Definition of the dsc node configuration.
/// </summary>
public partial class DscNodeConfigurationData : ResourceData
{
/// <summary> Initializes a new instance of DscNodeConfigurationData. </summary>
public DscNodeConfigurationData()
{
}
/// <summary> Initializes a new instance of DscNodeConfigurationData. </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="lastModifiedOn"> Gets or sets the last modified time. </param>
/// <param name="createdOn"> Gets or sets creation time. </param>
/// <param name="configuration"> Gets or sets the configuration of the node. </param>
/// <param name="source"> Source of node configuration. </param>
/// <param name="nodeCount"> Number of nodes with this node configuration assigned. </param>
/// <param name="isIncrementNodeConfigurationBuildRequired"> If a new build version of NodeConfiguration is required. </param>
internal DscNodeConfigurationData(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, DateTimeOffset? lastModifiedOn, DateTimeOffset? createdOn, DscConfigurationAssociationProperty configuration, string source, long? nodeCount, bool? isIncrementNodeConfigurationBuildRequired) : base(id, name, resourceType, systemData)
{
LastModifiedOn = lastModifiedOn;
CreatedOn = createdOn;
Configuration = configuration;
Source = source;
NodeCount = nodeCount;
IsIncrementNodeConfigurationBuildRequired = isIncrementNodeConfigurationBuildRequired;
}
/// <summary> Gets or sets the last modified time. </summary>
public DateTimeOffset? LastModifiedOn { get; set; }
/// <summary> Gets or sets creation time. </summary>
public DateTimeOffset? CreatedOn { get; set; }
/// <summary> Gets or sets the configuration of the node. </summary>
internal DscConfigurationAssociationProperty Configuration { get; set; }
/// <summary> Gets or sets the name of the Dsc configuration. </summary>
public string ConfigurationName
{
get => Configuration is null ? default : Configuration.ConfigurationName;
set
{
if (Configuration is null)
Configuration = new DscConfigurationAssociationProperty();
Configuration.ConfigurationName = value;
}
}
/// <summary> Source of node configuration. </summary>
public string Source { get; set; }
/// <summary> Number of nodes with this node configuration assigned. </summary>
public long? NodeCount { get; set; }
/// <summary> If a new build version of NodeConfiguration is required. </summary>
public bool? IsIncrementNodeConfigurationBuildRequired { get; set; }
}
}