Skip to content

Commit 38c87ae

Browse files
committed
Support API GetNotebookAndSubmitTask.
1 parent 6a59ad3 commit 38c87ae

File tree

7 files changed

+320
-4
lines changed

7 files changed

+320
-4
lines changed

dms-20250414/ChangeLog.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
2025-10-22 Version: 1.2.0
2+
- Support API GetNotebookAndSubmitTask.
3+
4+
15
2025-08-26 Version: 1.1.0
26
- Support API BatchCreateDataLakePartitions.
37
- Support API BatchDeleteDataLakePartitions.

dms-20250414/core/Client.cs

Lines changed: 156 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3289,6 +3289,162 @@ public async Task<GetDataLakeTableResponse> GetDataLakeTableAsync(GetDataLakeTab
32893289
return await GetDataLakeTableWithOptionsAsync(request, runtime);
32903290
}
32913291

3292+
/// <term><b>Summary:</b></term>
3293+
/// <summary>
3294+
/// <para>调度运行Notebook文件</para>
3295+
/// </summary>
3296+
///
3297+
/// <param name="request">
3298+
/// GetNotebookAndSubmitTaskRequest
3299+
/// </param>
3300+
/// <param name="runtime">
3301+
/// runtime options for this request RuntimeOptions
3302+
/// </param>
3303+
///
3304+
/// <returns>
3305+
/// GetNotebookAndSubmitTaskResponse
3306+
/// </returns>
3307+
public GetNotebookAndSubmitTaskResponse GetNotebookAndSubmitTaskWithOptions(GetNotebookAndSubmitTaskRequest request, AlibabaCloud.TeaUtil.Models.RuntimeOptions runtime)
3308+
{
3309+
AlibabaCloud.TeaUtil.Common.ValidateModel(request);
3310+
Dictionary<string, object> query = new Dictionary<string, object>(){};
3311+
if (!AlibabaCloud.TeaUtil.Common.IsUnset(request.WorkspaceId))
3312+
{
3313+
query["WorkspaceId"] = request.WorkspaceId;
3314+
}
3315+
Dictionary<string, object> body = new Dictionary<string, object>(){};
3316+
if (!AlibabaCloud.TeaUtil.Common.IsUnset(request.Params))
3317+
{
3318+
body["Params"] = request.Params;
3319+
}
3320+
if (!AlibabaCloud.TeaUtil.Common.IsUnset(request.Path))
3321+
{
3322+
body["Path"] = request.Path;
3323+
}
3324+
if (!AlibabaCloud.TeaUtil.Common.IsUnset(request.Retry))
3325+
{
3326+
body["Retry"] = request.Retry;
3327+
}
3328+
if (!AlibabaCloud.TeaUtil.Common.IsUnset(request.SessionId))
3329+
{
3330+
body["SessionId"] = request.SessionId;
3331+
}
3332+
AlibabaCloud.OpenApiClient.Models.OpenApiRequest req = new AlibabaCloud.OpenApiClient.Models.OpenApiRequest
3333+
{
3334+
Query = AlibabaCloud.OpenApiUtil.Client.Query(query),
3335+
Body = AlibabaCloud.OpenApiUtil.Client.ParseToMap(body),
3336+
};
3337+
AlibabaCloud.OpenApiClient.Models.Params params_ = new AlibabaCloud.OpenApiClient.Models.Params
3338+
{
3339+
Action = "GetNotebookAndSubmitTask",
3340+
Version = "2025-04-14",
3341+
Protocol = "HTTPS",
3342+
Pathname = "/",
3343+
Method = "POST",
3344+
AuthType = "AK",
3345+
Style = "RPC",
3346+
ReqBodyType = "formData",
3347+
BodyType = "json",
3348+
};
3349+
return TeaModel.ToObject<GetNotebookAndSubmitTaskResponse>(CallApi(params_, req, runtime));
3350+
}
3351+
3352+
/// <term><b>Summary:</b></term>
3353+
/// <summary>
3354+
/// <para>调度运行Notebook文件</para>
3355+
/// </summary>
3356+
///
3357+
/// <param name="request">
3358+
/// GetNotebookAndSubmitTaskRequest
3359+
/// </param>
3360+
/// <param name="runtime">
3361+
/// runtime options for this request RuntimeOptions
3362+
/// </param>
3363+
///
3364+
/// <returns>
3365+
/// GetNotebookAndSubmitTaskResponse
3366+
/// </returns>
3367+
public async Task<GetNotebookAndSubmitTaskResponse> GetNotebookAndSubmitTaskWithOptionsAsync(GetNotebookAndSubmitTaskRequest request, AlibabaCloud.TeaUtil.Models.RuntimeOptions runtime)
3368+
{
3369+
AlibabaCloud.TeaUtil.Common.ValidateModel(request);
3370+
Dictionary<string, object> query = new Dictionary<string, object>(){};
3371+
if (!AlibabaCloud.TeaUtil.Common.IsUnset(request.WorkspaceId))
3372+
{
3373+
query["WorkspaceId"] = request.WorkspaceId;
3374+
}
3375+
Dictionary<string, object> body = new Dictionary<string, object>(){};
3376+
if (!AlibabaCloud.TeaUtil.Common.IsUnset(request.Params))
3377+
{
3378+
body["Params"] = request.Params;
3379+
}
3380+
if (!AlibabaCloud.TeaUtil.Common.IsUnset(request.Path))
3381+
{
3382+
body["Path"] = request.Path;
3383+
}
3384+
if (!AlibabaCloud.TeaUtil.Common.IsUnset(request.Retry))
3385+
{
3386+
body["Retry"] = request.Retry;
3387+
}
3388+
if (!AlibabaCloud.TeaUtil.Common.IsUnset(request.SessionId))
3389+
{
3390+
body["SessionId"] = request.SessionId;
3391+
}
3392+
AlibabaCloud.OpenApiClient.Models.OpenApiRequest req = new AlibabaCloud.OpenApiClient.Models.OpenApiRequest
3393+
{
3394+
Query = AlibabaCloud.OpenApiUtil.Client.Query(query),
3395+
Body = AlibabaCloud.OpenApiUtil.Client.ParseToMap(body),
3396+
};
3397+
AlibabaCloud.OpenApiClient.Models.Params params_ = new AlibabaCloud.OpenApiClient.Models.Params
3398+
{
3399+
Action = "GetNotebookAndSubmitTask",
3400+
Version = "2025-04-14",
3401+
Protocol = "HTTPS",
3402+
Pathname = "/",
3403+
Method = "POST",
3404+
AuthType = "AK",
3405+
Style = "RPC",
3406+
ReqBodyType = "formData",
3407+
BodyType = "json",
3408+
};
3409+
return TeaModel.ToObject<GetNotebookAndSubmitTaskResponse>(await CallApiAsync(params_, req, runtime));
3410+
}
3411+
3412+
/// <term><b>Summary:</b></term>
3413+
/// <summary>
3414+
/// <para>调度运行Notebook文件</para>
3415+
/// </summary>
3416+
///
3417+
/// <param name="request">
3418+
/// GetNotebookAndSubmitTaskRequest
3419+
/// </param>
3420+
///
3421+
/// <returns>
3422+
/// GetNotebookAndSubmitTaskResponse
3423+
/// </returns>
3424+
public GetNotebookAndSubmitTaskResponse GetNotebookAndSubmitTask(GetNotebookAndSubmitTaskRequest request)
3425+
{
3426+
AlibabaCloud.TeaUtil.Models.RuntimeOptions runtime = new AlibabaCloud.TeaUtil.Models.RuntimeOptions();
3427+
return GetNotebookAndSubmitTaskWithOptions(request, runtime);
3428+
}
3429+
3430+
/// <term><b>Summary:</b></term>
3431+
/// <summary>
3432+
/// <para>调度运行Notebook文件</para>
3433+
/// </summary>
3434+
///
3435+
/// <param name="request">
3436+
/// GetNotebookAndSubmitTaskRequest
3437+
/// </param>
3438+
///
3439+
/// <returns>
3440+
/// GetNotebookAndSubmitTaskResponse
3441+
/// </returns>
3442+
public async Task<GetNotebookAndSubmitTaskResponse> GetNotebookAndSubmitTaskAsync(GetNotebookAndSubmitTaskRequest request)
3443+
{
3444+
AlibabaCloud.TeaUtil.Models.RuntimeOptions runtime = new AlibabaCloud.TeaUtil.Models.RuntimeOptions();
3445+
return await GetNotebookAndSubmitTaskWithOptionsAsync(request, runtime);
3446+
}
3447+
32923448
/// <term><b>Summary:</b></term>
32933449
/// <summary>
32943450
/// <para>列出资源Airflow</para>
Lines changed: 60 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,60 @@
1+
// This file is auto-generated, don't edit it. Thanks.
2+
3+
using System;
4+
using System.Collections.Generic;
5+
using System.IO;
6+
7+
using Tea;
8+
9+
namespace AlibabaCloud.SDK.Dms20250414.Models
10+
{
11+
public class GetNotebookAndSubmitTaskRequest : TeaModel {
12+
/// <summary>
13+
/// <para>This parameter is required.</para>
14+
///
15+
/// <b>Example:</b>
16+
/// <para>{\&quot;dt\&quot;: \&quot;2022-10-14\&quot;}</para>
17+
/// </summary>
18+
[NameInMap("Params")]
19+
[Validation(Required=false)]
20+
public string Params { get; set; }
21+
22+
/// <summary>
23+
/// <para>This parameter is required.</para>
24+
///
25+
/// <b>Example:</b>
26+
/// <para>/Workspace/code/default/test.ipynb</para>
27+
/// </summary>
28+
[NameInMap("Path")]
29+
[Validation(Required=false)]
30+
public string Path { get; set; }
31+
32+
/// <summary>
33+
/// <b>Example:</b>
34+
/// <para>true</para>
35+
/// </summary>
36+
[NameInMap("Retry")]
37+
[Validation(Required=false)]
38+
public long? Retry { get; set; }
39+
40+
/// <summary>
41+
/// <para>This parameter is required.</para>
42+
///
43+
/// <b>Example:</b>
44+
/// <para>8vkixxxxx***</para>
45+
/// </summary>
46+
[NameInMap("SessionId")]
47+
[Validation(Required=false)]
48+
public string SessionId { get; set; }
49+
50+
/// <summary>
51+
/// <b>Example:</b>
52+
/// <para>8630242382****</para>
53+
/// </summary>
54+
[NameInMap("WorkspaceId")]
55+
[Validation(Required=false)]
56+
public string WorkspaceId { get; set; }
57+
58+
}
59+
60+
}
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
// This file is auto-generated, don't edit it. Thanks.
2+
3+
using System;
4+
using System.Collections.Generic;
5+
using System.IO;
6+
7+
using Tea;
8+
9+
namespace AlibabaCloud.SDK.Dms20250414.Models
10+
{
11+
public class GetNotebookAndSubmitTaskResponse : TeaModel {
12+
[NameInMap("headers")]
13+
[Validation(Required=false)]
14+
public Dictionary<string, string> Headers { get; set; }
15+
16+
[NameInMap("statusCode")]
17+
[Validation(Required=false)]
18+
public int? StatusCode { get; set; }
19+
20+
[NameInMap("body")]
21+
[Validation(Required=false)]
22+
public GetNotebookAndSubmitTaskResponseBody Body { get; set; }
23+
24+
}
25+
26+
}
Lines changed: 70 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,70 @@
1+
// This file is auto-generated, don't edit it. Thanks.
2+
3+
using System;
4+
using System.Collections.Generic;
5+
using System.IO;
6+
7+
using Tea;
8+
9+
namespace AlibabaCloud.SDK.Dms20250414.Models
10+
{
11+
public class GetNotebookAndSubmitTaskResponseBody : TeaModel {
12+
/// <summary>
13+
/// <b>Example:</b>
14+
/// <para>Success</para>
15+
/// </summary>
16+
[NameInMap("Code")]
17+
[Validation(Required=false)]
18+
public string Code { get; set; }
19+
20+
/// <summary>
21+
/// <b>Example:</b>
22+
/// <para>Request Invalid</para>
23+
/// </summary>
24+
[NameInMap("ErrMsg")]
25+
[Validation(Required=false)]
26+
public string ErrMsg { get; set; }
27+
28+
/// <summary>
29+
/// <b>Example:</b>
30+
/// <para>200</para>
31+
/// </summary>
32+
[NameInMap("HttpStatusCode")]
33+
[Validation(Required=false)]
34+
public int? HttpStatusCode { get; set; }
35+
36+
/// <summary>
37+
/// <b>Example:</b>
38+
/// <para>67E910F2-4B62-5B0C-ACA3-7547695C****</para>
39+
/// </summary>
40+
[NameInMap("RequestId")]
41+
[Validation(Required=false)]
42+
public string RequestId { get; set; }
43+
44+
/// <summary>
45+
/// <b>Example:</b>
46+
/// <para>5zrs5szpiezlb9m3qxi6zp32h</para>
47+
/// </summary>
48+
[NameInMap("SessionId")]
49+
[Validation(Required=false)]
50+
public string SessionId { get; set; }
51+
52+
/// <summary>
53+
/// <b>Example:</b>
54+
/// <para>true</para>
55+
/// </summary>
56+
[NameInMap("Success")]
57+
[Validation(Required=false)]
58+
public bool? Success { get; set; }
59+
60+
/// <summary>
61+
/// <b>Example:</b>
62+
/// <para>IcICC2nbMpYp9KygS43n010100</para>
63+
/// </summary>
64+
[NameInMap("TaskId")]
65+
[Validation(Required=false)]
66+
public string TaskId { get; set; }
67+
68+
}
69+
70+
}

