Skip to content

Commit

Permalink
Generated 2016-07-14 for CloudAPI.
Browse files Browse the repository at this point in the history
  • Loading branch information
sdk-team committed Oct 26, 2023
1 parent 07fabf3 commit 8133625
Show file tree
Hide file tree
Showing 64 changed files with 3,752 additions and 28 deletions.
3 changes: 3 additions & 0 deletions aliyun-java-sdk-cloudapi/ChangeLog.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
2023-10-26 Version: 4.9.21
- Generated 2016-07-14 for `CloudAPI`.

2023-03-23 Version: 4.9.20
- DescribeApis add tag parameter.
- CreateApp hidden parameter.
Expand Down
2 changes: 1 addition & 1 deletion aliyun-java-sdk-cloudapi/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-cloudapi</artifactId>
<packaging>jar</packaging>
<version>4.9.20</version>
<version>4.9.21</version>
<name>aliyun-java-sdk-cloudapi</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
Expand Up @@ -19,29 +19,67 @@
public class Endpoint {
public static HashMap<String, String> endpointMap = new HashMap<String, String>() {
{
put("cn-shenzhen", "apigateway.cn-shenzhen.aliyuncs.com");
put("cn-shanghai-internal-test-1", "apigateway.aliyuncs.com");
put("cn-shenzhen-su18-b01", "apigateway.aliyuncs.com");
put("cn-beijing", "apigateway.cn-beijing.aliyuncs.com");
put("ap-south-1", "apigateway.ap-south-1.aliyuncs.com");
put("eu-west-1", "apigateway.eu-west-1.aliyuncs.com");
put("ap-northeast-1", "apigateway.ap-northeast-1.aliyuncs.com");
put("cn-shenzhen-finance-1", "apigateway.aliyuncs.com");
put("me-east-1", "apigateway.me-east-1.aliyuncs.com");
put("cn-chengdu", "apigateway.cn-chengdu.aliyuncs.com");
put("cn-shanghai-inner", "apigateway.cn-shanghai-inner.aliyuncs.com");
put("me-central-1", "apigateway.me-central-1.aliyuncs.com");
put("cn-hangzhou-internal-prod-1", "apigateway.aliyuncs.com");
put("cn-north-2-gov-1", "apigateway.cn-north-2-gov-1.aliyuncs.com");
put("cn-qingdao", "apigateway.cn-qingdao.aliyuncs.com");
put("cn-shanghai", "apigateway.cn-shanghai.aliyuncs.com");
put("cn-shanghai-finance-1", "apigateway.aliyuncs.com");
put("cn-hongkong", "apigateway.cn-hongkong.aliyuncs.com");
put("cn-hangzhou-finance", "apigateway.aliyuncs.com");
put("cn-yushanfang", "apigateway.aliyuncs.com");
put("cn-qingdao-nebula", "apigateway.aliyuncs.com");
put("cn-heyuan", "apigateway.cn-heyuan.aliyuncs.com");
put("cn-beijing-finance-pop", "apigateway.aliyuncs.com");
put("cn-wuhan", "apigateway.aliyuncs.com");
put("cn-zhangjiakou", "apigateway.cn-zhangjiakou.aliyuncs.com");
put("us-west-1", "apigateway.us-west-1.aliyuncs.com");
put("cn-zhangbei", "apigateway.aliyuncs.com");
put("rus-west-1-pop", "apigateway.aliyuncs.com");
put("cn-shanghai-et15-b01", "apigateway.aliyuncs.com");
put("cn-hangzhou-bj-b01", "apigateway.aliyuncs.com");
put("cn-zhangbei-na61-b01", "apigateway.aliyuncs.com");
put("ap-northeast-1", "apigateway.ap-northeast-1.aliyuncs.com");
put("cn-huhehaote-nebula-1", "apigateway.aliyuncs.com");
put("cn-shanghai-et2-b01", "apigateway.aliyuncs.com");
put("ap-southeast-1", "apigateway.ap-southeast-1.aliyuncs.com");
put("ap-southeast-2", "apigateway.ap-southeast-2.aliyuncs.com");
put("ap-southeast-3", "apigateway.ap-southeast-3.aliyuncs.com");
put("eu-central-1", "apigateway.eu-central-1.aliyuncs.com");
put("cn-huhehaote", "apigateway.cn-huhehaote.aliyuncs.com");
put("ap-southeast-5", "apigateway.ap-southeast-5.aliyuncs.com");
put("us-east-1", "apigateway.us-east-1.aliyuncs.com");
put("cn-zhangjiakou", "apigateway.cn-zhangjiakou.aliyuncs.com");
put("us-west-1", "apigateway.us-west-1.aliyuncs.com");
put("ap-southeast-6", "apigateway.ap-southeast-6.aliyuncs.com");
put("cn-shenzhen-inner", "apigateway.aliyuncs.com");
put("ap-southeast-7", "apigateway.ap-southeast-7.aliyuncs.com");
put("cn-zhangjiakou-na62-a01", "apigateway.aliyuncs.com");
put("cn-beijing-gov-1", "apigateway.aliyuncs.com");
put("cn-wulanchabu", "apigateway.cn-wulanchabu.aliyuncs.com");
put("ap-south-1", "apigateway.ap-south-1.aliyuncs.com");
put("cn-shenzhen-st4-d01", "apigateway.aliyuncs.com");
put("cn-haidian-cm12-c01", "apigateway.aliyuncs.com");
put("cn-qingdao", "apigateway.cn-qingdao.aliyuncs.com");
put("cn-hongkong-finance-pop", "apigateway.aliyuncs.com");
put("cn-shanghai", "apigateway.cn-shanghai.aliyuncs.com");
put("cn-shanghai-finance-1", "apigateway.cn-shanghai-finance-1.aliyuncs.com");
put("cn-hongkong", "apigateway.cn-hongkong.aliyuncs.com");
put("eu-central-1", "apigateway.eu-central-1.aliyuncs.com");
put("cn-shenzhen", "apigateway.cn-shenzhen.aliyuncs.com");
put("cn-zhengzhou-nebula-1", "apigateway.aliyuncs.com");
put("eu-west-1", "apigateway.eu-west-1.aliyuncs.com");
put("cn-hangzhou-internal-test-1", "apigateway.aliyuncs.com");
put("eu-west-1-oxs", "apigateway.aliyuncs.com");
put("cn-beijing-finance-1", "apigateway.cn-beijing-finance-1.aliyuncs.com");
put("cn-hangzhou-internal-test-3", "apigateway.aliyuncs.com");
put("cn-shenzhen-finance-1", "apigateway.cn-shenzhen-finance-1.aliyuncs.com");
put("cn-hangzhou-internal-test-2", "apigateway.aliyuncs.com");
put("me-east-1", "apigateway.me-east-1.aliyuncs.com");
put("cn-chengdu", "apigateway.cn-chengdu.aliyuncs.com");
put("cn-hangzhou-test-306", "apigateway.aliyuncs.com");
put("cn-guangzhou", "apigateway.cn-guangzhou.aliyuncs.com");
put("cn-hangzhou-finance", "apigateway.cn-hangzhou-finance.aliyuncs.com");
put("cn-beijing-nu16-b01", "apigateway.aliyuncs.com");
put("cn-edge-1", "apigateway.aliyuncs.com");
put("cn-huhehaote", "apigateway.cn-huhehaote.aliyuncs.com");
put("cn-fujian", "apigateway.aliyuncs.com");
put("ap-northeast-2-pop", "apigateway.aliyuncs.com");
put("cn-hangzhou", "apigateway.cn-hangzhou.aliyuncs.com");
}
};
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,107 @@
/*
* 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.cloudapi.model.v20160714;

import com.aliyuncs.RpcAcsRequest;
import java.util.List;
import com.aliyuncs.http.MethodType;
import com.aliyuncs.cloudapi.Endpoint;

/**
* @author auto create
* @version
*/
public class AttachApiProductRequest extends RpcAcsRequest<AttachApiProductResponse> {


private List<Apis> apiss;

private String securityToken;

private String apiProductId;
public AttachApiProductRequest() {
super("CloudAPI", "2016-07-14", "AttachApiProduct", "apigateway");
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 List<Apis> getApiss() {
return this.apiss;
}

public void setApiss(List<Apis> apiss) {
this.apiss = apiss;
if (apiss != null) {
for (int depth1 = 0; depth1 < apiss.size(); depth1++) {
putQueryParameter("Apis." + (depth1 + 1) + ".StageName" , apiss.get(depth1).getStageName());
putQueryParameter("Apis." + (depth1 + 1) + ".ApiId" , apiss.get(depth1).getApiId());
}
}
}

public String getSecurityToken() {
return this.securityToken;
}

public void setSecurityToken(String securityToken) {
this.securityToken = securityToken;
if(securityToken != null){
putQueryParameter("SecurityToken", securityToken);
}
}

public String getApiProductId() {
return this.apiProductId;
}

public void setApiProductId(String apiProductId) {
this.apiProductId = apiProductId;
if(apiProductId != null){
putQueryParameter("ApiProductId", apiProductId);
}
}

public static class Apis {

private String stageName;

private String apiId;

public String getStageName() {
return this.stageName;
}

public void setStageName(String stageName) {
this.stageName = stageName;
}

public String getApiId() {
return this.apiId;
}

public void setApiId(String apiId) {
this.apiId = apiId;
}
}

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

}
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
/*
* 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.cloudapi.model.v20160714;

import com.aliyuncs.AcsResponse;
import com.aliyuncs.cloudapi.transform.v20160714.AttachApiProductResponseUnmarshaller;
import com.aliyuncs.transform.UnmarshallerContext;

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

private String requestId;

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

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

@Override
public AttachApiProductResponse getInstance(UnmarshallerContext context) {
return AttachApiProductResponseUnmarshaller.unmarshall(this, context);
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ public String getErrorCodeSamples() {
public void setErrorCodeSamples(String errorCodeSamples) {
this.errorCodeSamples = errorCodeSamples;
if(errorCodeSamples != null){
putQueryParameter("ErrorCodeSamples", errorCodeSamples);
putBodyParameter("ErrorCodeSamples", errorCodeSamples);
}
}

Expand Down Expand Up @@ -160,7 +160,7 @@ public String getConstantParameters() {
public void setConstantParameters(String constantParameters) {
this.constantParameters = constantParameters;
if(constantParameters != null){
putQueryParameter("ConstantParameters", constantParameters);
putBodyParameter("ConstantParameters", constantParameters);
}
}

Expand Down Expand Up @@ -193,7 +193,7 @@ public String getServiceParameters() {
public void setServiceParameters(String serviceParameters) {
this.serviceParameters = serviceParameters;
if(serviceParameters != null){
putQueryParameter("ServiceParameters", serviceParameters);
putBodyParameter("ServiceParameters", serviceParameters);
}
}

Expand All @@ -204,7 +204,7 @@ public String getFailResultSample() {
public void setFailResultSample(String failResultSample) {
this.failResultSample = failResultSample;
if(failResultSample != null){
putQueryParameter("FailResultSample", failResultSample);
putBodyParameter("FailResultSample", failResultSample);
}
}

Expand All @@ -215,7 +215,7 @@ public String getSystemParameters() {
public void setSystemParameters(String systemParameters) {
this.systemParameters = systemParameters;
if(systemParameters != null){
putQueryParameter("SystemParameters", systemParameters);
putBodyParameter("SystemParameters", systemParameters);
}
}

Expand All @@ -226,7 +226,7 @@ public String getServiceParametersMap() {
public void setServiceParametersMap(String serviceParametersMap) {
this.serviceParametersMap = serviceParametersMap;
if(serviceParametersMap != null){
putQueryParameter("ServiceParametersMap", serviceParametersMap);
putBodyParameter("ServiceParametersMap", serviceParametersMap);
}
}

Expand Down Expand Up @@ -259,7 +259,7 @@ public String getRequestParameters() {
public void setRequestParameters(String requestParameters) {
this.requestParameters = requestParameters;
if(requestParameters != null){
putQueryParameter("RequestParameters", requestParameters);
putBodyParameter("RequestParameters", requestParameters);
}
}

Expand All @@ -270,7 +270,7 @@ public String getResultDescriptions() {
public void setResultDescriptions(String resultDescriptions) {
this.resultDescriptions = resultDescriptions;
if(resultDescriptions != null){
putQueryParameter("ResultDescriptions", resultDescriptions);
putBodyParameter("ResultDescriptions", resultDescriptions);
}
}

Expand Down Expand Up @@ -336,7 +336,7 @@ public String getResultSample() {
public void setResultSample(String resultSample) {
this.resultSample = resultSample;
if(resultSample != null){
putQueryParameter("ResultSample", resultSample);
putBodyParameter("ResultSample", resultSample);
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,8 @@ public class CreateAppRequest extends RpcAcsRequest<CreateAppResponse> {

private String description;

private String extend;

private String appName;

private String securityToken;
Expand Down Expand Up @@ -59,6 +61,17 @@ public void setDescription(String description) {
}
}

public String getExtend() {
return this.extend;
}

public void setExtend(String extend) {
this.extend = extend;
if(extend != null){
putQueryParameter("Extend", extend);
}
}

public String getAppName() {
return this.appName;
}
Expand Down
Loading

0 comments on commit 8133625

Please sign in to comment.