Skip to content

Commit d10ea9a

Browse files
committed
Update sdk.
1 parent 9bac830 commit d10ea9a

File tree

8 files changed

+319
-2
lines changed

8 files changed

+319
-2
lines changed

ddoscoo-20200101/ChangeLog.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
2023-04-04 Version: 1.0.2
2+
- Update sdk.
3+
14
2023-03-10 Version: 1.0.1
25
- Update sdk.
36

ddoscoo-20200101/pom.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
<modelVersion>4.0.0modelVersion>
44
<groupId>com.aliyungroupId>
55
<artifactId>alibabacloud-ddoscoo20200101artifactId>
6-
<version>1.0.1version>
6+
<version>1.0.2version>
77
<packaging>jarpackaging>
88
<name>alibabacloud-ddoscoo20200101name>
99
<description>Alibaba Cloud ddoscoo (20200101) Async SDK for Java
@@ -41,7 +41,7 @@
4141
<java.version>1.8java.version>
4242
<maven.compiler.source>8maven.compiler.source>
4343
<maven.compiler.target>8maven.compiler.target>
44-
<service.version>0.1.9-betaservice.version>
44+
<service.version>0.1.13-betaservice.version>
4545
properties>
4646
<dependencies>
4747
<dependency>

ddoscoo-20200101/src/main/java/com/aliyun/sdk/service/ddoscoo20200101/AsyncClient.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,8 @@ static AsyncClient create() {
3939
*/
4040
CompletableFuture<ConfigL7RsPolicyResponse> configL7RsPolicy(ConfigL7RsPolicyRequest request);
4141

42+
CompletableFuture<ConfigLayer4RealLimitResponse> configLayer4RealLimit(ConfigLayer4RealLimitRequest request);
43+
4244
CompletableFuture<ConfigLayer4RemarkResponse> configLayer4Remark(ConfigLayer4RemarkRequest request);
4345

4446
CompletableFuture<ConfigLayer4RuleBakModeResponse> configLayer4RuleBakMode(ConfigLayer4RuleBakModeRequest request);

ddoscoo-20200101/src/main/java/com/aliyun/sdk/service/ddoscoo20200101/DefaultAsyncClient.java

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -120,6 +120,20 @@ public CompletableFuture configL7RsPolicy(ConfigL7RsPo
120120
}
121121
}
122122

