Skip to content

Commit ea3ce1b

Browse files
committed
Add CreateStorageSet api to support storageSet.
1 parent c52f361 commit ea3ce1b

822 files changed

Lines changed: 24806 additions & 22983 deletions

File tree

Some content is hidden

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

aliyun-java-sdk-ecs/ChangeLog.txt

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,13 @@
1+
2019-08-08 Version: 4.17.1
2+
- Add CreateStorageSet api to support storageSet.
3+
- Add DeleteStorageSet api to support storageSet.
4+
- Add ModifyStorageSetAttribute api to support storageSet.
5+
- Add DescribeStorageSets api to support storageSet.
6+
- Add DescribeStorageSetDetails api to support storageSet.
7+
- Add parameter StorageSetId,StorageSetPartitionNumber to api CreateDisk,RunInstances,CreateInstance support storageSet.
8+
- Add StorageSetId,StorageSetPartitionNumber with response of api DescribeDisks.
9+
- Add DescribeNetworkInterfaces to support filter by PrivateIpAddress.
10+
111
2019-07-09 Version: 4.17.0
212
- Add CreateStorageSet api to support storageSet.
313
- Add DeleteStorageSet api to support storageSet.

aliyun-java-sdk-ecs/pom.xml

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -4,16 +4,16 @@
44
<groupId>com.aliyun</groupId>
55
<artifactId>aliyun-java-sdk-ecs</artifactId>
66
<packaging>jar</packaging>
7-
<version>4.17.0</version>
7+
<version>4.17.1</version>
88
<name>aliyun-java-sdk-ecs</name>
99
<url>http://www.aliyun.com</url>
10-
<description>Aliyun Open API SDK for Java
11-
12-
Copyright (C) Alibaba Cloud Computing
13-
All rights reserved.
14-
15-
版权所有 (C)阿里云计算有限公司
16-
10+
<description>Aliyun Open API SDK for Java&#xD;
11+
&#xD;
12+
Copyright (C) Alibaba Cloud Computing&#xD;
13+
All rights reserved.&#xD;
14+
&#xD;
15+
版权所有 (C)阿里云计算有限公司&#xD;
16+
&#xD;
1717
http://www.aliyun.com</description>
1818
<distributionManagement>
1919
<snapshotRepository>
@@ -73,7 +73,7 @@ http://www.aliyun.com</description>
7373
<artifactId>maven-jar-plugin</artifactId>
7474
<version>2.3.2</version>
7575
<configuration>
76-
<excludes>
76+
<excludes>&#xD;
7777
</excludes>
7878
</configuration>
7979
</plugin>
Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
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.ecs;
16+
17+
import java.util.HashMap;
18+
19+
public class Endpoint {
20+
public static HashMap<String, String> endpointMap = new HashMap<String, String>() {
21+
{
22+
endpointMap.put("cn-shenzhen", "ecs-cn-hangzhou.aliyuncs.com");
23+
endpointMap.put("cn-qingdao", "ecs-cn-hangzhou.aliyuncs.com");
24+
endpointMap.put("cn-beijing", "ecs-cn-hangzhou.aliyuncs.com");
25+
endpointMap.put("cn-shanghai", "ecs-cn-hangzhou.aliyuncs.com");
26+
endpointMap.put("cn-hongkong", "ecs-cn-hangzhou.aliyuncs.com");
27+
endpointMap.put("ap-southeast-1", "ecs-cn-hangzhou.aliyuncs.com");
28+
endpointMap.put("us-east-1", "ecs-cn-hangzhou.aliyuncs.com");
29+
endpointMap.put("us-west-1", "ecs-cn-hangzhou.aliyuncs.com");
30+
endpointMap.put("cn-hangzhou", "ecs-cn-hangzhou.aliyuncs.com");
31+
}
32+
};
33+
34+
public static String endpointRegionalType = "regional";
35+
}

aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/AcceptInquiredSystemEventRequest.java

