Skip to content

Commit a97a4b4

Browse files
committed
Supported CheckCloudResourceAuthorized API.
1 parent 2c02e39 commit a97a4b4

File tree

39 files changed

+1819
-39
lines changed

39 files changed

+1819
-39
lines changed

aliyun-net-sdk-rds/ChangeLog.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
2020-07-27 Version: 2.4.9
2+
- Supported CheckCloudResourceAuthorized API.
3+
14
2020-06-18 Version: 2.4.8
25
- Supported TransformDBInstancePayType API.
36

aliyun-net-sdk-rds/Rds/Model/V20140815/CreateDBInstanceRequest.cs

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,10 @@ public CreateDBInstanceRequest()
8686

8787
private string targetDedicatedHostIdForSlave;
8888

89+
private string zoneIdSlave1;
90+
91+
private string zoneIdSlave2;
92+
8993
private string dBIsIgnoreCase;
9094

9195
private string engine;
@@ -405,6 +409,32 @@ public string TargetDedicatedHostIdForSlave
405409
}
406410
}
407411

412+
public string ZoneIdSlave1
413+
{
414+
get
415+
{
416+
return zoneIdSlave1;
417+
}
418+
set
419+
{
420+
zoneIdSlave1 = value;
421+
DictionaryUtil.Add(QueryParameters, "ZoneIdSlave1", value);
422+
}
423+
}
424+
425+
public string ZoneIdSlave2
426+
{
427+
get
428+
{
429+
return zoneIdSlave2;
430+
}
431+
set
432+
{
433+
zoneIdSlave2 = value;
434+
DictionaryUtil.Add(QueryParameters, "ZoneIdSlave2", value);
435+
}
436+
}
437+
408438
public string DBIsIgnoreCase
409439
{
410440
get
Lines changed: 183 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,183 @@
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.Rds.Transform;
26+
using Aliyun.Acs.Rds.Transform.V20140815;
27+
28+
namespace Aliyun.Acs.Rds.Model.V20140815
29+
{
30+
public class CreateHostAccountRequest : RpcAcsRequest<CreateHostAccountResponse>
31+
{
32+
public CreateHostAccountRequest()
33+
: base("Rds", "2014-08-15", "CreateHostAccount", "rds", "openAPI")
34+
{
35+
if (this.GetType().GetProperty("ProductEndpointMap") != null && this.GetType().GetProperty("ProductEndpointType") != null)
36+
{
37+
this.GetType().GetProperty("ProductEndpointMap").SetValue(this, Endpoint.endpointMap, null);
38+
this.GetType().GetProperty("ProductEndpointType").SetValue(this, Endpoint.endpointRegionalType, null);
39+
}
40+
Method = MethodType.POST;
41+
}
42+
43+
private long? resourceOwnerId;
44+
45+
private string clientToken;
46+
47+
private string accountType;
48+
49+
private string accountDescription;
50+
51+
private string accountName;
52+
53+
private string dBInstanceId;
54+
55+
private string resourceOwnerAccount;
56+
57+
private long? ownerId;
58+
59+
private string accountPassword;
60+
61+
public long? ResourceOwnerId
62+
{
63+
get
64+
{
65+
return resourceOwnerId;
66+
}
67+
set
68+
{
69+
resourceOwnerId = value;
70+
DictionaryUtil.Add(QueryParameters, "ResourceOwnerId", value.ToString());
71+
}
72+
}
73+
74+
public string ClientToken
75+
{
76+
get
77+
{
78+
return clientToken;
79+
}
80+
set
81+
{
82+
clientToken = value;
83+
DictionaryUtil.Add(QueryParameters, "ClientToken", value);
84+
}
85+
}
86+
87+
public string AccountType
88+
{
89+
get
90+
{
91+
return accountType;
92+
}
93+
set
94+
{
95+
accountType = value;
96+
DictionaryUtil.Add(QueryParameters, "AccountType", value);
97+
}
98+
}
99+
100+
public string AccountDescription
101+
{
102+
get
103+
{
104+
return accountDescription;
105+
}
106+
set
107+
{
108+
accountDescription = value;
109+
DictionaryUtil.Add(QueryParameters, "AccountDescription", value);
110+
}
111+
}
112+
113+
public string AccountName
114+
{
115+
get
116+
{
117+
return accountName;
118+
}
119+
set
120+
{
121+
accountName = value;
122+
DictionaryUtil.Add(QueryParameters, "AccountName", value);
123+
}
124+
}
125+
126+
public string DBInstanceId
127+
{
128+
get
129+
{
130+
return dBInstanceId;
131+
}
132+
set
133+
{
134+
dBInstanceId = value;
135+
DictionaryUtil.Add(QueryParameters, "DBInstanceId", value);
136+
}
137+
}
138+
139+
public string ResourceOwnerAccount
140+
{
141+
get
142+
{
143+
return resourceOwnerAccount;
144+
}
145+
set
146+
{
147+
resourceOwnerAccount = value;
148+
DictionaryUtil.Add(QueryParameters, "ResourceOwnerAccount", value);
149+
}
150+
}
151+
152+
public long? OwnerId
153+
{
154+
get
155+
{
156+
return ownerId;
157+
}
158+
set
159+
{
160+
ownerId = value;
161+
DictionaryUtil.Add(QueryParameters, "OwnerId", value.ToString());
162+
}
163+
}
164+
165+
public string AccountPassword
166+
{
167+
get
168+
{
169+
return accountPassword;
170+
}
171+
set
172+
{
173+
accountPassword = value;
174+
DictionaryUtil.Add(QueryParameters, "AccountPassword", value);
175+
}
176+
}
177+
178+
public override CreateHostAccountResponse GetResponse(UnmarshallerContext unmarshallerContext)
179+
{
180+
return CreateHostAccountResponseUnmarshaller.Unmarshall(unmarshallerContext);
181+
}
182+
}
183+
}
Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
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+
23+
namespace Aliyun.Acs.Rds.Model.V20140815
24+
{
25+
public class CreateHostAccountResponse : AcsResponse
26+
{
27+
28+
private string requestId;
29+
30+
public string RequestId
31+
{
32+
get
33+
{
34+
return requestId;
35+
}
36+
set
37+
{
38+
requestId = value;
39+
}
40+
}
41+
}
42+
}

aliyun-net-sdk-rds/Rds/Model/V20140815/CreateReadOnlyDBInstanceRequest.cs

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,16 +50,22 @@ public CreateReadOnlyDBInstanceRequest()
5050

5151
private string resourceGroupId;
5252

53+
private string tddlRegionConfig;
54+
5355
private string targetDedicatedHostIdForMaster;
5456

5557
private string dBInstanceId;
5658

5759
private string dBInstanceDescription;
5860

61+
private string gdnInstanceName;
62+
5963
private string dBInstanceStorageType;
6064

6165
private string dedicatedHostGroupId;
6266

67+
private string tddlBizType;
68+
6369
private string resourceOwnerAccount;
6470

6571
private string ownerAccount;
@@ -147,6 +153,19 @@ public string ResourceGroupId
147153
}
148154
}
149155

