@alicloud/cloudsso20210515 1.3.0 → 1.4.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 +550 -240
- package/dist/client.js +592 -8
- package/dist/client.js.map +1 -1
- package/package.json +3 -3
- package/src/client.ts +961 -265
package/dist/client.js
CHANGED
|
@@ -1,15 +1,28 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
|
|
5
|
+
}) : (function(o, m, k, k2) {
|
|
6
|
+
if (k2 === undefined) k2 = k;
|
|
7
|
+
o[k2] = m[k];
|
|
8
|
+
}));
|
|
9
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
10
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
11
|
+
}) : function(o, v) {
|
|
12
|
+
o["default"] = v;
|
|
13
|
+
});
|
|
2
14
|
var __importStar = (this && this.__importStar) || function (mod) {
|
|
3
15
|
if (mod && mod.__esModule) return mod;
|
|
4
16
|
var result = {};
|
|
5
|
-
if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) result
|
|
6
|
-
result
|
|
17
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
18
|
+
__setModuleDefault(result, mod);
|
|
7
19
|
return result;
|
|
8
20
|
};
|
|
9
21
|
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
10
22
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
11
23
|
};
|
|
12
24
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
25
|
+
exports.UpdateUserProvisioningConfigurationResponseBodyUserProvisioningConfiguration = exports.UpdateUserProvisioningResponseBodyUserProvisioning = exports.UpdateUserResponseBodyUser = exports.UpdateSCIMServerCredentialStatusResponseBodySCIMServerCredential = exports.UpdateGroupResponseBodyGroup = exports.UpdateDirectoryResponseBodyDirectory = exports.UpdateAccessConfigurationResponseBodyAccessConfiguration = exports.SetExternalSAMLIdentityProviderResponseBodySAMLIdentityProviderConfiguration = exports.ProvisionAccessConfigurationResponseBodyTasks = exports.ListUsersResponseBodyUsers = exports.ListUsersResponseBodyUsersExternalId = exports.ListUserProvisioningsResponseBodyUserProvisionings = exports.ListUserProvisioningEventsResponseBodyUserProvisioningEvents = exports.ListTasksResponseBodyTasks = exports.ListSCIMServerCredentialsResponseBodySCIMServerCredentials = exports.ListPermissionPoliciesInAccessConfigurationResponseBodyPermissionPolicies = exports.ListMFADevicesForUserResponseBodyMFADevices = exports.ListJoinedGroupsForUserResponseBodyJoinedGroups = exports.ListGroupsResponseBodyGroups = exports.ListGroupMembersResponseBodyGroupMembers = exports.ListExternalSAMLIdPCertificatesResponseBodySAMLIdPCertificates = exports.ListDirectoriesResponseBodyDirectories = exports.ListAccessConfigurationsResponseBodyAccessConfigurations = exports.ListAccessConfigurationProvisioningsResponseBodyAccessConfigurationProvisionings = exports.ListAccessAssignmentsResponseBodyAccessAssignments = exports.GetUserProvisioningStatisticsResponseBodyUserProvisioningStatistics = exports.GetUserProvisioningRdAccountStatisticsResponseBodyUserProvisioningStatistics = exports.GetUserProvisioningEventResponseBodyUserProvisioningEvent = exports.GetUserProvisioningConfigurationResponseBodyUserProvisioningConfiguration = exports.GetUserProvisioningResponseBodyUserProvisioning = exports.GetUserIdRequestExternalId = exports.GetUserResponseBodyUser = exports.GetUserResponseBodyUserExternalId = exports.GetTaskStatusResponseBodyTaskStatus = exports.GetTaskResponseBodyTask = exports.GetServiceStatusResponseBodyServiceStatus = exports.GetPasswordPolicyResponseBodyPasswordPolicy = exports.GetMFAAuthenticationSettingInfoResponseBodyMFAAuthenticationSettingInfo = exports.GetLoginPreferenceResponseBodyLoginPreference = exports.GetGroupResponseBodyGroup = exports.GetExternalSAMLIdentityProviderResponseBodySAMLIdentityProviderConfiguration = exports.GetDirectoryStatisticsResponseBodyDirectoryStatistics = exports.GetDirectorySAMLServiceProviderInfoResponseBodySAMLServiceProvider = exports.GetDirectoryResponseBodyDirectory = exports.GetAccessConfigurationResponseBodyAccessConfiguration = exports.DeprovisionAccessConfigurationResponseBodyTasks = exports.DeleteAccessAssignmentResponseBodyTask = exports.CreateUserProvisioningResponseBodyUserProvisioning = exports.CreateUserResponseBodyUser = exports.CreateSCIMServerCredentialResponseBodySCIMServerCredential = exports.CreateGroupResponseBodyGroup = exports.CreateDirectoryResponseBodyDirectory = exports.CreateAccessConfigurationResponseBodyAccessConfiguration = exports.CreateAccessAssignmentResponseBodyTask = exports.UpdateUserStatusResponse = exports.UpdateUserStatusResponseBody = exports.UpdateUserStatusRequest = exports.UpdateUserProvisioningConfigurationResponse = exports.UpdateUserProvisioningConfigurationResponseBody = exports.UpdateUserProvisioningConfigurationRequest = exports.UpdateUserProvisioningResponse = exports.UpdateUserProvisioningResponseBody = exports.UpdateUserProvisioningRequest = exports.UpdateUserMFAAuthenticationSettingsResponse = exports.UpdateUserMFAAuthenticationSettingsResponseBody = exports.UpdateUserMFAAuthenticationSettingsRequest = exports.UpdateUserResponse = exports.UpdateUserResponseBody = exports.UpdateUserRequest = exports.UpdateSCIMServerCredentialStatusResponse = exports.UpdateSCIMServerCredentialStatusResponseBody = exports.UpdateSCIMServerCredentialStatusRequest = exports.UpdateMFAAuthenticationSettingsResponse = exports.UpdateMFAAuthenticationSettingsResponseBody = exports.UpdateMFAAuthenticationSettingsRequest = exports.UpdateInlinePolicyForAccessConfigurationResponse = exports.UpdateInlinePolicyForAccessConfigurationResponseBody = exports.UpdateInlinePolicyForAccessConfigurationRequest = exports.UpdateGroupResponse = exports.UpdateGroupResponseBody = exports.UpdateGroupRequest = exports.UpdateDirectoryResponse = exports.UpdateDirectoryResponseBody = exports.UpdateDirectoryRequest = exports.UpdateAccessConfigurationResponse = exports.UpdateAccessConfigurationResponseBody = exports.UpdateAccessConfigurationRequest = exports.SetSCIMSynchronizationStatusResponse = exports.SetSCIMSynchronizationStatusResponseBody = exports.SetSCIMSynchronizationStatusRequest = exports.SetPasswordPolicyResponse = exports.SetPasswordPolicyResponseBody = exports.SetPasswordPolicyRequest = exports.SetMFAAuthenticationStatusResponse = exports.SetMFAAuthenticationStatusResponseBody = exports.SetMFAAuthenticationStatusRequest = exports.SetLoginPreferenceResponse = exports.SetLoginPreferenceResponseBody = exports.SetLoginPreferenceRequest = exports.SetExternalSAMLIdentityProviderResponse = exports.SetExternalSAMLIdentityProviderResponseBody = exports.SetExternalSAMLIdentityProviderRequest = exports.RetryUserProvisioningEventResponse = exports.RetryUserProvisioningEventResponseBody = exports.RetryUserProvisioningEventRequest = exports.ResetUserPasswordResponse = exports.ResetUserPasswordResponseBody = exports.ResetUserPasswordRequest = exports.RemoveUserFromGroupResponse = exports.RemoveUserFromGroupResponseBody = exports.RemoveUserFromGroupRequest = exports.RemovePermissionPolicyFromAccessConfigurationResponse = exports.RemovePermissionPolicyFromAccessConfigurationResponseBody = exports.RemovePermissionPolicyFromAccessConfigurationRequest = exports.RemoveExternalSAMLIdPCertificateResponse = exports.RemoveExternalSAMLIdPCertificateResponseBody = exports.RemoveExternalSAMLIdPCertificateRequest = exports.ProvisionAccessConfigurationResponse = exports.ProvisionAccessConfigurationResponseBody = exports.ProvisionAccessConfigurationRequest = exports.ListUsersResponse = exports.ListUsersResponseBody = exports.ListUsersRequest = exports.ListUserProvisioningsResponse = exports.ListUserProvisioningsResponseBody = exports.ListUserProvisioningsRequest = exports.ListUserProvisioningEventsResponse = exports.ListUserProvisioningEventsResponseBody = exports.ListUserProvisioningEventsRequest = exports.ListTasksResponse = exports.ListTasksResponseBody = exports.ListTasksRequest = exports.ListSCIMServerCredentialsResponse = exports.ListSCIMServerCredentialsResponseBody = exports.ListSCIMServerCredentialsRequest = exports.ListPermissionPoliciesInAccessConfigurationResponse = exports.ListPermissionPoliciesInAccessConfigurationResponseBody = exports.ListPermissionPoliciesInAccessConfigurationRequest = exports.ListMFADevicesForUserResponse = exports.ListMFADevicesForUserResponseBody = exports.ListMFADevicesForUserRequest = exports.ListJoinedGroupsForUserResponse = exports.ListJoinedGroupsForUserResponseBody = exports.ListJoinedGroupsForUserRequest = exports.ListGroupsResponse = exports.ListGroupsResponseBody = exports.ListGroupsRequest = exports.ListGroupMembersResponse = exports.ListGroupMembersResponseBody = exports.ListGroupMembersRequest = exports.ListExternalSAMLIdPCertificatesResponse = exports.ListExternalSAMLIdPCertificatesResponseBody = exports.ListExternalSAMLIdPCertificatesRequest = exports.ListDirectoriesResponse = exports.ListDirectoriesResponseBody = exports.ListAccessConfigurationsResponse = exports.ListAccessConfigurationsResponseBody = exports.ListAccessConfigurationsRequest = exports.ListAccessConfigurationProvisioningsResponse = exports.ListAccessConfigurationProvisioningsResponseBody = exports.ListAccessConfigurationProvisioningsRequest = exports.ListAccessAssignmentsResponse = exports.ListAccessAssignmentsResponseBody = exports.ListAccessAssignmentsRequest = exports.GetUserProvisioningStatisticsResponse = exports.GetUserProvisioningStatisticsResponseBody = exports.GetUserProvisioningStatisticsRequest = exports.GetUserProvisioningRdAccountStatisticsResponse = exports.GetUserProvisioningRdAccountStatisticsResponseBody = exports.GetUserProvisioningRdAccountStatisticsRequest = exports.GetUserProvisioningEventResponse = exports.GetUserProvisioningEventResponseBody = exports.GetUserProvisioningEventRequest = exports.GetUserProvisioningConfigurationResponse = exports.GetUserProvisioningConfigurationResponseBody = exports.GetUserProvisioningConfigurationRequest = exports.GetUserProvisioningResponse = exports.GetUserProvisioningResponseBody = exports.GetUserProvisioningRequest = exports.GetUserMFAAuthenticationSettingsResponse = exports.GetUserMFAAuthenticationSettingsResponseBody = exports.GetUserMFAAuthenticationSettingsRequest = exports.GetUserIdResponse = exports.GetUserIdResponseBody = exports.GetUserIdShrinkRequest = exports.GetUserIdRequest = exports.GetUserResponse = exports.GetUserResponseBody = exports.GetUserRequest = exports.GetTaskStatusResponse = exports.GetTaskStatusResponseBody = exports.GetTaskStatusRequest = exports.GetTaskResponse = exports.GetTaskResponseBody = exports.GetTaskRequest = exports.GetServiceStatusResponse = exports.GetServiceStatusResponseBody = exports.GetSCIMSynchronizationStatusResponse = exports.GetSCIMSynchronizationStatusResponseBody = exports.GetSCIMSynchronizationStatusRequest = exports.GetPasswordPolicyResponse = exports.GetPasswordPolicyResponseBody = exports.GetPasswordPolicyRequest = exports.GetMFAAuthenticationStatusResponse = exports.GetMFAAuthenticationStatusResponseBody = exports.GetMFAAuthenticationStatusRequest = exports.GetMFAAuthenticationSettingsResponse = exports.GetMFAAuthenticationSettingsResponseBody = exports.GetMFAAuthenticationSettingsRequest = exports.GetMFAAuthenticationSettingInfoResponse = exports.GetMFAAuthenticationSettingInfoResponseBody = exports.GetMFAAuthenticationSettingInfoRequest = exports.GetLoginPreferenceResponse = exports.GetLoginPreferenceResponseBody = exports.GetLoginPreferenceRequest = exports.GetGroupResponse = exports.GetGroupResponseBody = exports.GetGroupRequest = exports.GetExternalSAMLIdentityProviderResponse = exports.GetExternalSAMLIdentityProviderResponseBody = exports.GetExternalSAMLIdentityProviderRequest = exports.GetDirectoryStatisticsResponse = exports.GetDirectoryStatisticsResponseBody = exports.GetDirectoryStatisticsRequest = exports.GetDirectorySAMLServiceProviderInfoResponse = exports.GetDirectorySAMLServiceProviderInfoResponseBody = exports.GetDirectorySAMLServiceProviderInfoRequest = exports.GetDirectoryResponse = exports.GetDirectoryResponseBody = exports.GetDirectoryRequest = exports.GetAccessConfigurationResponse = exports.GetAccessConfigurationResponseBody = exports.GetAccessConfigurationRequest = exports.EnableServiceResponse = exports.EnableServiceResponseBody = exports.DisableServiceResponse = exports.DisableServiceResponseBody = exports.DeprovisionAccessConfigurationResponse = exports.DeprovisionAccessConfigurationResponseBody = exports.DeprovisionAccessConfigurationRequest = exports.DeleteUserProvisioningEventResponse = exports.DeleteUserProvisioningEventResponseBody = exports.DeleteUserProvisioningEventRequest = exports.DeleteUserProvisioningResponse = exports.DeleteUserProvisioningResponseBody = exports.DeleteUserProvisioningRequest = exports.DeleteUserResponse = exports.DeleteUserResponseBody = exports.DeleteUserRequest = exports.DeleteSCIMServerCredentialResponse = exports.DeleteSCIMServerCredentialResponseBody = exports.DeleteSCIMServerCredentialRequest = exports.DeleteMFADeviceForUserResponse = exports.DeleteMFADeviceForUserResponseBody = exports.DeleteMFADeviceForUserRequest = exports.DeleteGroupResponse = exports.DeleteGroupResponseBody = exports.DeleteGroupRequest = exports.DeleteDirectoryResponse = exports.DeleteDirectoryResponseBody = exports.DeleteDirectoryRequest = exports.DeleteAccessConfigurationResponse = exports.DeleteAccessConfigurationResponseBody = exports.DeleteAccessConfigurationRequest = exports.DeleteAccessAssignmentResponse = exports.DeleteAccessAssignmentResponseBody = exports.DeleteAccessAssignmentRequest = exports.CreateUserProvisioningResponse = exports.CreateUserProvisioningResponseBody = exports.CreateUserProvisioningRequest = exports.CreateUserResponse = exports.CreateUserResponseBody = exports.CreateUserRequest = exports.CreateSCIMServerCredentialResponse = exports.CreateSCIMServerCredentialResponseBody = exports.CreateSCIMServerCredentialRequest = exports.CreateGroupResponse = exports.CreateGroupResponseBody = exports.CreateGroupRequest = exports.CreateDirectoryResponse = exports.CreateDirectoryResponseBody = exports.CreateDirectoryRequest = exports.CreateAccessConfigurationResponse = exports.CreateAccessConfigurationResponseBody = exports.CreateAccessConfigurationRequest = exports.CreateAccessAssignmentResponse = exports.CreateAccessAssignmentResponseBody = exports.CreateAccessAssignmentRequest = exports.ClearExternalSAMLIdentityProviderResponse = exports.ClearExternalSAMLIdentityProviderResponseBody = exports.ClearExternalSAMLIdentityProviderRequest = exports.AddUserToGroupResponse = exports.AddUserToGroupResponseBody = exports.AddUserToGroupRequest = exports.AddPermissionPolicyToAccessConfigurationResponse = exports.AddPermissionPolicyToAccessConfigurationResponseBody = exports.AddPermissionPolicyToAccessConfigurationRequest = exports.AddExternalSAMLIdPCertificateResponse = exports.AddExternalSAMLIdPCertificateResponseBody = exports.AddExternalSAMLIdPCertificateRequest = void 0;
|
|
13
26
|
// This file is auto-generated, don't edit it
|
|
14
27
|
/**
|
|
15
28
|
*
|
|
@@ -1635,6 +1648,60 @@ class GetGroupResponse extends $tea.Model {
|
|
|
1635
1648
|
}
|
|
1636
1649
|
}
|
|
1637
1650
|
exports.GetGroupResponse = GetGroupResponse;
|
|
1651
|
+
class GetLoginPreferenceRequest extends $tea.Model {
|
|
1652
|
+
constructor(map) {
|
|
1653
|
+
super(map);
|
|
1654
|
+
}
|
|
1655
|
+
static names() {
|
|
1656
|
+
return {
|
|
1657
|
+
directoryId: 'DirectoryId',
|
|
1658
|
+
};
|
|
1659
|
+
}
|
|
1660
|
+
static types() {
|
|
1661
|
+
return {
|
|
1662
|
+
directoryId: 'string',
|
|
1663
|
+
};
|
|
1664
|
+
}
|
|
1665
|
+
}
|
|
1666
|
+
exports.GetLoginPreferenceRequest = GetLoginPreferenceRequest;
|
|
1667
|
+
class GetLoginPreferenceResponseBody extends $tea.Model {
|
|
1668
|
+
constructor(map) {
|
|
1669
|
+
super(map);
|
|
1670
|
+
}
|
|
1671
|
+
static names() {
|
|
1672
|
+
return {
|
|
1673
|
+
loginPreference: 'LoginPreference',
|
|
1674
|
+
requestId: 'RequestId',
|
|
1675
|
+
};
|
|
1676
|
+
}
|
|
1677
|
+
static types() {
|
|
1678
|
+
return {
|
|
1679
|
+
loginPreference: GetLoginPreferenceResponseBodyLoginPreference,
|
|
1680
|
+
requestId: 'string',
|
|
1681
|
+
};
|
|
1682
|
+
}
|
|
1683
|
+
}
|
|
1684
|
+
exports.GetLoginPreferenceResponseBody = GetLoginPreferenceResponseBody;
|
|
1685
|
+
class GetLoginPreferenceResponse extends $tea.Model {
|
|
1686
|
+
constructor(map) {
|
|
1687
|
+
super(map);
|
|
1688
|
+
}
|
|
1689
|
+
static names() {
|
|
1690
|
+
return {
|
|
1691
|
+
headers: 'headers',
|
|
1692
|
+
statusCode: 'statusCode',
|
|
1693
|
+
body: 'body',
|
|
1694
|
+
};
|
|
1695
|
+
}
|
|
1696
|
+
static types() {
|
|
1697
|
+
return {
|
|
1698
|
+
headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
|
|
1699
|
+
statusCode: 'number',
|
|
1700
|
+
body: GetLoginPreferenceResponseBody,
|
|
1701
|
+
};
|
|
1702
|
+
}
|
|
1703
|
+
}
|
|
1704
|
+
exports.GetLoginPreferenceResponse = GetLoginPreferenceResponse;
|
|
1638
1705
|
class GetMFAAuthenticationSettingInfoRequest extends $tea.Model {
|
|
1639
1706
|
constructor(map) {
|
|
1640
1707
|
super(map);
|
|
@@ -1797,6 +1864,60 @@ class GetMFAAuthenticationStatusResponse extends $tea.Model {
|
|
|
1797
1864
|
}
|
|
1798
1865
|
}
|
|
1799
1866
|
exports.GetMFAAuthenticationStatusResponse = GetMFAAuthenticationStatusResponse;
|
|
1867
|
+
class GetPasswordPolicyRequest extends $tea.Model {
|
|
1868
|
+
constructor(map) {
|
|
1869
|
+
super(map);
|
|
1870
|
+
}
|
|
1871
|
+
static names() {
|
|
1872
|
+
return {
|
|
1873
|
+
directoryId: 'DirectoryId',
|
|
1874
|
+
};
|
|
1875
|
+
}
|
|
1876
|
+
static types() {
|
|
1877
|
+
return {
|
|
1878
|
+
directoryId: 'string',
|
|
1879
|
+
};
|
|
1880
|
+
}
|
|
1881
|
+
}
|
|
1882
|
+
exports.GetPasswordPolicyRequest = GetPasswordPolicyRequest;
|
|
1883
|
+
class GetPasswordPolicyResponseBody extends $tea.Model {
|
|
1884
|
+
constructor(map) {
|
|
1885
|
+
super(map);
|
|
1886
|
+
}
|
|
1887
|
+
static names() {
|
|
1888
|
+
return {
|
|
1889
|
+
passwordPolicy: 'PasswordPolicy',
|
|
1890
|
+
requestId: 'RequestId',
|
|
1891
|
+
};
|
|
1892
|
+
}
|
|
1893
|
+
static types() {
|
|
1894
|
+
return {
|
|
1895
|
+
passwordPolicy: GetPasswordPolicyResponseBodyPasswordPolicy,
|
|
1896
|
+
requestId: 'string',
|
|
1897
|
+
};
|
|
1898
|
+
}
|
|
1899
|
+
}
|
|
1900
|
+
exports.GetPasswordPolicyResponseBody = GetPasswordPolicyResponseBody;
|
|
1901
|
+
class GetPasswordPolicyResponse extends $tea.Model {
|
|
1902
|
+
constructor(map) {
|
|
1903
|
+
super(map);
|
|
1904
|
+
}
|
|
1905
|
+
static names() {
|
|
1906
|
+
return {
|
|
1907
|
+
headers: 'headers',
|
|
1908
|
+
statusCode: 'statusCode',
|
|
1909
|
+
body: 'body',
|
|
1910
|
+
};
|
|
1911
|
+
}
|
|
1912
|
+
static types() {
|
|
1913
|
+
return {
|
|
1914
|
+
headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
|
|
1915
|
+
statusCode: 'number',
|
|
1916
|
+
body: GetPasswordPolicyResponseBody,
|
|
1917
|
+
};
|
|
1918
|
+
}
|
|
1919
|
+
}
|
|
1920
|
+
exports.GetPasswordPolicyResponse = GetPasswordPolicyResponse;
|
|
1800
1921
|
class GetSCIMSynchronizationStatusRequest extends $tea.Model {
|
|
1801
1922
|
constructor(map) {
|
|
1802
1923
|
super(map);
|
|
@@ -2057,6 +2178,80 @@ class GetUserResponse extends $tea.Model {
|
|
|
2057
2178
|
}
|
|
2058
2179
|
}
|
|
2059
2180
|
exports.GetUserResponse = GetUserResponse;
|
|
2181
|
+
class GetUserIdRequest extends $tea.Model {
|
|
2182
|
+
constructor(map) {
|
|
2183
|
+
super(map);
|
|
2184
|
+
}
|
|
2185
|
+
static names() {
|
|
2186
|
+
return {
|
|
2187
|
+
directoryId: 'DirectoryId',
|
|
2188
|
+
externalId: 'ExternalId',
|
|
2189
|
+
};
|
|
2190
|
+
}
|
|
2191
|
+
static types() {
|
|
2192
|
+
return {
|
|
2193
|
+
directoryId: 'string',
|
|
2194
|
+
externalId: GetUserIdRequestExternalId,
|
|
2195
|
+
};
|
|
2196
|
+
}
|
|
2197
|
+
}
|
|
2198
|
+
exports.GetUserIdRequest = GetUserIdRequest;
|
|
2199
|
+
class GetUserIdShrinkRequest extends $tea.Model {
|
|
2200
|
+
constructor(map) {
|
|
2201
|
+
super(map);
|
|
2202
|
+
}
|
|
2203
|
+
static names() {
|
|
2204
|
+
return {
|
|
2205
|
+
directoryId: 'DirectoryId',
|
|
2206
|
+
externalIdShrink: 'ExternalId',
|
|
2207
|
+
};
|
|
2208
|
+
}
|
|
2209
|
+
static types() {
|
|
2210
|
+
return {
|
|
2211
|
+
directoryId: 'string',
|
|
2212
|
+
externalIdShrink: 'string',
|
|
2213
|
+
};
|
|
2214
|
+
}
|
|
2215
|
+
}
|
|
2216
|
+
exports.GetUserIdShrinkRequest = GetUserIdShrinkRequest;
|
|
2217
|
+
class GetUserIdResponseBody extends $tea.Model {
|
|
2218
|
+
constructor(map) {
|
|
2219
|
+
super(map);
|
|
2220
|
+
}
|
|
2221
|
+
static names() {
|
|
2222
|
+
return {
|
|
2223
|
+
requestId: 'RequestId',
|
|
2224
|
+
userId: 'UserId',
|
|
2225
|
+
};
|
|
2226
|
+
}
|
|
2227
|
+
static types() {
|
|
2228
|
+
return {
|
|
2229
|
+
requestId: 'string',
|
|
2230
|
+
userId: 'string',
|
|
2231
|
+
};
|
|
2232
|
+
}
|
|
2233
|
+
}
|
|
2234
|
+
exports.GetUserIdResponseBody = GetUserIdResponseBody;
|
|
2235
|
+
class GetUserIdResponse extends $tea.Model {
|
|
2236
|
+
constructor(map) {
|
|
2237
|
+
super(map);
|
|
2238
|
+
}
|
|
2239
|
+
static names() {
|
|
2240
|
+
return {
|
|
2241
|
+
headers: 'headers',
|
|
2242
|
+
statusCode: 'statusCode',
|
|
2243
|
+
body: 'body',
|
|
2244
|
+
};
|
|
2245
|
+
}
|
|
2246
|
+
static types() {
|
|
2247
|
+
return {
|
|
2248
|
+
headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
|
|
2249
|
+
statusCode: 'number',
|
|
2250
|
+
body: GetUserIdResponseBody,
|
|
2251
|
+
};
|
|
2252
|
+
}
|
|
2253
|
+
}
|
|
2254
|
+
exports.GetUserIdResponse = GetUserIdResponse;
|
|
2060
2255
|
class GetUserMFAAuthenticationSettingsRequest extends $tea.Model {
|
|
2061
2256
|
constructor(map) {
|
|
2062
2257
|
super(map);
|
|
@@ -3795,6 +3990,60 @@ class SetExternalSAMLIdentityProviderResponse extends $tea.Model {
|
|
|
3795
3990
|
}
|
|
3796
3991
|
}
|
|
3797
3992
|
exports.SetExternalSAMLIdentityProviderResponse = SetExternalSAMLIdentityProviderResponse;
|
|
3993
|
+
class SetLoginPreferenceRequest extends $tea.Model {
|
|
3994
|
+
constructor(map) {
|
|
3995
|
+
super(map);
|
|
3996
|
+
}
|
|
3997
|
+
static names() {
|
|
3998
|
+
return {
|
|
3999
|
+
directoryId: 'DirectoryId',
|
|
4000
|
+
loginNetworkMasks: 'LoginNetworkMasks',
|
|
4001
|
+
};
|
|
4002
|
+
}
|
|
4003
|
+
static types() {
|
|
4004
|
+
return {
|
|
4005
|
+
directoryId: 'string',
|
|
4006
|
+
loginNetworkMasks: 'string',
|
|
4007
|
+
};
|
|
4008
|
+
}
|
|
4009
|
+
}
|
|
4010
|
+
exports.SetLoginPreferenceRequest = SetLoginPreferenceRequest;
|
|
4011
|
+
class SetLoginPreferenceResponseBody extends $tea.Model {
|
|
4012
|
+
constructor(map) {
|
|
4013
|
+
super(map);
|
|
4014
|
+
}
|
|
4015
|
+
static names() {
|
|
4016
|
+
return {
|
|
4017
|
+
requestId: 'RequestId',
|
|
4018
|
+
};
|
|
4019
|
+
}
|
|
4020
|
+
static types() {
|
|
4021
|
+
return {
|
|
4022
|
+
requestId: 'string',
|
|
4023
|
+
};
|
|
4024
|
+
}
|
|
4025
|
+
}
|
|
4026
|
+
exports.SetLoginPreferenceResponseBody = SetLoginPreferenceResponseBody;
|
|
4027
|
+
class SetLoginPreferenceResponse extends $tea.Model {
|
|
4028
|
+
constructor(map) {
|
|
4029
|
+
super(map);
|
|
4030
|
+
}
|
|
4031
|
+
static names() {
|
|
4032
|
+
return {
|
|
4033
|
+
headers: 'headers',
|
|
4034
|
+
statusCode: 'statusCode',
|
|
4035
|
+
body: 'body',
|
|
4036
|
+
};
|
|
4037
|
+
}
|
|
4038
|
+
static types() {
|
|
4039
|
+
return {
|
|
4040
|
+
headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
|
|
4041
|
+
statusCode: 'number',
|
|
4042
|
+
body: SetLoginPreferenceResponseBody,
|
|
4043
|
+
};
|
|
4044
|
+
}
|
|
4045
|
+
}
|
|
4046
|
+
exports.SetLoginPreferenceResponse = SetLoginPreferenceResponse;
|
|
3798
4047
|
class SetMFAAuthenticationStatusRequest extends $tea.Model {
|
|
3799
4048
|
constructor(map) {
|
|
3800
4049
|
super(map);
|
|
@@ -3849,6 +4098,70 @@ class SetMFAAuthenticationStatusResponse extends $tea.Model {
|
|
|
3849
4098
|
}
|
|
3850
4099
|
}
|
|
3851
4100
|
exports.SetMFAAuthenticationStatusResponse = SetMFAAuthenticationStatusResponse;
|
|
4101
|
+
class SetPasswordPolicyRequest extends $tea.Model {
|
|
4102
|
+
constructor(map) {
|
|
4103
|
+
super(map);
|
|
4104
|
+
}
|
|
4105
|
+
static names() {
|
|
4106
|
+
return {
|
|
4107
|
+
directoryId: 'DirectoryId',
|
|
4108
|
+
maxLoginAttempts: 'MaxLoginAttempts',
|
|
4109
|
+
maxPasswordAge: 'MaxPasswordAge',
|
|
4110
|
+
minPasswordDifferentChars: 'MinPasswordDifferentChars',
|
|
4111
|
+
minPasswordLength: 'MinPasswordLength',
|
|
4112
|
+
passwordNotContainUsername: 'PasswordNotContainUsername',
|
|
4113
|
+
passwordReusePrevention: 'PasswordReusePrevention',
|
|
4114
|
+
};
|
|
4115
|
+
}
|
|
4116
|
+
static types() {
|
|
4117
|
+
return {
|
|
4118
|
+
directoryId: 'string',
|
|
4119
|
+
maxLoginAttempts: 'number',
|
|
4120
|
+
maxPasswordAge: 'number',
|
|
4121
|
+
minPasswordDifferentChars: 'number',
|
|
4122
|
+
minPasswordLength: 'number',
|
|
4123
|
+
passwordNotContainUsername: 'boolean',
|
|
4124
|
+
passwordReusePrevention: 'number',
|
|
4125
|
+
};
|
|
4126
|
+
}
|
|
4127
|
+
}
|
|
4128
|
+
exports.SetPasswordPolicyRequest = SetPasswordPolicyRequest;
|
|
4129
|
+
class SetPasswordPolicyResponseBody extends $tea.Model {
|
|
4130
|
+
constructor(map) {
|
|
4131
|
+
super(map);
|
|
4132
|
+
}
|
|
4133
|
+
static names() {
|
|
4134
|
+
return {
|
|
4135
|
+
requestId: 'RequestId',
|
|
4136
|
+
};
|
|
4137
|
+
}
|
|
4138
|
+
static types() {
|
|
4139
|
+
return {
|
|
4140
|
+
requestId: 'string',
|
|
4141
|
+
};
|
|
4142
|
+
}
|
|
4143
|
+
}
|
|
4144
|
+
exports.SetPasswordPolicyResponseBody = SetPasswordPolicyResponseBody;
|
|
4145
|
+
class SetPasswordPolicyResponse extends $tea.Model {
|
|
4146
|
+
constructor(map) {
|
|
4147
|
+
super(map);
|
|
4148
|
+
}
|
|
4149
|
+
static names() {
|
|
4150
|
+
return {
|
|
4151
|
+
headers: 'headers',
|
|
4152
|
+
statusCode: 'statusCode',
|
|
4153
|
+
body: 'body',
|
|
4154
|
+
};
|
|
4155
|
+
}
|
|
4156
|
+
static types() {
|
|
4157
|
+
return {
|
|
4158
|
+
headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
|
|
4159
|
+
statusCode: 'number',
|
|
4160
|
+
body: SetPasswordPolicyResponseBody,
|
|
4161
|
+
};
|
|
4162
|
+
}
|
|
4163
|
+
}
|
|
4164
|
+
exports.SetPasswordPolicyResponse = SetPasswordPolicyResponse;
|
|
3852
4165
|
class SetSCIMSynchronizationStatusRequest extends $tea.Model {
|
|
3853
4166
|
constructor(map) {
|
|
3854
4167
|
super(map);
|
|
@@ -5039,6 +5352,22 @@ class GetGroupResponseBodyGroup extends $tea.Model {
|
|
|
5039
5352
|
}
|
|
5040
5353
|
}
|
|
5041
5354
|
exports.GetGroupResponseBodyGroup = GetGroupResponseBodyGroup;
|
|
5355
|
+
class GetLoginPreferenceResponseBodyLoginPreference extends $tea.Model {
|
|
5356
|
+
constructor(map) {
|
|
5357
|
+
super(map);
|
|
5358
|
+
}
|
|
5359
|
+
static names() {
|
|
5360
|
+
return {
|
|
5361
|
+
loginNetworkMasks: 'LoginNetworkMasks',
|
|
5362
|
+
};
|
|
5363
|
+
}
|
|
5364
|
+
static types() {
|
|
5365
|
+
return {
|
|
5366
|
+
loginNetworkMasks: 'string',
|
|
5367
|
+
};
|
|
5368
|
+
}
|
|
5369
|
+
}
|
|
5370
|
+
exports.GetLoginPreferenceResponseBodyLoginPreference = GetLoginPreferenceResponseBodyLoginPreference;
|
|
5042
5371
|
class GetMFAAuthenticationSettingInfoResponseBodyMFAAuthenticationSettingInfo extends $tea.Model {
|
|
5043
5372
|
constructor(map) {
|
|
5044
5373
|
super(map);
|
|
@@ -5057,6 +5386,44 @@ class GetMFAAuthenticationSettingInfoResponseBodyMFAAuthenticationSettingInfo ex
|
|
|
5057
5386
|
}
|
|
5058
5387
|
}
|
|
5059
5388
|
exports.GetMFAAuthenticationSettingInfoResponseBodyMFAAuthenticationSettingInfo = GetMFAAuthenticationSettingInfoResponseBodyMFAAuthenticationSettingInfo;
|
|
5389
|
+
class GetPasswordPolicyResponseBodyPasswordPolicy extends $tea.Model {
|
|
5390
|
+
constructor(map) {
|
|
5391
|
+
super(map);
|
|
5392
|
+
}
|
|
5393
|
+
static names() {
|
|
5394
|
+
return {
|
|
5395
|
+
hardExpire: 'HardExpire',
|
|
5396
|
+
maxLoginAttempts: 'MaxLoginAttempts',
|
|
5397
|
+
maxPasswordAge: 'MaxPasswordAge',
|
|
5398
|
+
maxPasswordLength: 'MaxPasswordLength',
|
|
5399
|
+
minPasswordDifferentChars: 'MinPasswordDifferentChars',
|
|
5400
|
+
minPasswordLength: 'MinPasswordLength',
|
|
5401
|
+
passwordNotContainUsername: 'PasswordNotContainUsername',
|
|
5402
|
+
passwordReusePrevention: 'PasswordReusePrevention',
|
|
5403
|
+
requireLowerCaseChars: 'RequireLowerCaseChars',
|
|
5404
|
+
requireNumbers: 'RequireNumbers',
|
|
5405
|
+
requireSymbols: 'RequireSymbols',
|
|
5406
|
+
requireUpperCaseChars: 'RequireUpperCaseChars',
|
|
5407
|
+
};
|
|
5408
|
+
}
|
|
5409
|
+
static types() {
|
|
5410
|
+
return {
|
|
5411
|
+
hardExpire: 'boolean',
|
|
5412
|
+
maxLoginAttempts: 'number',
|
|
5413
|
+
maxPasswordAge: 'number',
|
|
5414
|
+
maxPasswordLength: 'number',
|
|
5415
|
+
minPasswordDifferentChars: 'number',
|
|
5416
|
+
minPasswordLength: 'number',
|
|
5417
|
+
passwordNotContainUsername: 'boolean',
|
|
5418
|
+
passwordReusePrevention: 'number',
|
|
5419
|
+
requireLowerCaseChars: 'boolean',
|
|
5420
|
+
requireNumbers: 'boolean',
|
|
5421
|
+
requireSymbols: 'boolean',
|
|
5422
|
+
requireUpperCaseChars: 'boolean',
|
|
5423
|
+
};
|
|
5424
|
+
}
|
|
5425
|
+
}
|
|
5426
|
+
exports.GetPasswordPolicyResponseBodyPasswordPolicy = GetPasswordPolicyResponseBodyPasswordPolicy;
|
|
5060
5427
|
class GetServiceStatusResponseBodyServiceStatus extends $tea.Model {
|
|
5061
5428
|
constructor(map) {
|
|
5062
5429
|
super(map);
|
|
@@ -5151,6 +5518,24 @@ class GetTaskStatusResponseBodyTaskStatus extends $tea.Model {
|
|
|
5151
5518
|
}
|
|
5152
5519
|
}
|
|
5153
5520
|
exports.GetTaskStatusResponseBodyTaskStatus = GetTaskStatusResponseBodyTaskStatus;
|
|
5521
|
+
class GetUserResponseBodyUserExternalId extends $tea.Model {
|
|
5522
|
+
constructor(map) {
|
|
5523
|
+
super(map);
|
|
5524
|
+
}
|
|
5525
|
+
static names() {
|
|
5526
|
+
return {
|
|
5527
|
+
id: 'Id',
|
|
5528
|
+
issuer: 'Issuer',
|
|
5529
|
+
};
|
|
5530
|
+
}
|
|
5531
|
+
static types() {
|
|
5532
|
+
return {
|
|
5533
|
+
id: 'string',
|
|
5534
|
+
issuer: 'string',
|
|
5535
|
+
};
|
|
5536
|
+
}
|
|
5537
|
+
}
|
|
5538
|
+
exports.GetUserResponseBodyUserExternalId = GetUserResponseBodyUserExternalId;
|
|
5154
5539
|
class GetUserResponseBodyUser extends $tea.Model {
|
|
5155
5540
|
constructor(map) {
|
|
5156
5541
|
super(map);
|
|
@@ -5161,6 +5546,7 @@ class GetUserResponseBodyUser extends $tea.Model {
|
|
|
5161
5546
|
description: 'Description',
|
|
5162
5547
|
displayName: 'DisplayName',
|
|
5163
5548
|
email: 'Email',
|
|
5549
|
+
externalId: 'ExternalId',
|
|
5164
5550
|
firstName: 'FirstName',
|
|
5165
5551
|
lastName: 'LastName',
|
|
5166
5552
|
provisionType: 'ProvisionType',
|
|
@@ -5176,6 +5562,7 @@ class GetUserResponseBodyUser extends $tea.Model {
|
|
|
5176
5562
|
description: 'string',
|
|
5177
5563
|
displayName: 'string',
|
|
5178
5564
|
email: 'string',
|
|
5565
|
+
externalId: GetUserResponseBodyUserExternalId,
|
|
5179
5566
|
firstName: 'string',
|
|
5180
5567
|
lastName: 'string',
|
|
5181
5568
|
provisionType: 'string',
|
|
@@ -5187,6 +5574,24 @@ class GetUserResponseBodyUser extends $tea.Model {
|
|
|
5187
5574
|
}
|
|
5188
5575
|
}
|
|
5189
5576
|
exports.GetUserResponseBodyUser = GetUserResponseBodyUser;
|
|
5577
|
+
class GetUserIdRequestExternalId extends $tea.Model {
|
|
5578
|
+
constructor(map) {
|
|
5579
|
+
super(map);
|
|
5580
|
+
}
|
|
5581
|
+
static names() {
|
|
5582
|
+
return {
|
|
5583
|
+
id: 'Id',
|
|
5584
|
+
issuer: 'Issuer',
|
|
5585
|
+
};
|
|
5586
|
+
}
|
|
5587
|
+
static types() {
|
|
5588
|
+
return {
|
|
5589
|
+
id: 'string',
|
|
5590
|
+
issuer: 'string',
|
|
5591
|
+
};
|
|
5592
|
+
}
|
|
5593
|
+
}
|
|
5594
|
+
exports.GetUserIdRequestExternalId = GetUserIdRequestExternalId;
|
|
5190
5595
|
class GetUserProvisioningResponseBodyUserProvisioning extends $tea.Model {
|
|
5191
5596
|
constructor(map) {
|
|
5192
5597
|
super(map);
|
|
@@ -5821,6 +6226,24 @@ class ListUserProvisioningsResponseBodyUserProvisionings extends $tea.Model {
|
|
|
5821
6226
|
}
|
|
5822
6227
|
}
|
|
5823
6228
|
exports.ListUserProvisioningsResponseBodyUserProvisionings = ListUserProvisioningsResponseBodyUserProvisionings;
|
|
6229
|
+
class ListUsersResponseBodyUsersExternalId extends $tea.Model {
|
|
6230
|
+
constructor(map) {
|
|
6231
|
+
super(map);
|
|
6232
|
+
}
|
|
6233
|
+
static names() {
|
|
6234
|
+
return {
|
|
6235
|
+
id: 'Id',
|
|
6236
|
+
issuer: 'Issuer',
|
|
6237
|
+
};
|
|
6238
|
+
}
|
|
6239
|
+
static types() {
|
|
6240
|
+
return {
|
|
6241
|
+
id: 'string',
|
|
6242
|
+
issuer: 'string',
|
|
6243
|
+
};
|
|
6244
|
+
}
|
|
6245
|
+
}
|
|
6246
|
+
exports.ListUsersResponseBodyUsersExternalId = ListUsersResponseBodyUsersExternalId;
|
|
5824
6247
|
class ListUsersResponseBodyUsers extends $tea.Model {
|
|
5825
6248
|
constructor(map) {
|
|
5826
6249
|
super(map);
|
|
@@ -5831,6 +6254,7 @@ class ListUsersResponseBodyUsers extends $tea.Model {
|
|
|
5831
6254
|
description: 'Description',
|
|
5832
6255
|
displayName: 'DisplayName',
|
|
5833
6256
|
email: 'Email',
|
|
6257
|
+
externalId: 'ExternalId',
|
|
5834
6258
|
firstName: 'FirstName',
|
|
5835
6259
|
lastName: 'LastName',
|
|
5836
6260
|
provisionType: 'ProvisionType',
|
|
@@ -5846,6 +6270,7 @@ class ListUsersResponseBodyUsers extends $tea.Model {
|
|
|
5846
6270
|
description: 'string',
|
|
5847
6271
|
displayName: 'string',
|
|
5848
6272
|
email: 'string',
|
|
6273
|
+
externalId: ListUsersResponseBodyUsersExternalId,
|
|
5849
6274
|
firstName: 'string',
|
|
5850
6275
|
lastName: 'string',
|
|
5851
6276
|
provisionType: 'string',
|
|
@@ -6335,7 +6760,7 @@ class Client extends openapi_client_1.default {
|
|
|
6335
6760
|
return await this.clearExternalSAMLIdentityProviderWithOptions(request, runtime);
|
|
6336
6761
|
}
|
|
6337
6762
|
/**
|
|
6338
|
-
* When you call this operation, an asynchronous task is created. You can call the [GetTask](~~340670~~) operation to query the progress of task
|
|
6763
|
+
* When you call this operation, an asynchronous task is created. You can call the [GetTask](~~340670~~) operation to query the progress of the task based on the value of the `TaskId` response parameter.
|
|
6339
6764
|
* For more information about how to assign permissions on an account in your resource directory, see [Overview of multi-account authorization](~~266726~~).
|
|
6340
6765
|
* This topic provides an example on how to assign access permissions on the account `114240524784****` in your resource directory to the CloudSSO user `u-00q8wbq42wiltcrk****` by using the access configuration `ac-00jhtfl8thteu6uj****`. After the call is successful, the CloudSSO user can access resources within the account in the resource directory.
|
|
6341
6766
|
*
|
|
@@ -6381,7 +6806,7 @@ class Client extends openapi_client_1.default {
|
|
|
6381
6806
|
return $tea.cast(await this.callApi(params, req, runtime), new CreateAccessAssignmentResponse({}));
|
|
6382
6807
|
}
|
|
6383
6808
|
/**
|
|
6384
|
-
* When you call this operation, an asynchronous task is created. You can call the [GetTask](~~340670~~) operation to query the progress of task
|
|
6809
|
+
* When you call this operation, an asynchronous task is created. You can call the [GetTask](~~340670~~) operation to query the progress of the task based on the value of the `TaskId` response parameter.
|
|
6385
6810
|
* For more information about how to assign permissions on an account in your resource directory, see [Overview of multi-account authorization](~~266726~~).
|
|
6386
6811
|
* This topic provides an example on how to assign access permissions on the account `114240524784****` in your resource directory to the CloudSSO user `u-00q8wbq42wiltcrk****` by using the access configuration `ac-00jhtfl8thteu6uj****`. After the call is successful, the CloudSSO user can access resources within the account in the resource directory.
|
|
6387
6812
|
*
|
|
@@ -7467,6 +7892,32 @@ class Client extends openapi_client_1.default {
|
|
|
7467
7892
|
let runtime = new $Util.RuntimeOptions({});
|
|
7468
7893
|
return await this.getGroupWithOptions(request, runtime);
|
|
7469
7894
|
}
|
|
7895
|
+
async getLoginPreferenceWithOptions(request, runtime) {
|
|
7896
|
+
tea_util_1.default.validateModel(request);
|
|
7897
|
+
let query = {};
|
|
7898
|
+
if (!tea_util_1.default.isUnset(request.directoryId)) {
|
|
7899
|
+
query["DirectoryId"] = request.directoryId;
|
|
7900
|
+
}
|
|
7901
|
+
let req = new $OpenApi.OpenApiRequest({
|
|
7902
|
+
query: openapi_util_1.default.query(query),
|
|
7903
|
+
});
|
|
7904
|
+
let params = new $OpenApi.Params({
|
|
7905
|
+
action: "GetLoginPreference",
|
|
7906
|
+
version: "2021-05-15",
|
|
7907
|
+
protocol: "HTTPS",
|
|
7908
|
+
pathname: "/",
|
|
7909
|
+
method: "POST",
|
|
7910
|
+
authType: "AK",
|
|
7911
|
+
style: "RPC",
|
|
7912
|
+
reqBodyType: "formData",
|
|
7913
|
+
bodyType: "json",
|
|
7914
|
+
});
|
|
7915
|
+
return $tea.cast(await this.callApi(params, req, runtime), new GetLoginPreferenceResponse({}));
|
|
7916
|
+
}
|
|
7917
|
+
async getLoginPreference(request) {
|
|
7918
|
+
let runtime = new $Util.RuntimeOptions({});
|
|
7919
|
+
return await this.getLoginPreferenceWithOptions(request, runtime);
|
|
7920
|
+
}
|
|
7470
7921
|
/**
|
|
7471
7922
|
* If you enable username-password logon for CloudSSO users, you can also configure MFA for the users.
|
|
7472
7923
|
* This topic provides an example on how to query the MFA setting of all CloudSSO users that belong to the directory named `00q8wbq42wiltcrk****`.
|
|
@@ -7588,6 +8039,32 @@ class Client extends openapi_client_1.default {
|
|
|
7588
8039
|
let runtime = new $Util.RuntimeOptions({});
|
|
7589
8040
|
return await this.getMFAAuthenticationStatusWithOptions(request, runtime);
|
|
7590
8041
|
}
|
|
8042
|
+
async getPasswordPolicyWithOptions(request, runtime) {
|
|
8043
|
+
tea_util_1.default.validateModel(request);
|
|
8044
|
+
let query = {};
|
|
8045
|
+
if (!tea_util_1.default.isUnset(request.directoryId)) {
|
|
8046
|
+
query["DirectoryId"] = request.directoryId;
|
|
8047
|
+
}
|
|
8048
|
+
let req = new $OpenApi.OpenApiRequest({
|
|
8049
|
+
query: openapi_util_1.default.query(query),
|
|
8050
|
+
});
|
|
8051
|
+
let params = new $OpenApi.Params({
|
|
8052
|
+
action: "GetPasswordPolicy",
|
|
8053
|
+
version: "2021-05-15",
|
|
8054
|
+
protocol: "HTTPS",
|
|
8055
|
+
pathname: "/",
|
|
8056
|
+
method: "POST",
|
|
8057
|
+
authType: "AK",
|
|
8058
|
+
style: "RPC",
|
|
8059
|
+
reqBodyType: "formData",
|
|
8060
|
+
bodyType: "json",
|
|
8061
|
+
});
|
|
8062
|
+
return $tea.cast(await this.callApi(params, req, runtime), new GetPasswordPolicyResponse({}));
|
|
8063
|
+
}
|
|
8064
|
+
async getPasswordPolicy(request) {
|
|
8065
|
+
let runtime = new $Util.RuntimeOptions({});
|
|
8066
|
+
return await this.getPasswordPolicyWithOptions(request, runtime);
|
|
8067
|
+
}
|
|
7591
8068
|
/**
|
|
7592
8069
|
* This topic provides an example on how to query the status of SCIM synchronization within the directory `d-00fc2p61****`. The returned result shows that SCIM synchronization is in the Enabled state.
|
|
7593
8070
|
*
|
|
@@ -7689,7 +8166,7 @@ class Client extends openapi_client_1.default {
|
|
|
7689
8166
|
return await this.getTaskWithOptions(request, runtime);
|
|
7690
8167
|
}
|
|
7691
8168
|
/**
|
|
7692
|
-
* You can call the GetTaskStatus operation to query the status of an asynchronous task. If you want to query more information about an asynchronous task,
|
|
8169
|
+
* You can call the GetTaskStatus operation to query the status of an asynchronous task. If you want to query more information about an asynchronous task, call the [GetTask](~~340670~~) operation.
|
|
7693
8170
|
* This topic provides an example on how to query the information about the task whose ID is `t-shfqw1u1edszvxw5****`.
|
|
7694
8171
|
*
|
|
7695
8172
|
* @param request GetTaskStatusRequest
|
|
@@ -7722,7 +8199,7 @@ class Client extends openapi_client_1.default {
|
|
|
7722
8199
|
return $tea.cast(await this.callApi(params, req, runtime), new GetTaskStatusResponse({}));
|
|
7723
8200
|
}
|
|
7724
8201
|
/**
|
|
7725
|
-
* You can call the GetTaskStatus operation to query the status of an asynchronous task. If you want to query more information about an asynchronous task,
|
|
8202
|
+
* You can call the GetTaskStatus operation to query the status of an asynchronous task. If you want to query more information about an asynchronous task, call the [GetTask](~~340670~~) operation.
|
|
7726
8203
|
* This topic provides an example on how to query the information about the task whose ID is `t-shfqw1u1edszvxw5****`.
|
|
7727
8204
|
*
|
|
7728
8205
|
* @param request GetTaskStatusRequest
|
|
@@ -7774,6 +8251,40 @@ class Client extends openapi_client_1.default {
|
|
|
7774
8251
|
let runtime = new $Util.RuntimeOptions({});
|
|
7775
8252
|
return await this.getUserWithOptions(request, runtime);
|
|
7776
8253
|
}
|
|
8254
|
+
async getUserIdWithOptions(tmpReq, runtime) {
|
|
8255
|
+
tea_util_1.default.validateModel(tmpReq);
|
|
8256
|
+
let request = new GetUserIdShrinkRequest({});
|
|
8257
|
+
openapi_util_1.default.convert(tmpReq, request);
|
|
8258
|
+
if (!tea_util_1.default.isUnset(tmpReq.externalId)) {
|
|
8259
|
+
request.externalIdShrink = openapi_util_1.default.arrayToStringWithSpecifiedStyle(tmpReq.externalId, "ExternalId", "json");
|
|
8260
|
+
}
|
|
8261
|
+
let query = {};
|
|
8262
|
+
if (!tea_util_1.default.isUnset(request.directoryId)) {
|
|
8263
|
+
query["DirectoryId"] = request.directoryId;
|
|
8264
|
+
}
|
|
8265
|
+
if (!tea_util_1.default.isUnset(request.externalIdShrink)) {
|
|
8266
|
+
query["ExternalId"] = request.externalIdShrink;
|
|
8267
|
+
}
|
|
8268
|
+
let req = new $OpenApi.OpenApiRequest({
|
|
8269
|
+
query: openapi_util_1.default.query(query),
|
|
8270
|
+
});
|
|
8271
|
+
let params = new $OpenApi.Params({
|
|
8272
|
+
action: "GetUserId",
|
|
8273
|
+
version: "2021-05-15",
|
|
8274
|
+
protocol: "HTTPS",
|
|
8275
|
+
pathname: "/",
|
|
8276
|
+
method: "POST",
|
|
8277
|
+
authType: "AK",
|
|
8278
|
+
style: "RPC",
|
|
8279
|
+
reqBodyType: "formData",
|
|
8280
|
+
bodyType: "json",
|
|
8281
|
+
});
|
|
8282
|
+
return $tea.cast(await this.callApi(params, req, runtime), new GetUserIdResponse({}));
|
|
8283
|
+
}
|
|
8284
|
+
async getUserId(request) {
|
|
8285
|
+
let runtime = new $Util.RuntimeOptions({});
|
|
8286
|
+
return await this.getUserIdWithOptions(request, runtime);
|
|
8287
|
+
}
|
|
7777
8288
|
/**
|
|
7778
8289
|
* 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.
|
|
7779
8290
|
*
|
|
@@ -7959,7 +8470,7 @@ class Client extends openapi_client_1.default {
|
|
|
7959
8470
|
return await this.getUserProvisioningStatisticsWithOptions(request, runtime);
|
|
7960
8471
|
}
|
|
7961
8472
|
/**
|
|
7962
|
-
* This topic provides an example on how to query the assigned access permissions on the account `114240524784****` in your resource directory. The returned result shows that access permissions on the account in your resource directory
|
|
8473
|
+
* This topic provides an example on how to query the assigned access permissions on the account `114240524784****` in your resource directory. The returned result shows that access permissions on the account in your resource directory is assigned to one user.
|
|
7963
8474
|
*
|
|
7964
8475
|
* @param request ListAccessAssignmentsRequest
|
|
7965
8476
|
* @param runtime runtime options for this request RuntimeOptions
|
|
@@ -8009,7 +8520,7 @@ class Client extends openapi_client_1.default {
|
|
|
8009
8520
|
return $tea.cast(await this.callApi(params, req, runtime), new ListAccessAssignmentsResponse({}));
|
|
8010
8521
|
}
|
|
8011
8522
|
/**
|
|
8012
|
-
* This topic provides an example on how to query the assigned access permissions on the account `114240524784****` in your resource directory. The returned result shows that access permissions on the account in your resource directory
|
|
8523
|
+
* This topic provides an example on how to query the assigned access permissions on the account `114240524784****` in your resource directory. The returned result shows that access permissions on the account in your resource directory is assigned to one user.
|
|
8013
8524
|
*
|
|
8014
8525
|
* @param request ListAccessAssignmentsRequest
|
|
8015
8526
|
* @return ListAccessAssignmentsResponse
|
|
@@ -9022,6 +9533,35 @@ class Client extends openapi_client_1.default {
|
|
|
9022
9533
|
let runtime = new $Util.RuntimeOptions({});
|
|
9023
9534
|
return await this.setExternalSAMLIdentityProviderWithOptions(request, runtime);
|
|
9024
9535
|
}
|
|
9536
|
+
async setLoginPreferenceWithOptions(request, runtime) {
|
|
9537
|
+
tea_util_1.default.validateModel(request);
|
|
9538
|
+
let query = {};
|
|
9539
|
+
if (!tea_util_1.default.isUnset(request.directoryId)) {
|
|
9540
|
+
query["DirectoryId"] = request.directoryId;
|
|
9541
|
+
}
|
|
9542
|
+
if (!tea_util_1.default.isUnset(request.loginNetworkMasks)) {
|
|
9543
|
+
query["LoginNetworkMasks"] = request.loginNetworkMasks;
|
|
9544
|
+
}
|
|
9545
|
+
let req = new $OpenApi.OpenApiRequest({
|
|
9546
|
+
query: openapi_util_1.default.query(query),
|
|
9547
|
+
});
|
|
9548
|
+
let params = new $OpenApi.Params({
|
|
9549
|
+
action: "SetLoginPreference",
|
|
9550
|
+
version: "2021-05-15",
|
|
9551
|
+
protocol: "HTTPS",
|
|
9552
|
+
pathname: "/",
|
|
9553
|
+
method: "POST",
|
|
9554
|
+
authType: "AK",
|
|
9555
|
+
style: "RPC",
|
|
9556
|
+
reqBodyType: "formData",
|
|
9557
|
+
bodyType: "json",
|
|
9558
|
+
});
|
|
9559
|
+
return $tea.cast(await this.callApi(params, req, runtime), new SetLoginPreferenceResponse({}));
|
|
9560
|
+
}
|
|
9561
|
+
async setLoginPreference(request) {
|
|
9562
|
+
let runtime = new $Util.RuntimeOptions({});
|
|
9563
|
+
return await this.setLoginPreferenceWithOptions(request, runtime);
|
|
9564
|
+
}
|
|
9025
9565
|
/**
|
|
9026
9566
|
* If a CloudSSO administrator enables username-password logon for users, CloudSSO automatically enables MFA to improve security. The administrator can call this operation to enable or disable MFA based on the business requirements.
|
|
9027
9567
|
* This topic provides an example on how to enable MFA for users.
|
|
@@ -9066,6 +9606,50 @@ class Client extends openapi_client_1.default {
|
|
|
9066
9606
|
let runtime = new $Util.RuntimeOptions({});
|
|
9067
9607
|
return await this.setMFAAuthenticationStatusWithOptions(request, runtime);
|
|
9068
9608
|
}
|
|
9609
|
+
async setPasswordPolicyWithOptions(request, runtime) {
|
|
9610
|
+
tea_util_1.default.validateModel(request);
|
|
9611
|
+
let query = {};
|
|
9612
|
+
if (!tea_util_1.default.isUnset(request.directoryId)) {
|
|
9613
|
+
query["DirectoryId"] = request.directoryId;
|
|
9614
|
+
}
|
|
9615
|
+
if (!tea_util_1.default.isUnset(request.maxLoginAttempts)) {
|
|
9616
|
+
query["MaxLoginAttempts"] = request.maxLoginAttempts;
|
|
9617
|
+
}
|
|
9618
|
+
if (!tea_util_1.default.isUnset(request.maxPasswordAge)) {
|
|
9619
|
+
query["MaxPasswordAge"] = request.maxPasswordAge;
|
|
9620
|
+
}
|
|
9621
|
+
if (!tea_util_1.default.isUnset(request.minPasswordDifferentChars)) {
|
|
9622
|
+
query["MinPasswordDifferentChars"] = request.minPasswordDifferentChars;
|
|
9623
|
+
}
|
|
9624
|
+
if (!tea_util_1.default.isUnset(request.minPasswordLength)) {
|
|
9625
|
+
query["MinPasswordLength"] = request.minPasswordLength;
|
|
9626
|
+
}
|
|
9627
|
+
if (!tea_util_1.default.isUnset(request.passwordNotContainUsername)) {
|
|
9628
|
+
query["PasswordNotContainUsername"] = request.passwordNotContainUsername;
|
|
9629
|
+
}
|
|
9630
|
+
if (!tea_util_1.default.isUnset(request.passwordReusePrevention)) {
|
|
9631
|
+
query["PasswordReusePrevention"] = request.passwordReusePrevention;
|
|
9632
|
+
}
|
|
9633
|
+
let req = new $OpenApi.OpenApiRequest({
|
|
9634
|
+
query: openapi_util_1.default.query(query),
|
|
9635
|
+
});
|
|
9636
|
+
let params = new $OpenApi.Params({
|
|
9637
|
+
action: "SetPasswordPolicy",
|
|
9638
|
+
version: "2021-05-15",
|
|
9639
|
+
protocol: "HTTPS",
|
|
9640
|
+
pathname: "/",
|
|
9641
|
+
method: "POST",
|
|
9642
|
+
authType: "AK",
|
|
9643
|
+
style: "RPC",
|
|
9644
|
+
reqBodyType: "formData",
|
|
9645
|
+
bodyType: "json",
|
|
9646
|
+
});
|
|
9647
|
+
return $tea.cast(await this.callApi(params, req, runtime), new SetPasswordPolicyResponse({}));
|
|
9648
|
+
}
|
|
9649
|
+
async setPasswordPolicy(request) {
|
|
9650
|
+
let runtime = new $Util.RuntimeOptions({});
|
|
9651
|
+
return await this.setPasswordPolicyWithOptions(request, runtime);
|
|
9652
|
+
}
|
|
9069
9653
|
/**
|
|
9070
9654
|
* You can synchronize users or groups from an external identity provider (IdP) that supports SCIM 2.0 to CloudSSO only after SCIM synchronization is enabled. If you disable SCIM synchronization, you can no longer synchronize users or groups to CloudSSO. The following list describes the impacts after SCIM synchronization is enabled or disabled:
|
|
9071
9655
|
* * After you enable SCIM synchronization, you cannot modify or delete the users or groups that are synchronized to CloudSSO by using SCIM. In addition, you cannot add users to or remove users from the groups. However, you can change the passwords of the users and enable or disable the logon of the users.
|