Skip to content

Commit 253d374

Browse files
committed
Add Remark.
1 parent d379b94 commit 253d374

33 files changed

+957
-176
lines changed

bpstudio-20210931/ChangeLog.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
2023-03-31 Version: 1.0.1
2+
- Add Remark.
3+
14
2023-03-14 Version: 1.0.0
25
- Add Remark.
36

bpstudio-20210931/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-bpstudio20210931artifactId>
6-
<version>1.0.0version>
6+
<version>1.0.1version>
77
<packaging>jarpackaging>
88
<name>alibabacloud-bpstudio20210931name>
99
<description>Alibaba Cloud BPStudio (20210931) 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.11-betaservice.version>
44+
<service.version>0.1.13-betaservice.version>
4545
properties>
4646
<dependencies>
4747
<dependency>

bpstudio-20210931/src/main/java/com/aliyun/sdk/service/bpstudio20210931/AsyncClient.java

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

3939
CompletableFuture<ListApplicationResponse> listApplication(ListApplicationRequest request);
4040

41+
CompletableFuture<ListTagResourcesResponse> listTagResources(ListTagResourcesRequest request);
42+
4143
CompletableFuture<ListTemplateResponse> listTemplate(ListTemplateRequest request);
4244

4345
CompletableFuture<ReleaseApplicationResponse> releaseApplication(ReleaseApplicationRequest request);

bpstudio-20210931/src/main/java/com/aliyun/sdk/service/bpstudio20210931/DefaultAsyncClient.java

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -179,6 +179,20 @@ public CompletableFuture listApplication(ListApplicatio
179179
}
180180
}
181181

