@alicloud/eiam20211201 2.18.0 → 2.18.1

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.
Files changed (41) hide show
  1. package/dist/client.d.ts +6 -6
  2. package/dist/client.js +15 -6
  3. package/dist/client.js.map +1 -1
  4. package/dist/models/CreateAuthorizationResourceRequest.d.ts +42 -2
  5. package/dist/models/CreateAuthorizationResourceRequest.js +47 -1
  6. package/dist/models/CreateAuthorizationResourceRequest.js.map +1 -1
  7. package/dist/models/CreateInstanceRequest.d.ts +8 -0
  8. package/dist/models/CreateInstanceRequest.js +2 -0
  9. package/dist/models/CreateInstanceRequest.js.map +1 -1
  10. package/dist/models/CreateInstanceResponseBody.d.ts +1 -1
  11. package/dist/models/ExecuteInstanceFailoverRequest.d.ts +4 -2
  12. package/dist/models/ExecuteInstanceFailoverRequest.js.map +1 -1
  13. package/dist/models/ExecuteInstanceFailoverResponseBody.d.ts +3 -0
  14. package/dist/models/ExecuteInstanceFailoverResponseBody.js.map +1 -1
  15. package/dist/models/GetAuthorizationResourceResponseBody.d.ts +59 -5
  16. package/dist/models/GetAuthorizationResourceResponseBody.js +51 -1
  17. package/dist/models/GetAuthorizationResourceResponseBody.js.map +1 -1
  18. package/dist/models/ListAuthorizationResourcesRequest.d.ts +7 -7
  19. package/dist/models/ListAuthorizationResourcesResponseBody.d.ts +60 -5
  20. package/dist/models/ListAuthorizationResourcesResponseBody.js +51 -1
  21. package/dist/models/ListAuthorizationResourcesResponseBody.js.map +1 -1
  22. package/dist/models/ListInstancesRequest.d.ts +15 -0
  23. package/dist/models/ListInstancesRequest.js +2 -0
  24. package/dist/models/ListInstancesRequest.js.map +1 -1
  25. package/dist/models/ListInstancesResponseBody.d.ts +4 -4
  26. package/dist/models/model.d.ts +6 -0
  27. package/dist/models/model.js +51 -39
  28. package/dist/models/model.js.map +1 -1
  29. package/package.json +1 -1
  30. package/src/client.ts +18 -6
  31. package/src/models/CreateAuthorizationResourceRequest.ts +70 -2
  32. package/src/models/CreateInstanceRequest.ts +10 -0
  33. package/src/models/CreateInstanceResponseBody.ts +1 -1
  34. package/src/models/ExecuteInstanceFailoverRequest.ts +4 -2
  35. package/src/models/ExecuteInstanceFailoverResponseBody.ts +3 -0
  36. package/src/models/GetAuthorizationResourceResponseBody.ts +91 -5
  37. package/src/models/ListAuthorizationResourcesRequest.ts +7 -7
  38. package/src/models/ListAuthorizationResourcesResponseBody.ts +92 -5
  39. package/src/models/ListInstancesRequest.ts +17 -0
  40. package/src/models/ListInstancesResponseBody.ts +4 -4
  41. package/src/models/model.ts +6 -0
@@ -2,10 +2,67 @@
2
2
  import * as $dara from '@darabonba/typescript';
3
3
 
4
4
 
