Skip to content

Commit e329c4a

Browse files
committed
Generated java-async 2021-05-15 for cloudsso.
1 parent 2b4e8df commit e329c4a

File tree

43 files changed

+1120
-230
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

43 files changed

+1120
-230
lines changed

cloudsso-20210515/ChangeLog.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
2024-03-29 Version: 1.0.8
2+
- Generated java-async 2021-05-15 for cloudsso.
3+
14
2024-02-07 Version: 1.0.7
25
- Generated java-async 2021-05-15 for cloudsso.
36

cloudsso-20210515/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-cloudsso20210515</artifactId>
6-
<version>1.0.7</version>
6+
<version>1.0.8</version>
77
<packaging>jar</packaging>
88
<name>alibabacloud-cloudsso20210515</name>
99
<description>Alibaba Cloud cloudsso (20210515) 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.13-beta</service.version>
44+
<service.version>0.2.7-beta</service.version>
4545
</properties>
4646
<dependencies>
4747
<dependency>

cloudsso-20210515/src/main/java/com/aliyun/sdk/service/cloudsso20210515/AsyncClient.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -271,6 +271,8 @@ static AsyncClient create() {
271271
*/
272272
CompletableFuture<GetUserResponse> getUser(GetUserRequest request);
273273

274+
CompletableFuture<GetUserIdResponse> getUserId(GetUserIdRequest request);
275+
274276
/**
275277
* This topic provides an example on how to query the MFA setting of the user named `u-00q8wbq42wiltcrk****`. The returned result shows that MFA is enabled for the user.
276278
*

cloudsso-20210515/src/main/java/com/aliyun/sdk/service/cloudsso20210515/DefaultAsyncClient.java

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -759,6 +759,20 @@ public CompletableFuture<GetUserResponse> getUser(GetUserRequest request) {
759759
}
760760
}
761761

762+
@Override
763+
public CompletableFuture<GetUserIdResponse> getUserId(GetUserIdRequest request) {
764+
try {
765+
this.handler.validateRequestModel(request);
766+
TeaRequest teaRequest = REQUEST.copy().setStyle(RequestStyle.RPC).setAction("GetUserId").setMethod(HttpMethod.POST).setPathRegex("/").setBodyType(BodyType.JSON).setBodyIsForm(false).setReqBodyType(BodyType.JSON).formModel(request);
767+
ClientExecutionParams params = new ClientExecutionParams().withInput(request).withRequest(teaRequest).withOutput(GetUserIdResponse.create());
768+
return this.handler.execute(params);
769+
} catch (Exception e) {
770+
CompletableFuture<GetUserIdResponse> future = new CompletableFuture<>();
771+
future.completeExceptionally(e);
772+
return future;
773+
}
774+
}
775+
762776
/**
763777
* This topic provides an example on how to query the MFA setting of the user named `u-00q8wbq42wiltcrk****`. The returned result shows that MFA is enabled for the user.
764778
*

cloudsso-20210515/src/main/java/com/aliyun/sdk/service/cloudsso20210515/models/CreateUserProvisioningRequest.java

Lines changed: 24 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,11 @@ private Builder(CreateUserProvisioningRequest request) {
152152
}
153153

154154
/**
155-
* DeletionStrategy.
155+
* The deletion policy. The policy is used to manage synchronized users when you delete the RAM user provisioning. Valid values:
156+
* <p>
157+
*
158+
* * Delete: When you delete the RAM user provisioning, the system deletes the synchronized users.
159+
* * Keep: When you delete the RAM user provisioning, the system retains the synchronized users.
156160
*/
157161
public Builder deletionStrategy(String deletionStrategy) {
158162
this.putQueryParameter("DeletionStrategy", deletionStrategy);
@@ -161,7 +165,7 @@ public Builder deletionStrategy(String deletionStrategy) {
161165
}
162166

163167
/**
164-
* Description.
168+
* The description.
165169
*/
166170
public Builder description(String description) {
167171
this.putQueryParameter("Description", description);
@@ -170,7 +174,7 @@ public Builder description(String description) {
170174
}
171175

172176
/**
173-
* DirectoryId.
177+
* The ID of the resource directory.
174178
*/
175179
public Builder directoryId(String directoryId) {
176180
this.putQueryParameter("DirectoryId", directoryId);
@@ -179,7 +183,11 @@ public Builder directoryId(String directoryId) {
179183
}
180184

181185
/**
182-
* DuplicationStrategy.
186+
* The conflict handling policy. The policy is used when a RAM user has the same username as the CloudSSO user who is synchronized to RAM. Valid values:
187+
* <p>
188+
*
189+
* * KeepBoth: When a CloudSSO user is synchronized to RAM, if a RAM user who has the same username as the CloudSSO user exists, the system creates a RAM user whose username is the username of the CloudSSO user plus the suffix `_sso`.
190+
* * TakeOver: When a CloudSSO user is synchronized to RAM, if a RAM user who has the same username as the CloudSSO user exists, the system replaces the RAM user with the CloudSSO user.
183191
*/
184192
public Builder duplicationStrategy(String duplicationStrategy) {
185193
this.putQueryParameter("DuplicationStrategy", duplicationStrategy);
@@ -188,7 +196,11 @@ public Builder duplicationStrategy(String duplicationStrategy) {
188196
}
189197

190198
/**
191-
* PrincipalId.
199+
* The identity ID of the RAM user provisioning. Valid values:
200+
* <p>
201+
*
202+
* * If you set the `PrincipalType` parameter to `Group`, the value of this parameter is the ID of a CloudSSO user group (g-\*\*\*\*\*\*\*\*).
203+
* * If you set the `PrincipalType` parameter to `User`, the value of this parameter is the ID of a CloudSSO user (u-\*\*\*\*\*\*\*\*).
192204
*/
193205
public Builder principalId(String principalId) {
194206
this.putQueryParameter("PrincipalId", principalId);
@@ -197,7 +209,11 @@ public Builder principalId(String principalId) {
197209
}
198210

199211
/**
200-
* PrincipalType.
212+
* The identity type of the RAM user provisioning. Valid values:
213+
* <p>
214+
*
215+
* * User: The identity of the RAM user provisioning is a CloudSSO user.
216+
* * Group: The identity of the RAM user provisioning is a CloudSSO user group.
201217
*/
202218
public Builder principalType(String principalType) {
203219
this.putQueryParameter("PrincipalType", principalType);
@@ -206,7 +222,7 @@ public Builder principalType(String principalType) {
206222
}
207223

208224
/**
209-
* TargetId.
225+
* The ID of the object for which you create the RAM user provisioning. The value is fixed as the ID of the member in the resource directory.
210226
*/
211227
public Builder targetId(String targetId) {
212228
this.putQueryParameter("TargetId", targetId);
@@ -215,7 +231,7 @@ public Builder targetId(String targetId) {
215231
}
216232

217233
/**
218-
* TargetType.
234+
* The object for which you create the RAM user provisioning. The value is fixed as `RD-Account`.
219235
*/
220236
public Builder targetType(String targetType) {
221237
this.putQueryParameter("TargetType", targetType);

cloudsso-20210515/src/main/java/com/aliyun/sdk/service/cloudsso20210515/models/CreateUserProvisioningResponseBody.java

Lines changed: 42 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -50,15 +50,15 @@ public static final class Builder {
5050
private UserProvisioning userProvisioning;
5151

5252
/**
53-
* RequestId.
53+
* The request ID.
5454
*/
5555
public Builder requestId(String requestId) {
5656
this.requestId = requestId;
5757
return this;
5858
}
5959

6060
/**
61-
* UserProvisioning.
61+
* The information about the RAM user provisioning.
6262
*/
6363
public Builder userProvisioning(UserProvisioning userProvisioning) {
6464
this.userProvisioning = userProvisioning;
@@ -278,127 +278,151 @@ public static final class Builder {
278278
private String userProvisioningId;
279279

280280
/**
281-
* CreateTime.
281+
* The creation time.
282282
*/
283283
public Builder createTime(String createTime) {
284284
this.createTime = createTime;
285285
return this;
286286
}
287287

288288
/**
289-
* DeletionStrategy.
289+
* The deletion policy. The policy is used to manage synchronized users when you delete the RAM user provisioning. Valid values:
290+
* <p>
291+
*
292+
* * Delete: When you delete the RAM user provisioning, the system deletes the synchronized users.
293+
* * Keep: When you delete the RAM user provisioning, the system retains the synchronized users.
290294
*/
291295
public Builder deletionStrategy(String deletionStrategy) {
292296
this.deletionStrategy = deletionStrategy;
293297
return this;
294298
}
295299

296300
/**
297-
* Description.
301+
* The description.
298302
*/
299303
public Builder description(String description) {
300304
this.description = description;
301305
return this;
302306
}
303307

304308
/**
305-
* DirectoryId.
309+
* The ID of the resource directory.
306310
*/
307311
public Builder directoryId(String directoryId) {
308312
this.directoryId = directoryId;
309313
return this;
310314
}
311315

312316
/**
313-
* DuplicationStrategy.
317+
* The conflict handling policy. The policy is used when a RAM user has the same username as the CloudSSO user who is synchronized to RAM. Valid values:
318+
* <p>
319+
*
320+
* * KeepBoth: When a CloudSSO user is synchronized to RAM, if a RAM user who has the same username as the CloudSSO user exists, the system creates a RAM user whose username is the username of the CloudSSO user plus the suffix `_sso`.
321+
* * TakeOver: When a CloudSSO user is synchronized to RAM, if a RAM user who has the same username as the CloudSSO user exists, the system replaces the RAM user with the CloudSSO user.
314322
*/
315323
public Builder duplicationStrategy(String duplicationStrategy) {
316324
this.duplicationStrategy = duplicationStrategy;
317325
return this;
318326
}
319327

320328
/**
321-
* OwnerPk.
329+
* The ID of the Alibaba Cloud account to which the resource directory belongs.
322330
*/
323331
public Builder ownerPk(String ownerPk) {
324332
this.ownerPk = ownerPk;
325333
return this;
326334
}
327335

328336
/**
329-
* PrincipalId.
337+
* The identity ID of the RAM user provisioning. Valid values:
338+
* <p>
339+
*
340+
* * If `Group` is returned for the `PrincipalType` parameter, the value of this parameter is the ID of a CloudSSO user group (g-\*\*\*\*\*\*\*\*).
341+
* * If `User` is returned for the `PrincipalType` parameter, the value of this parameter is the ID of a CloudSSO user (u-\*\*\*\*\*\*\*\*).
330342
*/
331343
public Builder principalId(String principalId) {
332344
this.principalId = principalId;
333345
return this;
334346
}
335347

336348
/**
337-
* PrincipalName.
349+
* The identity name of the RAM user provisioning. Valid values:
350+
* <p>
351+
*
352+
* * If `Group` is returned for the `PrincipalType` parameter, the value of this parameter is the name of a CloudSSO user group.
353+
* * If `User` is returned for the `PrincipalType` parameter, the value of this parameter is the name of a CloudSSO user.
338354
*/
339355
public Builder principalName(String principalName) {
340356
this.principalName = principalName;
341357
return this;
342358
}
343359

344360
/**
345-
* PrincipalType.
361+
* The identity type of the RAM user provisioning. Valid values:
362+
* <p>
363+
*
364+
* * User: The identity of the RAM user provisioning is a CloudSSO user.
365+
* * Group: The identity of the RAM user provisioning is a CloudSSO user group.
346366
*/
347367
public Builder principalType(String principalType) {
348368
this.principalType = principalType;
349369
return this;
350370
}
351371

352372
/**
353-
* Status.
373+
* The status of the RAM user provisioning. Valid values:
374+
* <p>
375+
*
376+
* * Enabled
377+
* * Disabled
354378
*/
355379
public Builder status(String status) {
356380
this.status = status;
357381
return this;
358382
}
359383

360384
/**
361-
* TargetId.
385+
* The ID of the object for which you create the RAM user provisioning. The value is fixed as the ID of the member in the resource directory.
362386
*/
363387
public Builder targetId(String targetId) {
364388
this.targetId = targetId;
365389
return this;
366390
}
367391

368392
/**
369-
* TargetName.
393+
* The name of the object for which you create the RAM user provisioning. The value is fixed as the name of the member in the resource directory.
370394
*/
371395
public Builder targetName(String targetName) {
372396
this.targetName = targetName;
373397
return this;
374398
}
375399

376400
/**
377-
* TargetPath.
401+
* The path of the resource directory in which you create the RAM user provisioning for the member.
378402
*/
379403
public Builder targetPath(String targetPath) {
380404
this.targetPath = targetPath;
381405
return this;
382406
}
383407

384408
/**
385-
* TargetType.
409+
* The object for which you create the RAM user provisioning. The value is fixed as `RD-Account`.
386410
*/
387411
public Builder targetType(String targetType) {
388412
this.targetType = targetType;
389413
return this;
390414
}
391415

392416
/**
393-
* UpdateTime.
417+
* The modification time.
394418
*/
395419
public Builder updateTime(String updateTime) {
396420
this.updateTime = updateTime;
397421
return this;
398422
}
399423

400424
/**
401-
* UserProvisioningId.
425+
* The ID of the RAM user provisioning.
402426
*/
403427
public Builder userProvisioningId(String userProvisioningId) {
404428
this.userProvisioningId = userProvisioningId;

cloudsso-20210515/src/main/java/com/aliyun/sdk/service/cloudsso20210515/models/DeleteUserProvisioningEventRequest.java

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

8484
/**
85-
* DirectoryId.
85+
* The ID of the resource directory.
8686
*/
8787
public Builder directoryId(String directoryId) {
8888
this.putQueryParameter("DirectoryId", directoryId);
@@ -91,7 +91,7 @@ public Builder directoryId(String directoryId) {
9191
}
9292

9393
/**
94-
* EventId.
94+
* The ID of the RAM user provisioning event.
9595
*/
9696
public Builder eventId(String eventId) {
9797
this.putQueryParameter("EventId", eventId);
@@ -100,7 +100,7 @@ public Builder eventId(String eventId) {
100100
}
101101

102102
/**
103-
* UserProvisioningId.
103+
* The ID of the RAM user provisioning.
104104
*/
105105
public Builder userProvisioningId(String userProvisioningId) {
106106
this.putQueryParameter("UserProvisioningId", userProvisioningId);

cloudsso-20210515/src/main/java/com/aliyun/sdk/service/cloudsso20210515/models/DeleteUserProvisioningEventResponseBody.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ public static final class Builder {
3838
private String requestId;
3939

4040
/**
41-
* RequestId.
41+
* The request ID.
4242
*/
4343
public Builder requestId(String requestId) {
4444
this.requestId = requestId;

cloudsso-20210515/src/main/java/com/aliyun/sdk/service/cloudsso20210515/models/DeleteUserProvisioningRequest.java

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,13 @@ private Builder(DeleteUserProvisioningRequest request) {
8282
}
8383

8484
/**
85-
* DeletionStrategy.
85+
* The deletion policy. The policy is used to manage synchronized users when you delete the RAM user provisioning. Valid values:
86+
* <p>
87+
*
88+
* * Delete: When you delete the RAM user provisioning, the system deletes the synchronized users.
89+
* * Keep: When you delete the RAM user provisioning, the system retains the synchronized users.
90+
*
91+
* > If you do not specify this parameter, the deletion policy that is configured when you create the RAM user provisioning is used.
8692
*/
8793
public Builder deletionStrategy(String deletionStrategy) {
8894
this.putQueryParameter("DeletionStrategy", deletionStrategy);
@@ -91,7 +97,7 @@ public Builder deletionStrategy(String deletionStrategy) {
9197
}
9298

9399
/**
94-
* DirectoryId.
100+
* The ID of the resource directory.
95101
*/
96102
public Builder directoryId(String directoryId) {
97103
this.putQueryParameter("DirectoryId", directoryId);
@@ -100,7 +106,7 @@ public Builder directoryId(String directoryId) {
100106
}
101107

102108
/**
103-
* UserProvisioningId.
109+
* The ID of the RAM user provisioning.
104110
*/
105111
public Builder userProvisioningId(String userProvisioningId) {
106112
this.putQueryParameter("UserProvisioningId", userProvisioningId);

0 commit comments

Comments
 (0)