Skip to content

Commit ad60c21

Browse files
committed
Disabled Spark Job API.
1 parent c421d09 commit ad60c21

8 files changed

+688
-1
lines changed

CHANGELOG

+3
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
2022-03-10 Version: 1.29.0
2+
- Disabled Spark Job API.
3+
14
2022-03-09 Version: 1.8.17
25
- Support modify params.
36

Original file line numberDiff line numberDiff line change
@@ -0,0 +1,226 @@
1+
/*
2+
* Licensed to the Apache Software Foundation (ASF) under one
3+
* or more contributor license agreements. See the NOTICE file
4+
* distributed with this work for additional information
5+
* regarding copyright ownership. The ASF licenses this file
6+
* to you under the Apache License, Version 2.0 (the
7+
* "License"); you may not use this file except in compliance
8+
* with the License. You may obtain a copy of the License at
9+
*
10+
* http://www.apache.org/licenses/LICENSE-2.0
11+
*
12+
* Unless required by applicable law or agreed to in writing,
13+
* software distributed under the License is distributed on an
14+
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15+
* KIND, either express or implied. See the License for the
16+
* specific language governing permissions and limitations
17+
* under the License.
18+
*/
19+
using System.Collections.Generic;
20+
using Newtonsoft.Json;
21+
22+
using Aliyun.Acs.Core;
23+
using Aliyun.Acs.Core.Http;
24+
using Aliyun.Acs.Core.Transform;
25+
using Aliyun.Acs.Core.Utils;
26+
using Aliyun.Acs.dms_enterprise.Transform;
27+
using Aliyun.Acs.dms_enterprise.Transform.V20181101;
28+
29+
namespace Aliyun.Acs.dms_enterprise.Model.V20181101
30+
{
31+
public class CreateDataExportOrderRequest : RpcAcsRequest<CreateDataExportOrderResponse>
32+
{
33+
public CreateDataExportOrderRequest()
34+
: base("dms-enterprise", "2018-11-01", "CreateDataExportOrder", "dms-enterprise", "openAPI")
35+
{
36+
if (this.GetType().GetProperty("ProductEndpointMap") != null && this.GetType().GetProperty("ProductEndpointType") != null)
37+
{
38+
this.GetType().GetProperty("ProductEndpointMap").SetValue(this, Aliyun.Acs.dms_enterprise.Endpoint.endpointMap, null);
39+
this.GetType().GetProperty("ProductEndpointType").SetValue(this, Aliyun.Acs.dms_enterprise.Endpoint.endpointRegionalType, null);
40+
}
41+
Method = MethodType.POST;
42+
}
43+
44+
private long? tid;
45+
46+
private string attachmentKey;
47+
48+
private Param param_;
49+
50+
private string comment;
51+
52+
private List<long?> relatedUserList = new List<long?>(){ };
53+
54+
[JsonProperty(PropertyName = "Tid")]
55+
public long? Tid
56+
{
57+
get
58+
{
59+
return tid;
60+
}
61+
set
62+
{
63+
tid = value;
64+
DictionaryUtil.Add(QueryParameters, "Tid", value.ToString());
65+
}
66+
}
67+
68+
[JsonProperty(PropertyName = "AttachmentKey")]
69+
public string AttachmentKey
70+
{
71+
get
72+
{
73+
return attachmentKey;
74+
}
75+
set
76+
{
77+
attachmentKey = value;
78+
DictionaryUtil.Add(QueryParameters, "AttachmentKey", value);
79+
}
80+
}
81+
82+
[JsonProperty(PropertyName = "Param")]
83+
public Param Param_
84+
{
85+
get
86+
{
87+
return param_;
88+
}
89+
90+
set
91+
{
92+
param_ = value;
93+
DictionaryUtil.Add(QueryParameters, "Param", JsonConvert.SerializeObject(value));
94+
95+
}
96+
}
97+
98+
[JsonProperty(PropertyName = "Comment")]
99+
public string Comment
100+
{
101+
get
102+
{
103+
return comment;
104+
}
105+
set
106+
{
107+
comment = value;
108+
DictionaryUtil.Add(QueryParameters, "Comment", value);
109+
}
110+
}
111+
112+
[JsonProperty(PropertyName = "RelatedUserList")]
113+
public List<long?> RelatedUserList
114+
{
115+
get
116+
{
117+
return relatedUserList;
118+
}
119+
120+
set
121+
{
122+
relatedUserList = value;
123+
if(relatedUserList != null)
124+
{
125+
for (int depth1 = 0; depth1 < relatedUserList.Count; depth1++)
126+
{
127+
DictionaryUtil.Add(QueryParameters,"RelatedUserList." + (depth1 + 1), relatedUserList[depth1]);
128+
}
129+
}
130+
}
131+
}
132+
133+
public class Param
134+
{
135+
136+
private string classify;
137+
138+
private List<DbItemListItem> dbItemList = new List<DbItemListItem>(){ };
139+
140+
private string execSQL;
141+
142+
[JsonProperty(PropertyName = "Classify")]
143+
public string Classify
144+
{
145+
get
146+
{
147+
return classify;
148+
}
149+
set
150+
{
151+
classify = value;
152+
}
153+
}
154+
155+
[JsonProperty(PropertyName = "DbItemList")]
156+
public List<DbItemListItem> DbItemList
157+
{
158+
get
159+
{
160+
return dbItemList;
161+
}
162+
set
163+
{
164+
dbItemList = value;
165+
}
166+
}
167+
168+
[JsonProperty(PropertyName = "ExecSQL")]
169+
public string ExecSQL
170+
{
171+
get
172+
{
173+
return execSQL;
174+
}
175+
set
176+
{
177+
execSQL = value;
178+
}
179+
}
180+
181+
public class DbItemListItem
182+
{
183+
184+
private long? dbId;
185+
186+
private bool? logic;
187+
188+
[JsonProperty(PropertyName = "DbId")]
189+
public long? DbId
190+
{
191+
get
192+
{
193+
return dbId;
194+
}
195+
set
196+
{
197+
dbId = value;
198+
}
199+
}
200+
201+
[JsonProperty(PropertyName = "Logic")]
202+
public bool? Logic
203+
{
204+
get
205+
{
206+
return logic;
207+
}
208+
set
209+
{
210+
logic = value;
211+
}
212+
}
213+
}
214+
}
215+
216+
public override bool CheckShowJsonItemName()
217+
{
218+
return false;
219+
}
220+
221+
public override CreateDataExportOrderResponse GetResponse(UnmarshallerContext unmarshallerContext)
222+
{
223+
return CreateDataExportOrderResponseUnmarshaller.Unmarshall(unmarshallerContext);
224+
}
225+
}
226+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,103 @@
1+
/*
2+
* Licensed to the Apache Software Foundation (ASF) under one
3+
* or more contributor license agreements. See the NOTICE file
4+
* distributed with this work for additional information
5+
* regarding copyright ownership. The ASF licenses this file
6+
* to you under the Apache License, Version 2.0 (the
7+
* "License"); you may not use this file except in compliance
8+
* with the License. You may obtain a copy of the License at
9+
*
10+
* http://www.apache.org/licenses/LICENSE-2.0
11+
*
12+
* Unless required by applicable law or agreed to in writing,
13+
* software distributed under the License is distributed on an
14+
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15+
* KIND, either express or implied. See the License for the
16+
* specific language governing permissions and limitations
17+
* under the License.
18+
*/
19+
using System.Collections.Generic;
20+
using Newtonsoft.Json;
21+
using Aliyun.Acs.Core;
22+
23+
namespace Aliyun.Acs.dms_enterprise.Model.V20181101
24+
{
25+
public class CreateDataExportOrderResponse : AcsResponse
26+
{
27+
28+
private string requestId;
29+
30+
private bool? success;
31+
32+
private string errorMessage;
33+
34+
private string errorCode;
35+
36+
private List<string> createOrderResult;
37+
38+
[JsonProperty(PropertyName = "RequestId")]
39+
public string RequestId
40+
{
41+
get
42+
{
43+
return requestId;
44+
}
45+
set
46+
{
47+
requestId = value;
48+
}
49+
}
50+
51+
[JsonProperty(PropertyName = "Success")]
52+
public bool? Success
53+
{
54+
get
55+
{
56+
return success;
57+
}
58+
set
59+
{
60+
success = value;
61+
}
62+
}
63+
64+
[JsonProperty(PropertyName = "ErrorMessage")]
65+
public string ErrorMessage
66+
{
67+
get
68+
{
69+
return errorMessage;
70+
}
71+
set
72+
{
73+
errorMessage = value;
74+
}
75+
}
76+
77+
[JsonProperty(PropertyName = "ErrorCode")]
78+
public string ErrorCode
79+
{
80+
get
81+
{
82+
return errorCode;
83+
}
84+
set
85+
{
86+
errorCode = value;
87+
}
88+
}
89+
90+
[JsonProperty(PropertyName = "CreateOrderResult")]
91+
public List<string> CreateOrderResult
92+
{
93+
get
94+
{
95+
return createOrderResult;
96+
}
97+
set
98+
{
99+
createOrderResult = value;
100+
}
101+
}
102+
}
103+
}

0 commit comments

Comments
 (0)