Skip to content

Commit ea5b66f

Browse files
committed
Support CreateInstance API.
1 parent 30a6fc1 commit ea5b66f

File tree

6 files changed

+379
-1
lines changed

6 files changed

+379
-1
lines changed

CHANGELOG

+4
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
2024-03-08 Version: 1.1.3
2+
- Support CreateInstance API.
3+
- Support UpdateInstance API.
4+
15
2024-03-08 Version: 3.7.16
26
- Generated 2015-12-01 for `Dds`.
37

aliyun-net-sdk-amqp-open/Amqp_open/Model/V20191212/CreateInstanceRequest.cs

+60
Original file line numberDiff line numberDiff line change
@@ -56,12 +56,20 @@ public CreateInstanceRequest()
5656

5757
private bool? supportTracing;
5858

59+
private string serverlessChargeType;
60+
5961
private string instanceType;
6062

63+
private string renewStatus;
64+
6165
private int? autoRenewPeriod;
6266

6367
private int? period;
6468

69+
private string renewalDurationUnit;
70+
71+
private string instanceName;
72+
6573
private bool? autoRenew;
6674

6775
private bool? supportEip;
@@ -174,6 +182,19 @@ public bool? SupportTracing
174182
}
175183
}
176184

185+
public string ServerlessChargeType
186+
{
187+
get
188+
{
189+
return serverlessChargeType;
190+
}
191+
set
192+
{
193+
serverlessChargeType = value;
194+
DictionaryUtil.Add(QueryParameters, "ServerlessChargeType", value);
195+
}
196+
}
197+
177198
public string InstanceType
178199
{
179200
get
@@ -187,6 +208,19 @@ public string InstanceType
187208
}
188209
}
189210

211+
public string RenewStatus
212+
{
213+
get
214+
{
215+
return renewStatus;
216+
}
217+
set
218+
{
219+
renewStatus = value;
220+
DictionaryUtil.Add(QueryParameters, "RenewStatus", value);
221+
}
222+
}
223+
190224
public int? AutoRenewPeriod
191225
{
192226
get
@@ -213,6 +247,32 @@ public int? Period
213247
}
214248
}
215249

