Skip to content

Commit c36a03e

Browse files
committed
Generated java-async 2014-05-15 for Slb.
1 parent f9a66bf commit c36a03e

File tree

283 files changed

+16477
-3031
lines changed

Some content is hidden

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

283 files changed

+16477
-3031
lines changed

slb-20140515/ChangeLog.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
2023-10-25 Version: 1.0.2
2+
- Generated java-async 2014-05-15 for Slb.
3+
14
2022-02-23 Version: 1.0.1
25
- Support latest apis.
36

slb-20140515/LICENSE

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
Copyright (c) 2009-present, Alibaba Cloud All rights reserved.
2+
3+
Licensed under the Apache License, Version 2.0 (the "License");
4+
you may not use this file except in compliance with the License.
5+
You may obtain a copy of the License at
6+
7+
http://www.apache.org/licenses/LICENSE-2.0
8+
9+
Unless required by applicable law or agreed to in writing, software
10+
distributed under the License is distributed on an "AS IS" BASIS,
11+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
See the License for the specific language governing permissions and
13+
limitations under the License.

slb-20140515/pom.xml

Lines changed: 13 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
<modelVersion>4.0.0</modelVersion>
44
<groupId>com.aliyun</groupId>
55
<artifactId>alibabacloud-slb20140515</artifactId>
6-
<version>1.0.1</version>
6+
<version>1.0.2</version>
77
<packaging>jar</packaging>
88
<name>alibabacloud-slb20140515</name>
99
<description>Alibaba Cloud Slb (20140515) Async SDK for Java
@@ -41,17 +41,24 @@
4141
<java.version>1.8</java.version>
4242
<maven.compiler.source>8</maven.compiler.source>
4343
<maven.compiler.target>8</maven.compiler.target>
44-
<service.version>[0.0.1, 1.0.0)</service.version>
44+
<service.version>0.2.4-beta</service.version>
4545
</properties>
4646
<dependencies>
4747
<dependency>
48-
<groupId>com.aliyun</groupId>
49-
<artifactId>aliyun-gateway-pop</artifactId>
50-
<version>${service.version}</version>
48+
<groupId>com.github.tomakehurst</groupId>
49+
<artifactId>wiremock-standalone</artifactId>
50+
<version>2.24.1</version>
51+
<scope>test</scope>
52+
</dependency>
53+
<dependency>
54+
<groupId>junit</groupId>
55+
<artifactId>junit</artifactId>
56+
<version>4.13.1</version>
57+
<scope>test</scope>
5158
</dependency>
5259
<dependency>
5360
<groupId>com.aliyun</groupId>
54-
<artifactId>darabonba-java-core</artifactId>
61+
<artifactId>aliyun-gateway-pop</artifactId>
5562
<version>${service.version}</version>
5663
</dependency>
5764
</dependencies>

slb-20140515/src/main/java/com/aliyun/sdk/service/slb20140515/AsyncClient.java

Lines changed: 226 additions & 0 deletions
Large diffs are not rendered by default.

slb-20140515/src/main/java/com/aliyun/sdk/service/slb20140515/DefaultAsyncClient.java

Lines changed: 324 additions & 2 deletions
Large diffs are not rendered by default.

slb-20140515/src/main/java/com/aliyun/sdk/service/slb20140515/models/AddAccessControlListEntryRequest.java

Lines changed: 18 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -127,19 +127,25 @@ private Builder() {
127127
super();
128128
}
129129

