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 Nov 26, 2024
1 parent ec67f0c commit e57e745
Show file tree
Hide file tree
Showing 8 changed files with 668 additions and 1 deletion.
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-11-26 Version: 2.0.44
- Update DescribeApiMetering API.

2024-11-26 Version: 2.0.43
- Update DescribeApiMetering API.

Expand Down
2 changes: 1 addition & 1 deletion 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.43</version>
<version>2.0.44</version>
<name>aliyun-java-sdk-market</name>
<url>http://www.aliyun.com</url>
<description>Aliyun Open API SDK for Java
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
/*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/

package com.aliyuncs.market.model.v20151101;

import com.aliyuncs.RpcAcsRequest;
import com.aliyuncs.http.ProtocolType;
import com.aliyuncs.http.MethodType;
import com.aliyuncs.market.Endpoint;

/**
* @author auto create
* @version
*/
public class DescribeInstanceForIsvRequest extends RpcAcsRequest<DescribeInstanceForIsvResponse> {


private String instanceId;
public DescribeInstanceForIsvRequest() {
super("Market", "2015-11-01", "DescribeInstanceForIsv", "yunmarket");
setProtocol(ProtocolType.HTTPS);
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);
}
}

@Override
public Class<DescribeInstanceForIsvResponse> getResponseClass() {
return DescribeInstanceForIsvResponse.class;
}

}
Original file line number Diff line number Diff line change
@@ -0,0 +1,209 @@
/*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/

package com.aliyuncs.market.model.v20151101;

import com.aliyuncs.AcsResponse;
import com.aliyuncs.market.transform.v20151101.DescribeInstanceForIsvResponseUnmarshaller;
import com.aliyuncs.transform.UnmarshallerContext;

/**
* @author auto create
* @version
*/
public class DescribeInstanceForIsvResponse extends AcsResponse {

private String status;

private String productName;

private Long instanceId;

private String extendJson;

private Boolean isTrial;

private Long beganOn;

private String componentJson;

private String productType;

private String productSkuCode;

private Long createdOn;

private Long endOn;

private Long orderId;

private String productCode;

private String supplierName;

private String requestId;

private RelationalData relationalData;

public String getStatus() {
return this.status;
}

public void setStatus(String status) {
this.status = status;
}

public String getProductName() {
return this.productName;
}

public void setProductName(String productName) {
this.productName = productName;
}

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

public void setInstanceId(Long instanceId) {
this.instanceId = instanceId;
}

public String getExtendJson() {
return this.extendJson;
}

public void setExtendJson(String extendJson) {
this.extendJson = extendJson;
}

public Boolean getIsTrial() {
return this.isTrial;
}

public void setIsTrial(Boolean isTrial) {
this.isTrial = isTrial;
}

public Long getBeganOn() {
return this.beganOn;
}

public void setBeganOn(Long beganOn) {
this.beganOn = beganOn;
}

public String getComponentJson() {
return this.componentJson;
}

public void setComponentJson(String componentJson) {
this.componentJson = componentJson;
}

public String getProductType() {
return this.productType;
}

public void setProductType(String productType) {
this.productType = productType;
}

public String getProductSkuCode() {
return this.productSkuCode;
}

public void setProductSkuCode(String productSkuCode) {
this.productSkuCode = productSkuCode;
}

public Long getCreatedOn() {
return this.createdOn;
}

public void setCreatedOn(Long createdOn) {
this.createdOn = createdOn;
}

public Long getEndOn() {
return this.endOn;
}

public void setEndOn(Long endOn) {
this.endOn = endOn;
}

public Long getOrderId() {
return this.orderId;
}

public void setOrderId(Long orderId) {
this.orderId = orderId;
}

public String getProductCode() {
return this.productCode;
}

public void setProductCode(String productCode) {
this.productCode = productCode;
}

public String getSupplierName() {
return this.supplierName;
}

public void setSupplierName(String supplierName) {
this.supplierName = supplierName;
}

public String getRequestId() {
return this.requestId;
}

public void setRequestId(String requestId) {
this.requestId = requestId;
}

public RelationalData getRelationalData() {
return this.relationalData;
}

public void setRelationalData(RelationalData relationalData) {
this.relationalData = relationalData;
}

public static class RelationalData {

private String serviceStatus;

public String getServiceStatus() {
return this.serviceStatus;
}

public void setServiceStatus(String serviceStatus) {
this.serviceStatus = serviceStatus;
}
}

@Override
public DescribeInstanceForIsvResponse getInstance(UnmarshallerContext context) {
return DescribeInstanceForIsvResponseUnmarshaller.unmarshall(this, context);
}

@Override
public boolean checkShowJsonItemName() {
return false;
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
/*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/

package com.aliyuncs.market.model.v20151101;

import com.aliyuncs.RpcAcsRequest;
import com.aliyuncs.http.ProtocolType;
import com.aliyuncs.http.MethodType;
import com.aliyuncs.market.Endpoint;

/**
* @author auto create
* @version
*/
public class DescribeOrderForIsvRequest extends RpcAcsRequest<DescribeOrderForIsvResponse> {


private String orderId;
public DescribeOrderForIsvRequest() {
super("Market", "2015-11-01", "DescribeOrderForIsv", "yunmarket");
setProtocol(ProtocolType.HTTPS);
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 getOrderId() {
return this.orderId;
}

public void setOrderId(String orderId) {
this.orderId = orderId;
if(orderId != null){
putQueryParameter("OrderId", orderId);
}
}

@Override
public Class<DescribeOrderForIsvResponse> getResponseClass() {
return DescribeOrderForIsvResponse.class;
}

}
Loading

0 comments on commit e57e745

Please sign in to comment.