Skip to content

Commit aa74f0a

Browse files
committed
Support Tags.
1 parent 11f5e64 commit aa74f0a

13 files changed

+76
-42
lines changed

adcp-20220101/ChangeLog.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
2024-08-14 Version: 3.0.2
2+
- Support Tags.
3+
14
2024-05-13 Version: 3.0.1
25
- Generated java-async 2022-01-01 for adcp.
36

adcp-20220101/pom.xml

Lines changed: 2 additions & 2 deletions
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>alibabacloud-adcp20220101</artifactId>
6-
<version>3.0.1</version>
6+
<version>3.0.2</version>
77
<packaging>jar</packaging>
88
<name>alibabacloud-adcp20220101</name>
99
<description>Alibaba Cloud adcp (20220101) Async SDK for Java
@@ -41,7 +41,7 @@
4141
<java.version>1.8</java.version>
4242
<maven.compiler.source>8</maven.compiler.source>
4343
<maven.compiler.target>8</maven.compiler.target>
44-
<service.version>0.2.8-beta</service.version>
44+
<service.version>0.2.12-beta</service.version>
4545
</properties>
4646
<dependencies>
4747
<dependency>

adcp-20220101/src/main/java/com/aliyun/sdk/service/adcp20220101/AsyncClient.java

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,12 @@ static AsyncClient create() {
5959

6060
CompletableFuture<DetachClusterFromHubResponse> detachClusterFromHub(DetachClusterFromHubRequest request);
6161

62+
/**
63+
* * To call this API operation to grant permissions to a RAM user or RAM role on a specific cluster, you must use an Alibaba Cloud account, the account that is used to create the cluster, or a RAM user that has the cluster administrator permissions. A regular RAM user does not have the permissions to call this operation.
64+
* * Before you grant RBAC permissions to a RAM user or RAM role on a cluster, you must grant the operation permissions to the RAM user or RAM role on the specified cluster. For more information, see [Attach a system permission policy to a RAM user or RAM role](~~613486~~).
65+
* For more information, see [Authorization overview](~~613468~~).
66+
*
67+
*/
6268
CompletableFuture<GrantUserPermissionResponse> grantUserPermission(GrantUserPermissionRequest request);
6369

6470
/**

adcp-20220101/src/main/java/com/aliyun/sdk/service/adcp20220101/DefaultAsyncClient.java

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -343,6 +343,12 @@ public CompletableFuture<DetachClusterFromHubResponse> detachClusterFromHub(Deta
343343
}
344344
}
345345

346+
/**
347+
* * To call this API operation to grant permissions to a RAM user or RAM role on a specific cluster, you must use an Alibaba Cloud account, the account that is used to create the cluster, or a RAM user that has the cluster administrator permissions. A regular RAM user does not have the permissions to call this operation.
348+
* * Before you grant RBAC permissions to a RAM user or RAM role on a cluster, you must grant the operation permissions to the RAM user or RAM role on the specified cluster. For more information, see [Attach a system permission policy to a RAM user or RAM role](~~613486~~).
349+
* For more information, see [Authorization overview](~~613468~~).
350+
*
351+
*/
346352
@Override
347353
public CompletableFuture<GrantUserPermissionResponse> grantUserPermission(GrantUserPermissionRequest request) {
348354
try {

adcp-20220101/src/main/java/com/aliyun/sdk/service/adcp20220101/models/ChangeResourceGroupRequest.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ private Builder(ChangeResourceGroupRequest request) {
8383
}
8484

8585
/**
86-
* The ID of the new resource group.
86+
* The ID of the new resource group. You can view the available resource groups in the Resource Management console.
8787
*/
8888
public Builder newResourceGroupId(String newResourceGroupId) {
8989
this.putQueryParameter("NewResourceGroupId", newResourceGroupId);
@@ -92,7 +92,7 @@ public Builder newResourceGroupId(String newResourceGroupId) {
9292
}
9393

9494
/**
95-
* The resource ID. If ResourceType=cluster, the resource ID is ClusterId.
95+
* The ID of the resource. The value of this parameter varies with the resource type. For example, if you set ResourceType to cluster, this parameter specifies a cluster ID.
9696
*/
9797
public Builder resourceId(String resourceId) {
9898
this.putQueryParameter("ResourceId", resourceId);
@@ -101,7 +101,7 @@ public Builder resourceId(String resourceId) {
101101
}
102102

103103
/**
104-
* The type of the resource. Only cluster are supported. Set the value to cluster.
104+
* The resource type. Set the value to cluster.
105105
*/
106106
public Builder resourceType(String resourceType) {
107107
this.putQueryParameter("ResourceType", resourceType);

adcp-20220101/src/main/java/com/aliyun/sdk/service/adcp20220101/models/CreateHubClusterRequest.java

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -323,7 +323,10 @@ public Builder resourceGroupID(String resourceGroupID) {
323323
}
324324

325325
/**
326-
* Tag.
326+
* The tags.
327+
* <p>
328+
*
329+
* You can specify at most 20 tags in each call.
327330
*/
328331
public Builder tag(java.util.List < Tag > tag) {
329332
String tagShrink = shrink(tag, "Tag", "json");

adcp-20220101/src/main/java/com/aliyun/sdk/service/adcp20220101/models/DescribeHubClusterKubeconfigRequest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ private Builder(DescribeHubClusterKubeconfigRequest request) {
6868
}
6969

7070
/**
71-
* The ID of the master instance.
71+
* The cluster ID.
7272
*/
7373
public Builder clusterId(String clusterId) {
7474
this.putQueryParameter("ClusterId", clusterId);

adcp-20220101/src/main/java/com/aliyun/sdk/service/adcp20220101/models/DescribeHubClusterLogsRequest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ private Builder(DescribeHubClusterLogsRequest request) {
5454
}
5555

5656
/**
57-
* The ID of the master instance.
57+
* The ID of the Fleet instance. You can call the [DescribeHubClusters](~~424404~~) operation to query the created Fleet instances.
5858
*/
5959
public Builder clusterId(String clusterId) {
6060
this.putQueryParameter("ClusterId", clusterId);

adcp-20220101/src/main/java/com/aliyun/sdk/service/adcp20220101/models/DescribeHubClusterLogsResponseBody.java

Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -49,15 +49,15 @@ public static final class Builder {
4949
private String requestId;
5050

5151
/**
52-
* Brief information about operation logs.
52+
* The details of operations logs.
5353
*/
5454
public Builder logs(java.util.List < Logs> logs) {
5555
this.logs = logs;
5656
return this;
5757
}
5858

5959
/**
60-
* The ID of the request.
60+
* The request ID.
6161
*/
6262
public Builder requestId(String requestId) {
6363
this.requestId = requestId;
@@ -133,31 +133,36 @@ public static final class Builder {
133133
private String logLevel;
134134

135135
/**
136-
* The ID of the master instance.
136+
* The ID of the Fleet instance.
137137
*/
138138
public Builder clusterId(String clusterId) {
139139
this.clusterId = clusterId;
140140
return this;
141141
}
142142

143143
/**
144-
* A log of the master instance.
144+
* The log of the Fleet instance.
145145
*/
146146
public Builder clusterLog(String clusterLog) {
147147
this.clusterLog = clusterLog;
148148
return this;
149149
}
150150

151151
/**
152-
* The time when the log was created. Format: <i>yyyy-mm-dd</i>t<i>hh:mm:ss</i>z (UTC time).
152+
* The time when the log was created. The time follows the ISO 8601 standard in the *yyyy-MM-dd*T*HH:mm:ss*Z format. The time is displayed in UTC.
153153
*/
154154
public Builder creationTime(String creationTime) {
155155
this.creationTime = creationTime;
156156
return this;
157157
}
158158

159159
/**
160-
* The severity level of the log. Valid values: - error: errors. - warn: warnings. - info: information.
160+
* The log level. Valid values:
161+
* <p>
162+
*
163+
* * error
164+
* * warn
165+
* * info
161166
*/
162167
public Builder logLevel(String logLevel) {
163168
this.logLevel = logLevel;

adcp-20220101/src/main/java/com/aliyun/sdk/service/adcp20220101/models/DescribeHubClustersRequest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ public Builder resourceGroupId(String resourceGroupId) {
9999
}
100100

101101
/**
102-
* Tag.
102+
* The tags.
103103
*/
104104
public Builder tag(java.util.List < Tag > tag) {
105105
String tagShrink = shrink(tag, "Tag", "json");

0 commit comments

Comments
 (0)