1
+ // Copyright (c) Microsoft Corporation. All rights reserved.
2
+ // Licensed under the MIT License. See License.txt in the project root for license information.
3
+ // Code generated by Microsoft (R) AutoRest Code Generator.
4
+ // Changes may cause incorrect behavior and will be lost if the code is regenerated.
5
+
6
+ namespace Microsoft . Azure . Management . DataFactory . Models
7
+ {
8
+ using System . Linq ;
9
+
10
+ /// <summary>
11
+ /// Microsoft Fabric Warehouse linked service.
12
+ /// </summary>
13
+ [ Newtonsoft . Json . JsonObject ( "Warehouse" ) ]
14
+ [ Microsoft . Rest . Serialization . JsonTransformation ]
15
+ public partial class WarehouseLinkedService : LinkedService
16
+ {
17
+ /// <summary>
18
+ /// Initializes a new instance of the WarehouseLinkedService class.
19
+ /// </summary>
20
+ public WarehouseLinkedService ( )
21
+ {
22
+ CustomInit ( ) ;
23
+ }
24
+
25
+ /// <summary>
26
+ /// Initializes a new instance of the WarehouseLinkedService class.
27
+ /// </summary>
28
+
29
+ /// <param name="additionalProperties">The nested object which contains the information and credential which can
30
+ /// be used to connect with related store or compute resource.
31
+ /// </param>
32
+
33
+ /// <param name="connectVia">The integration runtime reference.
34
+ /// </param>
35
+
36
+ /// <param name="description">Linked service description.
37
+ /// </param>
38
+
39
+ /// <param name="parameters">Parameters for linked service.
40
+ /// </param>
41
+
42
+ /// <param name="annotations">List of tags that can be used for describing the linked service.
43
+ /// </param>
44
+
45
+ /// <param name="artifactId">The ID of Microsoft Fabric Warehouse artifact. Type: string (or Expression
46
+ /// with resultType string).
47
+ /// </param>
48
+
49
+ /// <param name="endpoint">The endpoint of Microsoft Fabric Warehouse server. Type: string (or
50
+ /// Expression with resultType string).
51
+ /// </param>
52
+
53
+ /// <param name="workspaceId">The ID of Microsoft Fabric workspace. Type: string (or Expression with
54
+ /// resultType string).
55
+ /// </param>
56
+
57
+ /// <param name="servicePrincipalId">The ID of the application used to authenticate against Microsoft Fabric
58
+ /// Warehouse. Type: string (or Expression with resultType string).
59
+ /// </param>
60
+
61
+ /// <param name="servicePrincipalKey">The Key of the application used to authenticate against Microsoft Fabric
62
+ /// Warehouse.
63
+ /// </param>
64
+
65
+ /// <param name="tenant">The name or ID of the tenant to which the service principal belongs. Type:
66
+ /// string (or Expression with resultType string).
67
+ /// </param>
68
+
69
+ /// <param name="encryptedCredential">The encrypted credential used for authentication. Credentials are encrypted
70
+ /// using the integration runtime credential manager. Type: string.
71
+ /// </param>
72
+
73
+ /// <param name="servicePrincipalCredentialType">The service principal credential type to use in Server-To-Server
74
+ /// authentication. 'ServicePrincipalKey' for key/secret,
75
+ /// 'ServicePrincipalCert' for certificate. Type: string (or Expression with
76
+ /// resultType string).
77
+ /// </param>
78
+
79
+ /// <param name="servicePrincipalCredential">The credential of the service principal object in Azure Active Directory.
80
+ /// If servicePrincipalCredentialType is 'ServicePrincipalKey',
81
+ /// servicePrincipalCredential can be SecureString or
82
+ /// AzureKeyVaultSecretReference. If servicePrincipalCredentialType is
83
+ /// 'ServicePrincipalCert', servicePrincipalCredential can only be
84
+ /// AzureKeyVaultSecretReference.
85
+ /// </param>
86
+ public WarehouseLinkedService ( object artifactId , object endpoint , System . Collections . Generic . IDictionary < string , object > additionalProperties = default ( System . Collections . Generic . IDictionary < string , object > ) , IntegrationRuntimeReference connectVia = default ( IntegrationRuntimeReference ) , string description = default ( string ) , System . Collections . Generic . IDictionary < string , ParameterSpecification > parameters = default ( System . Collections . Generic . IDictionary < string , ParameterSpecification > ) , System . Collections . Generic . IList < object > annotations = default ( System . Collections . Generic . IList < object > ) , object workspaceId = default ( object ) , object servicePrincipalId = default ( object ) , SecretBase servicePrincipalKey = default ( SecretBase ) , object tenant = default ( object ) , string encryptedCredential = default ( string ) , object servicePrincipalCredentialType = default ( object ) , SecretBase servicePrincipalCredential = default ( SecretBase ) )
87
+
88
+ : base ( additionalProperties , connectVia , description , parameters , annotations )
89
+ {
90
+ this . ArtifactId = artifactId ;
91
+ this . Endpoint = endpoint ;
92
+ this . WorkspaceId = workspaceId ;
93
+ this . ServicePrincipalId = servicePrincipalId ;
94
+ this . ServicePrincipalKey = servicePrincipalKey ;
95
+ this . Tenant = tenant ;
96
+ this . EncryptedCredential = encryptedCredential ;
97
+ this . ServicePrincipalCredentialType = servicePrincipalCredentialType ;
98
+ this . ServicePrincipalCredential = servicePrincipalCredential ;
99
+ CustomInit ( ) ;
100
+ }
101
+
102
+ /// <summary>
103
+ /// An initialization method that performs custom operations like setting defaults
104
+ /// </summary>
105
+ partial void CustomInit ( ) ;
106
+
107
+
108
+ /// <summary>
109
+ /// Gets or sets the ID of Microsoft Fabric Warehouse artifact. Type: string
110
+ /// (or Expression with resultType string).
111
+ /// </summary>
112
+ [ Newtonsoft . Json . JsonProperty ( PropertyName = "typeProperties.artifactId" ) ]
113
+ public object ArtifactId { get ; set ; }
114
+
115
+ /// <summary>
116
+ /// Gets or sets the endpoint of Microsoft Fabric Warehouse server. Type:
117
+ /// string (or Expression with resultType string).
118
+ /// </summary>
119
+ [ Newtonsoft . Json . JsonProperty ( PropertyName = "typeProperties.endpoint" ) ]
120
+ public object Endpoint { get ; set ; }
121
+
122
+ /// <summary>
123
+ /// Gets or sets the ID of Microsoft Fabric workspace. Type: string (or
124
+ /// Expression with resultType string).
125
+ /// </summary>
126
+ [ Newtonsoft . Json . JsonProperty ( PropertyName = "typeProperties.workspaceId" ) ]
127
+ public object WorkspaceId { get ; set ; }
128
+
129
+ /// <summary>
130
+ /// Gets or sets the ID of the application used to authenticate against
131
+ /// Microsoft Fabric Warehouse. Type: string (or Expression with resultType
132
+ /// string).
133
+ /// </summary>
134
+ [ Newtonsoft . Json . JsonProperty ( PropertyName = "typeProperties.servicePrincipalId" ) ]
135
+ public object ServicePrincipalId { get ; set ; }
136
+
137
+ /// <summary>
138
+ /// Gets or sets the Key of the application used to authenticate against
139
+ /// Microsoft Fabric Warehouse.
140
+ /// </summary>
141
+ [ Newtonsoft . Json . JsonProperty ( PropertyName = "typeProperties.servicePrincipalKey" ) ]
142
+ public SecretBase ServicePrincipalKey { get ; set ; }
143
+
144
+ /// <summary>
145
+ /// Gets or sets the name or ID of the tenant to which the service principal
146
+ /// belongs. Type: string (or Expression with resultType string).
147
+ /// </summary>
148
+ [ Newtonsoft . Json . JsonProperty ( PropertyName = "typeProperties.tenant" ) ]
149
+ public object Tenant { get ; set ; }
150
+
151
+ /// <summary>
152
+ /// Gets or sets the encrypted credential used for authentication. Credentials
153
+ /// are encrypted using the integration runtime credential manager. Type:
154
+ /// string.
155
+ /// </summary>
156
+ [ Newtonsoft . Json . JsonProperty ( PropertyName = "typeProperties.encryptedCredential" ) ]
157
+ public string EncryptedCredential { get ; set ; }
158
+
159
+ /// <summary>
160
+ /// Gets or sets the service principal credential type to use in
161
+ /// Server-To-Server authentication. 'ServicePrincipalKey' for key/secret,
162
+ /// 'ServicePrincipalCert' for certificate. Type: string (or Expression with
163
+ /// resultType string).
164
+ /// </summary>
165
+ [ Newtonsoft . Json . JsonProperty ( PropertyName = "typeProperties.servicePrincipalCredentialType" ) ]
166
+ public object ServicePrincipalCredentialType { get ; set ; }
167
+
168
+ /// <summary>
169
+ /// Gets or sets the credential of the service principal object in Azure Active
170
+ /// Directory. If servicePrincipalCredentialType is 'ServicePrincipalKey',
171
+ /// servicePrincipalCredential can be SecureString or
172
+ /// AzureKeyVaultSecretReference. If servicePrincipalCredentialType is
173
+ /// 'ServicePrincipalCert', servicePrincipalCredential can only be
174
+ /// AzureKeyVaultSecretReference.
175
+ /// </summary>
176
+ [ Newtonsoft . Json . JsonProperty ( PropertyName = "typeProperties.servicePrincipalCredential" ) ]
177
+ public SecretBase ServicePrincipalCredential { get ; set ; }
178
+ /// <summary>
179
+ /// Validate the object.
180
+ /// </summary>
181
+ /// <exception cref="Microsoft.Rest.ValidationException">
182
+ /// Thrown if validation fails
183
+ /// </exception>
184
+ public override void Validate ( )
185
+ {
186
+ base . Validate ( ) ;
187
+ if ( this . ArtifactId == null )
188
+ {
189
+ throw new Microsoft . Rest . ValidationException ( Microsoft . Rest . ValidationRules . CannotBeNull , "ArtifactId" ) ;
190
+ }
191
+ if ( this . Endpoint == null )
192
+ {
193
+ throw new Microsoft . Rest . ValidationException ( Microsoft . Rest . ValidationRules . CannotBeNull , "Endpoint" ) ;
194
+ }
195
+
196
+
197
+
198
+
199
+
200
+
201
+
202
+
203
+
204
+ }
205
+ }
206
+ }
0 commit comments