Skip to content

Commit 342666d

Browse files
committed
STS SDK Auto Released By shenshi,Version:3.0.1
发布日志: 1, Update Dependency
1 parent 3933938 commit 342666d

11 files changed

+215
-158
lines changed

aliyun-java-sdk-sts/ChangeLog.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
2019-03-14 Version: 3.0.1
2+
1, Update Dependency
3+
14
2017-10-09 Version: 3.0.0
25
1, 添加GetCallerIdentity接口
36
2, 添加GetSessionAccessKey接口

aliyun-java-sdk-sts/pom.xml

100755100644
Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
<groupId>com.aliyun</groupId>
44
<artifactId>aliyun-java-sdk-sts</artifactId>
55
<packaging>jar</packaging>
6-
<version>3.0.0</version>
6+
<version>3.0.1</version>
77
<name>aliyun-java-sdk-sts</name>
88
<url>http://www.aliyun.com</url>
99
<description>Aliyun Open API SDK for Java
@@ -31,7 +31,7 @@ http://www.aliyun.com</description>
3131
<groupId>com.aliyun</groupId>
3232
<artifactId>aliyun-java-sdk-core</artifactId>
3333
<optional>true</optional>
34-
<version>3.2.8</version>
34+
<version>[4.3.2,5.0.0)</version>
3535
</dependency>
3636
</dependencies>
3737
<licenses>
@@ -42,8 +42,9 @@ http://www.aliyun.com</description>
4242
</license>
4343
</licenses>
4444
<scm>
45-
<url></url>
46-
<connection></connection>
45+
<connection>scm:git:git://github.com/aliyun/aliyun-openapi-java-sdk.git</connection>
46+
<developerConnection>scm:git:git@github.com:aliyun/aliyun-openapi-java-sdk.git</developerConnection>
47+
<url>https://github.com/aliyun/aliyun-openapi-java-sdk</url>
4748
</scm>
4849
<developers>
4950
<developer>

aliyun-java-sdk-sts/src/main/java/com/aliyuncs/sts/model/v20150401/AssumeRoleRequest.java

100755100644
Lines changed: 47 additions & 46 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,10 @@
1111
* See the License for the specific language governing permissions and
1212
* limitations under the License.
1313
*/
14+
1415
package com.aliyuncs.sts.model.v20150401;
1516

16-
import com.aliyuncs.RpcAcsRequest;
17+
import com.aliyuncs.RpcAcsRequest;
1718
import com.aliyuncs.http.ProtocolType;
1819

1920
/**
@@ -23,59 +24,59 @@
2324
public class AssumeRoleRequest extends RpcAcsRequest<AssumeRoleResponse> {
2425

2526
public AssumeRoleRequest() {
26-
super("Sts", "2015-04-01", "AssumeRole");
27+
super("Sts", "2015-04-01", "AssumeRole", "sts");
2728
setProtocol(ProtocolType.HTTPS);
28-
}
29-
30-
private String roleArn;
31-
32-
private String roleSessionName;
33-
34-
private Long durationSeconds;
35-
36-
private String policy;
37-
38-
public String getRoleArn() {
39-
return this.roleArn;
40-
}
41-
42-
public void setRoleArn(String roleArn) {
43-
this.roleArn = roleArn;
29+
}
30+
31+
private String roleArn;
32+
33+
private String roleSessionName;
34+
35+
private Long durationSeconds;
36+
37+
private String policy;
38+
39+
public String getRoleArn() {
40+
return this.roleArn;
41+
}
42+
43+
public void setRoleArn(String roleArn) {
44+
this.roleArn = roleArn;
4445
if(roleArn != null){
45-
putQueryParameter("RoleArn", roleArn);
46+
putQueryParameter("RoleArn", roleArn);
4647
}
47-
}
48-
49-
public String getRoleSessionName() {
50-
return this.roleSessionName;
51-
}
52-
53-
public void setRoleSessionName(String roleSessionName) {
54-
this.roleSessionName = roleSessionName;
48+
}
49+
50+
public String getRoleSessionName() {
51+
return this.roleSessionName;
52+
}
53+
54+
public void setRoleSessionName(String roleSessionName) {
55+
this.roleSessionName = roleSessionName;
5556
if(roleSessionName != null){
56-
putQueryParameter("RoleSessionName", roleSessionName);
57+
putQueryParameter("RoleSessionName", roleSessionName);
5758
}
58-
}
59-
60-
public Long getDurationSeconds() {
61-
return this.durationSeconds;
62-
}
63-
64-
public void setDurationSeconds(Long durationSeconds) {
65-
this.durationSeconds = durationSeconds;
59+
}
60+
61+
public Long getDurationSeconds() {
62+
return this.durationSeconds;
63+
}
64+
65+
public void setDurationSeconds(Long durationSeconds) {
66+
this.durationSeconds = durationSeconds;
6667
if(durationSeconds != null){
67-
putQueryParameter("DurationSeconds", durationSeconds.toString());
68+
putQueryParameter("DurationSeconds", durationSeconds.toString());
6869
}
69-
}
70-
71-
public String getPolicy() {
72-
return this.policy;
73-
}
74-
75-
public void setPolicy(String policy) {
76-
this.policy = policy;
70+
}
71+
72+
public String getPolicy() {
73+
return this.policy;
74+
}
75+
76+
public void setPolicy(String policy) {
77+
this.policy = policy;
7778
if(policy != null){
78-
putQueryParameter("Policy", policy);
79+
putQueryParameter("Policy", policy);
7980
}
8081
}
8182

aliyun-java-sdk-sts/src/main/java/com/aliyuncs/sts/model/v20150401/AssumeRoleResponse.java

100755100644
Lines changed: 26 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,17 @@
11
/*
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
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
95
*
10-
* http://www.apache.org/licenses/LICENSE-2.0
6+
* http://www.apache.org/licenses/LICENSE-2.0
117
*
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.
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.
1813
*/
14+
1915
package com.aliyuncs.sts.model.v20150401;
2016

