Skip to content

Commit 882becb

Browse files
committed
Update DescribeApiMetering API.
1 parent 9d80d73 commit 882becb

8 files changed

+881
-1
lines changed

CHANGELOG

+3
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
2024-11-26 Version: 2.0.31
2+
- Update DescribeApiMetering API.
3+
14
2024-11-26 Version: 2.0.30
25
- Update DescribeApiMetering API.
36

Original file line numberDiff line numberDiff line change
@@ -0,0 +1,71 @@
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.Market.Transform;
27+
using Aliyun.Acs.Market.Transform.V20151101;
28+
29+
namespace Aliyun.Acs.Market.Model.V20151101
30+
{
31+
public class DescribeInstanceForIsvRequest : RpcAcsRequest<DescribeInstanceForIsvResponse>
32+
{
33+
public DescribeInstanceForIsvRequest()
34+
: base("Market", "2015-11-01", "DescribeInstanceForIsv", "yunmarket", "openAPI")
35+
{
36+
if (this.GetType().GetProperty("ProductEndpointMap") != null && this.GetType().GetProperty("ProductEndpointType") != null)
37+
{
38+
this.GetType().GetProperty("ProductEndpointMap").SetValue(this, Aliyun.Acs.Market.Endpoint.endpointMap, null);
39+
this.GetType().GetProperty("ProductEndpointType").SetValue(this, Aliyun.Acs.Market.Endpoint.endpointRegionalType, null);
40+
}
41+
Protocol = ProtocolType.HTTPS;
42+
Method = MethodType.POST;
43+
}
44+
45+
private string instanceId;
46+
47+
[JsonProperty(PropertyName = "InstanceId")]
48+
public string InstanceId
49+
{
50+
get
51+
{
52+
return instanceId;
53+
}
54+
set
55+
{
56+
instanceId = value;
57+
DictionaryUtil.Add(QueryParameters, "InstanceId", value);
58+
}
59+
}
60+
61+
public override bool CheckShowJsonItemName()
62+
{
63+
return false;
64+
}
65+
66+
public override DescribeInstanceForIsvResponse GetResponse(UnmarshallerContext unmarshallerContext)
67+
{
68+
return DescribeInstanceForIsvResponseUnmarshaller.Unmarshall(unmarshallerContext);
69+
}
70+
}
71+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,287 @@
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.Market.Model.V20151101
24+
{
25+
public class DescribeInstanceForIsvResponse : AcsResponse
26+
{
27+
28+
private string status;
29+
30+
private string productName;
31+
32+
private long? instanceId;
33+
34+
private string extendJson;
35+
36+
private bool? isTrial;
37+
38+
private long? beganOn;
39+
40+
private string componentJson;
41+
42+
private string productType;
43+
44+
private string productSkuCode;
45+
46+
private long? createdOn;
47+
48+
private long? endOn;
49+
50+
private long? orderId;
51+
52+
private string productCode;
53+
54+
private string supplierName;
55+
56+
private string requestId;
57+
58+
private DescribeInstanceForIsv_RelationalData relationalData;
59+
60+
[JsonProperty(PropertyName = "Status")]
61+
public string Status
62+
{
63+
get
64+
{
65+
return status;
66+
}
67+
set
68+
{
69+
status = value;
70+
}
71+
}
72+
73+
[JsonProperty(PropertyName = "ProductName")]
74+
public string ProductName
75+
{
76+
get
77+
{
78+
return productName;
79+
}
80+
set
81+
{
82+
productName = value;
83+
}
84+
}
85+
86+
[JsonProperty(PropertyName = "InstanceId")]
87+
public long? InstanceId
88+
{
89+
get
90+
{
91+
return instanceId;
92+
}
93+
set
94+
{
95+
instanceId = value;
96+
}
97+
}
98+
99+
[JsonProperty(PropertyName = "ExtendJson")]
100+
public string ExtendJson
101+
{
102+
get
103+
{
104+
return extendJson;
105+
}
106+
set
107+
{
108+
extendJson = value;
109+
}
110+
}
111+
112+
[JsonProperty(PropertyName = "IsTrial")]
113+
public bool? IsTrial
114+
{
115+
get
116+
{
117+
return isTrial;
118+
}
119+
set
120+
{
121+
isTrial = value;
122+
}
123+
}
124+
125+
[JsonProperty(PropertyName = "BeganOn")]
126+
public long? BeganOn
127+
{
128+
get
129+
{
130+
return beganOn;
131+
}
132+
set
133+
{
134+
beganOn = value;
135+
}
136+
}
137+
138+
[JsonProperty(PropertyName = "ComponentJson")]
139+
public string ComponentJson
140+
{
141+
get
142+
{
143+
return componentJson;
144+
}
145+
set
146+
{
147+
componentJson = value;
148+
}
149+
}
150+
151+
[JsonProperty(PropertyName = "ProductType")]
152+
public string ProductType
153+
{
154+
get
155+
{
156+
return productType;
157+
}
158+
set
159+
{
160+
productType = value;
161+
}
162+
}
163+
164+
[JsonProperty(PropertyName = "ProductSkuCode")]
165+
public string ProductSkuCode
166+
{
167+
get
168+
{
169+
return productSkuCode;
170+
}
171+
set
172+
{
173+
productSkuCode = value;
174+
}
175+
}
176+
177+
[JsonProperty(PropertyName = "CreatedOn")]
178+
public long? CreatedOn
179+
{
180+
get
181+
{
182+
return createdOn;
183+
}
184+
set
185+
{
186+
createdOn = value;
187+
}
188+
}
189+
190+
[JsonProperty(PropertyName = "EndOn")]
191+
public long? EndOn
192+
{
193+
get
194+
{
195+
return endOn;
196+
}
197+
set
198+
{
199+
endOn = value;
200+
}
201+
}
202+
203+
[JsonProperty(PropertyName = "OrderId")]
204+
public long? OrderId
205+
{
206+
get
207+
{
208+
return orderId;
209+
}
210+
set
211+
{
212+
orderId = value;
213+
}
214+
}
215+
216+
[JsonProperty(PropertyName = "ProductCode")]
217+
public string ProductCode
218+
{
219+
get
220+
{
221+
return productCode;
222+
}
223+
set
224+
{
225+
productCode = value;
226+
}
227+
}
228+
229+
[JsonProperty(PropertyName = "SupplierName")]
230+
public string SupplierName
231+
{
232+
get
233+
{
234+
return supplierName;
235+
}
236+
set
237+
{
238+
supplierName = value;
239+
}
240+
}
241+
242+
[JsonProperty(PropertyName = "RequestId")]
243+
public string RequestId
244+
{
245+
get
246+
{
247+
return requestId;
248+
}
249+
set
250+
{
251+
requestId = value;
252+
}
253+
}
254+
255+
[JsonProperty(PropertyName = "RelationalData")]
256+
public DescribeInstanceForIsv_RelationalData RelationalData
257+
{
258+
get
259+
{
260+
return relationalData;
261+
}
262+
set
263+
{
264+
relationalData = value;
265+
}
266+
}
267+
268+
public class DescribeInstanceForIsv_RelationalData
269+
{
270+
271+
private string serviceStatus;
272+
273+
[JsonProperty(PropertyName = "ServiceStatus")]
274+
public string ServiceStatus
275+
{
276+
get
277+
{
278+
return serviceStatus;
279+
}
280+
set
281+
{
282+
serviceStatus = value;
283+
}
284+
}
285+
}
286+
}
287+
}

0 commit comments

Comments
 (0)