-
Notifications
You must be signed in to change notification settings - Fork 4.5k
/
DataFactoryData.cs
136 lines (129 loc) · 7.65 KB
/
DataFactoryData.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
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// <auto-generated/>
#nullable disable
using System;
using System.Collections.Generic;
using Azure;
using Azure.Core;
using Azure.ResourceManager.DataFactory.Models;
using Azure.ResourceManager.Models;
namespace Azure.ResourceManager.DataFactory
{
/// <summary>
/// A class representing the DataFactory data model.
/// Factory resource type.
/// </summary>
public partial class DataFactoryData : TrackedResourceData
{
/// <summary> Initializes a new instance of <see cref="DataFactoryData"/>. </summary>
/// <param name="location"> The location. </param>
public DataFactoryData(AzureLocation location) : base(location)
{
GlobalParameters = new ChangeTrackingDictionary<string, DataFactoryGlobalParameterProperties>();
AdditionalProperties = new ChangeTrackingDictionary<string, BinaryData>();
}
/// <summary> Initializes a new instance of <see cref="DataFactoryData"/>. </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="tags"> The tags. </param>
/// <param name="location"> The location. </param>
/// <param name="identity"> Managed service identity of the factory. Current supported identity types: SystemAssigned, UserAssigned, SystemAssigned,UserAssigned. </param>
/// <param name="provisioningState"> Factory provisioning state, example Succeeded. </param>
/// <param name="createdOn"> Time the factory was created in ISO8601 format. </param>
/// <param name="version"> Version of the factory. </param>
/// <param name="purviewConfiguration"> Purview information of the factory. </param>
/// <param name="repoConfiguration">
/// Git repo information of the factory.
/// Please note <see cref="FactoryRepoConfiguration"/> 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="FactoryGitHubConfiguration"/> and <see cref="FactoryVstsConfiguration"/>.
/// </param>
/// <param name="globalParameters"> List of parameters for factory. </param>
/// <param name="encryption"> Properties to enable Customer Managed Key for the factory. </param>
/// <param name="publicNetworkAccess"> Whether or not public network access is allowed for the data factory. </param>
/// <param name="eTag"> Etag identifies change in the resource. </param>
/// <param name="additionalProperties"> Additional Properties. </param>
internal DataFactoryData(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, IDictionary<string, string> tags, AzureLocation location, ManagedServiceIdentity identity, string provisioningState, DateTimeOffset? createdOn, string version, DataFactoryPurviewConfiguration purviewConfiguration, FactoryRepoConfiguration repoConfiguration, IDictionary<string, DataFactoryGlobalParameterProperties> globalParameters, DataFactoryEncryptionConfiguration encryption, DataFactoryPublicNetworkAccess? publicNetworkAccess, ETag? eTag, IDictionary<string, BinaryData> additionalProperties) : base(id, name, resourceType, systemData, tags, location)
{
Identity = identity;
ProvisioningState = provisioningState;
CreatedOn = createdOn;
Version = version;
PurviewConfiguration = purviewConfiguration;
RepoConfiguration = repoConfiguration;
GlobalParameters = globalParameters;
Encryption = encryption;
PublicNetworkAccess = publicNetworkAccess;
ETag = eTag;
AdditionalProperties = additionalProperties;
}
/// <summary> Managed service identity of the factory. Current supported identity types: SystemAssigned, UserAssigned, SystemAssigned,UserAssigned. </summary>
public ManagedServiceIdentity Identity { get; set; }
/// <summary> Factory provisioning state, example Succeeded. </summary>
public string ProvisioningState { get; }
/// <summary> Time the factory was created in ISO8601 format. </summary>
public DateTimeOffset? CreatedOn { get; }
/// <summary> Version of the factory. </summary>
public string Version { get; }
/// <summary> Purview information of the factory. </summary>
internal DataFactoryPurviewConfiguration PurviewConfiguration { get; set; }
/// <summary> Purview resource id. </summary>
public ResourceIdentifier PurviewResourceId
{
get => PurviewConfiguration is null ? default : PurviewConfiguration.PurviewResourceId;
set
{
if (PurviewConfiguration is null)
PurviewConfiguration = new DataFactoryPurviewConfiguration();
PurviewConfiguration.PurviewResourceId = value;
}
}
/// <summary>
/// Git repo information of the factory.
/// Please note <see cref="FactoryRepoConfiguration"/> 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="FactoryGitHubConfiguration"/> and <see cref="FactoryVstsConfiguration"/>.
/// </summary>
public FactoryRepoConfiguration RepoConfiguration { get; set; }
/// <summary> List of parameters for factory. </summary>
public IDictionary<string, DataFactoryGlobalParameterProperties> GlobalParameters { get; }
/// <summary> Properties to enable Customer Managed Key for the factory. </summary>
public DataFactoryEncryptionConfiguration Encryption { get; set; }
/// <summary> Whether or not public network access is allowed for the data factory. </summary>
public DataFactoryPublicNetworkAccess? PublicNetworkAccess { get; set; }
/// <summary> Etag identifies change in the resource. </summary>
public ETag? ETag { get; }
/// <summary>
/// Additional Properties
/// <para>
/// To assign an object to the value of this property use <see cref="BinaryData.FromObjectAsJson{T}(T, System.Text.Json.JsonSerializerOptions?)"/>.
/// </para>
/// <para>
/// To assign an already formatted 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 IDictionary<string, BinaryData> AdditionalProperties { get; }
}
}