123+
@Override
124+
public CompletableFuture<ConfigLayer4RealLimitResponse> configLayer4RealLimit(ConfigLayer4RealLimitRequest request) {
125+
try {
126+
this.handler.validateRequestModel(request);
127+
TeaRequest teaRequest = REQUEST.copy().setStyle(RequestStyle.RPC).setAction("ConfigLayer4RealLimit").setMethod(HttpMethod.POST).setPathRegex("/").setBodyType(BodyType.JSON).setBodyIsForm(false).setReqBodyType(BodyType.JSON).formModel(request);
128+
ClientExecutionParams params = new ClientExecutionParams().withInput(request).withRequest(teaRequest).withOutput(ConfigLayer4RealLimitResponse.create());
129+
return this.handler.execute(params);
130+
} catch (Exception e) {
131+
CompletableFuture<ConfigLayer4RealLimitResponse> future = new CompletableFuture<>();
132+
future.completeExceptionally(e);
133+
return future;
134+
}
135+
}
136+
123137
@Override
124138
public CompletableFuture<ConfigLayer4RemarkResponse> configLayer4Remark(ConfigLayer4RemarkRequest request) {
125139
try {
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,120 @@
1+
// This file is auto-generated, don't edit it. Thanks.
2+
package com.aliyun.sdk.service.ddoscoo20200101.models;
3+
4+
import com.aliyun.core.annotation.*;
5+
import darabonba.core.RequestModel;
6+
import darabonba.core.TeaModel;
7+
import com.aliyun.sdk.gateway.pop.models.*;
8+
9+
/**
10+
* {@link ConfigLayer4RealLimitRequest} extends {@link RequestModel}
11+
*
12+
*

ConfigLayer4RealLimitRequest

13+
*/
14+
public class ConfigLayer4RealLimitRequest extends Request {
15+
@Host
16+
@NameInMap("RegionId")
17+
private String regionId;
18+
19+
@Query
20+
@NameInMap("InstanceId")
21+
@Validation(required = true)
22+
private String instanceId;
23+
24+
@Query
25+
@NameInMap("LimitValue")
26+
@Validation(required = true)
27+
private Long limitValue;
28+
29+
private ConfigLayer4RealLimitRequest(Builder builder) {
30+
super(builder);
31+
this.regionId = builder.regionId;
32+
this.instanceId = builder.instanceId;
33+
this.limitValue = builder.limitValue;
34+
}
35+
36+
public static Builder builder() {
37+
return new Builder();
38+
}
39+
40+
public static ConfigLayer4RealLimitRequest create() {
41+
return builder().build();
42+
}
43+
44+
@Override
45+
public Builder toBuilder() {
46+
return new Builder(this);
47+
}
48+
49+
/**
50+
* @return regionId
51+
*/
52+
public String getRegionId() {
53+
return this.regionId;
54+
}
55+
56+
/**
57+
* @return instanceId
58+
*/
59+
public String getInstanceId() {
60+
return this.instanceId;
61+
}
62+
63+
/**
64+
* @return limitValue
65+
*/
66+
public Long getLimitValue() {
67+
return this.limitValue;
68+
}
69+
70+
public static final class Builder extends Request.Builder<ConfigLayer4RealLimitRequest, Builder> {
71+
private String regionId;
72+
private String instanceId;
73+
private Long limitValue;
74+
75+
private Builder() {
76+
super();
77+
}
78+
79+
private Builder(ConfigLayer4RealLimitRequest request) {
80+
super(request);
81+
this.regionId = request.regionId;
82+
this.instanceId = request.instanceId;
83+
this.limitValue = request.limitValue;
84+
}
85+
86+
/**
87+
* RegionId.
88+
*/
89+
public Builder regionId(String regionId) {
90+
this.putHostParameter("RegionId", regionId);
91+
this.regionId = regionId;
92+
return this;
93+
}
94+
95+
/**
96+
* InstanceId.
97+
*/
98+
public Builder instanceId(String instanceId) {
99+
this.putQueryParameter("InstanceId", instanceId);
100+
this.instanceId = instanceId;
101+
return this;
102+
}
103+
104+
/**
105+
* LimitValue.
106+
*/
107+
public Builder limitValue(Long limitValue) {
108+
this.putQueryParameter("LimitValue", limitValue);
109+
this.limitValue = limitValue;
110+
return this;
111+
}
112+
113+
@Override
114+
public ConfigLayer4RealLimitRequest build() {
115+
return new ConfigLayer4RealLimitRequest(this);
116+
}
117+
118+
}
119+
120+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,104 @@
1+
// This file is auto-generated, don't edit it. Thanks.
2+
package com.aliyun.sdk.service.ddoscoo20200101.models;
3+
4+
import com.aliyun.core.annotation.*;
5+
import darabonba.core.RequestModel;
6+
import darabonba.core.TeaModel;
7+
import com.aliyun.sdk.gateway.pop.models.*;
8+
9+
/**
10+
* {@link ConfigLayer4RealLimitResponse} extends {@link TeaModel}
11+
*
12+
*

ConfigLayer4RealLimitResponse

13+
*/
14+
public class ConfigLayer4RealLimitResponse extends Response {
15+
@NameInMap("headers")
16+
@Validation(required = true)
17+
private java.util.Map < String, String > headers;
18+
19+
@NameInMap("body")
20+
@Validation(required = true)
21+
private ConfigLayer4RealLimitResponseBody body;
22+
23+
private ConfigLayer4RealLimitResponse(BuilderImpl builder) {
24+
super(builder);
25+
this.headers = builder.headers;
26+
this.body = builder.body;
27+
}
28+
29+
public static ConfigLayer4RealLimitResponse create() {
30+
return new BuilderImpl().build();
31+
}
32+
33+
@Override
34+
public Builder toBuilder() {
35+
return new BuilderImpl(this);
36+
}
37+
38+
/**
39+
* @return headers
40+
*/
41+
public java.util.Map < String, String > getHeaders() {
42+
return this.headers;
43+
}
44+
45+
/**
46+
* @return body
47+
*/
48+
public ConfigLayer4RealLimitResponseBody getBody() {
49+
return this.body;
50+
}
51+
52+
public interface Builder extends Response.Builder<ConfigLayer4RealLimitResponse, Builder> {
53+
54+
Builder headers(java.util.Map < String, String > headers);
55+
56+
Builder body(ConfigLayer4RealLimitResponseBody body);
57+
58+
@Override
59+
ConfigLayer4RealLimitResponse build();
60+
61+
}
62+
63+
private static final class BuilderImpl
64+
extends Response.BuilderImpl<ConfigLayer4RealLimitResponse, Builder>
65+
implements Builder {
66+
private java.util.Map < String, String > headers;
67+
private ConfigLayer4RealLimitResponseBody body;
68+
69+
private BuilderImpl() {
70+
super();
71+
}
72+
73+
private BuilderImpl(ConfigLayer4RealLimitResponse response) {
74+
super(response);
75+
this.headers = response.headers;
76+
this.body = response.body;
77+
}
78+
79+
/**
80+
* headers.
81+
*/
82+
@Override
83+
public Builder headers(java.util.Map < String, String > headers) {
84+
this.headers = headers;
85+
return this;
86+
}
87+
88+
/**
89+
* body.
90+
*/
91+
@Override
92+
public Builder body(ConfigLayer4RealLimitResponseBody body) {
93+
this.body = body;
94+
return this;
95+
}
96+
97+
@Override
98+
public ConfigLayer4RealLimitResponse build() {
99+
return new ConfigLayer4RealLimitResponse(this);
100+
}
101+
102+
}
103+
104+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
// This file is auto-generated, don't edit it. Thanks.
2+
package com.aliyun.sdk.service.ddoscoo20200101.models;
3+
4+
import com.aliyun.core.annotation.*;
5+
import darabonba.core.RequestModel;
6+
import darabonba.core.TeaModel;
7+
import com.aliyun.sdk.gateway.pop.models.*;
8+
9+
/**
10+
* {@link ConfigLayer4RealLimitResponseBody} extends {@link TeaModel}
11+
*
12+
*

ConfigLayer4RealLimitResponseBody

13+
*/
14+
public class ConfigLayer4RealLimitResponseBody extends TeaModel {
15+
@NameInMap("RequestId")
16+
private String requestId;
17+
18+
private ConfigLayer4RealLimitResponseBody(Builder builder) {
19+
this.requestId = builder.requestId;
20+
}
21+
22+
public static Builder builder() {
23+
return new Builder();
24+
}
25+
26+
public static ConfigLayer4RealLimitResponseBody create() {
27+
return builder().build();
28+
}
29+
30+
/**
31+
* @return requestId
32+
*/
33+
public String getRequestId() {
34+
return this.requestId;
35+
}
36+
37+
public static final class Builder {
38+
private String requestId;
39+
40+
/**
41+
* RequestId.
42+
*/
43+
public Builder requestId(String requestId) {
44+
this.requestId = requestId;
45+
return this;
46+
}
47+
48+
public ConfigLayer4RealLimitResponseBody build() {
49+
return new ConfigLayer4RealLimitResponseBody(this);
50+
}
51+
52+
}
53+
54+
}

ddoscoo-20200101/src/main/java/com/aliyun/sdk/service/ddoscoo20200101/models/DescribeInstanceSpecsResponseBody.java

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -111,6 +111,9 @@ public static class InstanceSpecs extends TeaModel {
111111
@NameInMap("QpsLimit")
112112
private Integer qpsLimit;
113113

114+
@NameInMap("RealLimitBw")
115+
private Long realLimitBw;
116+
114117
@NameInMap("SiteLimit")
115118
private Integer siteLimit;
116119

@@ -128,6 +131,7 @@ private InstanceSpecs(Builder builder) {
128131
this.instanceId = builder.instanceId;
129132
this.portLimit = builder.portLimit;
130133
this.qpsLimit = builder.qpsLimit;
134+
this.realLimitBw = builder.realLimitBw;
131135
this.siteLimit = builder.siteLimit;
132136
}
133137

@@ -230,6 +234,13 @@ public Integer getQpsLimit() {
230234
return this.qpsLimit;
231235
}
232236

237+
/**
238+
* @return realLimitBw
239+
*/
240+
public Long getRealLimitBw() {
241+
return this.realLimitBw;
242+
}
243+
233244
/**
234245
* @return siteLimit
235246
*/
@@ -251,6 +262,7 @@ public static final class Builder {
251262
private String instanceId;
252263
private Integer portLimit;
253264
private Integer qpsLimit;
265+
private Long realLimitBw;
254266
private Integer siteLimit;
255267

256268
/**
@@ -371,6 +383,14 @@ public Builder qpsLimit(Integer qpsLimit) {
371383
return this;
372384
}
373385

386+
/**
387+
* RealLimitBw.
388+
*/
389+
public Builder realLimitBw(Long realLimitBw) {
390+
this.realLimitBw = realLimitBw;
391+
return this;
392+
}
393+
374394
/**
375395
* The number of sites that can be protected by the instance.
376396
*/

0 commit comments

Comments
 (0)