Skip to content

Commit a82eb74

Browse files
Jingshu918vidai-msftCopilot
authored
[DataFactory]Powershell Release (#27964)
Co-authored-by: Vincent Dai <[email protected]> Co-authored-by: Copilot <[email protected]>
1 parent 7e66806 commit a82eb74

File tree

7 files changed

+249
-28
lines changed

7 files changed

+249
-28
lines changed
Lines changed: 113 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,113 @@
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+
/// Databricks Job activity.
12+
/// </summary>
13+
[Newtonsoft.Json.JsonObject("DatabricksJob")]
14+
[Microsoft.Rest.Serialization.JsonTransformation]
15+
public partial class DatabricksJobActivity : ExecutionActivity
16+
{
17+
/// <summary>
18+
/// Initializes a new instance of the DatabricksJobActivity class.
19+
/// </summary>
20+
public DatabricksJobActivity()
21+
{
22+
CustomInit();
23+
}
24+
25+
/// <summary>
26+
/// Initializes a new instance of the DatabricksJobActivity class.
27+
/// </summary>
28+
29+
/// <param name="additionalProperties">A pipeline activity.
30+
/// </param>
31+
32+
/// <param name="name">Activity name.
33+
/// </param>
34+
35+
/// <param name="description">Activity description.
36+
/// </param>
37+
38+
/// <param name="state">Activity state. This is an optional property and if not provided, the state
39+
/// will be Active by default.
40+
/// Possible values include: &#39;Active&#39;, &#39;Inactive&#39;</param>
41+
42+
/// <param name="onInactiveMarkAs">Status result of the activity when the state is set to Inactive. This is an
43+
/// optional property and if not provided when the activity is inactive, the
44+
/// status will be Succeeded by default.
45+
/// Possible values include: &#39;Succeeded&#39;, &#39;Failed&#39;, &#39;Skipped&#39;</param>
46+
47+
/// <param name="dependsOn">Activity depends on condition.
48+
/// </param>
49+
50+
/// <param name="userProperties">Activity user properties.
51+
/// </param>
52+
53+
/// <param name="linkedServiceName">Linked service reference.
54+
/// </param>
55+
56+
/// <param name="policy">Activity policy.
57+
/// </param>
58+
59+
/// <param name="jobId">The Id of the Databricks Job to be executed. Type: string (or Expression
60+
/// with resultType string).
61+
/// </param>
62+
63+
/// <param name="jobParameters">Job parameters to be used for each run of this job. If the job takes a
64+
/// parameter that is not specified, the default value from the job will be
65+
/// used.
66+
/// </param>
67+
public DatabricksJobActivity(string name, object jobId, System.Collections.Generic.IDictionary<string, object> additionalProperties = default(System.Collections.Generic.IDictionary<string, object>), string description = default(string), string state = default(string), string onInactiveMarkAs = default(string), System.Collections.Generic.IList<ActivityDependency> dependsOn = default(System.Collections.Generic.IList<ActivityDependency>), System.Collections.Generic.IList<UserProperty> userProperties = default(System.Collections.Generic.IList<UserProperty>), LinkedServiceReference linkedServiceName = default(LinkedServiceReference), ActivityPolicy policy = default(ActivityPolicy), System.Collections.Generic.IDictionary<string, object> jobParameters = default(System.Collections.Generic.IDictionary<string, object>))
68+
69+
: base(name, additionalProperties, description, state, onInactiveMarkAs, dependsOn, userProperties, linkedServiceName, policy)
70+
{
71+
this.JobId = jobId;
72+
this.JobParameters = jobParameters;
73+
CustomInit();
74+
}
75+
76+
/// <summary>
77+
/// An initialization method that performs custom operations like setting defaults
78+
/// </summary>
79+
partial void CustomInit();
80+
81+
82+
/// <summary>
83+
/// Gets or sets the Id of the Databricks Job to be executed. Type: string (or
84+
/// Expression with resultType string).
85+
/// </summary>
86+
[Newtonsoft.Json.JsonProperty(PropertyName = "typeProperties.jobId")]
87+
public object JobId {get; set; }
88+
89+
/// <summary>
90+
/// Gets or sets job parameters to be used for each run of this job. If the job
91+
/// takes a parameter that is not specified, the default value from the job
92+
/// will be used.
93+
/// </summary>
94+
[Newtonsoft.Json.JsonProperty(PropertyName = "typeProperties.jobParameters")]
95+
public System.Collections.Generic.IDictionary<string, object> JobParameters {get; set; }
96+
/// <summary>
97+
/// Validate the object.
98+
/// </summary>
99+
/// <exception cref="Microsoft.Rest.ValidationException">
100+
/// Thrown if validation fails
101+
/// </exception>
102+
public override void Validate()
103+
{
104+
base.Validate();
105+
if (this.JobId == null)
106+
{
107+
throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "JobId");
108+
}
109+
110+
111+
}
112+
}
113+
}
Lines changed: 79 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,79 @@
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+
/// Databricks Job activity properties.
12+
/// </summary>
13+
public partial class DatabricksJobActivityTypeProperties
14+
{
15+
/// <summary>
16+
/// Initializes a new instance of the DatabricksJobActivityTypeProperties class.
17+
/// </summary>
18+
public DatabricksJobActivityTypeProperties()
19+
{
20+
CustomInit();
21+
}
22+
23+
/// <summary>
24+
/// Initializes a new instance of the DatabricksJobActivityTypeProperties class.
25+
/// </summary>
26+
27+
/// <param name="jobId">The Id of the Databricks Job to be executed. Type: string (or Expression
28+
/// with resultType string).
29+
/// </param>
30+
31+
/// <param name="jobParameters">Job parameters to be used for each run of this job. If the job takes a
32+
/// parameter that is not specified, the default value from the job will be
33+
/// used.
34+
/// </param>
35+
public DatabricksJobActivityTypeProperties(object jobId, System.Collections.Generic.IDictionary<string, object> jobParameters = default(System.Collections.Generic.IDictionary<string, object>))
36+
37+
{
38+
this.JobId = jobId;
39+
this.JobParameters = jobParameters;
40+
CustomInit();
41+
}
42+
43+
/// <summary>
44+
/// An initialization method that performs custom operations like setting defaults
45+
/// </summary>
46+
partial void CustomInit();
47+
48+
49+
/// <summary>
50+
/// Gets or sets the Id of the Databricks Job to be executed. Type: string (or
51+
/// Expression with resultType string).
52+
/// </summary>
53+
[Newtonsoft.Json.JsonProperty(PropertyName = "jobId")]
54+
public object JobId {get; set; }
55+
56+
/// <summary>
57+
/// Gets or sets job parameters to be used for each run of this job. If the job
58+
/// takes a parameter that is not specified, the default value from the job
59+
/// will be used.
60+
/// </summary>
61+
[Newtonsoft.Json.JsonProperty(PropertyName = "jobParameters")]
62+
public System.Collections.Generic.IDictionary<string, object> JobParameters {get; set; }
63+
/// <summary>
64+
/// Validate the object.
65+
/// </summary>
66+
/// <exception cref="Microsoft.Rest.ValidationException">
67+
/// Thrown if validation fails
68+
/// </exception>
69+
public virtual void Validate()
70+
{
71+
if (this.JobId == null)
72+
{
73+
throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "JobId");
74+
}
75+
76+
77+
}
78+
}
79+
}