250+
public string RenewalDurationUnit
251+
{
252+
get
253+
{
254+
return renewalDurationUnit;
255+
}
256+
set
257+
{
258+
renewalDurationUnit = value;
259+
DictionaryUtil.Add(QueryParameters, "RenewalDurationUnit", value);
260+
}
261+
}
262+
263+
public string InstanceName
264+
{
265+
get
266+
{
267+
return instanceName;
268+
}
269+
set
270+
{
271+
instanceName = value;
272+
DictionaryUtil.Add(QueryParameters, "InstanceName", value);
273+
}
274+
}
275+
216276
public bool? AutoRenew
217277
{
218278
get
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,248 @@
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.amqp_open.Transform;
26+
using Aliyun.Acs.amqp_open.Transform.V20191212;
27+
28+
namespace Aliyun.Acs.amqp_open.Model.V20191212
29+
{
30+
public class UpdateInstanceRequest : RpcAcsRequest<UpdateInstanceResponse>
31+
{
32+
public UpdateInstanceRequest()
33+
: base("amqp-open", "2019-12-12", "UpdateInstance", "onsproxy", "openAPI")
34+
{
35+
if (this.GetType().GetProperty("ProductEndpointMap") != null && this.GetType().GetProperty("ProductEndpointType") != null)
36+
{
37+
this.GetType().GetProperty("ProductEndpointMap").SetValue(this, Aliyun.Acs.amqp_open.Endpoint.endpointMap, null);
38+
this.GetType().GetProperty("ProductEndpointType").SetValue(this, Aliyun.Acs.amqp_open.Endpoint.endpointRegionalType, null);
39+
}
40+
Method = MethodType.POST;
41+
}
42+
43+
private long? maxPrivateTps;
44+
45+
private string clientToken;
46+
47+
private int? storageSize;
48+
49+
private int? queueCapacity;
50+
51+
private int? tracingStorageTime;
52+
53+
private int? maxConnections;
54+
55+
private bool? supportTracing;
56+
57+
private string serverlessChargeType;
58+
59+
private string instanceType;
60+
61+
private string instanceId;
62+
63+
private bool? supportEip;
64+
65+
private string modifyType;
66+
67+
private long? maxEipTps;
68+
69+
public long? MaxPrivateTps
70+
{
71+
get
72+
{
73+
return maxPrivateTps;
74+
}
75+
set
76+
{
77+
maxPrivateTps = value;
78+
DictionaryUtil.Add(QueryParameters, "MaxPrivateTps", value.ToString());
79+
}
80+
}
81+
82+
public string ClientToken
83+
{
84+
get
85+
{
86+
return clientToken;
87+
}
88+
set
89+
{
90+
clientToken = value;
91+
DictionaryUtil.Add(QueryParameters, "ClientToken", value);
92+
}
93+
}
94+
95+
public int? StorageSize
96+
{
97+
get
98+
{
99+
return storageSize;
100+
}
101+
set
102+
{
103+
storageSize = value;
104+
DictionaryUtil.Add(QueryParameters, "StorageSize", value.ToString());
105+
}
106+
}
107+
108+
public int? QueueCapacity
109+
{
110+
get
111+
{
112+
return queueCapacity;
113+
}
114+
set
115+
{
116+
queueCapacity = value;
117+
DictionaryUtil.Add(QueryParameters, "QueueCapacity", value.ToString());
118+
}
119+
}
120+
121+
public int? TracingStorageTime
122+
{
123+
get
124+
{
125+
return tracingStorageTime;
126+
}
127+
set
128+
{
129+
tracingStorageTime = value;
130+
DictionaryUtil.Add(QueryParameters, "TracingStorageTime", value.ToString());
131+
}
132+
}
133+
134+
public int? MaxConnections
135+
{
136+
get
137+
{
138+
return maxConnections;
139+
}
140+
set
141+
{
142+
maxConnections = value;
143+
DictionaryUtil.Add(QueryParameters, "MaxConnections", value.ToString());
144+
}
145+
}
146+
147+
public bool? SupportTracing
148+
{
149+
get
150+
{
151+
return supportTracing;
152+
}
153+
set
154+
{
155+
supportTracing = value;
156+
DictionaryUtil.Add(QueryParameters, "SupportTracing", value.ToString());
157+
}
158+
}
159+
160+
public string ServerlessChargeType
161+
{
162+
get
163+
{
164+
return serverlessChargeType;
165+
}
166+
set
167+
{
168+
serverlessChargeType = value;
169+
DictionaryUtil.Add(QueryParameters, "ServerlessChargeType", value);
170+
}
171+
}
172+
173+
public string InstanceType
174+
{
175+
get
176+
{
177+
return instanceType;
178+
}
179+
set
180+
{
181+
instanceType = value;
182+
DictionaryUtil.Add(QueryParameters, "InstanceType", value);
183+
}
184+
}
185+
186+
public string InstanceId
187+
{
188+
get
189+
{
190+
return instanceId;
191+
}
192+
set
193+
{
194+
instanceId = value;
195+
DictionaryUtil.Add(QueryParameters, "InstanceId", value);
196+
}
197+
}
198+
199+
public bool? SupportEip
200+
{
201+
get
202+
{
203+
return supportEip;
204+
}
205+
set
206+
{
207+
supportEip = value;
208+
DictionaryUtil.Add(QueryParameters, "SupportEip", value.ToString());
209+
}
210+
}
211+
212+
public string ModifyType
213+
{
214+
get
215+
{
216+
return modifyType;
217+
}
218+
set
219+
{
220+
modifyType = value;
221+
DictionaryUtil.Add(QueryParameters, "ModifyType", value);
222+
}
223+
}
224+
225+
public long? MaxEipTps
226+
{
227+
get
228+
{
229+
return maxEipTps;
230+
}
231+
set
232+
{
233+
maxEipTps = value;
234+
DictionaryUtil.Add(QueryParameters, "MaxEipTps", value.ToString());
235+
}
236+
}
237+
238+
public override bool CheckShowJsonItemName()
239+
{
240+
return false;
241+
}
242+
243+
public override UpdateInstanceResponse GetResponse(UnmarshallerContext unmarshallerContext)
244+
{
245+
return UpdateInstanceResponseUnmarshaller.Unmarshall(unmarshallerContext);
246+
}
247+
}
248+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
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.amqp_open.Model.V20191212
24+
{
25+
public class UpdateInstanceResponse : AcsResponse
26+
{
27+
}
28+
}

0 commit comments

Comments
 (0)