@alicloud/cloudsso20210515 1.5.3 → 1.6.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/client.d.ts +58 -16
- package/dist/client.js +127 -24
- package/dist/client.js.map +1 -1
- package/dist/models/CreateAccessAssignmentRequest.d.ts +5 -0
- package/dist/models/CreateAccessAssignmentRequest.js +2 -0
- package/dist/models/CreateAccessAssignmentRequest.js.map +1 -1
- package/dist/models/CreateAccessAssignmentResponseBody.d.ts +5 -0
- package/dist/models/CreateAccessAssignmentResponseBody.js +2 -0
- package/dist/models/CreateAccessAssignmentResponseBody.js.map +1 -1
- package/dist/models/CreateUserRequest.d.ts +11 -12
- package/dist/models/CreateUserRequest.js.map +1 -1
- package/dist/models/CreateUserResponseBody.d.ts +9 -11
- package/dist/models/CreateUserResponseBody.js.map +1 -1
- package/dist/models/DeleteAccessAssignmentRequest.d.ts +5 -0
- package/dist/models/DeleteAccessAssignmentRequest.js +2 -0
- package/dist/models/DeleteAccessAssignmentRequest.js.map +1 -1
- package/dist/models/DeleteAccessAssignmentResponseBody.d.ts +5 -0
- package/dist/models/DeleteAccessAssignmentResponseBody.js +2 -0
- package/dist/models/DeleteAccessAssignmentResponseBody.js.map +1 -1
- package/dist/models/DeprovisionAccessConfigurationRequest.d.ts +5 -0
- package/dist/models/DeprovisionAccessConfigurationRequest.js +2 -0
- package/dist/models/DeprovisionAccessConfigurationRequest.js.map +1 -1
- package/dist/models/DeprovisionAccessConfigurationResponseBody.d.ts +5 -0
- package/dist/models/DeprovisionAccessConfigurationResponseBody.js +2 -0
- package/dist/models/DeprovisionAccessConfigurationResponseBody.js.map +1 -1
- package/dist/models/GetAccessConfigurationRequest.d.ts +2 -2
- package/dist/models/GetAccessConfigurationResponseBody.d.ts +6 -6
- package/dist/models/GetAttributePassingSettingRequest.d.ts +21 -0
- package/dist/models/GetAttributePassingSettingRequest.js +58 -0
- package/dist/models/GetAttributePassingSettingRequest.js.map +1 -0
- package/dist/models/GetAttributePassingSettingResponse.d.ts +19 -0
- package/dist/models/GetAttributePassingSettingResponse.js +69 -0
- package/dist/models/GetAttributePassingSettingResponse.js.map +1 -0
- package/dist/models/GetAttributePassingSettingResponseBody.d.ts +50 -0
- package/dist/models/GetAttributePassingSettingResponseBody.js +82 -0
- package/dist/models/GetAttributePassingSettingResponseBody.js.map +1 -0
- package/dist/models/GetTaskResponseBody.d.ts +5 -0
- package/dist/models/GetTaskResponseBody.js +2 -0
- package/dist/models/GetTaskResponseBody.js.map +1 -1
- package/dist/models/GetUserRequest.d.ts +1 -1
- package/dist/models/GetUserResponseBody.d.ts +13 -15
- package/dist/models/GetUserResponseBody.js.map +1 -1
- package/dist/models/ListAccessAssignmentsRequest.d.ts +5 -0
- package/dist/models/ListAccessAssignmentsRequest.js +2 -0
- package/dist/models/ListAccessAssignmentsRequest.js.map +1 -1
- package/dist/models/ListAccessAssignmentsResponseBody.d.ts +5 -0
- package/dist/models/ListAccessAssignmentsResponseBody.js +2 -0
- package/dist/models/ListAccessAssignmentsResponseBody.js.map +1 -1
- package/dist/models/ListAccessConfigurationProvisioningsRequest.d.ts +5 -0
- package/dist/models/ListAccessConfigurationProvisioningsRequest.js +2 -0
- package/dist/models/ListAccessConfigurationProvisioningsRequest.js.map +1 -1
- package/dist/models/ListAccessConfigurationProvisioningsResponseBody.d.ts +5 -0
- package/dist/models/ListAccessConfigurationProvisioningsResponseBody.js +2 -0
- package/dist/models/ListAccessConfigurationProvisioningsResponseBody.js.map +1 -1
- package/dist/models/ListAccessConfigurationsRequest.d.ts +9 -11
- package/dist/models/ListAccessConfigurationsRequest.js.map +1 -1
- package/dist/models/ListAccessConfigurationsResponseBody.d.ts +11 -12
- package/dist/models/ListAccessConfigurationsResponseBody.js.map +1 -1
- package/dist/models/ListMfadevicesForUserResponseBody.d.ts +13 -3
- package/dist/models/ListMfadevicesForUserResponseBody.js.map +1 -1
- package/dist/models/ListTasksResponseBody.d.ts +5 -0
- package/dist/models/ListTasksResponseBody.js +2 -0
- package/dist/models/ListTasksResponseBody.js.map +1 -1
- package/dist/models/ListUsersRequest.d.ts +11 -15
- package/dist/models/ListUsersRequest.js.map +1 -1
- package/dist/models/ListUsersResponseBody.d.ts +16 -19
- package/dist/models/ListUsersResponseBody.js.map +1 -1
- package/dist/models/ProvisionAccessConfigurationRequest.d.ts +5 -0
- package/dist/models/ProvisionAccessConfigurationRequest.js +2 -0
- package/dist/models/ProvisionAccessConfigurationRequest.js.map +1 -1
- package/dist/models/ProvisionAccessConfigurationResponseBody.d.ts +5 -0
- package/dist/models/ProvisionAccessConfigurationResponseBody.js +2 -0
- package/dist/models/ProvisionAccessConfigurationResponseBody.js.map +1 -1
- package/dist/models/UpdateAttributePassingSettingRequest.d.ts +35 -0
- package/dist/models/UpdateAttributePassingSettingRequest.js +60 -0
- package/dist/models/UpdateAttributePassingSettingRequest.js.map +1 -0
- package/dist/models/UpdateAttributePassingSettingResponse.d.ts +19 -0
- package/dist/models/UpdateAttributePassingSettingResponse.js +69 -0
- package/dist/models/UpdateAttributePassingSettingResponse.js.map +1 -0
- package/dist/models/UpdateAttributePassingSettingResponseBody.d.ts +21 -0
- package/dist/models/UpdateAttributePassingSettingResponseBody.js +58 -0
- package/dist/models/UpdateAttributePassingSettingResponseBody.js.map +1 -0
- package/dist/models/model.d.ts +7 -0
- package/dist/models/model.js +21 -7
- package/dist/models/model.js.map +1 -1
- package/package.json +1 -1
- package/src/client.ts +140 -24
- package/src/models/CreateAccessAssignmentRequest.ts +7 -0
- package/src/models/CreateAccessAssignmentResponseBody.ts +7 -0
- package/src/models/CreateUserRequest.ts +11 -12
- package/src/models/CreateUserResponseBody.ts +9 -11
- package/src/models/DeleteAccessAssignmentRequest.ts +7 -0
- package/src/models/DeleteAccessAssignmentResponseBody.ts +7 -0
- package/src/models/DeprovisionAccessConfigurationRequest.ts +7 -0
- package/src/models/DeprovisionAccessConfigurationResponseBody.ts +7 -0
- package/src/models/GetAccessConfigurationRequest.ts +2 -2
- package/src/models/GetAccessConfigurationResponseBody.ts +6 -6
- package/src/models/GetAttributePassingSettingRequest.ts +34 -0
- package/src/models/GetAttributePassingSettingResponse.ts +40 -0
- package/src/models/GetAttributePassingSettingResponseBody.ts +78 -0
- package/src/models/GetTaskResponseBody.ts +7 -0
- package/src/models/GetUserRequest.ts +1 -1
- package/src/models/GetUserResponseBody.ts +13 -15
- package/src/models/ListAccessAssignmentsRequest.ts +7 -0
- package/src/models/ListAccessAssignmentsResponseBody.ts +7 -0
- package/src/models/ListAccessConfigurationProvisioningsRequest.ts +7 -0
- package/src/models/ListAccessConfigurationProvisioningsResponseBody.ts +7 -0
- package/src/models/ListAccessConfigurationsRequest.ts +9 -11
- package/src/models/ListAccessConfigurationsResponseBody.ts +11 -12
- package/src/models/ListMfadevicesForUserResponseBody.ts +13 -3
- package/src/models/ListTasksResponseBody.ts +7 -0
- package/src/models/ListUsersRequest.ts +11 -15
- package/src/models/ListUsersResponseBody.ts +16 -19
- package/src/models/ProvisionAccessConfigurationRequest.ts +7 -0
- package/src/models/ProvisionAccessConfigurationResponseBody.ts +7 -0
- package/src/models/UpdateAttributePassingSettingRequest.ts +50 -0
- package/src/models/UpdateAttributePassingSettingResponse.ts +40 -0
- package/src/models/UpdateAttributePassingSettingResponseBody.ts +34 -0
- package/src/models/model.ts +7 -0
package/dist/client.d.ts
CHANGED
|
@@ -224,7 +224,7 @@ export default class Client extends OpenApi {
|
|
|
224
224
|
*/
|
|
225
225
|
createSCIMServerCredential(request: $_model.CreateSCIMServerCredentialRequest): Promise<$_model.CreateSCIMServerCredentialResponse>;
|
|
226
226
|
/**
|
|
227
|
-
* Creates a user.
|
|
227
|
+
* Creates a user by calling CreateUser.
|
|
228
228
|
*
|
|
229
229
|
* @param request - CreateUserRequest
|
|
230
230
|
* @param runtime - runtime options for this request RuntimeOptions
|
|
@@ -232,7 +232,7 @@ export default class Client extends OpenApi {
|
|
|
232
232
|
*/
|
|
233
233
|
createUserWithOptions(request: $_model.CreateUserRequest, runtime: $dara.RuntimeOptions): Promise<$_model.CreateUserResponse>;
|
|
234
234
|
/**
|
|
235
|
-
* Creates a user.
|
|
235
|
+
* Creates a user by calling CreateUser.
|
|
236
236
|
*
|
|
237
237
|
* @param request - CreateUserRequest
|
|
238
238
|
* @returns CreateUserResponse
|
|
@@ -590,10 +590,10 @@ export default class Client extends OpenApi {
|
|
|
590
590
|
*/
|
|
591
591
|
enableService(): Promise<$_model.EnableServiceResponse>;
|
|
592
592
|
/**
|
|
593
|
-
* Queries the
|
|
593
|
+
* Queries the information about an access configuration.
|
|
594
594
|
*
|
|
595
595
|
* @remarks
|
|
596
|
-
* This topic provides an example
|
|
596
|
+
* This topic provides an example on how to query the information about the access configuration whose ID is `ac-00ccule7tadaijxc****`.
|
|
597
597
|
*
|
|
598
598
|
* @param request - GetAccessConfigurationRequest
|
|
599
599
|
* @param runtime - runtime options for this request RuntimeOptions
|
|
@@ -601,15 +601,36 @@ export default class Client extends OpenApi {
|
|
|
601
601
|
*/
|
|
602
602
|
getAccessConfigurationWithOptions(request: $_model.GetAccessConfigurationRequest, runtime: $dara.RuntimeOptions): Promise<$_model.GetAccessConfigurationResponse>;
|
|
603
603
|
/**
|
|
604
|
-
* Queries the
|
|
604
|
+
* Queries the information about an access configuration.
|
|
605
605
|
*
|
|
606
606
|
* @remarks
|
|
607
|
-
* This topic provides an example
|
|
607
|
+
* This topic provides an example on how to query the information about the access configuration whose ID is `ac-00ccule7tadaijxc****`.
|
|
608
608
|
*
|
|
609
609
|
* @param request - GetAccessConfigurationRequest
|
|
610
610
|
* @returns GetAccessConfigurationResponse
|
|
611
611
|
*/
|
|
612
612
|
getAccessConfiguration(request: $_model.GetAccessConfigurationRequest): Promise<$_model.GetAccessConfigurationResponse>;
|
|
613
|
+
/**
|
|
614
|
+
* Queries the attribute passing settings of a specified directory to retrieve the current configuration of the SourceIdentity pass-through mode.
|
|
615
|
+
*
|
|
616
|
+
* @remarks
|
|
617
|
+
* You must have the cloudsso:GetAttributePassingSetting permission to call this operation. If the directory is not explicitly configured, SourceIdentityPassing returns Disabled by default.
|
|
618
|
+
*
|
|
619
|
+
* @param request - GetAttributePassingSettingRequest
|
|
620
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
621
|
+
* @returns GetAttributePassingSettingResponse
|
|
622
|
+
*/
|
|
623
|
+
getAttributePassingSettingWithOptions(request: $_model.GetAttributePassingSettingRequest, runtime: $dara.RuntimeOptions): Promise<$_model.GetAttributePassingSettingResponse>;
|
|
624
|
+
/**
|
|
625
|
+
* Queries the attribute passing settings of a specified directory to retrieve the current configuration of the SourceIdentity pass-through mode.
|
|
626
|
+
*
|
|
627
|
+
* @remarks
|
|
628
|
+
* You must have the cloudsso:GetAttributePassingSetting permission to call this operation. If the directory is not explicitly configured, SourceIdentityPassing returns Disabled by default.
|
|
629
|
+
*
|
|
630
|
+
* @param request - GetAttributePassingSettingRequest
|
|
631
|
+
* @returns GetAttributePassingSettingResponse
|
|
632
|
+
*/
|
|
633
|
+
getAttributePassingSetting(request: $_model.GetAttributePassingSettingRequest): Promise<$_model.GetAttributePassingSettingResponse>;
|
|
613
634
|
/**
|
|
614
635
|
* Queries information about a directory.
|
|
615
636
|
*
|
|
@@ -892,7 +913,7 @@ export default class Client extends OpenApi {
|
|
|
892
913
|
*/
|
|
893
914
|
getTaskStatus(request: $_model.GetTaskStatusRequest): Promise<$_model.GetTaskStatusResponse>;
|
|
894
915
|
/**
|
|
895
|
-
* Queries the information about a user.
|
|
916
|
+
* Queries the information about a specified user.
|
|
896
917
|
*
|
|
897
918
|
* @param request - GetUserRequest
|
|
898
919
|
* @param runtime - runtime options for this request RuntimeOptions
|
|
@@ -900,7 +921,7 @@ export default class Client extends OpenApi {
|
|
|
900
921
|
*/
|
|
901
922
|
getUserWithOptions(request: $_model.GetUserRequest, runtime: $dara.RuntimeOptions): Promise<$_model.GetUserResponse>;
|
|
902
923
|
/**
|
|
903
|
-
* Queries the information about a user.
|
|
924
|
+
* Queries the information about a specified user.
|
|
904
925
|
*
|
|
905
926
|
* @param request - GetUserRequest
|
|
906
927
|
* @returns GetUserResponse
|
|
@@ -1060,10 +1081,10 @@ export default class Client extends OpenApi {
|
|
|
1060
1081
|
*/
|
|
1061
1082
|
listAccessConfigurationProvisionings(request: $_model.ListAccessConfigurationProvisioningsRequest): Promise<$_model.ListAccessConfigurationProvisioningsResponse>;
|
|
1062
1083
|
/**
|
|
1063
|
-
* Queries
|
|
1084
|
+
* Queries the list of access configurations.
|
|
1064
1085
|
*
|
|
1065
1086
|
* @remarks
|
|
1066
|
-
* This topic provides an example
|
|
1087
|
+
* This topic provides an example on how to query the access configurations in the directory `d-00fc2p61****`. The response shows that there are two access configurations: `VPC-Admin` and `ECS-Admin`.
|
|
1067
1088
|
*
|
|
1068
1089
|
* @param request - ListAccessConfigurationsRequest
|
|
1069
1090
|
* @param runtime - runtime options for this request RuntimeOptions
|
|
@@ -1071,10 +1092,10 @@ export default class Client extends OpenApi {
|
|
|
1071
1092
|
*/
|
|
1072
1093
|
listAccessConfigurationsWithOptions(request: $_model.ListAccessConfigurationsRequest, runtime: $dara.RuntimeOptions): Promise<$_model.ListAccessConfigurationsResponse>;
|
|
1073
1094
|
/**
|
|
1074
|
-
* Queries
|
|
1095
|
+
* Queries the list of access configurations.
|
|
1075
1096
|
*
|
|
1076
1097
|
* @remarks
|
|
1077
|
-
* This topic provides an example
|
|
1098
|
+
* This topic provides an example on how to query the access configurations in the directory `d-00fc2p61****`. The response shows that there are two access configurations: `VPC-Admin` and `ECS-Admin`.
|
|
1078
1099
|
*
|
|
1079
1100
|
* @param request - ListAccessConfigurationsRequest
|
|
1080
1101
|
* @returns ListAccessConfigurationsResponse
|
|
@@ -1183,10 +1204,10 @@ export default class Client extends OpenApi {
|
|
|
1183
1204
|
*/
|
|
1184
1205
|
listJoinedGroupsForUser(request: $_model.ListJoinedGroupsForUserRequest): Promise<$_model.ListJoinedGroupsForUserResponse>;
|
|
1185
1206
|
/**
|
|
1186
|
-
* Queries the list of
|
|
1207
|
+
* Queries the MFA device list of a user. Each user can have a maximum of two MFA devices.
|
|
1187
1208
|
*
|
|
1188
1209
|
* @remarks
|
|
1189
|
-
* This topic provides an example on how to query the MFA device list
|
|
1210
|
+
* This topic provides an example on how to query the MFA device list of the user `u-00q8wbq42wiltcrk****`. The response shows that the user has one MFA device named `Alice-MFA1`.
|
|
1190
1211
|
*
|
|
1191
1212
|
* @param request - ListMFADevicesForUserRequest
|
|
1192
1213
|
* @param runtime - runtime options for this request RuntimeOptions
|
|
@@ -1194,10 +1215,10 @@ export default class Client extends OpenApi {
|
|
|
1194
1215
|
*/
|
|
1195
1216
|
listMFADevicesForUserWithOptions(request: $_model.ListMFADevicesForUserRequest, runtime: $dara.RuntimeOptions): Promise<$_model.ListMFADevicesForUserResponse>;
|
|
1196
1217
|
/**
|
|
1197
|
-
* Queries the list of
|
|
1218
|
+
* Queries the MFA device list of a user. Each user can have a maximum of two MFA devices.
|
|
1198
1219
|
*
|
|
1199
1220
|
* @remarks
|
|
1200
|
-
* This topic provides an example on how to query the MFA device list
|
|
1221
|
+
* This topic provides an example on how to query the MFA device list of the user `u-00q8wbq42wiltcrk****`. The response shows that the user has one MFA device named `Alice-MFA1`.
|
|
1201
1222
|
*
|
|
1202
1223
|
* @param request - ListMFADevicesForUserRequest
|
|
1203
1224
|
* @returns ListMFADevicesForUserResponse
|
|
@@ -1583,6 +1604,27 @@ export default class Client extends OpenApi {
|
|
|
1583
1604
|
* @returns UpdateAccessConfigurationResponse
|
|
1584
1605
|
*/
|
|
1585
1606
|
updateAccessConfiguration(request: $_model.UpdateAccessConfigurationRequest): Promise<$_model.UpdateAccessConfigurationResponse>;
|
|
1607
|
+
/**
|
|
1608
|
+
* Updates the attribute passing settings for a specified directory, allowing you to set the SourceIdentity pass-through mode to IdP, UserName, or Disabled.
|
|
1609
|
+
*
|
|
1610
|
+
* @remarks
|
|
1611
|
+
* You must have the cloudsso:UpdateAttributePassingSetting permission to call this operation. If the SourceIdentityPassing request parameter is not specified, the existing value is retained. If an invalid enum value is specified, the InvalidParameter.SourceIdentityPassing error is returned.
|
|
1612
|
+
*
|
|
1613
|
+
* @param request - UpdateAttributePassingSettingRequest
|
|
1614
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
1615
|
+
* @returns UpdateAttributePassingSettingResponse
|
|
1616
|
+
*/
|
|
1617
|
+
updateAttributePassingSettingWithOptions(request: $_model.UpdateAttributePassingSettingRequest, runtime: $dara.RuntimeOptions): Promise<$_model.UpdateAttributePassingSettingResponse>;
|
|
1618
|
+
/**
|
|
1619
|
+
* Updates the attribute passing settings for a specified directory, allowing you to set the SourceIdentity pass-through mode to IdP, UserName, or Disabled.
|
|
1620
|
+
*
|
|
1621
|
+
* @remarks
|
|
1622
|
+
* You must have the cloudsso:UpdateAttributePassingSetting permission to call this operation. If the SourceIdentityPassing request parameter is not specified, the existing value is retained. If an invalid enum value is specified, the InvalidParameter.SourceIdentityPassing error is returned.
|
|
1623
|
+
*
|
|
1624
|
+
* @param request - UpdateAttributePassingSettingRequest
|
|
1625
|
+
* @returns UpdateAttributePassingSettingResponse
|
|
1626
|
+
*/
|
|
1627
|
+
updateAttributePassingSetting(request: $_model.UpdateAttributePassingSettingRequest): Promise<$_model.UpdateAttributePassingSettingResponse>;
|
|
1586
1628
|
/**
|
|
1587
1629
|
* Changes the name of a directory.
|
|
1588
1630
|
*
|
package/dist/client.js
CHANGED
|
@@ -49,14 +49,6 @@ class Client extends openapi_core_1.default {
|
|
|
49
49
|
constructor(config) {
|
|
50
50
|
super(config);
|
|
51
51
|
this._endpointRule = "regional";
|
|
52
|
-
this._endpointMap = {
|
|
53
|
-
'us-west-1': "cloudsso.us-west-1.aliyuncs.com",
|
|
54
|
-
'eu-central-1': "cloudsso.eu-central-1.aliyuncs.com",
|
|
55
|
-
'cn-shanghai': "cloudsso.cn-shanghai.aliyuncs.com",
|
|
56
|
-
'cn-hongkong': "cloudsso.cn-hongkong.aliyuncs.com",
|
|
57
|
-
'ap-southeast-1': "cloudsso.ap-southeast-1.aliyuncs.com",
|
|
58
|
-
'ap-northeast-2': "cloudsso.ap-northeast-2.aliyuncs.com",
|
|
59
|
-
};
|
|
60
52
|
this.checkConfig(config);
|
|
61
53
|
this._endpoint = this.getEndpoint("cloudsso", this._regionId, this._endpointRule, this._network, this._suffix, this._endpointMap, this._endpoint);
|
|
62
54
|
}
|
|
@@ -297,6 +289,9 @@ class Client extends openapi_core_1.default {
|
|
|
297
289
|
if (!$dara.isNull(request.directoryId)) {
|
|
298
290
|
query["DirectoryId"] = request.directoryId;
|
|
299
291
|
}
|
|
292
|
+
if (!$dara.isNull(request.originTargetId)) {
|
|
293
|
+
query["OriginTargetId"] = request.originTargetId;
|
|
294
|
+
}
|
|
300
295
|
if (!$dara.isNull(request.principalId)) {
|
|
301
296
|
query["PrincipalId"] = request.principalId;
|
|
302
297
|
}
|
|
@@ -558,7 +553,7 @@ class Client extends openapi_core_1.default {
|
|
|
558
553
|
return await this.createSCIMServerCredentialWithOptions(request, runtime);
|
|
559
554
|
}
|
|
560
555
|
/**
|
|
561
|
-
* Creates a user.
|
|
556
|
+
* Creates a user by calling CreateUser.
|
|
562
557
|
*
|
|
563
558
|
* @param request - CreateUserRequest
|
|
564
559
|
* @param runtime - runtime options for this request RuntimeOptions
|
|
@@ -611,7 +606,7 @@ class Client extends openapi_core_1.default {
|
|
|
611
606
|
return $dara.cast(await this.callApi(params, req, runtime), new $_model.CreateUserResponse({}));
|
|
612
607
|
}
|
|
613
608
|
/**
|
|
614
|
-
* Creates a user.
|
|
609
|
+
* Creates a user by calling CreateUser.
|
|
615
610
|
*
|
|
616
611
|
* @param request - CreateUserRequest
|
|
617
612
|
* @returns CreateUserResponse
|
|
@@ -709,6 +704,9 @@ class Client extends openapi_core_1.default {
|
|
|
709
704
|
if (!$dara.isNull(request.directoryId)) {
|
|
710
705
|
query["DirectoryId"] = request.directoryId;
|
|
711
706
|
}
|
|
707
|
+
if (!$dara.isNull(request.originTargetId)) {
|
|
708
|
+
query["OriginTargetId"] = request.originTargetId;
|
|
709
|
+
}
|
|
712
710
|
if (!$dara.isNull(request.principalId)) {
|
|
713
711
|
query["PrincipalId"] = request.principalId;
|
|
714
712
|
}
|
|
@@ -1207,6 +1205,9 @@ class Client extends openapi_core_1.default {
|
|
|
1207
1205
|
if (!$dara.isNull(request.directoryId)) {
|
|
1208
1206
|
query["DirectoryId"] = request.directoryId;
|
|
1209
1207
|
}
|
|
1208
|
+
if (!$dara.isNull(request.originTargetId)) {
|
|
1209
|
+
query["OriginTargetId"] = request.originTargetId;
|
|
1210
|
+
}
|
|
1210
1211
|
if (!$dara.isNull(request.targetId)) {
|
|
1211
1212
|
query["TargetId"] = request.targetId;
|
|
1212
1213
|
}
|
|
@@ -1402,10 +1403,10 @@ class Client extends openapi_core_1.default {
|
|
|
1402
1403
|
return await this.enableServiceWithOptions(runtime);
|
|
1403
1404
|
}
|
|
1404
1405
|
/**
|
|
1405
|
-
* Queries the
|
|
1406
|
+
* Queries the information about an access configuration.
|
|
1406
1407
|
*
|
|
1407
1408
|
* @remarks
|
|
1408
|
-
* This topic provides an example
|
|
1409
|
+
* This topic provides an example on how to query the information about the access configuration whose ID is `ac-00ccule7tadaijxc****`.
|
|
1409
1410
|
*
|
|
1410
1411
|
* @param request - GetAccessConfigurationRequest
|
|
1411
1412
|
* @param runtime - runtime options for this request RuntimeOptions
|
|
@@ -1437,10 +1438,10 @@ class Client extends openapi_core_1.default {
|
|
|
1437
1438
|
return $dara.cast(await this.callApi(params, req, runtime), new $_model.GetAccessConfigurationResponse({}));
|
|
1438
1439
|
}
|
|
1439
1440
|
/**
|
|
1440
|
-
* Queries the
|
|
1441
|
+
* Queries the information about an access configuration.
|
|
1441
1442
|
*
|
|
1442
1443
|
* @remarks
|
|
1443
|
-
* This topic provides an example
|
|
1444
|
+
* This topic provides an example on how to query the information about the access configuration whose ID is `ac-00ccule7tadaijxc****`.
|
|
1444
1445
|
*
|
|
1445
1446
|
* @param request - GetAccessConfigurationRequest
|
|
1446
1447
|
* @returns GetAccessConfigurationResponse
|
|
@@ -1449,6 +1450,51 @@ class Client extends openapi_core_1.default {
|
|
|
1449
1450
|
let runtime = new $dara.RuntimeOptions({});
|
|
1450
1451
|
return await this.getAccessConfigurationWithOptions(request, runtime);
|
|
1451
1452
|
}
|
|
1453
|
+
/**
|
|
1454
|
+
* Queries the attribute passing settings of a specified directory to retrieve the current configuration of the SourceIdentity pass-through mode.
|
|
1455
|
+
*
|
|
1456
|
+
* @remarks
|
|
1457
|
+
* You must have the cloudsso:GetAttributePassingSetting permission to call this operation. If the directory is not explicitly configured, SourceIdentityPassing returns Disabled by default.
|
|
1458
|
+
*
|
|
1459
|
+
* @param request - GetAttributePassingSettingRequest
|
|
1460
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
1461
|
+
* @returns GetAttributePassingSettingResponse
|
|
1462
|
+
*/
|
|
1463
|
+
async getAttributePassingSettingWithOptions(request, runtime) {
|
|
1464
|
+
request.validate();
|
|
1465
|
+
let query = {};
|
|
1466
|
+
if (!$dara.isNull(request.directoryId)) {
|
|
1467
|
+
query["DirectoryId"] = request.directoryId;
|
|
1468
|
+
}
|
|
1469
|
+
let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({
|
|
1470
|
+
query: openapi_core_2.OpenApiUtil.query(query),
|
|
1471
|
+
});
|
|
1472
|
+
let params = new openapi_core_2.$OpenApiUtil.Params({
|
|
1473
|
+
action: "GetAttributePassingSetting",
|
|
1474
|
+
version: "2021-05-15",
|
|
1475
|
+
protocol: "HTTPS",
|
|
1476
|
+
pathname: "/",
|
|
1477
|
+
method: "POST",
|
|
1478
|
+
authType: "AK",
|
|
1479
|
+
style: "RPC",
|
|
1480
|
+
reqBodyType: "formData",
|
|
1481
|
+
bodyType: "json",
|
|
1482
|
+
});
|
|
1483
|
+
return $dara.cast(await this.callApi(params, req, runtime), new $_model.GetAttributePassingSettingResponse({}));
|
|
1484
|
+
}
|
|
1485
|
+
/**
|
|
1486
|
+
* Queries the attribute passing settings of a specified directory to retrieve the current configuration of the SourceIdentity pass-through mode.
|
|
1487
|
+
*
|
|
1488
|
+
* @remarks
|
|
1489
|
+
* You must have the cloudsso:GetAttributePassingSetting permission to call this operation. If the directory is not explicitly configured, SourceIdentityPassing returns Disabled by default.
|
|
1490
|
+
*
|
|
1491
|
+
* @param request - GetAttributePassingSettingRequest
|
|
1492
|
+
* @returns GetAttributePassingSettingResponse
|
|
1493
|
+
*/
|
|
1494
|
+
async getAttributePassingSetting(request) {
|
|
1495
|
+
let runtime = new $dara.RuntimeOptions({});
|
|
1496
|
+
return await this.getAttributePassingSettingWithOptions(request, runtime);
|
|
1497
|
+
}
|
|
1452
1498
|
/**
|
|
1453
1499
|
* Queries information about a directory.
|
|
1454
1500
|
*
|
|
@@ -2069,7 +2115,7 @@ class Client extends openapi_core_1.default {
|
|
|
2069
2115
|
return await this.getTaskStatusWithOptions(request, runtime);
|
|
2070
2116
|
}
|
|
2071
2117
|
/**
|
|
2072
|
-
* Queries the information about a user.
|
|
2118
|
+
* Queries the information about a specified user.
|
|
2073
2119
|
*
|
|
2074
2120
|
* @param request - GetUserRequest
|
|
2075
2121
|
* @param runtime - runtime options for this request RuntimeOptions
|
|
@@ -2101,7 +2147,7 @@ class Client extends openapi_core_1.default {
|
|
|
2101
2147
|
return $dara.cast(await this.callApi(params, req, runtime), new $_model.GetUserResponse({}));
|
|
2102
2148
|
}
|
|
2103
2149
|
/**
|
|
2104
|
-
* Queries the information about a user.
|
|
2150
|
+
* Queries the information about a specified user.
|
|
2105
2151
|
*
|
|
2106
2152
|
* @param request - GetUserRequest
|
|
2107
2153
|
* @returns GetUserResponse
|
|
@@ -2437,6 +2483,9 @@ class Client extends openapi_core_1.default {
|
|
|
2437
2483
|
if (!$dara.isNull(request.nextToken)) {
|
|
2438
2484
|
query["NextToken"] = request.nextToken;
|
|
2439
2485
|
}
|
|
2486
|
+
if (!$dara.isNull(request.originTargetId)) {
|
|
2487
|
+
query["OriginTargetId"] = request.originTargetId;
|
|
2488
|
+
}
|
|
2440
2489
|
if (!$dara.isNull(request.principalId)) {
|
|
2441
2490
|
query["PrincipalId"] = request.principalId;
|
|
2442
2491
|
}
|
|
@@ -2503,6 +2552,9 @@ class Client extends openapi_core_1.default {
|
|
|
2503
2552
|
if (!$dara.isNull(request.nextToken)) {
|
|
2504
2553
|
query["NextToken"] = request.nextToken;
|
|
2505
2554
|
}
|
|
2555
|
+
if (!$dara.isNull(request.originTargetId)) {
|
|
2556
|
+
query["OriginTargetId"] = request.originTargetId;
|
|
2557
|
+
}
|
|
2506
2558
|
if (!$dara.isNull(request.provisioningStatus)) {
|
|
2507
2559
|
query["ProvisioningStatus"] = request.provisioningStatus;
|
|
2508
2560
|
}
|
|
@@ -2542,10 +2594,10 @@ class Client extends openapi_core_1.default {
|
|
|
2542
2594
|
return await this.listAccessConfigurationProvisioningsWithOptions(request, runtime);
|
|
2543
2595
|
}
|
|
2544
2596
|
/**
|
|
2545
|
-
* Queries
|
|
2597
|
+
* Queries the list of access configurations.
|
|
2546
2598
|
*
|
|
2547
2599
|
* @remarks
|
|
2548
|
-
* This topic provides an example
|
|
2600
|
+
* This topic provides an example on how to query the access configurations in the directory `d-00fc2p61****`. The response shows that there are two access configurations: `VPC-Admin` and `ECS-Admin`.
|
|
2549
2601
|
*
|
|
2550
2602
|
* @param request - ListAccessConfigurationsRequest
|
|
2551
2603
|
* @param runtime - runtime options for this request RuntimeOptions
|
|
@@ -2589,10 +2641,10 @@ class Client extends openapi_core_1.default {
|
|
|
2589
2641
|
return $dara.cast(await this.callApi(params, req, runtime), new $_model.ListAccessConfigurationsResponse({}));
|
|
2590
2642
|
}
|
|
2591
2643
|
/**
|
|
2592
|
-
* Queries
|
|
2644
|
+
* Queries the list of access configurations.
|
|
2593
2645
|
*
|
|
2594
2646
|
* @remarks
|
|
2595
|
-
* This topic provides an example
|
|
2647
|
+
* This topic provides an example on how to query the access configurations in the directory `d-00fc2p61****`. The response shows that there are two access configurations: `VPC-Admin` and `ECS-Admin`.
|
|
2596
2648
|
*
|
|
2597
2649
|
* @param request - ListAccessConfigurationsRequest
|
|
2598
2650
|
* @returns ListAccessConfigurationsResponse
|
|
@@ -2847,10 +2899,10 @@ class Client extends openapi_core_1.default {
|
|
|
2847
2899
|
return await this.listJoinedGroupsForUserWithOptions(request, runtime);
|
|
2848
2900
|
}
|
|
2849
2901
|
/**
|
|
2850
|
-
* Queries the list of
|
|
2902
|
+
* Queries the MFA device list of a user. Each user can have a maximum of two MFA devices.
|
|
2851
2903
|
*
|
|
2852
2904
|
* @remarks
|
|
2853
|
-
* This topic provides an example on how to query the MFA device list
|
|
2905
|
+
* This topic provides an example on how to query the MFA device list of the user `u-00q8wbq42wiltcrk****`. The response shows that the user has one MFA device named `Alice-MFA1`.
|
|
2854
2906
|
*
|
|
2855
2907
|
* @param request - ListMFADevicesForUserRequest
|
|
2856
2908
|
* @param runtime - runtime options for this request RuntimeOptions
|
|
@@ -2882,10 +2934,10 @@ class Client extends openapi_core_1.default {
|
|
|
2882
2934
|
return $dara.cast(await this.callApi(params, req, runtime), new $_model.ListMFADevicesForUserResponse({}));
|
|
2883
2935
|
}
|
|
2884
2936
|
/**
|
|
2885
|
-
* Queries the list of
|
|
2937
|
+
* Queries the MFA device list of a user. Each user can have a maximum of two MFA devices.
|
|
2886
2938
|
*
|
|
2887
2939
|
* @remarks
|
|
2888
|
-
* This topic provides an example on how to query the MFA device list
|
|
2940
|
+
* This topic provides an example on how to query the MFA device list of the user `u-00q8wbq42wiltcrk****`. The response shows that the user has one MFA device named `Alice-MFA1`.
|
|
2889
2941
|
*
|
|
2890
2942
|
* @param request - ListMFADevicesForUserRequest
|
|
2891
2943
|
* @returns ListMFADevicesForUserResponse
|
|
@@ -3249,6 +3301,9 @@ class Client extends openapi_core_1.default {
|
|
|
3249
3301
|
if (!$dara.isNull(request.directoryId)) {
|
|
3250
3302
|
query["DirectoryId"] = request.directoryId;
|
|
3251
3303
|
}
|
|
3304
|
+
if (!$dara.isNull(request.originTargetId)) {
|
|
3305
|
+
query["OriginTargetId"] = request.originTargetId;
|
|
3306
|
+
}
|
|
3252
3307
|
if (!$dara.isNull(request.targetId)) {
|
|
3253
3308
|
query["TargetId"] = request.targetId;
|
|
3254
3309
|
}
|
|
@@ -3895,6 +3950,54 @@ class Client extends openapi_core_1.default {
|
|
|
3895
3950
|
let runtime = new $dara.RuntimeOptions({});
|
|
3896
3951
|
return await this.updateAccessConfigurationWithOptions(request, runtime);
|
|
3897
3952
|
}
|
|
3953
|
+
/**
|
|
3954
|
+
* Updates the attribute passing settings for a specified directory, allowing you to set the SourceIdentity pass-through mode to IdP, UserName, or Disabled.
|
|
3955
|
+
*
|
|
3956
|
+
* @remarks
|
|
3957
|
+
* You must have the cloudsso:UpdateAttributePassingSetting permission to call this operation. If the SourceIdentityPassing request parameter is not specified, the existing value is retained. If an invalid enum value is specified, the InvalidParameter.SourceIdentityPassing error is returned.
|
|
3958
|
+
*
|
|
3959
|
+
* @param request - UpdateAttributePassingSettingRequest
|
|
3960
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
3961
|
+
* @returns UpdateAttributePassingSettingResponse
|
|
3962
|
+
*/
|
|
3963
|
+
async updateAttributePassingSettingWithOptions(request, runtime) {
|
|
3964
|
+
request.validate();
|
|
3965
|
+
let query = {};
|
|
3966
|
+
if (!$dara.isNull(request.directoryId)) {
|
|
3967
|
+
query["DirectoryId"] = request.directoryId;
|
|
3968
|
+
}
|
|
3969
|
+
if (!$dara.isNull(request.sourceIdentityPassing)) {
|
|
3970
|
+
query["SourceIdentityPassing"] = request.sourceIdentityPassing;
|
|
3971
|
+
}
|
|
3972
|
+
let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({
|
|
3973
|
+
query: openapi_core_2.OpenApiUtil.query(query),
|
|
3974
|
+
});
|
|
3975
|
+
let params = new openapi_core_2.$OpenApiUtil.Params({
|
|
3976
|
+
action: "UpdateAttributePassingSetting",
|
|
3977
|
+
version: "2021-05-15",
|
|
3978
|
+
protocol: "HTTPS",
|
|
3979
|
+
pathname: "/",
|
|
3980
|
+
method: "POST",
|
|
3981
|
+
authType: "AK",
|
|
3982
|
+
style: "RPC",
|
|
3983
|
+
reqBodyType: "formData",
|
|
3984
|
+
bodyType: "json",
|
|
3985
|
+
});
|
|
3986
|
+
return $dara.cast(await this.callApi(params, req, runtime), new $_model.UpdateAttributePassingSettingResponse({}));
|
|
3987
|
+
}
|
|
3988
|
+
/**
|
|
3989
|
+
* Updates the attribute passing settings for a specified directory, allowing you to set the SourceIdentity pass-through mode to IdP, UserName, or Disabled.
|
|
3990
|
+
*
|
|
3991
|
+
* @remarks
|
|
3992
|
+
* You must have the cloudsso:UpdateAttributePassingSetting permission to call this operation. If the SourceIdentityPassing request parameter is not specified, the existing value is retained. If an invalid enum value is specified, the InvalidParameter.SourceIdentityPassing error is returned.
|
|
3993
|
+
*
|
|
3994
|
+
* @param request - UpdateAttributePassingSettingRequest
|
|
3995
|
+
* @returns UpdateAttributePassingSettingResponse
|
|
3996
|
+
*/
|
|
3997
|
+
async updateAttributePassingSetting(request) {
|
|
3998
|
+
let runtime = new $dara.RuntimeOptions({});
|
|
3999
|
+
return await this.updateAttributePassingSettingWithOptions(request, runtime);
|
|
4000
|
+
}
|
|
3898
4001
|
/**
|
|
3899
4002
|
* Changes the name of a directory.
|
|
3900
4003
|
*
|