src/DataFactory/DataFactory.Management.Sdk/Generated/Models/ExpressionV2.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -27,15 +27,15 @@ public ExpressionV2()
2727
/// <param name="type">Type of expressions supported by the system. Type: string.
2828
/// Possible values include: &#39;Constant&#39;, &#39;Field&#39;, &#39;Unary&#39;, &#39;Binary&#39;, &#39;NAry&#39;</param>
2929

30-
/// <param name="value">Value for Constant/Field Type: string.
30+
/// <param name="value">Value for Constant/Field Type: object.
3131
/// </param>
3232

3333
/// <param name="operators">Expression operator value Type: list of strings.
3434
/// </param>
3535

3636
/// <param name="operands">List of nested expressions.
3737
/// </param>
38-
public ExpressionV2(string type = default(string), string value = default(string), System.Collections.Generic.IList<string> operators = default(System.Collections.Generic.IList<string>), System.Collections.Generic.IList<ExpressionV2> operands = default(System.Collections.Generic.IList<ExpressionV2>))
38+
public ExpressionV2(string type = default(string), object value = default(object), System.Collections.Generic.IList<string> operators = default(System.Collections.Generic.IList<string>), System.Collections.Generic.IList<ExpressionV2> operands = default(System.Collections.Generic.IList<ExpressionV2>))
3939