Lines changed: 38 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -1,29 +1,34 @@
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.ecs.model.v20140526;
16-
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.ecs.model.v20140526;
16+
1717
import com.aliyuncs.RpcAcsRequest;
18-
19-
/**
20-
* @author auto create
21-
* @version
22-
*/
23-
public class AcceptInquiredSystemEventRequest extends RpcAcsRequest<AcceptInquiredSystemEventResponse> {
24-
25-
public AcceptInquiredSystemEventRequest() {
26-
super("Ecs", "2014-05-26", "AcceptInquiredSystemEvent", "ecs");
18+
import com.aliyuncs.ecs.Endpoint;
19+
20+
/**
21+
* @author auto create
22+
* @version
23+
*/
24+
public class AcceptInquiredSystemEventRequest extends RpcAcsRequest<AcceptInquiredSystemEventResponse> {
25+
26+
public AcceptInquiredSystemEventRequest() {
27+
super("Ecs", "2014-05-26", "AcceptInquiredSystemEvent", "ecs");
28+
try {
29+
this.getClass().getDeclaredField("ProductEndpointMap").set(this, Endpoint.endpointMap);
30+
this.getClass().getDeclaredField("ProductEndpointRegional").set(this, Endpoint.endpointRegionalType);
31+
} catch (Exception e) {}
2732
}
2833

2934
private String eventId;
@@ -89,11 +94,11 @@ public void setOwnerId(Long ownerId) {
8994
if(ownerId != null){
9095
putQueryParameter("OwnerId", ownerId.toString());
9196
}
92-
}
93-
94-
@Override
95-
public Class<AcceptInquiredSystemEventResponse> getResponseClass() {
96-
return AcceptInquiredSystemEventResponse.class;
97-
}
98-
99-
}
97+
}
98+
99+
@Override
100+
public Class<AcceptInquiredSystemEventResponse> getResponseClass() {
101+
return AcceptInquiredSystemEventResponse.class;
102+
}
103+
104+
}
Lines changed: 25 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -1,27 +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-
15-
package com.aliyuncs.ecs.model.v20140526;
16-
17-
import com.aliyuncs.AcsResponse;
18-
import com.aliyuncs.ecs.transform.v20140526.AcceptInquiredSystemEventResponseUnmarshaller;
19-
import com.aliyuncs.transform.UnmarshallerContext;
20-
21-
/**
22-
* @author auto create
23-
* @version
24-
*/
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.ecs.model.v20140526;
16+
17+
import com.aliyuncs.AcsResponse;
18+
import com.aliyuncs.ecs.transform.v20140526.AcceptInquiredSystemEventResponseUnmarshaller;
19+
import com.aliyuncs.transform.UnmarshallerContext;
20+
21+
/**
22+
* @author auto create
23+
* @version
24+
*/
2525
public class AcceptInquiredSystemEventResponse extends AcsResponse {
2626

2727
private String requestId;
@@ -38,4 +38,4 @@ public void setRequestId(String requestId) {
3838
public AcceptInquiredSystemEventResponse getInstance(UnmarshallerContext context) {
3939
return AcceptInquiredSystemEventResponseUnmarshaller.unmarshall(this, context);
4040
}
41-
}
41+
}

aliyun-java-sdk-ecs/src/main/java/com/aliyuncs/ecs/model/v20140526/ActivateRouterInterfaceRequest.java

Lines changed: 38 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -1,29 +1,34 @@
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.ecs.model.v20140526;
16-
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.ecs.model.v20140526;
16+
1717
import com.aliyuncs.RpcAcsRequest;
18-
19-
/**
20-
* @author auto create
21-
* @version
22-
*/
23-
public class ActivateRouterInterfaceRequest extends RpcAcsRequest<ActivateRouterInterfaceResponse> {
24-
25-
public ActivateRouterInterfaceRequest() {
26-
super("Ecs", "2014-05-26", "ActivateRouterInterface", "ecs");
18+
import com.aliyuncs.ecs.Endpoint;
19+
20+
/**
21+
* @author auto create
22+
* @version
23+
*/
24+
public class ActivateRouterInterfaceRequest extends RpcAcsRequest<ActivateRouterInterfaceResponse> {
25+
26+
public ActivateRouterInterfaceRequest() {
27+
super("Ecs", "2014-05-26", "ActivateRouterInterface", "ecs");
28+
try {
29+
this.getClass().getDeclaredField("ProductEndpointMap").set(this, Endpoint.endpointMap);
30+
this.getClass().getDeclaredField("ProductEndpointRegional").set(this, Endpoint.endpointRegionalType);
31+
} catch (Exception e) {}
2732
}
2833

2934
private Long resourceOwnerId;
@@ -76,11 +81,11 @@ public void setRouterInterfaceId(String routerInterfaceId) {
7681
if(routerInterfaceId != null){
7782
putQueryParameter("RouterInterfaceId", routerInterfaceId);
7883
}
79-
}
80-
81-
@Override
82-
public Class<ActivateRouterInterfaceResponse> getResponseClass() {
83-
return ActivateRouterInterfaceResponse.class;
84-
}
85-
86-
}
84+
}
85+
86+
@Override
87+
public Class<ActivateRouterInterfaceResponse> getResponseClass() {
88+
return ActivateRouterInterfaceResponse.class;
89+
}
90+
91+
}
Lines changed: 25 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -1,27 +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-
15-
package com.aliyuncs.ecs.model.v20140526;
16-
17-
import com.aliyuncs.AcsResponse;
18-
import com.aliyuncs.ecs.transform.v20140526.ActivateRouterInterfaceResponseUnmarshaller;
19-
import com.aliyuncs.transform.UnmarshallerContext;
20-
21-
/**
22-
* @author auto create
23-
* @version
24-
*/
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.ecs.model.v20140526;
16+
17+
import com.aliyuncs.AcsResponse;
18+
import com.aliyuncs.ecs.transform.v20140526.ActivateRouterInterfaceResponseUnmarshaller;
19+
import com.aliyuncs.transform.UnmarshallerContext;
20+
21+
/**
22+
* @author auto create
23+
* @version
24+
*/
2525
public class ActivateRouterInterfaceResponse extends AcsResponse {
2626

2727
private String requestId;
@@ -38,4 +38,4 @@ public void setRequestId(String requestId) {
3838
public ActivateRouterInterfaceResponse getInstance(UnmarshallerContext context) {
3939
return ActivateRouterInterfaceResponseUnmarshaller.unmarshall(this, context);
4040
}
41-
}
41+
}

0 commit comments

Comments
 (0)