182+
@Override
183+
public CompletableFuture<ListTagResourcesResponse> listTagResources(ListTagResourcesRequest request) {
184+
try {
185+
this.handler.validateRequestModel(request);
186+
TeaRequest teaRequest = REQUEST.copy().setStyle(RequestStyle.RPC).setAction("ListTagResources").setMethod(HttpMethod.POST).setPathRegex("/").setBodyType(BodyType.JSON).setBodyIsForm(true).setReqBodyType(BodyType.FORM).formModel(request);
187+
ClientExecutionParams params = new ClientExecutionParams().withInput(request).withRequest(teaRequest).withOutput(ListTagResourcesResponse.create());
188+
return this.handler.execute(params);
189+
} catch (Exception e) {
190+
CompletableFuture<ListTagResourcesResponse> future = new CompletableFuture<>();
191+
future.completeExceptionally(e);
192+
return future;
193+
}
194+
}
195+
182196
@Override
183197
public CompletableFuture<ListTemplateResponse> listTemplate(ListTemplateRequest request) {
184198
try {

bpstudio-20210931/src/main/java/com/aliyun/sdk/service/bpstudio20210931/models/CreateApplicationRequest.java

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,7 @@ private Builder(CreateApplicationRequest request) {
155155
}
156156

157157
/**
158-
* 区域ID
158+
* The ID of the region.
159159
*/
160160
public Builder areaId(String areaId) {
161161
this.putBodyParameter("AreaId", areaId);
@@ -164,7 +164,7 @@ public Builder areaId(String areaId) {
164164
}
165165

166166
/**
167-
* 幂等标记
167+
* The client token that is used to ensure the idempotence of the request.
168168
*/
169169
public Builder clientToken(String clientToken) {
170170
this.putBodyParameter("ClientToken", clientToken);
@@ -173,7 +173,7 @@ public Builder clientToken(String clientToken) {
173173
}
174174

175175
/**
176-
* Configuration.
176+
* The parameters that are used to configure the application you want to create. For example, enableMonitor specifies whether to automatically create a CloudMonitor task for the application, and enableReport specifies whether to generate reports.
177177
*/
178178
public Builder configuration(java.util.Map < String, String > configuration) {
179179
String configurationShrink = shrink(configuration, "Configuration", "json");
@@ -183,7 +183,7 @@ public Builder configuration(java.util.Map < String, String > configuration) {
183183
}
184184

185185
/**
186-
* 待替换实例列表
186+
* The instances in which you want to create the application. You can create applications in an existing virtual private cloud (VPC).
187187
*/
188188
public Builder instances(java.util.List < Instances> instances) {
189189
String instancesShrink = shrink(instances, "Instances", "json");
@@ -193,7 +193,7 @@ public Builder instances(java.util.List < Instances> instances) {
193193
}
194194

195195
/**
196-
* 新建应用名
196+
* The name of the application that you want to create.
197197
*/
198198
public Builder name(String name) {
199199
this.putBodyParameter("Name", name);
@@ -202,7 +202,7 @@ public Builder name(String name) {
202202
}
203203

204204
/**
205-
* 应用所属资源组ID
205+
* The ID of the resource group to which the application you want to create belongs.
206206
*/
207207
public Builder resourceGroupId(String resourceGroupId) {
208208
this.putBodyParameter("ResourceGroupId", resourceGroupId);
@@ -211,7 +211,7 @@ public Builder resourceGroupId(String resourceGroupId) {
211211
}
212212

213213
/**
214-
* 模板ID
214+
* The ID of the template.
215215
*/
216216
public Builder templateId(String templateId) {
217217
this.putBodyParameter("TemplateId", templateId);
@@ -220,7 +220,7 @@ public Builder templateId(String templateId) {
220220
}
221221

222222
/**
223-
* Variables.
223+
* The parameter values that are contained in the template. If the template contains no parameter values, the default values are used.
224224
*/
225225
public Builder variables(java.util.Map < String, String > variables) {
226226
String variablesShrink = shrink(variables, "Variables", "json");
@@ -287,23 +287,23 @@ public static final class Builder {
287287
private String nodeType;
288288

289289
/**
290-
* 实例ID
290+
* The ID of the instance.
291291
*/
292292
public Builder id(String id) {
293293
this.id = id;
294294
return this;
295295
}
296296

297297
/**
298-
* 图上实例名
298+
* The name of the instance.
299299
*/
300300
public Builder nodeName(String nodeName) {
301301
this.nodeName = nodeName;
302302
return this;
303303
}
304304

305305
/**
306-
* 实例类型
306+
* The type of the instance.
307307
*/
308308
public Builder nodeType(String nodeType) {
309309
this.nodeType = nodeType;

bpstudio-20210931/src/main/java/com/aliyun/sdk/service/bpstudio20210931/models/CreateApplicationResponseBody.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -74,31 +74,31 @@ public static final class Builder {
7474
private String requestId;
7575

7676
/**
77-
* Code.
77+
* The HTTP status code.
7878
*/
7979
public Builder code(Integer code) {
8080
this.code = code;
8181
return this;
8282
}
8383

8484
/**
85-
* 应用ID
85+
* The ID of the application.
8686
*/
8787
public Builder data(String data) {
8888
this.data = data;
8989
return this;
9090
}
9191

9292
/**
93-
* Message.
93+
* The error message.
9494
*/
9595
public Builder message(String message) {
9696
this.message = message;
9797
return this;
9898
}
9999

100100
/**
101-
* RequestId.
101+
* The ID of the request.
102102
*/
103103
public Builder requestId(String requestId) {
104104
this.requestId = requestId;

bpstudio-20210931/src/main/java/com/aliyun/sdk/service/bpstudio20210931/models/DeleteApplicationRequest.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ private Builder(DeleteApplicationRequest request) {
6969
}
7070

7171
/**
72-
* ApplicationId.
72+
* The ID of the application.
7373
*/
7474
public Builder applicationId(String applicationId) {
7575
this.putBodyParameter("ApplicationId", applicationId);
@@ -78,7 +78,7 @@ public Builder applicationId(String applicationId) {
7878
}
7979

8080
/**
81-
* ResourceGroupId.
81+
* The ID of the resource group.
8282
*/
8383
public Builder resourceGroupId(String resourceGroupId) {
8484
this.putBodyParameter("ResourceGroupId", resourceGroupId);

bpstudio-20210931/src/main/java/com/aliyun/sdk/service/bpstudio20210931/models/DeleteApplicationResponseBody.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -62,23 +62,23 @@ public static final class Builder {
6262
private String requestId;
6363

6464
/**
65-
* Code.
65+
* The HTTP status code.
6666
*/
6767
public Builder code(Integer code) {
6868
this.code = code;
6969
return this;
7070
}
7171

7272
/**
73-
* Message.
73+
* The error message.
7474
*/
7575
public Builder message(String message) {
7676
this.message = message;
7777
return this;
7878
}
7979

8080
/**
81-
* RequestId.
81+
* The ID of the request.
8282
*/
8383
public Builder requestId(String requestId) {
8484
this.requestId = requestId;

bpstudio-20210931/src/main/java/com/aliyun/sdk/service/bpstudio20210931/models/DeployApplicationRequest.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ private Builder(DeployApplicationRequest request) {
6969
}
7070

7171
/**
72-
* 应用ID
72+
* The ID of the application.
7373
*/
7474
public Builder applicationId(String applicationId) {
7575
this.putQueryParameter("ApplicationId", applicationId);
@@ -78,7 +78,7 @@ public Builder applicationId(String applicationId) {
7878
}
7979

8080
/**
81-
* 资源组ID
81+
* The ID of the resource group.
8282
*/
8383
public Builder resourceGroupId(String resourceGroupId) {
8484
this.putBodyParameter("ResourceGroupId", resourceGroupId);

bpstudio-20210931/src/main/java/com/aliyun/sdk/service/bpstudio20210931/models/DeployApplicationResponseBody.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -74,31 +74,31 @@ public static final class Builder {
7474
private String requestId;
7575

7676
/**
77-
* Code.
77+
* The HTTP status code.
7878
*/
7979
public Builder code(Integer code) {
8080
this.code = code;
8181
return this;
8282
}
8383

8484
/**
85-
* Data.
85+
* The data of the application.
8686
*/
8787
public Builder data(Long data) {
8888
this.data = data;
8989
return this;
9090
}
9191

9292
/**
93-
* Message.
93+
* The error message.
9494
*/
9595
public Builder message(String message) {
9696
this.message = message;
9797
return this;
9898
}
9999

100100
/**
101-
* RequestId.
101+
* The ID of the request.
102102
*/
103103
public Builder requestId(String requestId) {
104104
this.requestId = requestId;

bpstudio-20210931/src/main/java/com/aliyun/sdk/service/bpstudio20210931/models/ExecuteOperationASyncRequest.java

Lines changed: 51 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,44 @@ private Builder(ExecuteOperationASyncRequest request) {
9898
}
9999

100100
/**
101-
* 操作相关参数,根据不同的Operation值,输入对应的参数
101+
* The parameters that you need to specify when you perform an operation. The parameters vary based on the operation and are specified in the map format. The following examples show how to specify the parameters if you perform an operation on an ECS instance:
102+
*

103+
*
104+
* * The following common parameters need to be specified for operations on an ECS instance:
105+
*
106+
* change_type, regionId, instanceId, and appId.
107+
*
108+
* * To change the instance type of an ECS instance, specify the following parameters:
109+
*
110+
* { "ServiceType": "ecs", "Operation": "modifyInstanceType", "Attributes": "{"change_type":"modify_instance_type","instance_type":"ecs.hfr7.2xlarge","instanceId":"i-xxxxxxxxx","regionId":"cn-beijing","appId":"xxxxxxxxxxxxx"}" }
111+
*
112+
* * To stop an ECS instance, specify the following parameters:
113+
*
114+
* { "ServiceType": "ecs", "Operation": "modifyInstanceType", "Attributes": "{"change_type":"modify_status","status":"Stopped","instanceId":"i-xxxxxxxxx","regionId":"cn-beijing","appId":"xxxxxxxxxxxxx"}" }
115+
*
116+
* * To start an ECS instance, specify the following parameters:
117+
*
118+
* { "ServiceType": "ecs", "Operation": "modifyInstanceType", "Attributes": "{"change_type":"modify_status","status":"Running","instanceId":"i-xxxxxxxxx","regionId":"cn-beijing","appId":"xxxxxxxxxxxxx"}" }
119+
*
120+
* * To restart an ECS instance, specify the following parameters:
121+
*
122+
* { "ServiceType": "ecs", "Operation": "modifyInstanceType", "Attributes": "{"change_type":"modify_status","status":"Restart","instanceId":"i-xxxxxxxxx","regionId":"cn-beijing","appId":"xxxxxxxxxxxxx"}" }
123+
*
124+
* Enumeration values
125+
*
126+
*
127+
*
128+
* :
129+
*
130+
* * { "ServiceType": "ecs", "Operation": "modifyInstanceType", "Attributes": "{\\"change_type\\":\\"modify_instance_type\\",\\"instance_type\\":\\"ecs.hfr7.2xlarge\\",\\"instanceId\\":\\"i-xxxxxxxxx\\",\\"regionId\\":\\"cn-beijing\\",\\"appId\\":\\"xxxxxxxxxxxxx\\"}" }
131+
*
132+
*
133+
*
134+
* :
135+
*
136+
*
137+
*
138+
* { "ServiceType": "ecs", "Operation": "modifyInstanceType", "Attributes": "{\\"change_type\\":\\"modify_instance_type\\",\\"instance_type\\":\\"ecs.hfr7.2xlarge\\",\\"instanceId\\":\\"i-xxxxxxxxx\\",\\"regionId\\":\\"cn-beijing\\",\\"appId\\":\\"xxxxxxxxxxxxx\\"}" }
102139
*/
103140
public Builder attributes(java.util.Map < String, String > attributes) {
104141
String attributesShrink = shrink(attributes, "Attributes", "json");
@@ -108,7 +145,17 @@ public Builder attributes(java.util.Map < String, String > attributes) {
108145
}
109146

110147
/**
111-
* 本次操作类型,例如:attachTag,批量打标; assignResourceGroup,批量分配资源组等
148+
* The type of the operation to be performed to modify the parameters of an instance of the specified service. Some operations are common to different services, and other operations are specific to each service. For example, set this parameter to one of the following values to perform the corresponding operation on an ECS instance:
149+
*

150+
*
151+
* * rename: modifies the name of an ECS instance.
152+
* * modifyInstanceType: changes the instance type of an ECS instance.
153+
* * modifyInstanceType: starts an ECS instance.
154+
* * modifyInstanceType: stops an ECS instance.
155+
* * modifyInstanceType: restarts an ECS instance.
156+
* * addTags: adds tags to an ECS instance.
157+
* * ecsDelete: deletes an ECS instance.
158+
* * modifyPayType: changes the billing method of an ECS instance.
112159
*/
113160
public Builder operation(String operation) {
114161
this.putBodyParameter("Operation", operation);
@@ -117,7 +164,7 @@ public Builder operation(String operation) {
117164
}
118165

119166
/**
120-
* 资源组ID,用于资源组权限校验
167+
* The ID of the resource group. This parameter is specified to verify the permissions on the resource group.
121168
*/
122169
public Builder resourceGroupId(String resourceGroupId) {
123170
this.putBodyParameter("ResourceGroupId", resourceGroupId);
@@ -126,7 +173,7 @@ public Builder resourceGroupId(String resourceGroupId) {
126173
}
127174

128175
/**
129-
* 资源类型,当前只支持cadt_app
176+
* The type of the service. If you want to modify the parameters of an Elastic Compute Service (ECS) instance, set this parameter to ecs.
130177
*/
131178
public Builder serviceType(String serviceType) {
132179
this.putBodyParameter("ServiceType", serviceType);

0 commit comments

Comments
 (0)