Skip to content

Commit e6ba0f2

Browse files
committed
Add update repository group api.
1 parent 9f30c04 commit e6ba0f2

File tree

7 files changed

+757
-2
lines changed

7 files changed

+757
-2
lines changed

devops-20210625/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: 2.1.9
2+
- Add update repository group api.
3+
14
2023-02-24 Version: 2.1.8
25
- Add search api and push review api and compare api.
36

devops-20210625/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-devops20210625artifactId>
6-
<version>2.1.8version>
6+
<version>2.1.9version>
77
<packaging>jarpackaging>
88
<name>alibabacloud-devops20210625name>
99
<description>Alibaba Cloud devops (20210625) 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>

devops-20210625/src/main/java/com/aliyun/sdk/service/devops20210625/AsyncClient.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -300,6 +300,8 @@ static AsyncClient create() {
300300

301301
CompletableFuture<UpdateFlowTagGroupResponse> updateFlowTagGroup(UpdateFlowTagGroupRequest request);
302302

303+
CompletableFuture<UpdateGroupResponse> updateGroup(UpdateGroupRequest request);
304+
303305
CompletableFuture<UpdateGroupMemberResponse> updateGroupMember(UpdateGroupMemberRequest request);
304306

305307
CompletableFuture<UpdateHostGroupResponse> updateHostGroup(UpdateHostGroupRequest request);

devops-20210625/src/main/java/com/aliyun/sdk/service/devops20210625/DefaultAsyncClient.java

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2013,6 +2013,20 @@ public CompletableFuture updateFlowTagGroup(UpdateFl
20132013
}
20142014
}
20152015