2117
import com.aliyuncs.AcsResponse;
@@ -68,10 +64,26 @@ public static class Credentials {
6864

6965
private String expiration;
7066

67+
public String getBizSecurityToken() {
68+
return this.securityToken;
69+
}
70+
71+
public void setBizSecurityToken(String securityToken) {
72+
this.securityToken = securityToken;
73+
}
74+
75+
/**
76+
* @deprecated use getBizSecurityToken instead of this.
77+
*/
78+
@Deprecated
7179
public String getSecurityToken() {
7280
return this.securityToken;
7381
}
7482

83+
/**
84+
* @deprecated use setBizSecurityToken instead of this.
85+
*/
86+
@Deprecated
7587
public void setSecurityToken(String securityToken) {
7688
this.securityToken = securityToken;
7789
}

aliyun-java-sdk-sts/src/main/java/com/aliyuncs/sts/model/v20150401/GenerateSessionAccessKeyRequest.java

100755100644
Lines changed: 14 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,10 @@
1111
* See the License for the specific language governing permissions and
1212
* limitations under the License.
1313
*/
14+
1415
package com.aliyuncs.sts.model.v20150401;
1516

16-
import com.aliyuncs.RpcAcsRequest;
17+
import com.aliyuncs.RpcAcsRequest;
1718
import com.aliyuncs.http.ProtocolType;
1819

1920
/**
@@ -23,20 +24,20 @@
2324
public class GenerateSessionAccessKeyRequest extends RpcAcsRequest<GenerateSessionAccessKeyResponse> {
2425

2526
public GenerateSessionAccessKeyRequest() {
26-
super("Sts", "2015-04-01", "GenerateSessionAccessKey");
27+
super("Sts", "2015-04-01", "GenerateSessionAccessKey", "sts");
2728
setProtocol(ProtocolType.HTTPS);
28-
}
29-
30-
private Long durationSeconds;
31-
32-
public Long getDurationSeconds() {
33-
return this.durationSeconds;
34-
}
35-
36-
public void setDurationSeconds(Long durationSeconds) {
37-
this.durationSeconds = durationSeconds;
29+
}
30+
31+
private Long durationSeconds;
32+
33+
public Long getDurationSeconds() {
34+
return this.durationSeconds;
35+
}
36+
37+
public void setDurationSeconds(Long durationSeconds) {
38+
this.durationSeconds = durationSeconds;
3839
if(durationSeconds != null){
39-
putQueryParameter("DurationSeconds", durationSeconds.toString());
40+
putQueryParameter("DurationSeconds", durationSeconds.toString());
4041
}
4142
}
4243

aliyun-java-sdk-sts/src/main/java/com/aliyuncs/sts/model/v20150401/GenerateSessionAccessKeyResponse.java

100755100644
Lines changed: 25 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,27 @@
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-
package com.aliyuncs.sts.model.v20150401;
15-
16-
import com.aliyuncs.AcsResponse;
17-
import com.aliyuncs.sts.transform.v20150401.GenerateSessionAccessKeyResponseUnmarshaller;
18-
import com.aliyuncs.transform.UnmarshallerContext;
19-
20-
/**
21-
* @author auto create
22-
* @version
23-
*/
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.sts.model.v20150401;
16+
17+
import com.aliyuncs.AcsResponse;
18+
import com.aliyuncs.sts.transform.v20150401.GenerateSessionAccessKeyResponseUnmarshaller;
19+
import com.aliyuncs.transform.UnmarshallerContext;
20+
21+
/**
22+
* @author auto create
23+
* @version
24+
*/
2425
public class GenerateSessionAccessKeyResponse extends AcsResponse {
2526

2627
private String requestId;
@@ -80,4 +81,4 @@ public void setExpiration(String expiration) {
8081
public GenerateSessionAccessKeyResponse getInstance(UnmarshallerContext context) {
8182
return GenerateSessionAccessKeyResponseUnmarshaller.unmarshall(this, context);
8283
}
83-
}
84+
}

aliyun-java-sdk-sts/src/main/java/com/aliyuncs/sts/model/v20150401/GetCallerIdentityRequest.java

100755100644
Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,10 @@
1111
* See the License for the specific language governing permissions and
1212
* limitations under the License.
1313
*/
14+
1415
package com.aliyuncs.sts.model.v20150401;
1516

16-
import com.aliyuncs.RpcAcsRequest;
17+
import com.aliyuncs.RpcAcsRequest;
1718
import com.aliyuncs.http.ProtocolType;
1819

1920
/**
@@ -23,7 +24,7 @@
2324
public class GetCallerIdentityRequest extends RpcAcsRequest<GetCallerIdentityResponse> {
2425

2526
public GetCallerIdentityRequest() {
26-
super("Sts", "2015-04-01", "GetCallerIdentity");
27+
super("Sts", "2015-04-01", "GetCallerIdentity", "sts");
2728
setProtocol(ProtocolType.HTTPS);
2829
}
2930

0 commit comments

Comments
 (0)