Skip to content

Commit a844c78

Browse files
committed
Support API AttachGroupPlugin.
1 parent b9e5676 commit a844c78

15 files changed

+1396
-1
lines changed

cloudapi-20160714/ChangeLog.txt

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,10 @@
1+
2025-03-06 Version: 3.14.0
2+
- Support API AttachGroupPlugin.
3+
- Support API DescribePluginGroups.
4+
- Support API DescribePluginsByGroup.
5+
- Support API DetachGroupPlugin.
6+
7+
18
2025-02-14 Version: 3.13.3
29
- Update API ListPrivateDNS: add param PageNumber.
310
- Update API ListPrivateDNS: add param PageSize.

cloudapi-20160714/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>cloudapi20160714</artifactId>
6-
<version>3.13.3</version>
6+
<version>3.14.0</version>
77
<packaging>jar</packaging>
88
<name>cloudapi20160714</name>
99
<description>Alibaba Cloud CloudAPI (20160714) SDK for Java

cloudapi-20160714/src/main/java/com/aliyun/cloudapi20160714/Client.java

Lines changed: 260 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -506,6 +506,67 @@ public AttachApiProductResponse attachApiProduct(AttachApiProductRequest request
506506
return this.attachApiProductWithOptions(request, runtime);
507507
}
508508