156+
public string TddlRegionConfig
157+
{
158+
get
159+
{
160+
return tddlRegionConfig;
161+
}
162+
set
163+
{
164+
tddlRegionConfig = value;
165+
DictionaryUtil.Add(QueryParameters, "TddlRegionConfig", value);
166+
}
167+
}
168+
150169
public string TargetDedicatedHostIdForMaster
151170
{
152171
get
@@ -186,6 +205,19 @@ public string DBInstanceDescription
186205
}
187206
}
188207

208+
public string GdnInstanceName
209+
{
210+
get
211+
{
212+
return gdnInstanceName;
213+
}
214+
set
215+
{
216+
gdnInstanceName = value;
217+
DictionaryUtil.Add(QueryParameters, "GdnInstanceName", value);
218+
}
219+
}
220+
189221
public string DBInstanceStorageType
190222
{
191223
get
@@ -212,6 +244,19 @@ public string DedicatedHostGroupId
212244
}
213245
}
214246

247+
public string TddlBizType
248+
{
249+
get
250+
{
251+
return tddlBizType;
252+
}
253+
set
254+
{
255+
tddlBizType = value;
256+
DictionaryUtil.Add(QueryParameters, "TddlBizType", value);
257+
}
258+
}
259+
215260
public string ResourceOwnerAccount
216261
{
217262
get

0 commit comments

Comments
 (0)