Skip to content

Commit 81dea6d

Browse files
committed
add more
1 parent 4769f55 commit 81dea6d

File tree

8 files changed

+834
-2
lines changed

8 files changed

+834
-2
lines changed
Lines changed: 206 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,206 @@
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. &#39;ServicePrincipalKey&#39; for key/secret,
75+
/// &#39;ServicePrincipalCert&#39; 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 &#39;ServicePrincipalKey&#39;,
81+
/// servicePrincipalCredential can be SecureString or
82+
/// AzureKeyVaultSecretReference. If servicePrincipalCredentialType is
83+
/// &#39;ServicePrincipalCert&#39;, 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. &#39;ServicePrincipalKey&#39; for key/secret,
162+
/// &#39;ServicePrincipalCert&#39; 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 &#39;ServicePrincipalKey&#39;,
171+
/// servicePrincipalCredential can be SecureString or
172+
/// AzureKeyVaultSecretReference. If servicePrincipalCredentialType is
173+
/// &#39;ServicePrincipalCert&#39;, 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+
}
Lines changed: 186 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,186 @@
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 properties.
12+
/// </summary>
13+
public partial class WarehouseLinkedServiceTypeProperties
14+
{
15+
/// <summary>
16+
/// Initializes a new instance of the WarehouseLinkedServiceTypeProperties class.
17+
/// </summary>
18+
public WarehouseLinkedServiceTypeProperties()
19+
{
20+
CustomInit();
21+
}
22+
23+
/// <summary>
24+
/// Initializes a new instance of the WarehouseLinkedServiceTypeProperties class.
25+
/// </summary>
26+
27+
/// <param name="artifactId">The ID of Microsoft Fabric Warehouse artifact. Type: string (or Expression
28+
/// with resultType string).
29+
/// </param>
30+
31+
/// <param name="endpoint">The endpoint of Microsoft Fabric Warehouse server. Type: string (or
32+
/// Expression with resultType string).
33+
/// </param>
34+
35+
/// <param name="workspaceId">The ID of Microsoft Fabric workspace. Type: string (or Expression with
36+
/// resultType string).
37+
/// </param>
38+
39+
/// <param name="servicePrincipalId">The ID of the application used to authenticate against Microsoft Fabric
40+
/// Warehouse. Type: string (or Expression with resultType string).
41+
/// </param>
42+
43+
/// <param name="servicePrincipalKey">The Key of the application used to authenticate against Microsoft Fabric
44+
/// Warehouse.
45+
/// </param>
46+
47+
/// <param name="tenant">The name or ID of the tenant to which the service principal belongs. Type:
48+
/// string (or Expression with resultType string).
49+
/// </param>
50+
51+
/// <param name="encryptedCredential">The encrypted credential used for authentication. Credentials are encrypted
52+
/// using the integration runtime credential manager. Type: string.
53+
/// </param>
54+
55+
/// <param name="servicePrincipalCredentialType">The service principal credential type to use in Server-To-Server
56+
/// authentication. &#39;ServicePrincipalKey&#39; for key/secret,
57+
/// &#39;ServicePrincipalCert&#39; for certificate. Type: string (or Expression with
58+
/// resultType string).
59+
/// </param>
60+
61+
/// <param name="servicePrincipalCredential">The credential of the service principal object in Azure Active Directory.
62+
/// If servicePrincipalCredentialType is &#39;ServicePrincipalKey&#39;,
63+
/// servicePrincipalCredential can be SecureString or
64+
/// AzureKeyVaultSecretReference. If servicePrincipalCredentialType is
65+
/// &#39;ServicePrincipalCert&#39;, servicePrincipalCredential can only be
66+
/// AzureKeyVaultSecretReference.
67+
/// </param>
68+
public WarehouseLinkedServiceTypeProperties(object artifactId, object endpoint, 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))
69+
70+
{
71+
this.ArtifactId = artifactId;
72+
this.Endpoint = endpoint;
73+
this.WorkspaceId = workspaceId;
74+
this.ServicePrincipalId = servicePrincipalId;
75+
this.ServicePrincipalKey = servicePrincipalKey;
76+
this.Tenant = tenant;
77+
this.EncryptedCredential = encryptedCredential;
78+
this.ServicePrincipalCredentialType = servicePrincipalCredentialType;
79+
this.ServicePrincipalCredential = servicePrincipalCredential;
80+
CustomInit();
81+
}
82+
83+
/// <summary>
84+
/// An initialization method that performs custom operations like setting defaults
85+
/// </summary>
86+
partial void CustomInit();
87+
88+
89+
/// <summary>
90+
/// Gets or sets the ID of Microsoft Fabric Warehouse artifact. Type: string
91+
/// (or Expression with resultType string).
92+
/// </summary>
93+
[Newtonsoft.Json.JsonProperty(PropertyName = "artifactId")]
94+
public object ArtifactId {get; set; }
95+
96+
/// <summary>
97+
/// Gets or sets the endpoint of Microsoft Fabric Warehouse server. Type:
98+
/// string (or Expression with resultType string).
99+
/// </summary>
100+
[Newtonsoft.Json.JsonProperty(PropertyName = "endpoint")]
101+
public object Endpoint {get; set; }
102+
103+
/// <summary>
104+
/// Gets or sets the ID of Microsoft Fabric workspace. Type: string (or
105+
/// Expression with resultType string).
106+
/// </summary>
107+
[Newtonsoft.Json.JsonProperty(PropertyName = "workspaceId")]
108+
public object WorkspaceId {get; set; }
109+
110+
/// <summary>
111+
/// Gets or sets the ID of the application used to authenticate against
112+
/// Microsoft Fabric Warehouse. Type: string (or Expression with resultType
113+
/// string).
114+
/// </summary>
115+
[Newtonsoft.Json.JsonProperty(PropertyName = "servicePrincipalId")]
116+
public object ServicePrincipalId {get; set; }
117+
118+
/// <summary>
119+
/// Gets or sets the Key of the application used to authenticate against
120+
/// Microsoft Fabric Warehouse.
121+
/// </summary>
122+
[Newtonsoft.Json.JsonProperty(PropertyName = "servicePrincipalKey")]
123+
public SecretBase ServicePrincipalKey {get; set; }
124+
125+
/// <summary>
126+
/// Gets or sets the name or ID of the tenant to which the service principal
127+
/// belongs. Type: string (or Expression with resultType string).
128+
/// </summary>
129+
[Newtonsoft.Json.JsonProperty(PropertyName = "tenant")]
130+
public object Tenant {get; set; }
131+
132+
/// <summary>
133+
/// Gets or sets the encrypted credential used for authentication. Credentials
134+
/// are encrypted using the integration runtime credential manager. Type:
135+
/// string.
136+
/// </summary>
137+
[Newtonsoft.Json.JsonProperty(PropertyName = "encryptedCredential")]
138+
public string EncryptedCredential {get; set; }
139+
140+
/// <summary>
141+
/// Gets or sets the service principal credential type to use in
142+
/// Server-To-Server authentication. &#39;ServicePrincipalKey&#39; for key/secret,
143+
/// &#39;ServicePrincipalCert&#39; for certificate. Type: string (or Expression with
144+
/// resultType string).
145+
/// </summary>
146+
[Newtonsoft.Json.JsonProperty(PropertyName = "servicePrincipalCredentialType")]
147+
public object ServicePrincipalCredentialType {get; set; }
148+
149+
/// <summary>
150+
/// Gets or sets the credential of the service principal object in Azure Active
151+
/// Directory. If servicePrincipalCredentialType is &#39;ServicePrincipalKey&#39;,
152+
/// servicePrincipalCredential can be SecureString or
153+
/// AzureKeyVaultSecretReference. If servicePrincipalCredentialType is
154+
/// &#39;ServicePrincipalCert&#39;, servicePrincipalCredential can only be
155+
/// AzureKeyVaultSecretReference.
156+
/// </summary>
157+
[Newtonsoft.Json.JsonProperty(PropertyName = "servicePrincipalCredential")]
158+
public SecretBase ServicePrincipalCredential {get; set; }
159+
/// <summary>
160+
/// Validate the object.
161+
/// </summary>
162+
/// <exception cref="Microsoft.Rest.ValidationException">
163+
/// Thrown if validation fails
164+
/// </exception>
165+
public virtual void Validate()
166+
{
167+
if (this.ArtifactId == null)
168+
{
169+
throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "ArtifactId");
170+
}
171+
if (this.Endpoint == null)
172+
{
173+
throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "Endpoint");
174+
}
175+
176+
177+
178+
179+
180+
181+
182+
183+
184+
}
185+
}
186+
}

0 commit comments

Comments
 (0)