5
+ export class GetAuthorizationResourceResponseBodyAuthorizationResourceConditionCredentialCondition extends $dara.Model {
6
+ /**
7
+ * @remarks
8
+ * Specifies whether same-name identity accounts are supported.
9
+ */
10
+ allowSameNameIdentity?: boolean;
11
+ static names(): { [key: string]: string } {
12
+ return {
13
+ allowSameNameIdentity: 'AllowSameNameIdentity',
14
+ };
15
+ }
16
+
17
+ static types(): { [key: string]: any } {
18
+ return {
19
+ allowSameNameIdentity: 'boolean',
20
+ };
21
+ }
22
+
23
+ validate() {
24
+ super.validate();
25
+ }
26
+
27
+ constructor(map?: { [key: string]: any }) {
28
+ super(map);
29
+ }
30
+ }
31
+
32
+ export class GetAuthorizationResourceResponseBodyAuthorizationResourceCondition extends $dara.Model {
33
+ /**
34
+ * @remarks
35
+ * The credential condition.
36
+ */
37
+ credentialCondition?: GetAuthorizationResourceResponseBodyAuthorizationResourceConditionCredentialCondition;
38
+ static names(): { [key: string]: string } {
39
+ return {
40
+ credentialCondition: 'CredentialCondition',
41
+ };
42
+ }
43
+
44
+ static types(): { [key: string]: any } {
45
+ return {
46
+ credentialCondition: GetAuthorizationResourceResponseBodyAuthorizationResourceConditionCredentialCondition,
47
+ };
48
+ }
49
+
50
+ validate() {
51
+ if(this.credentialCondition && typeof (this.credentialCondition as any).validate === 'function') {
52
+ (this.credentialCondition as any).validate();
53
+ }
54
+ super.validate();
55
+ }
56
+
57
+ constructor(map?: { [key: string]: any }) {
58
+ super(map);
59
+ }
60
+ }
61
+
5
62
  export class GetAuthorizationResourceResponseBodyAuthorizationResource extends $dara.Model {
6
63
  /**
7
64
  * @remarks
8
- * The ID of the resource entity associated with the authorized resource.
65
+ * The resource entity ID associated with the authorization resource.
9
66
  *
10
67
  * @example
11
68
  * carole_01kmek49aqxxxx
@@ -13,8 +70,7 @@ export class GetAuthorizationResourceResponseBodyAuthorizationResource extends $
13
70
  authorizationResourceEntityId?: string;
14
71
  /**
15
72
  * @remarks
16
- * The type of the resource entity associated with the authorized resource. Valid values:
17
- *
73
+ * The resource entity type associated with the authorization resource. Valid values:
18
74
  * - cloud_account_role: cloud role.
19
75
  *
20
76
  * @example
@@ -39,12 +95,25 @@ export class GetAuthorizationResourceResponseBodyAuthorizationResource extends $
39
95
  authorizationRuleId?: string;
40
96
  /**
41
97
  * @remarks
42
- * The ID of the cloud account to which the resource entity associated with the authorized resource belongs.
98
+ * The cloud account ID to which the resource entity associated with the authorization resource belongs.
43
99
  *
44
100
  * @example
45
101
  * ca_01kmegjc11qa1txxxxx
46
102
  */
47
103
  cloudAccountId?: string;
104
+ /**
105
+ * @remarks
106
+ * The condition restriction.
107
+ */
108
+ condition?: GetAuthorizationResourceResponseBodyAuthorizationResourceCondition;
109
+ /**
110
+ * @remarks
111
+ * The creation time.
112
+ *
113
+ * @example
114
+ * 1787023451494
115
+ */
116
+ createTime?: number;
48
117
  /**
49
118
  * @remarks
50
119
  * The instance ID.
@@ -53,6 +122,14 @@ export class GetAuthorizationResourceResponseBodyAuthorizationResource extends $
53
122
  * idaas_ue2jvisn35ea5lmthk267xxxxx
54
123
  */
55
124
  instanceId?: string;
125
+ /**
126
+ * @remarks
127
+ * The update time.
128
+ *
129
+ * @example
130
+ * 1787023451494
131
+ */
132
+ updateTime?: number;
56
133
  static names(): { [key: string]: string } {
57
134
  return {
58
135
  authorizationResourceEntityId: 'AuthorizationResourceEntityId',
@@ -60,7 +137,10 @@ export class GetAuthorizationResourceResponseBodyAuthorizationResource extends $
60
137
  authorizationResourceId: 'AuthorizationResourceId',
61
138
  authorizationRuleId: 'AuthorizationRuleId',
62
139
  cloudAccountId: 'CloudAccountId',
140
+ condition: 'Condition',
141
+ createTime: 'CreateTime',
63
142
  instanceId: 'InstanceId',
143
+ updateTime: 'UpdateTime',
64
144
  };
65
145
  }
66
146
 
@@ -71,11 +151,17 @@ export class GetAuthorizationResourceResponseBodyAuthorizationResource extends $
71
151
  authorizationResourceId: 'string',
72
152
  authorizationRuleId: 'string',
73
153
  cloudAccountId: 'string',
154
+ condition: GetAuthorizationResourceResponseBodyAuthorizationResourceCondition,
155
+ createTime: 'number',
74
156
  instanceId: 'string',
157
+ updateTime: 'number',
75
158
  };
