Skip to content

Commit 1504b37

Browse files
committed
Fix project api head.
1 parent 1fa50b0 commit 1504b37

File tree

5 files changed

+37
-34
lines changed

5 files changed

+37
-34
lines changed

sls-20201230/ChangeLog.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
2023-03-23 Version: 1.5.6
2+
- Fix project api head.
3+
14
2023-03-16 Version: 1.5.5
25
- Fix api signature.
36

sls-20201230/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-sls20201230artifactId>
6-
<version>1.5.5version>
6+
<version>1.5.6version>
77
<packaging>jarpackaging>
88
<name>alibabacloud-sls20201230name>
99
<description>Alibaba Cloud Sls (20201230) 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.12-betaservice.version>
44+
<service.version>0.1.13-betaservice.version>
4545
properties>
4646
<dependencies>
4747
<dependency>

sls-20201230/src/main/java/com/aliyun/sdk/service/sls20201230/models/DeleteProjectRequest.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
*

DeleteProjectRequest

1313
*/
1414
public class DeleteProjectRequest extends Request {
15-
@Query
15+
@Host
1616
@NameInMap("project")
1717
@Validation(required = true)
1818
private String project;
@@ -58,7 +58,7 @@ private Builder(DeleteProjectRequest request) {
5858
* projetc 名称。
5959
*/
6060
public Builder project(String project) {
61-
this.putQueryParameter("project", project);
61+
this.putHostParameter("project", project);
6262
this.project = project;
6363
return this;
6464
}

sls-20201230/src/main/java/com/aliyun/sdk/service/sls20201230/models/GetLogsRequest.java

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ public class GetLogsRequest extends Request {
2525
@Query
2626
@NameInMap("from")
2727
@Validation(required = true)
28-
private Long from;
28+
private Integer from;
2929

3030
@Query
3131
@NameInMap("line")
@@ -51,7 +51,7 @@ public class GetLogsRequest extends Request {
5151
@Query
5252
@NameInMap("to")
5353
@Validation(required = true)
54-
private Long to;
54+
private Integer to;
5555

5656
@Query
5757
@NameInMap("topic")
@@ -101,7 +101,7 @@ public String getLogstore() {
101101
/**
102102
* @return from
103103
*/
104-
public Long getFrom() {
104+
public Integer getFrom() {
105105
return this.from;
106106
}
107107

@@ -143,7 +143,7 @@ public Boolean getReverse() {
143143
/**
144144
* @return to
145145
*/
146-
public Long getTo() {
146+
public Integer getTo() {
147147
return this.to;
148148
}
149149

@@ -157,13 +157,13 @@ public String getTopic() {
157157
public static final class Builder extends Request.Builder<GetLogsRequest, Builder> {
158158
private String project;
159159
private String logstore;
160-
private Long from;
160+
private Integer from;
161161
private Long line;
162162
private Long offset;
163163
private Boolean powerSql;
164164
private String query;
165165
private Boolean reverse;
166-
private Long to;
166+
private Integer to;
167167
private String topic;
168168

169169
private Builder() {
@@ -209,7 +209,7 @@ public Builder logstore(String logstore) {
209209
* 请求参数from和to定义的时间区间遵循左闭右开原则,即该时间区间包括区间开始时间点,但不包括区间结束时间点。如果from和to的值相同,则为无效区间,函数直接返回错误。
210210
* Unix时间戳格式,表示从1970-1-1 00:00:00 UTC计算起的秒数。
211211
*/
212-
public Builder from(Long from) {
212+
public Builder from(Integer from) {
213213
this.putQueryParameter("from", from);
214214
this.from = from;
215215
return this;
@@ -286,7 +286,7 @@ public Builder reverse(Boolean reverse) {
286286
* 请求参数from和to定义的时间区间遵循左闭右开原则,即该时间区间包括区间开始时间点,但不包括区间结束时间点。如果from和to的值相同,则为无效区间,函数直接返回错误。
287287
* Unix时间戳格式,表示从1970-1-1 00:00:00 UTC计算起的秒数。
288288
*/
289-
public Builder to(Long to) {
289+
public Builder to(Integer to) {
290290
this.putQueryParameter("to", to);
291291
this.to = to;
292292
return this;

sls-20201230/src/main/java/com/aliyun/sdk/service/sls20201230/models/UpdateProjectRequest.java

Lines changed: 22 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -12,20 +12,20 @@
1212
*

UpdateProjectRequest

1313
*/
1414
public class UpdateProjectRequest extends Request {
15+
@Host
16+
@NameInMap("project")
17+
@Validation(required = true)
18+
private String project;
19+
1520
@Body
1621
@NameInMap("description")
1722
@Validation(required = true)
1823
private String description;
1924

20-
@Query
21-
@NameInMap("project")
22-
@Validation(required = true)
23-
private String project;
24-
2525
private UpdateProjectRequest(Builder builder) {
2626
super(builder);
27-
this.description = builder.description;
2827
this.project = builder.project;
28+
this.description = builder.description;
2929
}
3030

3131
public static Builder builder() {
@@ -42,48 +42,48 @@ public Builder toBuilder() {
4242
}
4343

4444
/**
45-
* @return description
45+
* @return project
4646
*/
47-
public String getDescription() {
48-
return this.description;
47+
public String getProject() {
48+
return this.project;
4949
}
5050

5151
/**
52-
* @return project
52+
* @return description
5353
*/
54-
public String getProject() {
55-
return this.project;
54+
public String getDescription() {
55+
return this.description;
5656
}
5757

5858
public static final class Builder extends Request.Builder<UpdateProjectRequest, Builder> {
59-
private String description;
6059
private String project;
60+
private String description;
6161

6262
private Builder() {
6363
super();
6464
}
6565

6666
private Builder(UpdateProjectRequest request) {
6767
super(request);
68-
this.description = request.description;
6968
this.project = request.project;
69+
this.description = request.description;
7070
}
7171

7272
/**
73-
* Project description
73+
* Project name
7474
*/
75-
public Builder description(String description) {
76-
this.putBodyParameter("description", description);
77-
this.description = description;
75+
public Builder project(String project) {
76+
this.putHostParameter("project", project);
77+
this.project = project;
7878
return this;
7979
}
8080

8181
/**
82-
* Project name
82+
* Project description
8383
*/
84-
public Builder project(String project) {
85-
this.putQueryParameter("project", project);
86-
this.project = project;
84+
public Builder description(String description) {
85+
this.putBodyParameter("description", description);
86+
this.description = description;
8787
return this;
8888
}
8989

0 commit comments

Comments
 (0)