Skip to content

Commit e57e745

Browse files
committed
Update DescribeApiMetering API.
1 parent ec67f0c commit e57e745

File tree

8 files changed

+668
-1
lines changed

8 files changed

+668
-1
lines changed

aliyun-java-sdk-market/ChangeLog.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
2024-11-26 Version: 2.0.44
2+
- Update DescribeApiMetering API.
3+
14
2024-11-26 Version: 2.0.43
25
- Update DescribeApiMetering API.
36

aliyun-java-sdk-market/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<groupId>com.aliyun</groupId>
55
<artifactId>aliyun-java-sdk-market</artifactId>
66
<packaging>jar</packaging>
7-
<version>2.0.43</version>
7+
<version>2.0.44</version>
88
<name>aliyun-java-sdk-market</name>
99
<url>http://www.aliyun.com</url>
1010
<description>Aliyun Open API SDK for Java
Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
1+
/*
2+
* Licensed under the Apache License, Version 2.0 (the "License");
3+
* you may not use this file except in compliance with the License.
4+
* You may obtain a copy of the License at
5+
*
6+
* http://www.apache.org/licenses/LICENSE-2.0
7+
*
8+
* Unless required by applicable law or agreed to in writing, software
9+
* distributed under the License is distributed on an "AS IS" BASIS,
10+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
11+
* See the License for the specific language governing permissions and
12+
* limitations under the License.
13+
*/
14+
15+
package com.aliyuncs.market.model.v20151101;
16+
17+
import com.aliyuncs.RpcAcsRequest;
18+
import com.aliyuncs.http.ProtocolType;
19+
import com.aliyuncs.http.MethodType;
20+
import com.aliyuncs.market.Endpoint;
21+
22+
/**
23+
* @author auto create
24+
* @version
25+
*/
26+
public class DescribeInstanceForIsvRequest extends RpcAcsRequest<DescribeInstanceForIsvResponse> {
27+
28+
29+
private String instanceId;
30+
public DescribeInstanceForIsvRequest() {
31+
super("Market", "2015-11-01", "DescribeInstanceForIsv", "yunmarket");
32+
setProtocol(ProtocolType.HTTPS);
33+
setMethod(MethodType.POST);
34+
try {
35+
com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointMap").set(this, Endpoint.endpointMap);
36+
com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointRegional").set(this, Endpoint.endpointRegionalType);
37+
} catch (Exception e) {}
38+
}
39+
40+
public String getInstanceId() {
41+
return this.instanceId;
42+
}
43+
44+
public void setInstanceId(String instanceId) {
45+
this.instanceId = instanceId;
46+
if(instanceId != null){
47+
putQueryParameter("InstanceId", instanceId);
48+
}
49+
}
50+
51+
@Override
52+
public Class<DescribeInstanceForIsvResponse> getResponseClass() {
53+
return DescribeInstanceForIsvResponse.class;
54+
}
55+
56+
}
Lines changed: 209 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,209 @@
1+
/*
2+
* Licensed under the Apache License, Version 2.0 (the "License");
3+
* you may not use this file except in compliance with the License.
4+
* You may obtain a copy of the License at
5+
*
6+
* http://www.apache.org/licenses/LICENSE-2.0
7+
*
8+
* Unless required by applicable law or agreed to in writing, software
9+
* distributed under the License is distributed on an "AS IS" BASIS,
10+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
11+
* See the License for the specific language governing permissions and
12+
* limitations under the License.
13+
*/
14+
15+
package com.aliyuncs.market.model.v20151101;
16+
17+
import com.aliyuncs.AcsResponse;
18+
import com.aliyuncs.market.transform.v20151101.DescribeInstanceForIsvResponseUnmarshaller;
19+
import com.aliyuncs.transform.UnmarshallerContext;
20+
21+
/**
22+
* @author auto create
23+
* @version
24+
*/
25+
public class DescribeInstanceForIsvResponse extends AcsResponse {
26+
27+
private String status;
28+
29+
private String productName;
30+
31+
private Long instanceId;
32+
33+
private String extendJson;
34+
35+
private Boolean isTrial;
36+
37+
private Long beganOn;
38+
39+
private String componentJson;
40+
41+
private String productType;
42+
43+
private String productSkuCode;
44+
45+
private Long createdOn;
46+
47+
private Long endOn;
48+
49+
private Long orderId;
50+
51+
private String productCode;
52+
53+
private String supplierName;
54+
55+
private String requestId;
56+
57+
private RelationalData relationalData;
58+
59+
public String getStatus() {
60+
return this.status;
61+
}
62+
63+
public void setStatus(String status) {
64+
this.status = status;
65+
}
66+
67+
public String getProductName() {
68+
return this.productName;
69+
}
70+
71+
public void setProductName(String productName) {
72+
this.productName = productName;
73+
}
74+
75+
public Long getInstanceId() {
76+
return this.instanceId;
77+
}
78+
79+
public void setInstanceId(Long instanceId) {
80+
this.instanceId = instanceId;
81+
}
82+
83+
public String getExtendJson() {
84+
return this.extendJson;
85+
}
86+
87+
public void setExtendJson(String extendJson) {
88+
this.extendJson = extendJson;
89+
}
90+
91+
public Boolean getIsTrial() {
92+
return this.isTrial;
93+
}
94+
95+
public void setIsTrial(Boolean isTrial) {
96+
this.isTrial = isTrial;
97+
}
98+
99+
public Long getBeganOn() {
100+
return this.beganOn;
101+
}
102+
103+
public void setBeganOn(Long beganOn) {
104+
this.beganOn = beganOn;
105+
}
106+
107+
public String getComponentJson() {
108+
return this.componentJson;
109+
}
110+
111+
public void setComponentJson(String componentJson) {
112+
this.componentJson = componentJson;
113+
}
114+
115+
public String getProductType() {
116+
return this.productType;
117+
}
118+
119+
public void setProductType(String productType) {
120+
this.productType = productType;
121+
}
122+
123+
public String getProductSkuCode() {
124+
return this.productSkuCode;
125+
}
126+
127+
public void setProductSkuCode(String productSkuCode) {
128+
this.productSkuCode = productSkuCode;
129+
}
130+
131+
public Long getCreatedOn() {
132+
return this.createdOn;
133+
}
134+
135+
public void setCreatedOn(Long createdOn) {
136+
this.createdOn = createdOn;
137+
}
138+
139+
public Long getEndOn() {
140+
return this.endOn;
141+
}
142+
143+
public void setEndOn(Long endOn) {
144+
this.endOn = endOn;
145+
}
146+
147+
public Long getOrderId() {
148+
return this.orderId;
149+
}
150+
151+
public void setOrderId(Long orderId) {
152+
this.orderId = orderId;
153+
}
154+
155+
public String getProductCode() {
156+
return this.productCode;
157+
}
158+
159+
public void setProductCode(String productCode) {
160+
this.productCode = productCode;
161+
}
162+
163+
public String getSupplierName() {
164+
return this.supplierName;
165+
}
166+
167+
public void setSupplierName(String supplierName) {
168+
this.supplierName = supplierName;
169+
}
170+
171+
public String getRequestId() {
172+
return this.requestId;
173+
}
174+
175+
public void setRequestId(String requestId) {
176+
this.requestId = requestId;
177+
}
178+
179+
public RelationalData getRelationalData() {
180+
return this.relationalData;
181+
}
182+
183+
public void setRelationalData(RelationalData relationalData) {
184+
this.relationalData = relationalData;
185+
}
186+
187+
public static class RelationalData {
188+
189+
private String serviceStatus;
190+
191+
public String getServiceStatus() {
192+
return this.serviceStatus;
193+
}
194+
195+
public void setServiceStatus(String serviceStatus) {
196+
this.serviceStatus = serviceStatus;
197+
}
198+
}
199+
200+
@Override
201+
public DescribeInstanceForIsvResponse getInstance(UnmarshallerContext context) {
202+
return DescribeInstanceForIsvResponseUnmarshaller.unmarshall(this, context);
203+
}
204+
205+
@Override
206+
public boolean checkShowJsonItemName() {
207+
return false;
208+
}
209+
}
Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
1+
/*
2+
* Licensed under the Apache License, Version 2.0 (the "License");
3+
* you may not use this file except in compliance with the License.
4+
* You may obtain a copy of the License at
5+
*
6+
* http://www.apache.org/licenses/LICENSE-2.0
7+
*
8+
* Unless required by applicable law or agreed to in writing, software
9+
* distributed under the License is distributed on an "AS IS" BASIS,
10+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
11+
* See the License for the specific language governing permissions and
12+
* limitations under the License.
13+
*/
14+
15+
package com.aliyuncs.market.model.v20151101;
16+
17+
import com.aliyuncs.RpcAcsRequest;
18+
import com.aliyuncs.http.ProtocolType;
19+
import com.aliyuncs.http.MethodType;
20+
import com.aliyuncs.market.Endpoint;
21+
22+
/**
23+
* @author auto create
24+
* @version
25+
*/
26+
public class DescribeOrderForIsvRequest extends RpcAcsRequest<DescribeOrderForIsvResponse> {
27+
28+
29+
private String orderId;
30+
public DescribeOrderForIsvRequest() {
31+
super("Market", "2015-11-01", "DescribeOrderForIsv", "yunmarket");
32+
setProtocol(ProtocolType.HTTPS);
33+
setMethod(MethodType.POST);
34+
try {
35+
com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointMap").set(this, Endpoint.endpointMap);
36+
com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointRegional").set(this, Endpoint.endpointRegionalType);
37+
} catch (Exception e) {}
38+
}
39+
40+
public String getOrderId() {
41+
return this.orderId;
42+
}
43+
44+
public void setOrderId(String orderId) {
45+
this.orderId = orderId;
46+
if(orderId != null){
47+
putQueryParameter("OrderId", orderId);
48+
}
49+
}
50+
51+
@Override
52+
public Class<DescribeOrderForIsvResponse> getResponseClass() {
53+
return DescribeOrderForIsvResponse.class;
54+
}
55+
56+
}

0 commit comments

Comments
 (0)