Skip to content

Commit a159845

Browse files
committed
Support API CreateClusterVpcEndpointConnection.
1 parent fb3058f commit a159845

6 files changed

Lines changed: 259 additions & 1 deletion

File tree

sysom-20231230/ChangeLog.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
2026-05-13 Version: 1.14.0
2+
- Support API CreateClusterVpcEndpointConnection.
3+
4+
15
2026-04-28 Version: 1.13.0
26
- Support API CreateInstanceInspection.
37
- Support API GetInspectionReport.

sysom-20231230/pom.xml

Lines changed: 1 addition & 1 deletion
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>sysom20231230</artifactId>
6-
<version>1.13.0</version>
6+
<version>1.14.0</version>
77
<packaging>jar</packaging>
88
<name>sysom20231230</name>
99
<description>Alibaba Cloud SysOM (20231230) SDK for Java

sysom-20231230/src/main/java/com/aliyun/sysom20231230/Client.java

Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -297,6 +297,61 @@ public CreateAlertStrategyResponse createAlertStrategy(CreateAlertStrategyReques
297297
return this.createAlertStrategyWithOptions(request, headers, runtime);
298298
}
299299

300+
/**
301+
* <b>summary</b> :
302+
* <p>创建集群Vpc端点连接</p>
303+
*
304+
* @param request CreateClusterVpcEndpointConnectionRequest
305+
* @param headers map
306+
* @param runtime runtime options for this request RuntimeOptions
307+
* @return CreateClusterVpcEndpointConnectionResponse
308+
*/
309+
public CreateClusterVpcEndpointConnectionResponse createClusterVpcEndpointConnectionWithOptions(CreateClusterVpcEndpointConnectionRequest request, java.util.Map<String, String> headers, com.aliyun.teautil.models.RuntimeOptions runtime) throws Exception {
310+
com.aliyun.teautil.Common.validateModel(request);
311+
java.util.Map<String, Object> body = new java.util.HashMap<>();
312+
if (!com.aliyun.teautil.Common.isUnset(request.clusterId)) {
313+
body.put("clusterId", request.clusterId);
314+
}
315+
316+
if (!com.aliyun.teautil.Common.isUnset(request.dryRun)) {
317+
body.put("dryRun", request.dryRun);
318+
}
319+
320+
if (!com.aliyun.teautil.Common.isUnset(request.region)) {
321+
body.put("region", request.region);
322+
}
323+
324+
com.aliyun.teaopenapi.models.OpenApiRequest req = com.aliyun.teaopenapi.models.OpenApiRequest.build(TeaConverter.buildMap(
325+
new TeaPair("headers", headers),
326+
new TeaPair("body", com.aliyun.openapiutil.Client.parseToMap(body))
327+
));
328+
com.aliyun.teaopenapi.models.Params params = com.aliyun.teaopenapi.models.Params.build(TeaConverter.buildMap(
329+
new TeaPair("action", "CreateClusterVpcEndpointConnection"),
330+
new TeaPair("version", "2023-12-30"),
331+
new TeaPair("protocol", "HTTPS"),
332+
new TeaPair("pathname", "/api/v1/k8sProxy/access/createClusterVpcEndpointConnection"),
333+
new TeaPair("method", "POST"),
334+
new TeaPair("authType", "AK"),
335+
new TeaPair("style", "ROA"),
336+
new TeaPair("reqBodyType", "json"),
337+
new TeaPair("bodyType", "json")
338+
));
339+
return TeaModel.toModel(this.callApi(params, req, runtime), new CreateClusterVpcEndpointConnectionResponse());
340+
}
341+
342+
/**
343+
* <b>summary</b> :
344+
* <p>创建集群Vpc端点连接</p>
345+
*
346+
* @param request CreateClusterVpcEndpointConnectionRequest
347+
* @return CreateClusterVpcEndpointConnectionResponse
348+
*/
349+
public CreateClusterVpcEndpointConnectionResponse createClusterVpcEndpointConnection(CreateClusterVpcEndpointConnectionRequest request) throws Exception {
350+
com.aliyun.teautil.models.RuntimeOptions runtime = new com.aliyun.teautil.models.RuntimeOptions();
351+
java.util.Map<String, String> headers = new java.util.HashMap<>();
352+
return this.createClusterVpcEndpointConnectionWithOptions(request, headers, runtime);
353+
}
354+
300355
/**
301356
* <b>summary</b> :
302357
* <p>创建实例巡检</p>
Lines changed: 61 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,61 @@
1+
// This file is auto-generated, don't edit it. Thanks.
2+
package com.aliyun.sysom20231230.models;
3+
4+
import com.aliyun.tea.*;
5+
6+
public class CreateClusterVpcEndpointConnectionRequest extends TeaModel {
7+
/**
8+
* <p>This parameter is required.</p>
9+
*
10+
* <strong>example:</strong>
11+
* <p>ray-bzxw7g2r7301r3f2</p>
12+
*/
13+
@NameInMap("clusterId")
14+
public String clusterId;
15+
16+
/**
17+
* <strong>example:</strong>
18+
* <p>false</p>
19+
*/
20+
@NameInMap("dryRun")
21+
public Boolean dryRun;
22+
23+
/**
24+
* <p>This parameter is required.</p>
25+
*
26+
* <strong>example:</strong>
27+
* <p>cn-hangzhou</p>
28+
*/
29+
@NameInMap("region")
30+
public String region;
31+
32+
public static CreateClusterVpcEndpointConnectionRequest build(java.util.Map<String, ?> map) throws Exception {
33+
CreateClusterVpcEndpointConnectionRequest self = new CreateClusterVpcEndpointConnectionRequest();
34+
return TeaModel.build(map, self);
35+
}
36+
37+
public CreateClusterVpcEndpointConnectionRequest setClusterId(String clusterId) {
38+
this.clusterId = clusterId;
39+
return this;
40+
}
41+
public String getClusterId() {
42+
return this.clusterId;
43+
}
44+
45+
public CreateClusterVpcEndpointConnectionRequest setDryRun(Boolean dryRun) {
46+
this.dryRun = dryRun;
47+
return this;
48+
}
49+
public Boolean getDryRun() {
50+
return this.dryRun;
51+
}
52+
53+
public CreateClusterVpcEndpointConnectionRequest setRegion(String region) {
54+
this.region = region;
55+
return this;
56+
}
57+
public String getRegion() {
58+
return this.region;
59+
}
60+
61+
}
Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
// This file is auto-generated, don't edit it. Thanks.
2+
package com.aliyun.sysom20231230.models;
3+
4+
import com.aliyun.tea.*;
5+
6+
public class CreateClusterVpcEndpointConnectionResponse extends TeaModel {
7+
@NameInMap("headers")
8+
public java.util.Map<String, String> headers;
9+
10+
@NameInMap("statusCode")
11+
public Integer statusCode;
12+
13+
@NameInMap("body")
14+
public CreateClusterVpcEndpointConnectionResponseBody body;
15+
16+
public static CreateClusterVpcEndpointConnectionResponse build(java.util.Map<String, ?> map) throws Exception {
17+
CreateClusterVpcEndpointConnectionResponse self = new CreateClusterVpcEndpointConnectionResponse();
18+
return TeaModel.build(map, self);
19+
}
20+
21+
public CreateClusterVpcEndpointConnectionResponse setHeaders(java.util.Map<String, String> headers) {
22+
this.headers = headers;
23+
return this;
24+
}
25+
public java.util.Map<String, String> getHeaders() {
26+
return this.headers;
27+
}
28+
29+
public CreateClusterVpcEndpointConnectionResponse setStatusCode(Integer statusCode) {
30+
this.statusCode = statusCode;
31+
return this;
32+
}
33+
public Integer getStatusCode() {
34+
return this.statusCode;
35+
}
36+
37+
public CreateClusterVpcEndpointConnectionResponse setBody(CreateClusterVpcEndpointConnectionResponseBody body) {
38+
this.body = body;
39+
return this;
40+
}
41+
public CreateClusterVpcEndpointConnectionResponseBody getBody() {
42+
return this.body;
43+
}
44+
45+
}
Lines changed: 93 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,93 @@
1+
// This file is auto-generated, don't edit it. Thanks.
2+
package com.aliyun.sysom20231230.models;
3+
4+
import com.aliyun.tea.*;
5+
6+
public class CreateClusterVpcEndpointConnectionResponseBody extends TeaModel {
7+
/**
8+
* <strong>example:</strong>
9+
* <p>Success</p>
10+
*/
11+
@NameInMap("code")
12+
public String code;
13+
14+
@NameInMap("data")
15+
public CreateClusterVpcEndpointConnectionResponseBodyData data;
16+
17+
/**
18+
* <strong>example:</strong>
19+
* <p>success</p>
20+
*/
21+
@NameInMap("message")
22+
public String message;
23+
24+
/**
25+
* <p>Id of the request</p>
26+
*
27+
* <strong>example:</strong>
28+
* <p>2D693121-C925-5154-8DF6-C09A8B369822</p>
29+
*/
30+
@NameInMap("requestId")
31+
public String requestId;
32+
33+
public static CreateClusterVpcEndpointConnectionResponseBody build(java.util.Map<String, ?> map) throws Exception {
34+
CreateClusterVpcEndpointConnectionResponseBody self = new CreateClusterVpcEndpointConnectionResponseBody();
35+
return TeaModel.build(map, self);
36+
}
37+
38+
public CreateClusterVpcEndpointConnectionResponseBody setCode(String code) {
39+
this.code = code;
40+
return this;
41+
}
42+
public String getCode() {
43+
return this.code;
44+
}
45+
46+
public CreateClusterVpcEndpointConnectionResponseBody setData(CreateClusterVpcEndpointConnectionResponseBodyData data) {
47+
this.data = data;
48+
return this;
49+
}
50+
public CreateClusterVpcEndpointConnectionResponseBodyData getData() {
51+
return this.data;
52+
}
53+
54+
public CreateClusterVpcEndpointConnectionResponseBody setMessage(String message) {
55+
this.message = message;
56+
return this;
57+
}
58+
public String getMessage() {
59+
return this.message;
60+
}
61+
62+
public CreateClusterVpcEndpointConnectionResponseBody setRequestId(String requestId) {
63+
this.requestId = requestId;
64+
return this;
65+
}
66+
public String getRequestId() {
67+
return this.requestId;
68+
}
69+
70+
public static class CreateClusterVpcEndpointConnectionResponseBodyData extends TeaModel {
71+
/**
72+
* <strong>example:</strong>
73+
* <p>ep-xxx</p>
74+
*/
75+
@NameInMap("endpointConnectionId")
76+
public String endpointConnectionId;
77+
78+
public static CreateClusterVpcEndpointConnectionResponseBodyData build(java.util.Map<String, ?> map) throws Exception {
79+
CreateClusterVpcEndpointConnectionResponseBodyData self = new CreateClusterVpcEndpointConnectionResponseBodyData();
80+
return TeaModel.build(map, self);
81+
}
82+
83+
public CreateClusterVpcEndpointConnectionResponseBodyData setEndpointConnectionId(String endpointConnectionId) {
84+
this.endpointConnectionId = endpointConnectionId;
85+
return this;
86+
}
87+
public String getEndpointConnectionId() {
88+
return this.endpointConnectionId;
89+
}
90+
91+
}
92+
93+
}

0 commit comments

Comments
 (0)