4040
{
4141
this.Type = type;
@@ -58,10 +58,10 @@ public ExpressionV2()
5858
public string Type {get; set; }
5959

6060
/// <summary>
61-
/// Gets or sets value for Constant/Field Type: string.
61+
/// Gets or sets value for Constant/Field Type: object.
6262
/// </summary>
6363
[Newtonsoft.Json.JsonProperty(PropertyName = "value")]
64-
public string Value {get; set; }
64+
public object Value {get; set; }
6565

6666
/// <summary>
6767
/// Gets or sets expression operator value Type: list of strings.

src/DataFactory/DataFactory.Management.Sdk/Generated/Models/QuickBooksLinkedService.cs

Lines changed: 27 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,9 @@ namespace Microsoft.Azure.Management.DataFactory.Models
88
using System.Linq;
99

1010
/// <summary>
11-
/// QuickBooks server linked service.
11+
/// QuickBooks server linked service. This linked service has supported version
12+
/// property. The Version 1.0 is scheduled for deprecation while your pipeline
13+
/// will continue to run after EOL but without any bug fix or new features.
1214
/// </summary>
1315
[Newtonsoft.Json.JsonObject("QuickBooks")]
1416
[Microsoft.Rest.Serialization.JsonTransformation]
@@ -55,26 +57,30 @@ public QuickBooksLinkedService()
5557
/// <param name="companyId">The company ID of the QuickBooks company to authorize.
5658
/// </param>
5759

58-
/// <param name="consumerKey">The consumer key for OAuth 1.0 authentication.
60+
/// <param name="consumerKey">The consumer key for OAuth 2.0 authentication.
5961
/// </param>
6062

61-
/// <param name="consumerSecret">The consumer secret for OAuth 1.0 authentication.
63+
/// <param name="consumerSecret">The consumer secret for OAuth 2.0 authentication.
6264
/// </param>
6365

64-
/// <param name="accessToken">The access token for OAuth 1.0 authentication.
66+
/// <param name="accessToken">The access token for OAuth 2.0 authentication.
6567
/// </param>
6668

67-
/// <param name="accessTokenSecret">The access token secret for OAuth 1.0 authentication.
69+
/// <param name="accessTokenSecret">The access token secret is deprecated for OAuth 1.0 authentication. Only
70+
/// used for version 1.0.
71+
/// </param>
72+
73+
/// <param name="refreshToken">The refresh token for OAuth 2.0 authentication.
6874
/// </param>
6975

7076
/// <param name="useEncryptedEndpoints">Specifies whether the data source endpoints are encrypted using HTTPS. The
71-
/// default value is true.
77+
/// default value is true. Only used for version 1.0.
7278
/// </param>
7379

7480
/// <param name="encryptedCredential">The encrypted credential used for authentication. Credentials are encrypted
7581
/// using the integration runtime credential manager. Type: string.
7682
/// </param>
77-
public QuickBooksLinkedService(System.Collections.Generic.IDictionary<string, object> additionalProperties = default(System.Collections.Generic.IDictionary<string, object>), string version = default(string), 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 connectionProperties = default(object), object endpoint = default(object), object companyId = default(object), object consumerKey = default(object), SecretBase consumerSecret = default(SecretBase), SecretBase accessToken = default(SecretBase), SecretBase accessTokenSecret = default(SecretBase), object useEncryptedEndpoints = default(object), string encryptedCredential = default(string))
83+
public QuickBooksLinkedService(System.Collections.Generic.IDictionary<string, object> additionalProperties = default(System.Collections.Generic.IDictionary<string, object>), string version = default(string), 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 connectionProperties = default(object), object endpoint = default(object), object companyId = default(object), object consumerKey = default(object), SecretBase consumerSecret = default(SecretBase), SecretBase accessToken = default(SecretBase), SecretBase accessTokenSecret = default(SecretBase), SecretBase refreshToken = default(SecretBase), object useEncryptedEndpoints = default(object), string encryptedCredential = default(string))
7884

7985
: base(additionalProperties, version, connectVia, description, parameters, annotations)
8086
{
@@ -85,6 +91,7 @@ public QuickBooksLinkedService()
8591
this.ConsumerSecret = consumerSecret;
8692
this.AccessToken = accessToken;
8793
this.AccessTokenSecret = accessTokenSecret;
94+
this.RefreshToken = refreshToken;
8895
this.UseEncryptedEndpoints = useEncryptedEndpoints;
8996
this.EncryptedCredential = encryptedCredential;
9097
CustomInit();
@@ -117,32 +124,39 @@ public QuickBooksLinkedService()
117124
public object CompanyId {get; set; }
118125

119126
/// <summary>
120-
/// Gets or sets the consumer key for OAuth 1.0 authentication.
127+
/// Gets or sets the consumer key for OAuth 2.0 authentication.
121128
/// </summary>
122129
[Newtonsoft.Json.JsonProperty(PropertyName = "typeProperties.consumerKey")]
123130
public object ConsumerKey {get; set; }
124131

125132
/// <summary>
126-
/// Gets or sets the consumer secret for OAuth 1.0 authentication.
133+
/// Gets or sets the consumer secret for OAuth 2.0 authentication.
127134
/// </summary>
128135
[Newtonsoft.Json.JsonProperty(PropertyName = "typeProperties.consumerSecret")]
129136
public SecretBase ConsumerSecret {get; set; }
130137

131138
/// <summary>
132-
/// Gets or sets the access token for OAuth 1.0 authentication.
139+
/// Gets or sets the access token for OAuth 2.0 authentication.
133140
/// </summary>
134141
[Newtonsoft.Json.JsonProperty(PropertyName = "typeProperties.accessToken")]
135142
public SecretBase AccessToken {get; set; }
136143

137144
/// <summary>
138-
/// Gets or sets the access token secret for OAuth 1.0 authentication.
145+
/// Gets or sets the access token secret is deprecated for OAuth 1.0
146+
/// authentication. Only used for version 1.0.
139147
/// </summary>
140148
[Newtonsoft.Json.JsonProperty(PropertyName = "typeProperties.accessTokenSecret")]
141149
public SecretBase AccessTokenSecret {get; set; }
142150

151+
/// <summary>
152+
/// Gets or sets the refresh token for OAuth 2.0 authentication.
153+
/// </summary>
154+
[Newtonsoft.Json.JsonProperty(PropertyName = "typeProperties.refreshToken")]
155+
public SecretBase RefreshToken {get; set; }
156+
143157
/// <summary>
144158
/// Gets or sets specifies whether the data source endpoints are encrypted
145-
/// using HTTPS. The default value is true.
159+
/// using HTTPS. The default value is true. Only used for version 1.0.
146160
/// </summary>
147161
[Newtonsoft.Json.JsonProperty(PropertyName = "typeProperties.useEncryptedEndpoints")]
148162
public object UseEncryptedEndpoints {get; set; }
@@ -172,6 +186,7 @@ public override void Validate()
172186

173187

174188

189+
175190
}
176191
}
177192
}

0 commit comments

Comments
 (0)