76
159
  }
77
160
 
78
161
  validate() {
162
+ if(this.condition && typeof (this.condition as any).validate === 'function') {
163
+ (this.condition as any).validate();
164
+ }
79
165
  super.validate();
80
166
  }
81
167
 
@@ -87,7 +173,7 @@ export class GetAuthorizationResourceResponseBodyAuthorizationResource extends $
87
173
  export class GetAuthorizationResourceResponseBody extends $dara.Model {
88
174
  /**
89
175
  * @remarks
90
- * The authorized resource.
176
+ * The authorization resource.
91
177
  */
92
178
  authorizationResource?: GetAuthorizationResourceResponseBodyAuthorizationResource;
93
179
  /**
@@ -7,9 +7,9 @@ export class ListAuthorizationResourcesRequestFilter extends $dara.Model {
7
7
  * @remarks
8
8
  * The name of the filter field. Valid values:
9
9
  *
10
- * - AuthorizationResourceEntityType: the resource entity type associated with the authorization resource.
10
+ * - AuthorizationResourceEntityType: the type of the resource entity associated with the authorization resource.
11
11
  *
12
- * - AuthorizationResourceEntityId: the resource entity ID associated with the authorization resource.
12
+ * - AuthorizationResourceEntityId: the ID of the resource entity associated with the authorization resource.
13
13
  *
14
14
  * @example
15
15
  * AuthorizationResourceEntityId
@@ -17,7 +17,7 @@ export class ListAuthorizationResourcesRequestFilter extends $dara.Model {
17
17
  name?: string;
18
18
  /**
19
19
  * @remarks
20
- * The values of the filter field.
20
+ * The list of filter field values.
21
21
  */
22
22
  value?: string[];
23
23
  static names(): { [key: string]: string } {
@@ -74,11 +74,11 @@ export class ListAuthorizationResourcesRequest extends $dara.Model {
74
74
  instanceId?: string;
75
75
  /**
76
76
  * @remarks
77
- * The maximum number of entries per page.
77
+ * The maximum number of records per page.
78
78
  *
79
- * - Default value: 20.
79
+ * - If this parameter is not specified, the default value is 20.
80
80
  *
81
- * - Maximum value: 100.
81
+ * - The maximum value is 100.
82
82
  *
83
83
  * @example
84
84
  * 20
@@ -88,7 +88,7 @@ export class ListAuthorizationResourcesRequest extends $dara.Model {
88
88
  * @remarks
89
89
  * The token that identifies the start position of the next page.
90
90
  *
91
- * - If you do not specify this parameter, the query starts from the first page.
91
+ * - If this parameter is not specified, the query starts from the first page.
92
92
  *
93
93
  * @example
94
94
  * NTxxxxxexample
@@ -2,10 +2,67 @@
2
2
  import * as $dara from '@darabonba/typescript';
3
3
 
4
4
 
5
+ export class ListAuthorizationResourcesResponseBodyAuthorizationResourcesConditionCredentialCondition extends $dara.Model {
6
+ /**
7
+ * @remarks
8
+ * Specifies whether same-name identity accounts are supported.
9
+ */
10
+ allowSameNameIdentity?: boolean;
11
+ static names(): { [key: string]: string } {
12
+ return {
13
+ allowSameNameIdentity: 'AllowSameNameIdentity',
14
+ };
15
+ }
16
+
17
+ static types(): { [key: string]: any } {
18
+ return {
19
+ allowSameNameIdentity: 'boolean',
20
+ };
21
+ }
22
+
23
+ validate() {
24
+ super.validate();
25
+ }
26
+
27
+ constructor(map?: { [key: string]: any }) {
28
+ super(map);
29
+ }
30
+ }
31
+
32
+ export class ListAuthorizationResourcesResponseBodyAuthorizationResourcesCondition extends $dara.Model {
33
+ /**
34
+ * @remarks
35
+ * The effective condition when used as a credential.
36
+ */
37
+ credentialCondition?: ListAuthorizationResourcesResponseBodyAuthorizationResourcesConditionCredentialCondition;
38
+ static names(): { [key: string]: string } {
39
+ return {
40
+ credentialCondition: 'CredentialCondition',
41
+ };
42
+ }
43
+
44
+ static types(): { [key: string]: any } {
45
+ return {
46
+ credentialCondition: ListAuthorizationResourcesResponseBodyAuthorizationResourcesConditionCredentialCondition,
47
+ };
48
+ }
49
+
50
+ validate() {
51
+ if(this.credentialCondition && typeof (this.credentialCondition as any).validate === 'function') {
52
+ (this.credentialCondition as any).validate();
53
+ }
54
+ super.validate();
55
+ }
56
+
57
+ constructor(map?: { [key: string]: any }) {
58
+ super(map);
59
+ }
60
+ }
61
+
5
62
  export class ListAuthorizationResourcesResponseBodyAuthorizationResources extends $dara.Model {
6
63
  /**
7
64
  * @remarks
8
- * The resource entity ID associated with the authorization resource.
65
+ * The ID of the resource entity associated with the authorization resource.
9
66
  *
10
67
  * @example
11
68
  * carole_01kmek49aqxxxx
@@ -13,7 +70,7 @@ export class ListAuthorizationResourcesResponseBodyAuthorizationResources extend
13
70
  authorizationResourceEntityId?: string;
14
71
  /**
15
72
  * @remarks
16
- * The resource entity type associated with the authorization resource. Valid values:
73
+ * The type of the resource entity associated with the authorization resource. Valid values:
17
74
  * - cloud_account_role: cloud role.
18
75
  *
19
76
  * @example
@@ -44,6 +101,19 @@ export class ListAuthorizationResourcesResponseBodyAuthorizationResources extend
44
101
  * ca_01kmegjc11qa1txxxxx
45
102
  */
46
103
  cloudAccountId?: string;
104
+ /**
105
+ * @remarks
106
+ * The effective condition.
107
+ */
108
+ condition?: ListAuthorizationResourcesResponseBodyAuthorizationResourcesCondition;
109
+ /**
110
+ * @remarks
111
+ * The creation time.
112
+ *
113
+ * @example
114
+ * 1787023451494
115
+ */
116
+ createTime?: number;
47
117
  /**
48
118
  * @remarks
49
119
  * The instance ID.
@@ -52,6 +122,14 @@ export class ListAuthorizationResourcesResponseBodyAuthorizationResources extend
52
122
  * idaas_ue2jvisn35ea5lmthk267xxxxx
53
123
  */
54
124
  instanceId?: string;
125
+ /**
126
+ * @remarks
127
+ * The update time.
128
+ *
129
+ * @example
130
+ * 1787023451494
131
+ */
132
+ updateTime?: number;
55
133
  static names(): { [key: string]: string } {
56
134
  return {
57
135
  authorizationResourceEntityId: 'AuthorizationResourceEntityId',
@@ -59,7 +137,10 @@ export class ListAuthorizationResourcesResponseBodyAuthorizationResources extend
59
137
  authorizationResourceId: 'AuthorizationResourceId',
60
138
  authorizationRuleId: 'AuthorizationRuleId',
61
139
  cloudAccountId: 'CloudAccountId',
140
+ condition: 'Condition',
141
+ createTime: 'CreateTime',
62
142
  instanceId: 'InstanceId',
143
+ updateTime: 'UpdateTime',
63
144
  };
64
145
  }
65
146
 
@@ -70,11 +151,17 @@ export class ListAuthorizationResourcesResponseBodyAuthorizationResources extend
70
151
  authorizationResourceId: 'string',
71
152
  authorizationRuleId: 'string',
72
153
  cloudAccountId: 'string',
154
+ condition: ListAuthorizationResourcesResponseBodyAuthorizationResourcesCondition,
155
+ createTime: 'number',
73
156
  instanceId: 'string',
157
+ updateTime: 'number',
74
158
  };
75
159
  }
76
160
 
77
161
  validate() {
162
+ if(this.condition && typeof (this.condition as any).validate === 'function') {
163
+ (this.condition as any).validate();
164
+ }
78
165
  super.validate();
79
166
  }
80
167
 
@@ -91,7 +178,7 @@ export class ListAuthorizationResourcesResponseBody extends $dara.Model {
91
178
  authorizationResources?: ListAuthorizationResourcesResponseBodyAuthorizationResources[];
92
179
  /**
93
180
  * @remarks
94
- * The number of entries per page in the paged query. This is the paging size.
181
+ * The number of entries per page in a paged query. This parameter is used for paging.
95
182
  *
96
183
  * @example
97
184
  * 20
@@ -99,7 +186,7 @@ export class ListAuthorizationResourcesResponseBody extends $dara.Model {
99
186
  maxResults?: number;
100
187
  /**
101
188
  * @remarks
102
- * The pagination token returned in this call. Use this token for the next page query.
189
+ * The token returned for the next page query.
103
190
  *
104
191
  * @example
105
192
  * NTxxxexample
@@ -115,7 +202,7 @@ export class ListAuthorizationResourcesResponseBody extends $dara.Model {
115
202
  requestId?: string;
116
203
  /**
117
204
  * @remarks
118
- * The total number of entries returned.
205
+ * The total number of entries in the list.
119
206
  *
120
207
  * @example
121
208
  * 100
@@ -29,6 +29,14 @@ export class ListInstancesRequest extends $dara.Model {
29
29
  * The list of instance IDs.
30
30
  */
31
31
  instanceIds?: string[];
32
+ /**
33
+ * @remarks
34
+ * The service code of the managing cloud service.
35
+ *
36
+ * @example
37
+ * kms
38
+ */
39
+ managedServiceCode?: string;
32
40
  /**
33
41
  * @remarks
34
42
  * The page number.
@@ -45,6 +53,13 @@ export class ListInstancesRequest extends $dara.Model {
45
53
  * 20
46
54
  */
47
55
  pageSize?: number;
56
+ /**
57
+ * @remarks
58
+ * Indicates whether the instance is managed by a cloud service.
59
+ *
60
+ * @example
61
+ * true
62
+ */
48
63
  serviceManaged?: boolean;
49
64
  /**
50
65
  * @remarks
@@ -61,6 +76,7 @@ export class ListInstancesRequest extends $dara.Model {
61
76
  crossRegionReplication: 'CrossRegionReplication',
62
77
  edition: 'Edition',
63
78
  instanceIds: 'InstanceIds',
79
+ managedServiceCode: 'ManagedServiceCode',
64
80
  pageNumber: 'PageNumber',
65
81
  pageSize: 'PageSize',
66
82
  serviceManaged: 'ServiceManaged',
@@ -73,6 +89,7 @@ export class ListInstancesRequest extends $dara.Model {
73
89
  crossRegionReplication: 'string',
74
90
  edition: 'string',
75
91
  instanceIds: { 'type': 'array', 'itemType': 'string' },
92
+ managedServiceCode: 'string',
76
93
  pageNumber: 'number',
77
94
  pageSize: 'number',
78
95
  serviceManaged: 'boolean',
@@ -79,7 +79,7 @@ export class ListInstancesResponseBodyInstancesReplicationConfiguration extends
79
79
  primaryInstanceRegionId?: string;
80
80
  /**
81
81
  * @remarks
82
- * The creation time of the disaster recovery data replication, in UNIX timestamp format. Unit: milliseconds.
82
+ * The time when the disaster recovery data replication was created. The value is a UNIX timestamp in milliseconds.
83
83
  *
84
84
  * @example
85
85
  * 1778499337000
@@ -117,7 +117,7 @@ export class ListInstancesResponseBodyInstancesReplicationConfiguration extends
117
117
  export class ListInstancesResponseBodyInstances extends $dara.Model {
118
118
  /**
119
119
  * @remarks
120
- * The instance creation time, in UNIX timestamp format. Unit: milliseconds.
120
+ * The time when the instance was created. The value is a UNIX timestamp in milliseconds.
121
121
  *
122
122
  * @example
123
123
  * 1550115455000
@@ -170,7 +170,7 @@ export class ListInstancesResponseBodyInstances extends $dara.Model {
170
170
  instanceId?: string;
171
171
  /**
172
172
  * @remarks
173
- * The service code of the Alibaba Cloud service that manages the instance.
173
+ * The service code of the cloud service that manages the instance.
174
174
  *
175
175
  * @example
176
176
  * sase
@@ -183,7 +183,7 @@ export class ListInstancesResponseBodyInstances extends $dara.Model {
183
183
  replicationConfiguration?: ListInstancesResponseBodyInstancesReplicationConfiguration;
184
184
  /**
185
185
  * @remarks
186
- * Indicates whether the instance is managed by an Alibaba Cloud service.
186
+ * Indicates whether the instance is managed by a cloud service.
187
187
  *
188
188
  * @example
189
189
  * true
@@ -16,6 +16,8 @@ export { CreateApplicationFederatedCredentialRequestOidcVerificationConfigKubern
16
16
  export { CreateApplicationFederatedCredentialRequestOidcVerificationConfig } from './CreateApplicationFederatedCredentialRequest';
17
17
  export { CreateApplicationFederatedCredentialRequestPkcs7VerificationConfig } from './CreateApplicationFederatedCredentialRequest';
18
18
  export { CreateApplicationTokenResponseBodyApplicationTokens } from './CreateApplicationTokenResponseBody';
19
+ export { CreateAuthorizationResourceRequestConditionCredentialCondition } from './CreateAuthorizationResourceRequest';
20
+ export { CreateAuthorizationResourceRequestCondition } from './CreateAuthorizationResourceRequest';
19
21
  export { CreateConditionalAccessPolicyRequestConditionsConfigApplications } from './CreateConditionalAccessPolicyRequest';
20
22
  export { CreateConditionalAccessPolicyRequestConditionsConfigNetworkZones } from './CreateConditionalAccessPolicyRequest';
21
23
  export { CreateConditionalAccessPolicyRequestConditionsConfigUsers } from './CreateConditionalAccessPolicyRequest';
@@ -96,6 +98,8 @@ export { GetApplicationSsoConfigResponseBodyApplicationSsoConfigSamlSsoConfig }
96
98
  export { GetApplicationSsoConfigResponseBodyApplicationSsoConfig } from './GetApplicationSsoConfigResponseBody';
97
99
  export { GetApplicationTemplateResponseBodyApplicationTemplateSaleInfo } from './GetApplicationTemplateResponseBody';
98
100
  export { GetApplicationTemplateResponseBodyApplicationTemplate } from './GetApplicationTemplateResponseBody';
101
+ export { GetAuthorizationResourceResponseBodyAuthorizationResourceConditionCredentialCondition } from './GetAuthorizationResourceResponseBody';
102
+ export { GetAuthorizationResourceResponseBodyAuthorizationResourceCondition } from './GetAuthorizationResourceResponseBody';
99
103
  export { GetAuthorizationResourceResponseBodyAuthorizationResource } from './GetAuthorizationResourceResponseBody';
100
104
  export { GetAuthorizationRuleResponseBodyAuthorizationRule } from './GetAuthorizationRuleResponseBody';
101
105
  export { GetAuthorizationServerResponseBodyAuthorizationServerProtocolEndpoint } from './GetAuthorizationServerResponseBody';
@@ -272,6 +276,8 @@ export { ListApplicationsForOrganizationalUnitResponseBodyApplications } from '.
272
276
  export { ListApplicationsForUserResponseBodyApplicationsApplicationRoles } from './ListApplicationsForUserResponseBody';
273
277
  export { ListApplicationsForUserResponseBodyApplications } from './ListApplicationsForUserResponseBody';
274
278
  export { ListAuthorizationResourcesRequestFilter } from './ListAuthorizationResourcesRequest';
279
+ export { ListAuthorizationResourcesResponseBodyAuthorizationResourcesConditionCredentialCondition } from './ListAuthorizationResourcesResponseBody';
280
+ export { ListAuthorizationResourcesResponseBodyAuthorizationResourcesCondition } from './ListAuthorizationResourcesResponseBody';
275
281
  export { ListAuthorizationResourcesResponseBodyAuthorizationResources } from './ListAuthorizationResourcesResponseBody';
276
282
  export { ListAuthorizationRulesRequestFilter } from './ListAuthorizationRulesRequest';
277
283
  export { ListAuthorizationRulesResponseBodyAuthorizationRules } from './ListAuthorizationRulesResponseBody';