2016+
@Override
2017+
public CompletableFuture<UpdateGroupResponse> updateGroup(UpdateGroupRequest request) {
2018+
try {
2019+
this.handler.validateRequestModel(request);
2020+
TeaRequest teaRequest = REQUEST.copy().setStyle(RequestStyle.RESTFUL).setAction("UpdateGroup").setMethod(HttpMethod.PUT).setPathRegex("/groups/modify").setBodyType(BodyType.JSON).setBodyIsForm(false).setReqBodyType(BodyType.JSON).formModel(request);
2021+
ClientExecutionParams params = new ClientExecutionParams().withInput(request).withRequest(teaRequest).withOutput(UpdateGroupResponse.create());
2022+
return this.handler.execute(params);
2023+
} catch (Exception e) {
2024+
CompletableFuture<UpdateGroupResponse> future = new CompletableFuture<>();
2025+
future.completeExceptionally(e);
2026+
return future;
2027+
}
2028+
}
2029+
20162030
@Override
20172031
public CompletableFuture<UpdateGroupMemberResponse> updateGroupMember(UpdateGroupMemberRequest request) {
20182032
try {
Lines changed: 237 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,237 @@
1+
// This file is auto-generated, don't edit it. Thanks.
2+
package com.aliyun.sdk.service.devops20210625.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 UpdateGroupRequest} extends {@link RequestModel}
11+
*
12+
*

UpdateGroupRequest

13+
*/
14+
public class UpdateGroupRequest extends Request {
15+
@Query
16+
@NameInMap("accessToken")
17+
private String accessToken;
18+
19+
@Body
20+
@NameInMap("avatarUrl")
21+
private String avatarUrl;
22+
23+
@Body
24+
@NameInMap("description")
25+
private String description;
26+
27+
@Body
28+
@NameInMap("name")
29+
@Validation(required = true)
30+
private String name;
31+
32+
@Body
33+
@NameInMap("path")
34+
@Validation(required = true)
35+
private String path;
36+
37+
@Body
38+
@NameInMap("pathWithNamespace")
39+
@Validation(required = true)
40+
private String pathWithNamespace;
41+
42+
@Body
43+
@NameInMap("visibilityLevel")
44+
private Integer visibilityLevel;
45+
46+
@Query
47+
@NameInMap("organizationId")
48+
@Validation(required = true)
49+
private String organizationId;
50+
51+
private UpdateGroupRequest(Builder builder) {
52+
super(builder);
53+
this.accessToken = builder.accessToken;
54+
this.avatarUrl = builder.avatarUrl;
55+
this.description = builder.description;
56+
this.name = builder.name;
57+
this.path = builder.path;
58+
this.pathWithNamespace = builder.pathWithNamespace;
59+
this.visibilityLevel = builder.visibilityLevel;
60+
this.organizationId = builder.organizationId;
61+
}
62+
63+
public static Builder builder() {
64+
return new Builder();
65+
}
66+
67+
public static UpdateGroupRequest create() {
68+
return builder().build();
69+
}
70+
71+
@Override
72+
public Builder toBuilder() {
73+
return new Builder(this);
74+
}
75+
76+
/**
77+
* @return accessToken
78+
*/
79+
public String getAccessToken() {
80+
return this.accessToken;
81+
}
82+
83+
/**
84+
* @return avatarUrl
85+
*/
86+
public String getAvatarUrl() {
87+
return this.avatarUrl;
88+
}
89+
90+
/**
91+
* @return description
92+
*/
93+
public String getDescription() {
94+
return this.description;
95+
}
96+
97+
/**
98+
* @return name
99+
*/
100+
public String getName() {
101+
return this.name;
102+
}
103+
104+
/**
105+
* @return path
106+
*/
107+
public String getPath() {
108+
return this.path;
109+
}
110+
111+
/**
112+
* @return pathWithNamespace
113+
*/
114+
public String getPathWithNamespace() {
115+
return this.pathWithNamespace;
116+
}
117+
118+
/**
119+
* @return visibilityLevel
120+
*/
121+
public Integer getVisibilityLevel() {
122+
return this.visibilityLevel;
123+
}
124+
125+
/**
126+
* @return organizationId
127+
*/
128+
public String getOrganizationId() {
129+
return this.organizationId;
130+
}
131+
132+
public static final class Builder extends Request.Builder<UpdateGroupRequest, Builder> {
133+
private String accessToken;
134+
private String avatarUrl;
135+
private String description;
136+
private String name;
137+
private String path;
138+
private String pathWithNamespace;
139+
private Integer visibilityLevel;
140+
private String organizationId;
141+
142+
private Builder() {
143+
super();
144+
}
145+
146+
private Builder(UpdateGroupRequest request) {
147+
super(request);
148+
this.accessToken = request.accessToken;
149+
this.avatarUrl = request.avatarUrl;
150+
this.description = request.description;
151+
this.name = request.name;
152+
this.path = request.path;
153+
this.pathWithNamespace = request.pathWithNamespace;
154+
this.visibilityLevel = request.visibilityLevel;
155+
this.organizationId = request.organizationId;
156+
}
157+
158+
/**
159+
* accessToken.
160+
*/
161+
public Builder accessToken(String accessToken) {
162+
this.putQueryParameter("accessToken", accessToken);
163+
this.accessToken = accessToken;
164+
return this;
165+
}
166+
167+
/**
168+
* avatarUrl.
169+
*/
170+
public Builder avatarUrl(String avatarUrl) {
171+
this.putBodyParameter("avatarUrl", avatarUrl);
172+
this.avatarUrl = avatarUrl;
173+
return this;
174+
}
175+
176+
/**
177+
* description.
178+
*/
179+
public Builder description(String description) {
180+
this.putBodyParameter("description", description);
181+
this.description = description;
182+
return this;
183+
}
184+
185+
/**
186+
* name.
187+
*/
188+
public Builder name(String name) {
189+
this.putBodyParameter("name", name);
190+
this.name = name;
191+
return this;
192+
}
193+
194+
/**
195+
* path.
196+
*/
197+
public Builder path(String path) {
198+
this.putBodyParameter("path", path);
199+
this.path = path;
200+
return this;
201+
}
202+
203+
/**
204+
* pathWithNamespace.
205+
*/
206+
public Builder pathWithNamespace(String pathWithNamespace) {
207+
this.putBodyParameter("pathWithNamespace", pathWithNamespace);
208+
this.pathWithNamespace = pathWithNamespace;
209+
return this;
210+
}
211+
212+
/**
213+
* visibilityLevel.
214+
*/
215+
public Builder visibilityLevel(Integer visibilityLevel) {
216+
this.putBodyParameter("visibilityLevel", visibilityLevel);
217+
this.visibilityLevel = visibilityLevel;
218+
return this;
219+
}
220+
221+
/**
222+
* A short description of struct
223+
*/
224+
public Builder organizationId(String organizationId) {
225+
this.putQueryParameter("organizationId", organizationId);
226+
this.organizationId = organizationId;
227+
return this;
228+
}
229+
230+
@Override
231+
public UpdateGroupRequest build() {
232+
return new UpdateGroupRequest(this);
233+
}
234+
235+
}
236+
237+
}
Lines changed: 104 additions & 0 deletions
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.devops20210625.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 UpdateGroupResponse} extends {@link TeaModel}
11+
*
12+
*

UpdateGroupResponse

13+
*/
14+
public class UpdateGroupResponse 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 UpdateGroupResponseBody body;
22+
23+
private UpdateGroupResponse(BuilderImpl builder) {
24+
super(builder);
25+
this.headers = builder.headers;
26+
this.body = builder.body;
27+
}
28+
29+
public static UpdateGroupResponse 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 UpdateGroupResponseBody getBody() {
49+
return this.body;
50+
}
51+
52+
public interface Builder extends Response.Builder<UpdateGroupResponse, Builder> {
53+
54+
Builder headers(java.util.Map < String, String > headers);
55+
56+
Builder body(UpdateGroupResponseBody body);
57+
58+
@Override
59+
UpdateGroupResponse build();
60+
61+
}
62+
63+
private static final class BuilderImpl
64+
extends Response.BuilderImpl<UpdateGroupResponse, Builder>
65+
implements Builder {
66+
private java.util.Map < String, String > headers;
67+
private UpdateGroupResponseBody body;
68+
69+
private BuilderImpl() {
70+
super();
71+
}
72+
73+
private BuilderImpl(UpdateGroupResponse 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(UpdateGroupResponseBody body) {
93+
this.body = body;
94+
return this;
95+
}
96+
97+
@Override
98+
public UpdateGroupResponse build() {
99+
return new UpdateGroupResponse(this);
100+
}
101+
102+
}
103+
104+
}

0 commit comments

Comments
 (0)