Skip to content

Commit

Permalink
Update DescribeApiMetering API.
Browse files Browse the repository at this point in the history
  • Loading branch information
sdk-team committed Jul 29, 2024
1 parent c8acc9f commit f568f0f
Show file tree
Hide file tree
Showing 31 changed files with 116 additions and 81 deletions.
3 changes: 3 additions & 0 deletions aliyun-java-sdk-market/ChangeLog.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
2024-07-29 Version: 2.0.42
- Update DescribeApiMetering API.

2023-06-20 Version: 2.0.41
- Add DistributionProducts API.

Expand Down
7 changes: 3 additions & 4 deletions aliyun-java-sdk-market/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<groupId>com.aliyun</groupId>
<artifactId>aliyun-java-sdk-market</artifactId>
<packaging>jar</packaging>
<version>2.0.41</version>
<version>2.0.42</version>
<name>aliyun-java-sdk-market</name>
<url>http://www.aliyun.com</url>
<description>Aliyun Open API SDK for Java
Expand All @@ -27,7 +27,7 @@ http://www.aliyun.com</description>
<groupId>com.aliyun</groupId>
<artifactId>aliyun-java-sdk-core</artifactId>
<optional>true</optional>
<version>[4.4.9,5.0.0)</version>
<version>[4.3.2,5.0.0)</version>
</dependency>
<dependency>
<groupId>com.google.code.gson</groupId>
Expand Down Expand Up @@ -83,10 +83,9 @@ http://www.aliyun.com</description>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-javadoc-plugin</artifactId>
<version>3.1.0</version>
<version>2.8</version>
<configuration>
<encoding>UTF-8</encoding>
<doclint>none</doclint>
</configuration>
</plugin>
<plugin>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ public class ActivateLicenseRequest extends RpcAcsRequest<ActivateLicenseRespons

