Skip to content

Commit d482aab

Browse files
committed
DescribeUserPermissions Remove uid info.
1 parent c04fbbc commit d482aab

File tree

4 files changed

+8
-43
lines changed

4 files changed

+8
-43
lines changed

adcp-20220101/ChangeLog.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
2023-03-16 Version: 1.0.4
2+
- DescribeUserPermissions Remove uid info.
3+
4+
15
2023-03-09 Version: 1.0.3
26
- GrantUserPermissions Add new api.
37
- DescribeUserPermissions Add new api.

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>1.0.3</version>
6+
<version>1.0.4</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.1.9-beta</service.version>
44+
<service.version>0.1.11-beta</service.version>
4545
</properties>
4646
<dependencies>
4747
<dependency>

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

Lines changed: 0 additions & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -72,12 +72,6 @@ public DescribeUserPermissionsResponseBody build() {
7272
}
7373

7474
public static class Permissions extends TeaModel {
75-
@NameInMap("OwnerId")
76-
private String ownerId;
77-
78-
@NameInMap("ParentId")
79-
private String parentId;
80-
8175
@NameInMap("ResourceId")
8276
private String resourceId;
8377

@@ -91,8 +85,6 @@ public static class Permissions extends TeaModel {
9185
private String roleType;
9286

9387
private Permissions(Builder builder) {
94-
this.ownerId = builder.ownerId;
95-
this.parentId = builder.parentId;
9688
this.resourceId = builder.resourceId;
9789
this.resourceType = builder.resourceType;
9890
this.roleName = builder.roleName;
@@ -107,20 +99,6 @@ public static Permissions create() {
10799
return builder().build();
108100
}
109101

110-
/**
111-
* @return ownerId
112-
*/
113-
public String getOwnerId() {
114-
return this.ownerId;
115-
}
116-
117-
/**
118-
* @return parentId
119-
*/
120-
public String getParentId() {
121-
return this.parentId;
122-
}
123-
124102
/**
125103
* @return resourceId
126104
*/
@@ -150,29 +128,11 @@ public String getRoleType() {
150128
}
151129

152130
public static final class Builder {
153-
private String ownerId;
154-
private String parentId;
155131
private String resourceId;
156132
private String resourceType;
157133
private String roleName;
158134
private String roleType;
159135

160-
/**
161-
* OwnerId.
162-
*/
163-
public Builder ownerId(String ownerId) {
164-
this.ownerId = ownerId;
165-
return this;
166-
}
167-
168-
/**
169-
* ParentId.
170-
*/
171-
public Builder parentId(String parentId) {
172-
this.parentId = parentId;
173-
return this;
174-
}
175-
176136
/**
177137
* ResourceId.
178138
*/

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,8 @@ private Builder(GrantUserPermissionsRequest request) {
7272
* Permissions.
7373
*/
7474
public Builder permissions(java.util.List < Permissions> permissions) {
75-
this.putQueryParameter("Permissions", permissions);
75+
String permissionsShrink = shrink(permissions, "Permissions", "json");
76+
this.putQueryParameter("Permissions", permissionsShrink);
7677
this.permissions = permissions;
7778
return this;
7879
}

0 commit comments

Comments
 (0)