@alicloud/eiam20211201 2.15.2 → 2.15.4
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.js +18 -0
- package/dist/client.js.map +1 -1
- package/dist/models/CreateApplicationRequest.d.ts +30 -0
- package/dist/models/CreateApplicationRequest.js +59 -1
- package/dist/models/CreateApplicationRequest.js.map +1 -1
- package/dist/models/CreateCloudAccountRequest.d.ts +1 -0
- package/dist/models/CreateCloudAccountRequest.js +2 -0
- package/dist/models/CreateCloudAccountRequest.js.map +1 -1
- package/dist/models/GetApplicationResponseBody.d.ts +30 -0
- package/dist/models/GetApplicationResponseBody.js +59 -1
- package/dist/models/GetApplicationResponseBody.js.map +1 -1
- package/dist/models/ListApplicationsRequest.d.ts +15 -0
- package/dist/models/ListApplicationsRequest.js +27 -1
- package/dist/models/ListApplicationsRequest.js.map +1 -1
- package/dist/models/UpdateApplicationInfoRequest.d.ts +31 -2
- package/dist/models/UpdateApplicationInfoRequest.js +61 -1
- package/dist/models/UpdateApplicationInfoRequest.js.map +1 -1
- package/dist/models/model.d.ts +7 -0
- package/dist/models/model.js +53 -39
- package/dist/models/model.js.map +1 -1
- package/package.json +1 -1
- package/src/client.ts +24 -0
- package/src/models/CreateApplicationRequest.ts +70 -0
- package/src/models/CreateCloudAccountRequest.ts +3 -0
- package/src/models/GetApplicationResponseBody.ts +70 -0
- package/src/models/ListApplicationsRequest.ts +32 -0
- package/src/models/UpdateApplicationInfoRequest.ts +73 -2
- package/src/models/model.ts +7 -0
|
@@ -2,6 +2,32 @@
|
|
|
2
2
|
import * as $dara from '@darabonba/typescript';
|
|
3
3
|
|
|
4
4
|
|
|
5
|
+
export class ListApplicationsRequestCustomFields extends $dara.Model {
|
|
6
|
+
fieldName?: string;
|
|
7
|
+
fieldValue?: string;
|
|
8
|
+
static names(): { [key: string]: string } {
|
|
9
|
+
return {
|
|
10
|
+
fieldName: 'FieldName',
|
|
11
|
+
fieldValue: 'FieldValue',
|
|
12
|
+
};
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
static types(): { [key: string]: any } {
|
|
16
|
+
return {
|
|
17
|
+
fieldName: 'string',
|
|
18
|
+
fieldValue: 'string',
|
|
19
|
+
};
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
validate() {
|
|
23
|
+
super.validate();
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
constructor(map?: { [key: string]: any }) {
|
|
27
|
+
super(map);
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
|
|
5
31
|
export class ListApplicationsRequest extends $dara.Model {
|
|
6
32
|
/**
|
|
7
33
|
* @example
|
|
@@ -40,6 +66,7 @@ export class ListApplicationsRequest extends $dara.Model {
|
|
|
40
66
|
* authorize_required
|
|
41
67
|
*/
|
|
42
68
|
authorizationType?: string;
|
|
69
|
+
customFields?: ListApplicationsRequestCustomFields[];
|
|
43
70
|
/**
|
|
44
71
|
* @remarks
|
|
45
72
|
* The ID of the instance.
|
|
@@ -115,6 +142,7 @@ export class ListApplicationsRequest extends $dara.Model {
|
|
|
115
142
|
applicationIds: 'ApplicationIds',
|
|
116
143
|
applicationName: 'ApplicationName',
|
|
117
144
|
authorizationType: 'AuthorizationType',
|
|
145
|
+
customFields: 'CustomFields',
|
|
118
146
|
instanceId: 'InstanceId',
|
|
119
147
|
m2MClientStatus: 'M2MClientStatus',
|
|
120
148
|
pageNumber: 'PageNumber',
|
|
@@ -132,6 +160,7 @@ export class ListApplicationsRequest extends $dara.Model {
|
|
|
132
160
|
applicationIds: { 'type': 'array', 'itemType': 'string' },
|
|
133
161
|
applicationName: 'string',
|
|
134
162
|
authorizationType: 'string',
|
|
163
|
+
customFields: { 'type': 'array', 'itemType': ListApplicationsRequestCustomFields },
|
|
135
164
|
instanceId: 'string',
|
|
136
165
|
m2MClientStatus: 'string',
|
|
137
166
|
pageNumber: 'number',
|
|
@@ -146,6 +175,9 @@ export class ListApplicationsRequest extends $dara.Model {
|
|
|
146
175
|
if(Array.isArray(this.applicationIds)) {
|
|
147
176
|
$dara.Model.validateArray(this.applicationIds);
|
|
148
177
|
}
|
|
178
|
+
if(Array.isArray(this.customFields)) {
|
|
179
|
+
$dara.Model.validateArray(this.customFields);
|
|
180
|
+
}
|
|
149
181
|
super.validate();
|
|
150
182
|
}
|
|
151
183
|
|
|
@@ -2,6 +2,67 @@
|
|
|
2
2
|
import * as $dara from '@darabonba/typescript';
|
|
3
3
|
|
|
4
4
|
|
|
5
|
+
export class UpdateApplicationInfoRequestApplicationOwner extends $dara.Model {
|
|
6
|
+
groupIds?: string[];
|
|
7
|
+
userIds?: string[];
|
|
8
|
+
static names(): { [key: string]: string } {
|
|
9
|
+
return {
|
|
10
|
+
groupIds: 'GroupIds',
|
|
11
|
+
userIds: 'UserIds',
|
|
12
|
+
};
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
static types(): { [key: string]: any } {
|
|
16
|
+
return {
|
|
17
|
+
groupIds: { 'type': 'array', 'itemType': 'string' },
|
|
18
|
+
userIds: { 'type': 'array', 'itemType': 'string' },
|
|
19
|
+
};
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
validate() {
|
|
23
|
+
if(Array.isArray(this.groupIds)) {
|
|
24
|
+
$dara.Model.validateArray(this.groupIds);
|
|
25
|
+
}
|
|
26
|
+
if(Array.isArray(this.userIds)) {
|
|
27
|
+
$dara.Model.validateArray(this.userIds);
|
|
28
|
+
}
|
|
29
|
+
super.validate();
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
constructor(map?: { [key: string]: any }) {
|
|
33
|
+
super(map);
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
export class UpdateApplicationInfoRequestCustomFields extends $dara.Model {
|
|
38
|
+
fieldName?: string;
|
|
39
|
+
fieldValue?: string;
|
|
40
|
+
operation?: string;
|
|
41
|
+
static names(): { [key: string]: string } {
|
|
42
|
+
return {
|
|
43
|
+
fieldName: 'FieldName',
|
|
44
|
+
fieldValue: 'FieldValue',
|
|
45
|
+
operation: 'Operation',
|
|
46
|
+
};
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
static types(): { [key: string]: any } {
|
|
50
|
+
return {
|
|
51
|
+
fieldName: 'string',
|
|
52
|
+
fieldValue: 'string',
|
|
53
|
+
operation: 'string',
|
|
54
|
+
};
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
validate() {
|
|
58
|
+
super.validate();
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
constructor(map?: { [key: string]: any }) {
|
|
62
|
+
super(map);
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
|
|
5
66
|
export class UpdateApplicationInfoRequest extends $dara.Model {
|
|
6
67
|
/**
|
|
7
68
|
* @remarks
|
|
@@ -17,18 +78,18 @@ export class UpdateApplicationInfoRequest extends $dara.Model {
|
|
|
17
78
|
* @remarks
|
|
18
79
|
* 应用的表示名称
|
|
19
80
|
*
|
|
20
|
-
* This parameter is required.
|
|
21
|
-
*
|
|
22
81
|
* @example
|
|
23
82
|
* Ram Account SSO
|
|
24
83
|
*/
|
|
25
84
|
applicationName?: string;
|
|
85
|
+
applicationOwner?: UpdateApplicationInfoRequestApplicationOwner;
|
|
26
86
|
applicationVisibility?: string[];
|
|
27
87
|
/**
|
|
28
88
|
* @example
|
|
29
89
|
* client-token-example
|
|
30
90
|
*/
|
|
31
91
|
clientToken?: string;
|
|
92
|
+
customFields?: UpdateApplicationInfoRequestCustomFields[];
|
|
32
93
|
/**
|
|
33
94
|
* @remarks
|
|
34
95
|
* IDaaS EIAM的实例id
|
|
@@ -51,8 +112,10 @@ export class UpdateApplicationInfoRequest extends $dara.Model {
|
|
|
51
112
|
return {
|
|
52
113
|
applicationId: 'ApplicationId',
|
|
53
114
|
applicationName: 'ApplicationName',
|
|
115
|
+
applicationOwner: 'ApplicationOwner',
|
|
54
116
|
applicationVisibility: 'ApplicationVisibility',
|
|
55
117
|
clientToken: 'ClientToken',
|
|
118
|
+
customFields: 'CustomFields',
|
|
56
119
|
instanceId: 'InstanceId',
|
|
57
120
|
logoUrl: 'LogoUrl',
|
|
58
121
|
};
|
|
@@ -62,17 +125,25 @@ export class UpdateApplicationInfoRequest extends $dara.Model {
|
|
|
62
125
|
return {
|
|
63
126
|
applicationId: 'string',
|
|
64
127
|
applicationName: 'string',
|
|
128
|
+
applicationOwner: UpdateApplicationInfoRequestApplicationOwner,
|
|
65
129
|
applicationVisibility: { 'type': 'array', 'itemType': 'string' },
|
|
66
130
|
clientToken: 'string',
|
|
131
|
+
customFields: { 'type': 'array', 'itemType': UpdateApplicationInfoRequestCustomFields },
|
|
67
132
|
instanceId: 'string',
|
|
68
133
|
logoUrl: 'string',
|
|
69
134
|
};
|
|
70
135
|
}
|
|
71
136
|
|
|
72
137
|
validate() {
|
|
138
|
+
if(this.applicationOwner && typeof (this.applicationOwner as any).validate === 'function') {
|
|
139
|
+
(this.applicationOwner as any).validate();
|
|
140
|
+
}
|
|
73
141
|
if(Array.isArray(this.applicationVisibility)) {
|
|
74
142
|
$dara.Model.validateArray(this.applicationVisibility);
|
|
75
143
|
}
|
|
144
|
+
if(Array.isArray(this.customFields)) {
|
|
145
|
+
$dara.Model.validateArray(this.customFields);
|
|
146
|
+
}
|
|
76
147
|
super.validate();
|
|
77
148
|
}
|
|
78
149
|
|
package/src/models/model.ts
CHANGED
|
@@ -5,6 +5,8 @@ export { CheckApplicationProvisioningUserPrimaryOrganizationalUnitResponseBodyCh
|
|
|
5
5
|
export { CheckInstanceForDeleteResponseBodyCheckInstanceResultRestrictScenarios } from './CheckInstanceForDeleteResponseBody';
|
|
6
6
|
export { CheckInstanceForDeleteResponseBodyCheckInstanceResult } from './CheckInstanceForDeleteResponseBody';
|
|
7
7
|
export { CheckInstanceModuleStatusResponseBodyModule } from './CheckInstanceModuleStatusResponseBody';
|
|
8
|
+
export { CreateApplicationRequestApplicationOwner } from './CreateApplicationRequest';
|
|
9
|
+
export { CreateApplicationRequestCustomFields } from './CreateApplicationRequest';
|
|
8
10
|
export { CreateApplicationClientSecretResponseBodyApplicationClientSecret } from './CreateApplicationClientSecretResponseBody';
|
|
9
11
|
export { CreateApplicationFederatedCredentialRequestAttributeMappings } from './CreateApplicationFederatedCredentialRequest';
|
|
10
12
|
export { CreateApplicationTokenResponseBodyApplicationTokens } from './CreateApplicationTokenResponseBody';
|
|
@@ -53,6 +55,8 @@ export { ExecIdentityProviderMetadataUrlResolutionResponseBodyIdentityProviderMe
|
|
|
53
55
|
export { ExecIdentityProviderMetadataUrlResolutionResponseBodyIdentityProviderMetadata } from './ExecIdentityProviderMetadataUrlResolutionResponseBody';
|
|
54
56
|
export { GenerateOauthTokenResponseBodyTokenResponse } from './GenerateOauthTokenResponseBody';
|
|
55
57
|
export { GenerateWebAuthnAuthenticatorRegistrationUrlResponseBodyWebAuthnAuthenticatorRegistrationUrl } from './GenerateWebAuthnAuthenticatorRegistrationUrlResponseBody';
|
|
58
|
+
export { GetApplicationResponseBodyApplicationApplicationOwner } from './GetApplicationResponseBody';
|
|
59
|
+
export { GetApplicationResponseBodyApplicationCustomFields } from './GetApplicationResponseBody';
|
|
56
60
|
export { GetApplicationResponseBodyApplication } from './GetApplicationResponseBody';
|
|
57
61
|
export { GetApplicationAdvancedConfigResponseBodyApplicationAdvancedConfigScimServerAdvancedConfig } from './GetApplicationAdvancedConfigResponseBody';
|
|
58
62
|
export { GetApplicationAdvancedConfigResponseBodyApplicationAdvancedConfig } from './GetApplicationAdvancedConfigResponseBody';
|
|
@@ -215,6 +219,7 @@ export { ListApplicationRolesRequestFilter } from './ListApplicationRolesRequest
|
|
|
215
219
|
export { ListApplicationRolesResponseBodyApplicationRoles } from './ListApplicationRolesResponseBody';
|
|
216
220
|
export { ListApplicationSupportedProvisionProtocolTypesResponseBodyApplicationSupportedProvisionProtocolType } from './ListApplicationSupportedProvisionProtocolTypesResponseBody';
|
|
217
221
|
export { ListApplicationTokensResponseBodyApplicationTokens } from './ListApplicationTokensResponseBody';
|
|
222
|
+
export { ListApplicationsRequestCustomFields } from './ListApplicationsRequest';
|
|
218
223
|
export { ListApplicationsResponseBodyApplications } from './ListApplicationsResponseBody';
|
|
219
224
|
export { ListApplicationsForAuthorizationRuleRequestFilter } from './ListApplicationsForAuthorizationRuleRequest';
|
|
220
225
|
export { ListApplicationsForAuthorizationRuleResponseBodyApplicationsValidityPeriod } from './ListApplicationsForAuthorizationRuleResponseBody';
|
|
@@ -404,6 +409,8 @@ export { SetPasswordComplexityConfigurationRequestPasswordComplexityRules } from
|
|
|
404
409
|
export { SetWebAuthnConfigurationRequestAaguids } from './SetWebAuthnConfigurationRequest';
|
|
405
410
|
export { UpdateApplicationAdvancedConfigRequestScimServerAdvancedConfig } from './UpdateApplicationAdvancedConfigRequest';
|
|
406
411
|
export { UpdateApplicationFederatedCredentialRequestAttributeMappings } from './UpdateApplicationFederatedCredentialRequest';
|
|
412
|
+
export { UpdateApplicationInfoRequestApplicationOwner } from './UpdateApplicationInfoRequest';
|
|
413
|
+
export { UpdateApplicationInfoRequestCustomFields } from './UpdateApplicationInfoRequest';
|
|
407
414
|
export { UpdateApplicationSsoFormParamsRequestApplicationTemplateParams } from './UpdateApplicationSsoFormParamsRequest';
|
|
408
415
|
export { UpdateAuthorizationRuleApplicationAttachmentRequestValidityPeriod } from './UpdateAuthorizationRuleApplicationAttachmentRequest';
|
|
409
416
|
export { UpdateAuthorizationRuleGroupAttachmentRequestValidityPeriod } from './UpdateAuthorizationRuleGroupAttachmentRequest';
|