Skip to content

Commit 45b0eed

Browse files
committed
Support dms dg.
1 parent 43fb21a commit 45b0eed

File tree

62 files changed

+6199
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

62 files changed

+6199
-0
lines changed

CHANGELOG

+3
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
2024-06-05 Version: 1.0.0
2+
- Support dms dg.
3+
14
2024-06-04 Version: 3.9.53
25
- Update to support new apis.
36

Original file line numberDiff line numberDiff line change
@@ -0,0 +1,79 @@
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+
21+
using Aliyun.Acs.Core;
22+
using Aliyun.Acs.Core.Http;
23+
using Aliyun.Acs.Core.Transform;
24+
using Aliyun.Acs.Core.Utils;
25+
using Aliyun.Acs.dms_dg;
26+
using Aliyun.Acs.dms_dg.Transform;
27+
using Aliyun.Acs.dms_dg.Transform.V20230914;
28+
29+
namespace Aliyun.Acs.dms_dg.Model.V20230914
30+
{
31+
public class AddDatabaseListRequest : RpcAcsRequest<AddDatabaseListResponse>
32+
{
33+
public AddDatabaseListRequest()
34+
: base("dms-dg", "2023-09-14", "AddDatabaseList")
35+
{
36+
Method = MethodType.POST;
37+
}
38+
39+
private string databaseString;
40+
41+
private string clientToken;
42+
43+
public string DatabaseString
44+
{
45+
get
46+
{
47+
return databaseString;
48+
}
49+
set
50+
{
51+
databaseString = value;
52+
DictionaryUtil.Add(BodyParameters, "DatabaseString", value);
53+
}
54+
}
55+
56+
public string ClientToken
57+
{
58+
get
59+
{
60+
return clientToken;
61+
}
62+
set
63+
{
64+
clientToken = value;
65+
DictionaryUtil.Add(BodyParameters, "ClientToken", value);
66+
}
67+
}
68+
69+
public override bool CheckShowJsonItemName()
70+
{
71+
return false;
72+
}
73+
74+
public override AddDatabaseListResponse GetResponse(UnmarshallerContext unmarshallerContext)
75+
{
76+
return AddDatabaseListResponseUnmarshaller.Unmarshall(unmarshallerContext);
77+
}
78+
}
79+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,98 @@
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_dg.Model.V20230914
24+
{
25+
public class AddDatabaseListResponse : AcsResponse
26+
{
27+
28+
private string code;
29+
30+
private string data;
31+
32+
private string errorMsg;
33+
34+
private string requestId;
35+
36+
private bool? success;
37+
38+
public string Code
39+
{
40+
get
41+
{
42+
return code;
43+
}
44+
set
45+
{
46+
code = value;
47+
}
48+
}
49+
50+
public string Data
51+
{
52+
get
53+
{
54+
return data;
55+
}
56+
set
57+
{
58+
data = value;
59+
}
60+
}
61+
62+
public string ErrorMsg
63+
{
64+
get
65+
{
66+
return errorMsg;
67+
}
68+
set
69+
{
70+
errorMsg = value;
71+
}
72+
}
73+
74+
public string RequestId
75+
{
76+
get
77+
{
78+
return requestId;
79+
}
80+
set
81+
{
82+
requestId = value;
83+
}
84+
}
85+
86+
public bool? Success
87+
{
88+
get
89+
{
90+
return success;
91+
}
92+
set
93+
{
94+
success = value;
95+
}
96+
}
97+
}
98+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,185 @@
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+
21+
using Aliyun.Acs.Core;
22+
using Aliyun.Acs.Core.Http;
23+
using Aliyun.Acs.Core.Transform;
24+
using Aliyun.Acs.Core.Utils;
25+
using Aliyun.Acs.dms_dg;
26+
using Aliyun.Acs.dms_dg.Transform;
27+
using Aliyun.Acs.dms_dg.Transform.V20230914;
28+
29+
namespace Aliyun.Acs.dms_dg.Model.V20230914
30+
{
31+
public class AddDatabaseRequest : RpcAcsRequest<AddDatabaseResponse>
32+
{
33+
public AddDatabaseRequest()
34+
: base("dms-dg", "2023-09-14", "AddDatabase")
35+
{
36+
Protocol = ProtocolType.HTTPS;
37+
Method = MethodType.POST;
38+
}
39+
40+
private string clientToken;
41+
42+
private string host;
43+
44+
private string dbUserName;
45+
46+
private string dbDescription;
47+
48+
private string gatewayId;
49+
50+
private string dbName;
51+
52+
private int? port;
53+
54+
private string dbPassword;
55+
56+
private string dbType;
57+
58+
public string ClientToken
59+
{
60+
get
61+
{
62+
return clientToken;
63+
}
64+
set
65+
{
66+
clientToken = value;
67+
DictionaryUtil.Add(BodyParameters, "ClientToken", value);
68+
}
69+
}
70+
71+
public string Host
72+
{
73+
get
74+
{
75+
return host;
76+
}
77+
set
78+
{
79+
host = value;
80+
DictionaryUtil.Add(BodyParameters, "Host", value);
81+
}
82+
}
83+
84+
public string DbUserName
85+
{
86+
get
87+
{
88+
return dbUserName;
89+
}
90+
set
91+
{
92+
dbUserName = value;
93+
DictionaryUtil.Add(BodyParameters, "DbUserName", value);
94+
}
95+
}
96+
97+
public string DbDescription
98+
{
99+
get
100+
{
101+
return dbDescription;
102+
}
103+
set
104+
{
105+
dbDescription = value;
106+
DictionaryUtil.Add(BodyParameters, "DbDescription", value);
107+
}
108+
}
109+
110+
public string GatewayId
111+
{
112+
get
113+
{
114+
return gatewayId;
115+
}
116+
set
117+
{
118+
gatewayId = value;
119+
DictionaryUtil.Add(BodyParameters, "GatewayId", value);
120+
}
121+
}
122+
123+
public string DbName
124+
{
125+
get
126+
{
127+
return dbName;
128+
}
129+
set
130+
{
131+
dbName = value;
132+
DictionaryUtil.Add(BodyParameters, "DbName", value);
133+
}
134+
}
135+
136+
public int? Port
137+
{
138+
get
139+
{
140+
return port;
141+
}
142+
set
143+
{
144+
port = value;
145+
DictionaryUtil.Add(BodyParameters, "Port", value.ToString());
146+
}
147+
}
148+
149+
public string DbPassword
150+
{
151+
get
152+
{
153+
return dbPassword;
154+
}
155+
set
156+
{
157+
dbPassword = value;
158+
DictionaryUtil.Add(BodyParameters, "DbPassword", value);
159+
}
160+
}
161+
162+
public string DbType
163+
{
164+
get
165+
{
166+
return dbType;
167+
}
168+
set
169+
{
170+
dbType = value;
171+
DictionaryUtil.Add(BodyParameters, "DbType", value);
172+
}
173+
}
174+
175+
public override bool CheckShowJsonItemName()
176+
{
177+
return false;
178+
}
179+
180+
public override AddDatabaseResponse GetResponse(UnmarshallerContext unmarshallerContext)
181+
{
182+
return AddDatabaseResponseUnmarshaller.Unmarshall(unmarshallerContext);
183+
}
184+
}
185+
}

0 commit comments

Comments
 (0)