Skip to content

Commit 2ee76fd

Browse files
committed
由治世发起的CS SDK自动发布, BUILD_ID=442, 版本号:2.9.0
发布日志: 1, add new api DescribeClusters,DescribeClusterLogs,DescribeClusterNodes,UpgradeClusterComponents
1 parent b8e6d0b commit 2ee76fd

File tree

128 files changed

+2045
-65
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

128 files changed

+2045
-65
lines changed

aliyun-java-sdk-cs/ChangeLog.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
2018-02-27 Version: 2.9.0
2+
1, add new api DescribeClusters,DescribeClusterLogs,DescribeClusterNodes,UpgradeClusterComponents
3+

aliyun-java-sdk-cs/pom.xml

Lines changed: 40 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@
33
<groupId>com.aliyun</groupId>
44
<artifactId>aliyun-java-sdk-cs</artifactId>
55
<packaging>jar</packaging>
6-
<version>2.1.0</version>
7-
<name>aliyun-java-sdk-cs</name>
6+
<version>2.9.0</version>
7+
<name>aliyun-java-sdk-cs</name>
88
<url>http://www.aliyun.com</url>
99
<description>Aliyun Open API SDK for Java
1010

@@ -14,12 +14,24 @@ All rights reserved.
1414
版权所有 (C)阿里云计算有限公司
1515

1616
http://www.aliyun.com</description>
17+
18+
<distributionManagement>
19+
<snapshotRepository>
20+
<id>sonatype-nexus-snapshots</id>
21+
<url>https://oss.sonatype.org/content/repositories/snapshots</url>
22+
</snapshotRepository>
23+
<repository>
24+
<id>sonatype-nexus-staging</id>
25+
<url>https://oss.sonatype.org/service/local/staging/deploy/maven2/</url>
26+
</repository>
27+
</distributionManagement>
28+
1729
<dependencies>
1830
<dependency>
1931
<groupId>com.aliyun</groupId>
2032
<artifactId>aliyun-java-sdk-core</artifactId>
2133
<optional>true</optional>
22-
<version>2.4.2</version>
34+
<version>3.2.8</version>
2335
</dependency>
2436
</dependencies>
2537
<licenses>
@@ -76,6 +88,31 @@ http://www.aliyun.com</description>
7688
<encoding>UTF-8</encoding>
7789
</configuration>
7890
</plugin>
91+
<plugin>
92+
<groupId>org.apache.maven.plugins</groupId>
93+
<artifactId>maven-gpg-plugin</artifactId>
94+
<version>1.5</version>
95+
<executions>
96+
<execution>
97+
<id>sign-artifacts</id>
98+
<phase>verify</phase>
99+
<goals>
100+
<goal>sign</goal>
101+
</goals>
102+
</execution>
103+
</executions>
104+
</plugin>
105+
<plugin>
106+
<groupId>org.sonatype.plugins</groupId>
107+
<artifactId>nexus-staging-maven-plugin</artifactId>
108+
<version>1.6.3</version>
109+
<extensions>true</extensions>
110+
<configuration>
111+
<serverId>sonatype-nexus-staging</serverId>
112+
<nexusUrl>https://oss.sonatype.org/</nexusUrl>
113+
<autoReleaseAfterClose>true</autoReleaseAfterClose>
114+
</configuration>
115+
</plugin>
79116
</plugins>
80117
</build>
81118
</project>
Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
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+
package com.aliyuncs.cs.model.v20151215;
20+
21+
import com.aliyuncs.RoaAcsRequest;
22+
import com.aliyuncs.http.MethodType;
23+
24+
/**
25+
* @author auto create
26+
* @version
27+
*/
28+
public class AddAgilityClusterRequest extends RoaAcsRequest<AddAgilityClusterResponse> {
29+
30+
public AddAgilityClusterRequest() {
31+
super("CS", "2015-12-15", "AddAgilityCluster");
32+
setUriPattern("/add_agility_cluster");
33+
setMethod(MethodType.POST);
34+
}
35+
36+
@Override
37+
public Class<AddAgilityClusterResponse> getResponseClass() {
38+
return AddAgilityClusterResponse.class;
39+
}
40+
41+
}
Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
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+
package com.aliyuncs.cs.model.v20151215;
20+
21+
import com.aliyuncs.AcsResponse;
22+
import com.aliyuncs.cs.transform.v20151215.AddAgilityClusterResponseUnmarshaller;
23+
import com.aliyuncs.transform.UnmarshallerContext;
24+
25+
/**
26+
* @author auto create
27+
* @version
28+
*/
29+
public class AddAgilityClusterResponse extends AcsResponse {
30+
31+
@Override
32+
public AddAgilityClusterResponse getInstance(UnmarshallerContext context) {
33+
return AddAgilityClusterResponseUnmarshaller.unmarshall(this, context);
34+
}
35+
}