130-
private Builder(AddAccessControlListEntryRequest response) {
131-
super(response);
132-
this.aclEntrys = response.aclEntrys;
133-
this.aclId = response.aclId;
134-
this.ownerAccount = response.ownerAccount;
135-
this.ownerId = response.ownerId;
136-
this.regionId = response.regionId;
137-
this.resourceOwnerAccount = response.resourceOwnerAccount;
138-
this.resourceOwnerId = response.resourceOwnerId;
130+
private Builder(AddAccessControlListEntryRequest request) {
131+
super(request);
132+
this.aclEntrys = request.aclEntrys;
133+
this.aclId = request.aclId;
134+
this.ownerAccount = request.ownerAccount;
135+
this.ownerId = request.ownerId;
136+
this.regionId = request.regionId;
137+
this.resourceOwnerAccount = request.resourceOwnerAccount;
138+
this.resourceOwnerId = request.resourceOwnerId;
139139
}
140140

141141
/**
142-
* AclEntrys.
142+
* The configuration of the network ACL. Valid values:
143+
* <p>
144+
*
145+
* * **entry**: the IP entries that you want to add to the network ACL. You can add CIDR blocks. Separate multiple CIDR blocks with commas (,).
146+
* * **comment**: the comment on the network ACL.
147+
*
148+
* > You can add at most 50 IP entries to a network ACL in each call. If the IP entry that you want to add to a network ACL already exists, the IP entry is not added. The IP entries that you add must be CIDR blocks.
143149
*/
144150
public Builder aclEntrys(String aclEntrys) {
145151
this.putQueryParameter("AclEntrys", aclEntrys);
@@ -148,7 +154,7 @@ public Builder aclEntrys(String aclEntrys) {
148154
}
149155

150156
/**
151-
* AclId.
157+
* The ID of the network ACL.
152158
*/
153159
public Builder aclId(String aclId) {
154160
this.putQueryParameter("AclId", aclId);
@@ -175,7 +181,7 @@ public Builder ownerId(Long ownerId) {
175181
}
176182

177183
/**
178-
* RegionId.
184+
* The region ID of the network ACL.
179185
*/
180186
public Builder regionId(String regionId) {
181187
this.putQueryParameter("RegionId", regionId);

slb-20140515/src/main/java/com/aliyun/sdk/service/slb20140515/models/AddAccessControlListEntryResponse.java

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,13 +16,18 @@ public class AddAccessControlListEntryResponse extends Response {
1616
@Validation(required = true)
1717
private java.util.Map < String, String > headers;
1818

19+
@NameInMap("statusCode")
20+
@Validation(required = true)
21+
private Integer statusCode;
22+
1923
@NameInMap("body")
2024
@Validation(required = true)
2125
private AddAccessControlListEntryResponseBody body;
2226

2327
private AddAccessControlListEntryResponse(BuilderImpl builder) {
2428
super(builder);
2529
this.headers = builder.headers;
30+
this.statusCode = builder.statusCode;
2631
this.body = builder.body;
2732
}
2833

@@ -42,6 +47,13 @@ public java.util.Map < String, String > getHeaders() {
4247
return this.headers;
4348
}
4449

50+
/**
51+
* @return statusCode
52+
*/
53+
public Integer getStatusCode() {
54+
return this.statusCode;
55+
}
56+
4557
/**
4658
* @return body
4759
*/
@@ -53,6 +65,8 @@ public interface Builder extends Response.Builder<AddAccessControlListEntryRespo
5365

5466
Builder headers(java.util.Map < String, String > headers);
5567

68+
Builder statusCode(Integer statusCode);
69+
5670
Builder body(AddAccessControlListEntryResponseBody body);
5771

5872
@Override
@@ -64,6 +78,7 @@ private static final class BuilderImpl
6478
extends Response.BuilderImpl<AddAccessControlListEntryResponse, Builder>
6579
implements Builder {
6680
private java.util.Map < String, String > headers;
81+
private Integer statusCode;
6782
private AddAccessControlListEntryResponseBody body;
6883

6984
private BuilderImpl() {
@@ -73,6 +88,7 @@ private BuilderImpl() {
7388
private BuilderImpl(AddAccessControlListEntryResponse response) {
7489
super(response);
7590
this.headers = response.headers;
91+
this.statusCode = response.statusCode;
7692
this.body = response.body;
7793
}
7894

@@ -85,6 +101,15 @@ public Builder headers(java.util.Map < String, String > headers) {
85101
return this;
86102
}
87103

104+
/**
105+
* statusCode.
106+
*/
107+
@Override
108+
public Builder statusCode(Integer statusCode) {
109+
this.statusCode = statusCode;
110+
return this;
111+
}
112+
88113
/**
89114
* body.
90115
*/

slb-20140515/src/main/java/com/aliyun/sdk/service/slb20140515/models/AddAccessControlListEntryResponseBody.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ public static final class Builder {
3838
private String requestId;
3939

4040
/**
41-
* RequestId.
41+
* The request ID.
4242
*/
4343
public Builder requestId(String requestId) {
4444
this.requestId = requestId;

slb-20140515/src/main/java/com/aliyun/sdk/service/slb20140515/models/AddBackendServersRequest.java

Lines changed: 44 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -127,19 +127,48 @@ private Builder() {
127127
super();
128128
}
129129

130-
private Builder(AddBackendServersRequest response) {
131-
super(response);
132-
this.backendServers = response.backendServers;
133-
this.loadBalancerId = response.loadBalancerId;
134-
this.ownerAccount = response.ownerAccount;
135-
this.ownerId = response.ownerId;
136-
this.regionId = response.regionId;
137-
this.resourceOwnerAccount = response.resourceOwnerAccount;
138-
this.resourceOwnerId = response.resourceOwnerId;
130+
private Builder(AddBackendServersRequest request) {
131+
super(request);
132+
this.backendServers = request.backendServers;
133+
this.loadBalancerId = request.loadBalancerId;
134+
this.ownerAccount = request.ownerAccount;
135+
this.ownerId = request.ownerId;
136+
this.regionId = request.regionId;
137+
this.resourceOwnerAccount = request.resourceOwnerAccount;
138+
this.resourceOwnerId = request.resourceOwnerId;
139139
}
140140

141141
/**
142-
* BackendServers.
142+
* The list of backend servers that you want to add. Set the following parameters:
143+
* <p>
144+
*
145+
* * **ServerId**: Required. This value must be a string. Enter the ID of an ECS instance, elastic network interface (ENI), or elastic container instance. If **ServerId** is set to the ID of an ENI or elastic container instance, **Type** is required.
146+
*
147+
* * **Weight**: the weight of the backend server. Valid values: **0** to **100**. Default value: **100**.
148+
*
149+
* If the value is set to 0, no requests are forwarded to the backend server.
150+
*
151+
* * **Description**: Optional. The description of the backend server. This value must be a string. The description must be 1 to 80 characters in length, and can contain letters, digits, hyphens (-), forward slashes (/), periods (.), and underscores (\_).
152+
*
153+
* * **Type**: the type of the backend server. Valid values:
154+
*
155+
* * **ecs** (default): an ECS instance
156+
* * **eni**: an ENI
157+
* * **eci**: an elastic container instance
158+
*
159+
* > You can specify ENIs and elastic container instances as the backend servers only for high-performance CLB instances.
160+
*
161+
* * **ServerIp**: the IP address of the ECS instance, ENI, or elastic container instance
162+
* * **Port**: the backend port
163+
*
164+
* Examples:
165+
*
166+
* * ECS instance: `[{ "ServerId": "i-xxxxxxxxx", "Weight": "100", "Type": "ecs", "Port":"80","Description":"test-112" }]`
167+
* * ENI: `[{ "ServerId": "eni-xxxxxxxxx", "Weight": "100", "Type": "eni", "ServerIp": "192.168.**.**", "Port":"80","Description":"test-112" }]`
168+
* * ENI with multiple IP addresses: `[{ "ServerId": "eni-xxxxxxxxx", "Weight": "100", "Type": "eni", "ServerIp": "192.168.**.**", "Port":"80","Description":"test-113" },{ "ServerId": "eni-xxxxxxxxx", "Weight": "100", "Type": "eni", "ServerIp": "172.166.**.**", "Port":"80","Description":"test-113" }]`
169+
* * Elastic container instance: `[{ "ServerId": "eci-xxxxxxxxx", "Weight": "100", "Type": "eci", "ServerIp": "192.168.**.**", "Port":"80","Description":"test-114" }]`
170+
*
171+
* > The backend servers that you add to a CLB instance must be in the Running state. You can add at most 20 backend servers to a CLB instance in each request.
143172
*/
144173
public Builder backendServers(String backendServers) {
145174
this.putQueryParameter("BackendServers", backendServers);
@@ -148,7 +177,7 @@ public Builder backendServers(String backendServers) {
148177
}
149178

150179
/**
151-
* LoadBalancerId.
180+
* The ID of the CLB instance.
152181
*/
153182
public Builder loadBalancerId(String loadBalancerId) {
154183
this.putQueryParameter("LoadBalancerId", loadBalancerId);
@@ -175,7 +204,10 @@ public Builder ownerId(Long ownerId) {
175204
}
176205

177206
/**
178-
* RegionId.
207+
* The ID of the region where the Classic Load Balancer (CLB) instance is deployed.
208+
* <p>
209+
*
210+
* You can call the [DescribeRegions](~~27584~~) operation to query the most recent region list.
179211
*/
180212
public Builder regionId(String regionId) {
181213
this.putQueryParameter("RegionId", regionId);

slb-20140515/src/main/java/com/aliyun/sdk/service/slb20140515/models/AddBackendServersResponse.java

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,13 +16,18 @@ public class AddBackendServersResponse extends Response {
1616
@Validation(required = true)
1717
private java.util.Map < String, String > headers;
1818

19+
@NameInMap("statusCode")
20+
@Validation(required = true)
21+
private Integer statusCode;
22+
1923
@NameInMap("body")
2024
@Validation(required = true)
2125
private AddBackendServersResponseBody body;
2226

2327
private AddBackendServersResponse(BuilderImpl builder) {
2428
super(builder);
2529
this.headers = builder.headers;
30+
this.statusCode = builder.statusCode;
2631
this.body = builder.body;
2732
}
2833

@@ -42,6 +47,13 @@ public java.util.Map < String, String > getHeaders() {
4247
return this.headers;
4348
}
4449

50+
/**
51+
* @return statusCode
52+
*/
53+
public Integer getStatusCode() {
54+
return this.statusCode;
55+
}
56+
4557
/**
4658
* @return body
4759
*/
@@ -53,6 +65,8 @@ public interface Builder extends Response.Builder<AddBackendServersResponse, Bui
5365

5466
Builder headers(java.util.Map < String, String > headers);
5567

68+
Builder statusCode(Integer statusCode);
69+
5670
Builder body(AddBackendServersResponseBody body);
5771

5872
@Override
@@ -64,6 +78,7 @@ private static final class BuilderImpl
6478
extends Response.BuilderImpl<AddBackendServersResponse, Builder>
6579
implements Builder {
6680
private java.util.Map < String, String > headers;
81+
private Integer statusCode;
6782
private AddBackendServersResponseBody body;
6883

6984
private BuilderImpl() {
@@ -73,6 +88,7 @@ private BuilderImpl() {
7388
private BuilderImpl(AddBackendServersResponse response) {
7489
super(response);
7590
this.headers = response.headers;
91+
this.statusCode = response.statusCode;
7692
this.body = response.body;
7793
}
7894

@@ -85,6 +101,15 @@ public Builder headers(java.util.Map < String, String > headers) {
85101
return this;
86102
}
87103

104+
/**
105+
* statusCode.
106+
*/
107+
@Override
108+
public Builder statusCode(Integer statusCode) {
109+
this.statusCode = statusCode;
110+
return this;
111+
}
112+
88113
/**
89114
* body.
90115
*/

0 commit comments

Comments
 (0)