private String licenseCode;
public ActivateLicenseRequest() {
super("Market", "2015-11-01", "ActivateLicense");
super("Market", "2015-11-01", "ActivateLicense", "yunmarket");
setMethod(MethodType.POST);
try {
com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointMap").set(this, Endpoint.endpointMap);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ public class AutoRenewInstanceRequest extends RpcAcsRequest<AutoRenewInstanceRes

private Long orderBizId;
public AutoRenewInstanceRequest() {
super("Market", "2015-11-01", "AutoRenewInstance");
super("Market", "2015-11-01", "AutoRenewInstance", "yunmarket");
setMethod(MethodType.POST);
try {
com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointMap").set(this, Endpoint.endpointMap);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ public class CreateOrderRequest extends RpcAcsRequest<CreateOrderResponse> {

private String orderType;
public CreateOrderRequest() {
super("Market", "2015-11-01", "CreateOrder");
super("Market", "2015-11-01", "CreateOrder", "yunmarket");
setMethod(MethodType.POST);
try {
com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointMap").set(this, Endpoint.endpointMap);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ public class CrossAccountVerifyTokenRequest extends RpcAcsRequest<CrossAccountVe

private String token;
public CrossAccountVerifyTokenRequest() {
super("Market", "2015-11-01", "CrossAccountVerifyToken");
super("Market", "2015-11-01", "CrossAccountVerifyToken", "yunmarket");
setProtocol(ProtocolType.HTTPS);
setMethod(MethodType.POST);
try {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ public class DescribeApiMeteringRequest extends RpcAcsRequest<DescribeApiMeterin

private Integer pageNum;
public DescribeApiMeteringRequest() {
super("Market", "2015-11-01", "DescribeApiMetering");
super("Market", "2015-11-01", "DescribeApiMetering", "yunmarket");
setMethod(MethodType.GET);
try {
com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointMap").set(this, Endpoint.endpointMap);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -137,6 +137,8 @@ public static class ResultItem {

private Long totalUsage;

private Long totalCapacity;

private String unit;

public Long getAliyunPk() {
Expand Down Expand Up @@ -179,6 +181,14 @@ public void setTotalUsage(Long totalUsage) {
this.totalUsage = totalUsage;
}

public Long getTotalCapacity() {
return this.totalCapacity;
}

public void setTotalCapacity(Long totalCapacity) {
this.totalCapacity = totalCapacity;
}

public String getUnit() {
return this.unit;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ public class DescribeCurrentNodeInfoRequest extends RpcAcsRequest<DescribeCurren

private String instanceId;
public DescribeCurrentNodeInfoRequest() {
super("Market", "2015-11-01", "DescribeCurrentNodeInfo");
super("Market", "2015-11-01", "DescribeCurrentNodeInfo", "yunmarket");
setMethod(MethodType.POST);
try {
com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointMap").set(this, Endpoint.endpointMap);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ public class DescribeDistributionProductsLinkRequest extends RpcAcsRequest<Descr
@SerializedName("codes")
private List<String> codes;
public DescribeDistributionProductsLinkRequest() {
super("Market", "2015-11-01", "DescribeDistributionProductsLink");
super("Market", "2015-11-01", "DescribeDistributionProductsLink", "yunmarket");
setMethod(MethodType.POST);
try {
com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointMap").set(this, Endpoint.endpointMap);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ public class DescribeDistributionProductsRequest extends RpcAcsRequest<DescribeD

private Long pageSize;
public DescribeDistributionProductsRequest() {
super("Market", "2015-11-01", "DescribeDistributionProducts");
super("Market", "2015-11-01", "DescribeDistributionProducts", "yunmarket");
setMethod(MethodType.GET);
try {
com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointMap").set(this, Endpoint.endpointMap);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ public class DescribeInstanceRequest extends RpcAcsRequest<DescribeInstanceRespo

private String orderType;
public DescribeInstanceRequest() {
super("Market", "2015-11-01", "DescribeInstance");
super("Market", "2015-11-01", "DescribeInstance", "yunmarket");
setMethod(MethodType.POST);
try {
com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointMap").set(this, Endpoint.endpointMap);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,10 @@ public class DescribeInstanceResponse extends AcsResponse {

private String autoRenewal;

private String activeAddress;

private String licenseCode;

private List<Module> modules;

private RelationalData relationalData;
Expand Down Expand Up @@ -209,6 +213,22 @@ public void setAutoRenewal(String autoRenewal) {
this.autoRenewal = autoRenewal;
}

public String getActiveAddress() {
return this.activeAddress;
}

public void setActiveAddress(String activeAddress) {
this.activeAddress = activeAddress;
}

public String getLicenseCode() {
return this.licenseCode;
}

public void setLicenseCode(String licenseCode) {
this.licenseCode = licenseCode;
}

public List<Module> getModules() {
return this.modules;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ public class DescribeInstancesRequest extends RpcAcsRequest<DescribeInstancesRes

private Integer pageSize;
public DescribeInstancesRequest() {
super("Market", "2015-11-01", "DescribeInstances");
super("Market", "2015-11-01", "DescribeInstances", "yunmarket");
setMethod(MethodType.POST);
try {
com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointMap").set(this, Endpoint.endpointMap);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ public class DescribeLicenseRequest extends RpcAcsRequest<DescribeLicenseRespons

private String licenseCode;
public DescribeLicenseRequest() {
super("Market", "2015-11-01", "DescribeLicense");
super("Market", "2015-11-01", "DescribeLicense", "yunmarket");
setMethod(MethodType.POST);
try {
com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointMap").set(this, Endpoint.endpointMap);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ public class DescribeOrderRequest extends RpcAcsRequest<DescribeOrderResponse> {

private String orderId;
public DescribeOrderRequest() {
super("Market", "2015-11-01", "DescribeOrder");
super("Market", "2015-11-01", "DescribeOrder", "yunmarket");
setMethod(MethodType.POST);
try {
com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointMap").set(this, Endpoint.endpointMap);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ public class DescribePriceRequest extends RpcAcsRequest<DescribePriceResponse> {

private String orderType;
public DescribePriceRequest() {
super("Market", "2015-11-01", "DescribePrice");
super("Market", "2015-11-01", "DescribePrice", "yunmarket");
setMethod(MethodType.POST);
try {
com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointMap").set(this, Endpoint.endpointMap);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ public class DescribeProductRequest extends RpcAcsRequest<DescribeProductRespons

private String aliUid;
public DescribeProductRequest() {
super("Market", "2015-11-01", "DescribeProduct");
super("Market", "2015-11-01", "DescribeProduct", "yunmarket");
setMethod(MethodType.POST);
try {
com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointMap").set(this, Endpoint.endpointMap);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ public class DescribeProductsRequest extends RpcAcsRequest<DescribeProductsRespo

private Integer pageSize;
public DescribeProductsRequest() {
super("Market", "2015-11-01", "DescribeProducts");
super("Market", "2015-11-01", "DescribeProducts", "yunmarket");
setMethod(MethodType.POST);
try {
com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointMap").set(this, Endpoint.endpointMap);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ public class DescribeProjectAttachmentsRequest extends RpcAcsRequest<DescribePro

private String instanceId;
public DescribeProjectAttachmentsRequest() {
super("Market", "2015-11-01", "DescribeProjectAttachments");
super("Market", "2015-11-01", "DescribeProjectAttachments", "yunmarket");
setMethod(MethodType.POST);
try {
com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointMap").set(this, Endpoint.endpointMap);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ public class DescribeProjectInfoRequest extends RpcAcsRequest<DescribeProjectInf

private String instanceId;
public DescribeProjectInfoRequest() {
super("Market", "2015-11-01", "DescribeProjectInfo");
super("Market", "2015-11-01", "DescribeProjectInfo", "yunmarket");
setMethod(MethodType.POST);
try {
com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointMap").set(this, Endpoint.endpointMap);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ public class DescribeProjectMessagesRequest extends RpcAcsRequest<DescribeProjec

private Integer pageIndex;
public DescribeProjectMessagesRequest() {
super("Market", "2015-11-01", "DescribeProjectMessages");
super("Market", "2015-11-01", "DescribeProjectMessages", "yunmarket");
setMethod(MethodType.POST);
try {
com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointMap").set(this, Endpoint.endpointMap);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ public class DescribeProjectNodesRequest extends RpcAcsRequest<DescribeProjectNo

private String instanceId;
public DescribeProjectNodesRequest() {
super("Market", "2015-11-01", "DescribeProjectNodes");
super("Market", "2015-11-01", "DescribeProjectNodes", "yunmarket");
setMethod(MethodType.POST);
try {
com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointMap").set(this, Endpoint.endpointMap);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ public class DescribeProjectOperateLogsRequest extends RpcAcsRequest<DescribePro

private String instanceId;
public DescribeProjectOperateLogsRequest() {
super("Market", "2015-11-01", "DescribeProjectOperateLogs");
super("Market", "2015-11-01", "DescribeProjectOperateLogs", "yunmarket");
setMethod(MethodType.POST);
try {
com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointMap").set(this, Endpoint.endpointMap);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,13 +27,13 @@ public class FinishCurrentProjectNodeRequest extends RpcAcsRequest<FinishCurrent

private String templateForm;

private String instanceId;

private String remark;

private String instanceId;

private Long nodeId;
public FinishCurrentProjectNodeRequest() {
super("Market", "2015-11-01", "FinishCurrentProjectNode");
super("Market", "2015-11-01", "FinishCurrentProjectNode", "yunmarket");
setMethod(MethodType.POST);
try {
com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointMap").set(this, Endpoint.endpointMap);
Expand All @@ -52,17 +52,6 @@ public void setTemplateForm(String templateForm) {
}
}

public String getInstanceId() {
return this.instanceId;
}

public void setInstanceId(String instanceId) {
this.instanceId = instanceId;
if(instanceId != null){
putQueryParameter("InstanceId", instanceId);
}
}

public String getRemark() {
return this.remark;
}
Expand All @@ -74,6 +63,17 @@ public void setRemark(String remark) {
}
}

public String getInstanceId() {
return this.instanceId;
}

public void setInstanceId(String instanceId) {
this.instanceId = instanceId;
if(instanceId != null){
putQueryParameter("InstanceId", instanceId);
}
}

public Long getNodeId() {
return this.nodeId;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,31 +25,20 @@
public class PauseProjectRequest extends RpcAcsRequest<PauseProjectResponse> {


private String instanceId;

private String remark;

private String instanceId;

private Long nodeId;
public PauseProjectRequest() {
super("Market", "2015-11-01", "PauseProject");
super("Market", "2015-11-01", "PauseProject", "yunmarket");
setMethod(MethodType.POST);
try {
com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointMap").set(this, Endpoint.endpointMap);
com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointRegional").set(this, Endpoint.endpointRegionalType);
} catch (Exception e) {}
}

public String getInstanceId() {
return this.instanceId;
}

public void setInstanceId(String instanceId) {
this.instanceId = instanceId;
if(instanceId != null){
putQueryParameter("InstanceId", instanceId);
}
}

public String getRemark() {
return this.remark;
}
Expand All @@ -61,6 +50,17 @@ public void setRemark(String remark) {
}
}

public String getInstanceId() {
return this.instanceId;
}

public void setInstanceId(String instanceId) {
this.instanceId = instanceId;
if(instanceId != null){
putQueryParameter("InstanceId", instanceId);
}
}

public Long getNodeId() {
return this.nodeId;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ public class PushMeteringDataRequest extends RpcAcsRequest<PushMeteringDataRespo

private String metering;
public PushMeteringDataRequest() {
super("Market", "2015-11-01", "PushMeteringData");
super("Market", "2015-11-01", "PushMeteringData", "yunmarket");
setMethod(MethodType.POST);
try {
com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointMap").set(this, Endpoint.endpointMap);
Expand Down
Loading

0 comments on commit f568f0f

Please sign in to comment.