aliyun-java-sdk-cs/src/main/java/com/aliyuncs/cs/model/v20151215/AttachInstancesRequest.java

100755100644
Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,9 @@ public String getClusterId() {
4141

4242
public void setClusterId(String clusterId) {
4343
this.clusterId = clusterId;
44-
putPathParameter("ClusterId", clusterId);
44+
if(clusterId != null){
45+
putPathParameter("ClusterId", clusterId);
46+
}
4547
}
4648

4749
@Override

aliyun-java-sdk-cs/src/main/java/com/aliyuncs/cs/model/v20151215/AttachInstancesResponse.java

100755100644
File mode changed.
Lines changed: 67 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,67 @@
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+
package com.aliyuncs.cs.model.v20151215;
20+
21+
import com.aliyuncs.RoaAcsRequest;
22+
import com.aliyuncs.http.MethodType;
23+
24+
/**
25+
* @author auto create
26+
* @version
27+
*/
28+
public class CallBackAgilityClusterRequest extends RoaAcsRequest<CallBackAgilityClusterResponse> {
29+
30+
public CallBackAgilityClusterRequest() {
31+
super("CS", "2015-12-15", "CallBackAgilityCluster");
32+
setUriPattern("/agility/token/[Token]/req_once/[ReqOnce]/callback");
33+
setMethod(MethodType.POST);
34+
}
35+
36+
private String reqOnce;
37+
38+
private String token;
39+
40+
public String getReqOnce() {
41+
return this.reqOnce;
42+
}
43+
44+
public void setReqOnce(String reqOnce) {
45+
this.reqOnce = reqOnce;
46+
if(reqOnce != null){
47+
putPathParameter("ReqOnce", reqOnce);
48+
}
49+
}
50+
51+
public String getToken() {
52+
return this.token;
53+
}
54+
55+
public void setToken(String token) {
56+
this.token = token;
57+
if(token != null){
58+
putPathParameter("Token", token);
59+
}
60+
}
61+
62+
@Override
63+
public Class<CallBackAgilityClusterResponse> getResponseClass() {
64+
return CallBackAgilityClusterResponse.class;
65+
}
66+
67+
}
Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
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+
package com.aliyuncs.cs.model.v20151215;
20+
21+
import com.aliyuncs.AcsResponse;
22+
import com.aliyuncs.cs.transform.v20151215.CallBackAgilityClusterResponseUnmarshaller;
23+
import com.aliyuncs.transform.UnmarshallerContext;
24+
25+
/**
26+
* @author auto create
27+
* @version
28+
*/
29+
public class CallBackAgilityClusterResponse extends AcsResponse {
30+
31+
@Override
32+
public CallBackAgilityClusterResponse getInstance(UnmarshallerContext context) {
33+
return CallBackAgilityClusterResponseUnmarshaller.unmarshall(this, context);
34+
}
35+
}

aliyun-java-sdk-cs/src/main/java/com/aliyuncs/cs/model/v20151215/CallbackClusterTokenRequest.java

100755100644
Lines changed: 15 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -33,26 +33,30 @@ public CallbackClusterTokenRequest() {
3333
setMethod(MethodType.POST);
3434
}
3535

36-
private String token;
37-
3836
private String reqOnce;
3937

40-
public String getToken() {
41-
return this.token;
42-
}
43-
44-
public void setToken(String token) {
45-
this.token = token;
46-
putPathParameter("Token", token);
47-
}
38+
private String token;
4839

4940
public String getReqOnce() {
5041
return this.reqOnce;
5142
}
5243

5344
public void setReqOnce(String reqOnce) {
5445
this.reqOnce = reqOnce;
55-
putPathParameter("ReqOnce", reqOnce);
46+
if(reqOnce != null){
47+
putPathParameter("ReqOnce", reqOnce);
48+
}
49+
}
50+
51+
public String getToken() {
52+
return this.token;
53+
}
54+
55+
public void setToken(String token) {
56+
this.token = token;
57+
if(token != null){
58+
putPathParameter("Token", token);
59+
}
5660
}
5761

5862
@Override

aliyun-java-sdk-cs/src/main/java/com/aliyuncs/cs/model/v20151215/CallbackClusterTokenResponse.java

100755100644
File mode changed.

0 commit comments

Comments
 (0)