dms-20250414/core/Properties/AssemblyInfo.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
[assembly: ComVisible(false)]
2121

2222
// The following GUID is for the ID of the typelib if this project is exposed to COM
23-
[assembly: Guid("9ac24470-8251-11f0-bc11-c32f998feb3c")]
23+
[assembly: Guid("838e3fd0-af69-11f0-9d0f-43a52db344cf")]
2424

2525
// Version information for an assembly consists of the following four values:
2626
//
@@ -29,5 +29,5 @@
2929
// Build Number
3030
// Revision
3131
//
32-
[assembly: AssemblyVersion("1.0.0.0")]
33-
[assembly: AssemblyFileVersion("1.1.0.0")]
32+
[assembly: AssemblyVersion("1.1.0.0")]
33+
[assembly: AssemblyFileVersion("1.2.0.0")]

dms-20250414/core/dms.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
<GeneratePackageOnBuild>false</GeneratePackageOnBuild>
88
<GenerateAssemblyInfo>false</GenerateAssemblyInfo>
99
<AssemblyName>AlibabaCloud.SDK.Dms20250414</AssemblyName>
10-
<Version>1.1.0</Version>
10+
<Version>1.2.0</Version>
1111
<LangVersion>5</LangVersion>
1212
<Authors>Alibaba Cloud</Authors>
1313
<Description>Alibaba Cloud Data Management (20250414) SDK Library for .NET</Description>

0 commit comments

Comments
 (0)