509+
/**
510+
* <b>summary</b> :
511+
* <p>Attach plugin to API group.</p>
512+
*
513+
* @param request AttachGroupPluginRequest
514+
* @param runtime runtime options for this request RuntimeOptions
515+
* @return AttachGroupPluginResponse
516+
*/
517+
public AttachGroupPluginResponse attachGroupPluginWithOptions(AttachGroupPluginRequest request, com.aliyun.teautil.models.RuntimeOptions runtime) throws Exception {
518+
com.aliyun.teautil.Common.validateModel(request);
519+
java.util.Map<String, Object> query = new java.util.HashMap<>();
520+
if (!com.aliyun.teautil.Common.isUnset(request.groupId)) {
521+
query.put("GroupId", request.groupId);
522+
}
523+
524+
if (!com.aliyun.teautil.Common.isUnset(request.pluginId)) {
525+
query.put("PluginId", request.pluginId);
526+
}
527+
528+
if (!com.aliyun.teautil.Common.isUnset(request.securityToken)) {
529+
query.put("SecurityToken", request.securityToken);
530+
}
531+
532+
if (!com.aliyun.teautil.Common.isUnset(request.stageName)) {
533+
query.put("StageName", request.stageName);
534+
}
535+
536+
com.aliyun.teaopenapi.models.OpenApiRequest req = com.aliyun.teaopenapi.models.OpenApiRequest.build(TeaConverter.buildMap(
537+
new TeaPair("query", com.aliyun.openapiutil.Client.query(query))
538+
));
539+
com.aliyun.teaopenapi.models.Params params = com.aliyun.teaopenapi.models.Params.build(TeaConverter.buildMap(
540+
new TeaPair("action", "AttachGroupPlugin"),
541+
new TeaPair("version", "2016-07-14"),
542+
new TeaPair("protocol", "HTTPS"),
543+
new TeaPair("pathname", "/"),
544+
new TeaPair("method", "POST"),
545+
new TeaPair("authType", "AK"),
546+
new TeaPair("style", "RPC"),
547+
new TeaPair("reqBodyType", "formData"),
548+
new TeaPair("bodyType", "json")
549+
));
550+
if (com.aliyun.teautil.Common.isUnset(_signatureVersion) || !com.aliyun.teautil.Common.equalString(_signatureVersion, "v4")) {
551+
return TeaModel.toModel(this.callApi(params, req, runtime), new AttachGroupPluginResponse());
552+
} else {
553+
return TeaModel.toModel(this.execute(params, req, runtime), new AttachGroupPluginResponse());
554+
}
555+
556+
}
557+
558+
/**
559+
* <b>summary</b> :
560+
* <p>Attach plugin to API group.</p>
561+
*
562+
* @param request AttachGroupPluginRequest
563+
* @return AttachGroupPluginResponse
564+
*/
565+
public AttachGroupPluginResponse attachGroupPlugin(AttachGroupPluginRequest request) throws Exception {
566+
com.aliyun.teautil.models.RuntimeOptions runtime = new com.aliyun.teautil.models.RuntimeOptions();
567+
return this.attachGroupPluginWithOptions(request, runtime);
568+
}
569+
509570
/**
510571
* <b>description</b> :
511572
* <p> This operation is intended for API providers.</p>
@@ -8636,6 +8697,79 @@ public DescribePluginApisResponse describePluginApis(DescribePluginApisRequest r
86368697
return this.describePluginApisWithOptions(request, runtime);
86378698
}
86388699

8700+
/**
8701+
* <b>summary</b> :
8702+
* <p>Query the list of groups bound to a plugin based on the plugin ID</p>
8703+
*
8704+
* @param request DescribePluginGroupsRequest
8705+
* @param runtime runtime options for this request RuntimeOptions
8706+
* @return DescribePluginGroupsResponse
8707+
*/
8708+
public DescribePluginGroupsResponse describePluginGroupsWithOptions(DescribePluginGroupsRequest request, com.aliyun.teautil.models.RuntimeOptions runtime) throws Exception {
8709+
com.aliyun.teautil.Common.validateModel(request);
8710+
java.util.Map<String, Object> query = new java.util.HashMap<>();
8711+
if (!com.aliyun.teautil.Common.isUnset(request.description)) {
8712+
query.put("Description", request.description);
8713+
}
8714+
8715+
if (!com.aliyun.teautil.Common.isUnset(request.groupId)) {
8716+
query.put("GroupId", request.groupId);
8717+
}
8718+
8719+
if (!com.aliyun.teautil.Common.isUnset(request.groupName)) {
8720+
query.put("GroupName", request.groupName);
8721+
}
8722+
8723+
if (!com.aliyun.teautil.Common.isUnset(request.pageNumber)) {
8724+
query.put("PageNumber", request.pageNumber);
8725+
}
8726+
8727+
if (!com.aliyun.teautil.Common.isUnset(request.pageSize)) {
8728+
query.put("PageSize", request.pageSize);
8729+
}
8730+
8731+
if (!com.aliyun.teautil.Common.isUnset(request.pluginId)) {
8732+
query.put("PluginId", request.pluginId);
8733+
}
8734+
8735+
if (!com.aliyun.teautil.Common.isUnset(request.securityToken)) {
8736+
query.put("SecurityToken", request.securityToken);
8737+
}
8738+
8739+
com.aliyun.teaopenapi.models.OpenApiRequest req = com.aliyun.teaopenapi.models.OpenApiRequest.build(TeaConverter.buildMap(
8740+
new TeaPair("query", com.aliyun.openapiutil.Client.query(query))
8741+
));
8742+
com.aliyun.teaopenapi.models.Params params = com.aliyun.teaopenapi.models.Params.build(TeaConverter.buildMap(
8743+
new TeaPair("action", "DescribePluginGroups"),
8744+
new TeaPair("version", "2016-07-14"),
8745+
new TeaPair("protocol", "HTTPS"),
8746+
new TeaPair("pathname", "/"),
8747+
new TeaPair("method", "POST"),
8748+
new TeaPair("authType", "AK"),
8749+
new TeaPair("style", "RPC"),
8750+
new TeaPair("reqBodyType", "formData"),
8751+
new TeaPair("bodyType", "json")
8752+
));
8753+
if (com.aliyun.teautil.Common.isUnset(_signatureVersion) || !com.aliyun.teautil.Common.equalString(_signatureVersion, "v4")) {
8754+
return TeaModel.toModel(this.callApi(params, req, runtime), new DescribePluginGroupsResponse());
8755+
} else {
8756+
return TeaModel.toModel(this.execute(params, req, runtime), new DescribePluginGroupsResponse());
8757+
}
8758+
8759+
}
8760+
8761+
/**
8762+
* <b>summary</b> :
8763+
* <p>Query the list of groups bound to a plugin based on the plugin ID</p>
8764+
*
8765+
* @param request DescribePluginGroupsRequest
8766+
* @return DescribePluginGroupsResponse
8767+
*/
8768+
public DescribePluginGroupsResponse describePluginGroups(DescribePluginGroupsRequest request) throws Exception {
8769+
com.aliyun.teautil.models.RuntimeOptions runtime = new com.aliyun.teautil.models.RuntimeOptions();
8770+
return this.describePluginGroupsWithOptions(request, runtime);
8771+
}
8772+
86398773
/**
86408774
* <b>summary</b> :
86418775
* <p>查询插件列表</p>
@@ -8916,6 +9050,71 @@ public DescribePluginsByApiResponse describePluginsByApi(DescribePluginsByApiReq
89169050
return this.describePluginsByApiWithOptions(request, runtime);
89179051
}
89189052

9053+
/**
9054+
* <b>summary</b> :
9055+
* <p>Query Plugins Bound to API Group</p>
9056+
*
9057+
* @param request DescribePluginsByGroupRequest
9058+
* @param runtime runtime options for this request RuntimeOptions
9059+
* @return DescribePluginsByGroupResponse
9060+
*/
9061+
public DescribePluginsByGroupResponse describePluginsByGroupWithOptions(DescribePluginsByGroupRequest request, com.aliyun.teautil.models.RuntimeOptions runtime) throws Exception {
9062+
com.aliyun.teautil.Common.validateModel(request);
9063+
java.util.Map<String, Object> query = new java.util.HashMap<>();
9064+
if (!com.aliyun.teautil.Common.isUnset(request.groupId)) {
9065+
query.put("GroupId", request.groupId);
9066+
}
9067+
9068+
if (!com.aliyun.teautil.Common.isUnset(request.pageNumber)) {
9069+
query.put("PageNumber", request.pageNumber);
9070+
}
9071+
9072+
if (!com.aliyun.teautil.Common.isUnset(request.pageSize)) {
9073+
query.put("PageSize", request.pageSize);
9074+
}
9075+
9076+
if (!com.aliyun.teautil.Common.isUnset(request.securityToken)) {
9077+
query.put("SecurityToken", request.securityToken);
9078+
}
9079+
9080+
if (!com.aliyun.teautil.Common.isUnset(request.stageName)) {
9081+
query.put("StageName", request.stageName);
9082+
}
9083+
9084+
com.aliyun.teaopenapi.models.OpenApiRequest req = com.aliyun.teaopenapi.models.OpenApiRequest.build(TeaConverter.buildMap(
9085+
new TeaPair("query", com.aliyun.openapiutil.Client.query(query))
9086+
));
9087+
com.aliyun.teaopenapi.models.Params params = com.aliyun.teaopenapi.models.Params.build(TeaConverter.buildMap(
9088+
new TeaPair("action", "DescribePluginsByGroup"),
9089+
new TeaPair("version", "2016-07-14"),
9090+
new TeaPair("protocol", "HTTPS"),
9091+
new TeaPair("pathname", "/"),
9092+
new TeaPair("method", "POST"),
9093+
new TeaPair("authType", "AK"),
9094+
new TeaPair("style", "RPC"),
9095+
new TeaPair("reqBodyType", "formData"),
9096+
new TeaPair("bodyType", "json")
9097+
));
9098+
if (com.aliyun.teautil.Common.isUnset(_signatureVersion) || !com.aliyun.teautil.Common.equalString(_signatureVersion, "v4")) {
9099+
return TeaModel.toModel(this.callApi(params, req, runtime), new DescribePluginsByGroupResponse());
9100+
} else {
9101+
return TeaModel.toModel(this.execute(params, req, runtime), new DescribePluginsByGroupResponse());
9102+
}
9103+
9104+
}
9105+
9106+
/**
9107+
* <b>summary</b> :
9108+
* <p>Query Plugins Bound to API Group</p>
9109+
*
9110+
* @param request DescribePluginsByGroupRequest
9111+
* @return DescribePluginsByGroupResponse
9112+
*/
9113+
public DescribePluginsByGroupResponse describePluginsByGroup(DescribePluginsByGroupRequest request) throws Exception {
9114+
com.aliyun.teautil.models.RuntimeOptions runtime = new com.aliyun.teautil.models.RuntimeOptions();
9115+
return this.describePluginsByGroupWithOptions(request, runtime);
9116+
}
9117+
89199118
/**
89209119
* <b>summary</b> :
89219120
* <p>Queries the details about an API group purchased from Alibaba Cloud Marketplace.</p>
@@ -9881,6 +10080,67 @@ public DetachApiProductResponse detachApiProduct(DetachApiProductRequest request
988110080
return this.detachApiProductWithOptions(request, runtime);
988210081
}
988310082

10083+
/**
10084+
* <b>summary</b> :
10085+
* <p>Unbind group plugin</p>
10086+
*
10087+
* @param request DetachGroupPluginRequest
10088+
* @param runtime runtime options for this request RuntimeOptions
10089+
* @return DetachGroupPluginResponse
10090+
*/
10091+
public DetachGroupPluginResponse detachGroupPluginWithOptions(DetachGroupPluginRequest request, com.aliyun.teautil.models.RuntimeOptions runtime) throws Exception {
10092+
com.aliyun.teautil.Common.validateModel(request);
10093+
java.util.Map<String, Object> query = new java.util.HashMap<>();
10094+
if (!com.aliyun.teautil.Common.isUnset(request.groupId)) {
10095+
query.put("GroupId", request.groupId);
10096+
}
10097+
10098+
if (!com.aliyun.teautil.Common.isUnset(request.pluginId)) {
10099+
query.put("PluginId", request.pluginId);
10100+
}
10101+
10102+
if (!com.aliyun.teautil.Common.isUnset(request.securityToken)) {
10103+
query.put("SecurityToken", request.securityToken);
10104+
}
10105+
10106+
if (!com.aliyun.teautil.Common.isUnset(request.stageName)) {
10107+
query.put("StageName", request.stageName);
10108+
}
10109+
10110+
com.aliyun.teaopenapi.models.OpenApiRequest req = com.aliyun.teaopenapi.models.OpenApiRequest.build(TeaConverter.buildMap(
10111+
new TeaPair("query", com.aliyun.openapiutil.Client.query(query))
10112+
));
10113+
com.aliyun.teaopenapi.models.Params params = com.aliyun.teaopenapi.models.Params.build(TeaConverter.buildMap(
10114+
new TeaPair("action", "DetachGroupPlugin"),
10115+
new TeaPair("version", "2016-07-14"),
10116+
new TeaPair("protocol", "HTTPS"),
10117+
new TeaPair("pathname", "/"),
10118+
new TeaPair("method", "POST"),
10119+
new TeaPair("authType", "AK"),
10120+
new TeaPair("style", "RPC"),
10121+
new TeaPair("reqBodyType", "formData"),
10122+
new TeaPair("bodyType", "json")
10123+
));
10124+
if (com.aliyun.teautil.Common.isUnset(_signatureVersion) || !com.aliyun.teautil.Common.equalString(_signatureVersion, "v4")) {
10125+
return TeaModel.toModel(this.callApi(params, req, runtime), new DetachGroupPluginResponse());
10126+
} else {
10127+
return TeaModel.toModel(this.execute(params, req, runtime), new DetachGroupPluginResponse());
10128+
}
10129+
10130+
}
10131+
10132+
/**
10133+
* <b>summary</b> :
10134+
* <p>Unbind group plugin</p>
10135+
*
10136+
* @param request DetachGroupPluginRequest
10137+
* @return DetachGroupPluginResponse
10138+
*/
10139+
public DetachGroupPluginResponse detachGroupPlugin(DetachGroupPluginRequest request) throws Exception {
10140+
com.aliyun.teautil.models.RuntimeOptions runtime = new com.aliyun.teautil.models.RuntimeOptions();
10141+
return this.detachGroupPluginWithOptions(request, runtime);
10142+
}
10143+
988410144
/**
988510145
* <b>summary</b> :
988610146
* <p>解绑插件</p>
Lines changed: 82 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,82 @@
1+
// This file is auto-generated, don't edit it. Thanks.
2+
package com.aliyun.cloudapi20160714.models;
3+
4+
import com.aliyun.tea.*;
5+
6+
public class AttachGroupPluginRequest extends TeaModel {
7+
/**
8+
* <p>The ID of the API group.</p>
9+
* <p>This parameter is required.</p>
10+
*
11+
* <strong>example:</strong>
12+
* <p>08ae4aa0f95e4321849ee57f4e0b3077</p>
13+
*/
14+
@NameInMap("GroupId")
15+
public String groupId;
16+
17+
/**
18+
* <p>The ID of the plug-in to be bound.</p>
19+
* <p>This parameter is required.</p>
20+
*
21+
* <strong>example:</strong>
22+
* <p>05df2b52a3644a3a8b1935ab8ab59e9d</p>
23+
*/
24+
@NameInMap("PluginId")
25+
public String pluginId;
26+
27+
@NameInMap("SecurityToken")
28+
public String securityToken;
29+
30+
/**
31+
* <p>The environment in which the API is requested. Valid values:</p>
32+
* <ul>
33+
* <li><strong>RELEASE</strong>: the production environment</li>
34+
* <li><strong>PRE</strong>: the pre-release environment</li>
35+
* <li><strong>TEST</strong>: the test environment</li>
36+
* </ul>
37+
* <p>This parameter is required.</p>
38+
*
39+
* <strong>example:</strong>
40+
* <p>RELEASE</p>
41+
*/
42+
@NameInMap("StageName")
43+
public String stageName;
44+
45+
public static AttachGroupPluginRequest build(java.util.Map<String, ?> map) throws Exception {
46+
AttachGroupPluginRequest self = new AttachGroupPluginRequest();
47+
return TeaModel.build(map, self);
48+
}
49+
50+
public AttachGroupPluginRequest setGroupId(String groupId) {
51+
this.groupId = groupId;
52+
return this;
53+
}
54+
public String getGroupId() {
55+
return this.groupId;
56+
}
57+
58+
public AttachGroupPluginRequest setPluginId(String pluginId) {
59+
this.pluginId = pluginId;
60+
return this;
61+
}
62+
public String getPluginId() {
63+
return this.pluginId;
64+
}
65+
66+
public AttachGroupPluginRequest setSecurityToken(String securityToken) {
67+
this.securityToken = securityToken;
68+
return this;
69+
}
70+
public String getSecurityToken() {
71+
return this.securityToken;
72+
}
73+
74+
public AttachGroupPluginRequest setStageName(String stageName) {
75+
this.stageName = stageName;
76+
return this;
77+
}
78+
public String getStageName() {
79+
return this.stageName;
80+
}
81+
82+
}

0 commit comments

Comments
 (0)