@alicloud/eiam20211201 2.17.8 → 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.
- package/dist/client.d.ts +19 -4
- package/dist/client.js +55 -4
- package/dist/client.js.map +1 -1
- package/dist/models/CreateAuthorizationResourceRequest.d.ts +42 -2
- package/dist/models/CreateAuthorizationResourceRequest.js +47 -1
- package/dist/models/CreateAuthorizationResourceRequest.js.map +1 -1
- package/dist/models/CreateInstanceRequest.d.ts +8 -0
- package/dist/models/CreateInstanceRequest.js +2 -0
- package/dist/models/CreateInstanceRequest.js.map +1 -1
- package/dist/models/CreateInstanceResponseBody.d.ts +1 -1
- package/dist/models/ExecuteInstanceFailoverRequest.d.ts +35 -0
- package/dist/models/ExecuteInstanceFailoverRequest.js +60 -0
- package/dist/models/ExecuteInstanceFailoverRequest.js.map +1 -0
- package/dist/models/ExecuteInstanceFailoverResponse.d.ts +19 -0
- package/dist/models/ExecuteInstanceFailoverResponse.js +69 -0
- package/dist/models/ExecuteInstanceFailoverResponse.js.map +1 -0
- package/dist/models/ExecuteInstanceFailoverResponseBody.d.ts +21 -0
- package/dist/models/ExecuteInstanceFailoverResponseBody.js +58 -0
- package/dist/models/ExecuteInstanceFailoverResponseBody.js.map +1 -0
- package/dist/models/GetAuthorizationResourceResponseBody.d.ts +59 -5
- package/dist/models/GetAuthorizationResourceResponseBody.js +51 -1
- package/dist/models/GetAuthorizationResourceResponseBody.js.map +1 -1
- package/dist/models/ListAuthorizationResourcesRequest.d.ts +7 -7
- package/dist/models/ListAuthorizationResourcesResponseBody.d.ts +60 -5
- package/dist/models/ListAuthorizationResourcesResponseBody.js +51 -1
- package/dist/models/ListAuthorizationResourcesResponseBody.js.map +1 -1
- package/dist/models/ListInstancesRequest.d.ts +15 -0
- package/dist/models/ListInstancesRequest.js +2 -0
- package/dist/models/ListInstancesRequest.js.map +1 -1
- package/dist/models/ListInstancesResponseBody.d.ts +4 -4
- package/dist/models/UpdateCredentialProviderRequest.d.ts +45 -12
- package/dist/models/UpdateCredentialProviderRequest.js.map +1 -1
- package/dist/models/model.d.ts +9 -0
- package/dist/models/model.js +57 -39
- package/dist/models/model.js.map +1 -1
- package/package.json +1 -1
- package/src/client.ts +62 -4
- package/src/models/CreateAuthorizationResourceRequest.ts +70 -2
- package/src/models/CreateInstanceRequest.ts +10 -0
- package/src/models/CreateInstanceResponseBody.ts +1 -1
- package/src/models/ExecuteInstanceFailoverRequest.ts +50 -0
- package/src/models/ExecuteInstanceFailoverResponse.ts +40 -0
- package/src/models/ExecuteInstanceFailoverResponseBody.ts +34 -0
- package/src/models/GetAuthorizationResourceResponseBody.ts +91 -5
- package/src/models/ListAuthorizationResourcesRequest.ts +7 -7
- package/src/models/ListAuthorizationResourcesResponseBody.ts +92 -5
- package/src/models/ListInstancesRequest.ts +17 -0
- package/src/models/ListInstancesResponseBody.ts +4 -4
- package/src/models/UpdateCredentialProviderRequest.ts +45 -12
- package/src/models/model.ts +9 -0
|
@@ -1,4 +1,38 @@
|
|
|
1
1
|
import * as $dara from '@darabonba/typescript';
|
|
2
|
+
export declare class CreateAuthorizationResourceRequestConditionCredentialCondition extends $dara.Model {
|
|
3
|
+
/**
|
|
4
|
+
* @remarks
|
|
5
|
+
* Specifies whether same-name identity accounts are supported.
|
|
6
|
+
*/
|
|
7
|
+
allowSameNameIdentity?: boolean;
|
|
8
|
+
static names(): {
|
|
9
|
+
[key: string]: string;
|
|
10
|
+
};
|
|
11
|
+
static types(): {
|
|
12
|
+
[key: string]: any;
|
|
13
|
+
};
|
|
14
|
+
validate(): void;
|
|
15
|
+
constructor(map?: {
|
|
16
|
+
[key: string]: any;
|
|
17
|
+
});
|
|
18
|
+
}
|
|
19
|
+
export declare class CreateAuthorizationResourceRequestCondition extends $dara.Model {
|
|
20
|
+
/**
|
|
21
|
+
* @remarks
|
|
22
|
+
* The effective condition when used as a credential.
|
|
23
|
+
*/
|
|
24
|
+
credentialCondition?: CreateAuthorizationResourceRequestConditionCredentialCondition;
|
|
25
|
+
static names(): {
|
|
26
|
+
[key: string]: string;
|
|
27
|
+
};
|
|
28
|
+
static types(): {
|
|
29
|
+
[key: string]: any;
|
|
30
|
+
};
|
|
31
|
+
validate(): void;
|
|
32
|
+
constructor(map?: {
|
|
33
|
+
[key: string]: any;
|
|
34
|
+
});
|
|
35
|
+
}
|
|
2
36
|
export declare class CreateAuthorizationResourceRequest extends $dara.Model {
|
|
3
37
|
/**
|
|
4
38
|
* @remarks
|
|
@@ -13,7 +47,8 @@ export declare class CreateAuthorizationResourceRequest extends $dara.Model {
|
|
|
13
47
|
/**
|
|
14
48
|
* @remarks
|
|
15
49
|
* The type of the resource entity associated with the authorization resource. Valid values:
|
|
16
|
-
*
|
|
50
|
+
*
|
|
51
|
+
* - cloud_account_role: cloud role
|
|
17
52
|
*
|
|
18
53
|
* This parameter is required.
|
|
19
54
|
*
|
|
@@ -33,7 +68,7 @@ export declare class CreateAuthorizationResourceRequest extends $dara.Model {
|
|
|
33
68
|
authorizationRuleId?: string;
|
|
34
69
|
/**
|
|
35
70
|
* @remarks
|
|
36
|
-
* The client token that is used to ensure the idempotence of the request. You can use the client to generate a parameter value, but make sure that the value is unique among different requests. The
|
|
71
|
+
* The client token that is used to ensure the idempotence of the request. You can use the client to generate a parameter value, but you must make sure that the value is unique among different requests. The ClientToken value can contain only ASCII characters and cannot exceed 64 characters in length. For more information, see References [How to ensure idempotence](https://www.alibabacloud.com/help/zh/ecs/developer-reference/how-to-ensure-idempotence).
|
|
37
72
|
*
|
|
38
73
|
* This parameter is required.
|
|
39
74
|
*
|
|
@@ -41,6 +76,11 @@ export declare class CreateAuthorizationResourceRequest extends $dara.Model {
|
|
|
41
76
|
* client-token-example
|
|
42
77
|
*/
|
|
43
78
|
clientToken?: string;
|
|
79
|
+
/**
|
|
80
|
+
* @remarks
|
|
81
|
+
* The effective condition.
|
|
82
|
+
*/
|
|
83
|
+
condition?: CreateAuthorizationResourceRequestCondition;
|
|
44
84
|
/**
|
|
45
85
|
* @remarks
|
|
46
86
|
* The instance ID.
|
|
@@ -33,9 +33,50 @@ var __importStar = (this && this.__importStar) || (function () {
|
|
|
33
33
|
};
|
|
34
34
|
})();
|
|
35
35
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
36
|
-
exports.CreateAuthorizationResourceRequest = void 0;
|
|
36
|
+
exports.CreateAuthorizationResourceRequest = exports.CreateAuthorizationResourceRequestCondition = exports.CreateAuthorizationResourceRequestConditionCredentialCondition = void 0;
|
|
37
37
|
// This file is auto-generated, don't edit it
|
|
38
38
|
const $dara = __importStar(require("@darabonba/typescript"));
|
|
39
|
+
class CreateAuthorizationResourceRequestConditionCredentialCondition extends $dara.Model {
|
|
40
|
+
static names() {
|
|
41
|
+
return {
|
|
42
|
+
allowSameNameIdentity: 'AllowSameNameIdentity',
|
|
43
|
+
};
|
|
44
|
+
}
|
|
45
|
+
static types() {
|
|
46
|
+
return {
|
|
47
|
+
allowSameNameIdentity: 'boolean',
|
|
48
|
+
};
|
|
49
|
+
}
|
|
50
|
+
validate() {
|
|
51
|
+
super.validate();
|
|
52
|
+
}
|
|
53
|
+
constructor(map) {
|
|
54
|
+
super(map);
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
exports.CreateAuthorizationResourceRequestConditionCredentialCondition = CreateAuthorizationResourceRequestConditionCredentialCondition;
|
|
58
|
+
class CreateAuthorizationResourceRequestCondition extends $dara.Model {
|
|
59
|
+
static names() {
|
|
60
|
+
return {
|
|
61
|
+
credentialCondition: 'CredentialCondition',
|
|
62
|
+
};
|
|
63
|
+
}
|
|
64
|
+
static types() {
|
|
65
|
+
return {
|
|
66
|
+
credentialCondition: CreateAuthorizationResourceRequestConditionCredentialCondition,
|
|
67
|
+
};
|
|
68
|
+
}
|
|
69
|
+
validate() {
|
|
70
|
+
if (this.credentialCondition && typeof this.credentialCondition.validate === 'function') {
|
|
71
|
+
this.credentialCondition.validate();
|
|
72
|
+
}
|
|
73
|
+
super.validate();
|
|
74
|
+
}
|
|
75
|
+
constructor(map) {
|
|
76
|
+
super(map);
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
exports.CreateAuthorizationResourceRequestCondition = CreateAuthorizationResourceRequestCondition;
|
|
39
80
|
class CreateAuthorizationResourceRequest extends $dara.Model {
|
|
40
81
|
static names() {
|
|
41
82
|
return {
|
|
@@ -43,6 +84,7 @@ class CreateAuthorizationResourceRequest extends $dara.Model {
|
|
|
43
84
|
authorizationResourceEntityType: 'AuthorizationResourceEntityType',
|
|
44
85
|
authorizationRuleId: 'AuthorizationRuleId',
|
|
45
86
|
clientToken: 'ClientToken',
|
|
87
|
+
condition: 'Condition',
|
|
46
88
|
instanceId: 'InstanceId',
|
|
47
89
|
};
|
|
48
90
|
}
|
|
@@ -52,10 +94,14 @@ class CreateAuthorizationResourceRequest extends $dara.Model {
|
|
|
52
94
|
authorizationResourceEntityType: 'string',
|
|
53
95
|
authorizationRuleId: 'string',
|
|
54
96
|
clientToken: 'string',
|
|
97
|
+
condition: CreateAuthorizationResourceRequestCondition,
|
|
55
98
|
instanceId: 'string',
|
|
56
99
|
};
|
|
57
100
|
}
|
|
58
101
|
validate() {
|
|
102
|
+
if (this.condition && typeof this.condition.validate === 'function') {
|
|
103
|
+
this.condition.validate();
|
|
104
|
+
}
|
|
59
105
|
super.validate();
|
|
60
106
|
}
|
|
61
107
|
constructor(map) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CreateAuthorizationResourceRequest.js","sourceRoot":"","sources":["../../src/models/CreateAuthorizationResourceRequest.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA6C;AAC7C,6DAA+C;AAG/C,MAAa,kCAAmC,SAAQ,KAAK,CAAC,KAAK;
|
|
1
|
+
{"version":3,"file":"CreateAuthorizationResourceRequest.js","sourceRoot":"","sources":["../../src/models/CreateAuthorizationResourceRequest.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA6C;AAC7C,6DAA+C;AAG/C,MAAa,8DAA+D,SAAQ,KAAK,CAAC,KAAK;IAM7F,MAAM,CAAC,KAAK;QACV,OAAO;YACL,qBAAqB,EAAE,uBAAuB;SAC/C,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,KAAK;QACV,OAAO;YACL,qBAAqB,EAAE,SAAS;SACjC,CAAC;IACJ,CAAC;IAED,QAAQ;QACN,KAAK,CAAC,QAAQ,EAAE,CAAC;IACnB,CAAC;IAED,YAAY,GAA4B;QACtC,KAAK,CAAC,GAAG,CAAC,CAAC;IACb,CAAC;CACF;AAzBD,wIAyBC;AAED,MAAa,2CAA4C,SAAQ,KAAK,CAAC,KAAK;IAM1E,MAAM,CAAC,KAAK;QACV,OAAO;YACL,mBAAmB,EAAE,qBAAqB;SAC3C,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,KAAK;QACV,OAAO;YACL,mBAAmB,EAAE,8DAA8D;SACpF,CAAC;IACJ,CAAC;IAED,QAAQ;QACN,IAAG,IAAI,CAAC,mBAAmB,IAAI,OAAQ,IAAI,CAAC,mBAA2B,CAAC,QAAQ,KAAK,UAAU,EAAE,CAAC;YAC/F,IAAI,CAAC,mBAA2B,CAAC,QAAQ,EAAE,CAAC;QAC/C,CAAC;QACD,KAAK,CAAC,QAAQ,EAAE,CAAC;IACnB,CAAC;IAED,YAAY,GAA4B;QACtC,KAAK,CAAC,GAAG,CAAC,CAAC;IACb,CAAC;CACF;AA5BD,kGA4BC;AAED,MAAa,kCAAmC,SAAQ,KAAK,CAAC,KAAK;IA0DjE,MAAM,CAAC,KAAK;QACV,OAAO;YACL,6BAA6B,EAAE,+BAA+B;YAC9D,+BAA+B,EAAE,iCAAiC;YAClE,mBAAmB,EAAE,qBAAqB;YAC1C,WAAW,EAAE,aAAa;YAC1B,SAAS,EAAE,WAAW;YACtB,UAAU,EAAE,YAAY;SACzB,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,KAAK;QACV,OAAO;YACL,6BAA6B,EAAE,QAAQ;YACvC,+BAA+B,EAAE,QAAQ;YACzC,mBAAmB,EAAE,QAAQ;YAC7B,WAAW,EAAE,QAAQ;YACrB,SAAS,EAAE,2CAA2C;YACtD,UAAU,EAAE,QAAQ;SACrB,CAAC;IACJ,CAAC;IAED,QAAQ;QACN,IAAG,IAAI,CAAC,SAAS,IAAI,OAAQ,IAAI,CAAC,SAAiB,CAAC,QAAQ,KAAK,UAAU,EAAE,CAAC;YAC3E,IAAI,CAAC,SAAiB,CAAC,QAAQ,EAAE,CAAC;QACrC,CAAC;QACD,KAAK,CAAC,QAAQ,EAAE,CAAC;IACnB,CAAC;IAED,YAAY,GAA4B;QACtC,KAAK,CAAC,GAAG,CAAC,CAAC;IACb,CAAC;CACF;AA1FD,gFA0FC"}
|
|
@@ -1,5 +1,13 @@
|
|
|
1
1
|
import * as $dara from '@darabonba/typescript';
|
|
2
2
|
export declare class CreateInstanceRequest extends $dara.Model {
|
|
3
|
+
/**
|
|
4
|
+
* @remarks
|
|
5
|
+
* The client token that is used to ensure the idempotence of the request. Generate a parameter value from your client to ensure that the value is unique among different requests. The ClientToken value supports only ASCII characters and cannot exceed 64 characters in length. If you retry a request with the same ClientToken value, the complete response of the initial call is returned without creating a duplicate instance.
|
|
6
|
+
*
|
|
7
|
+
* @example
|
|
8
|
+
* client-token-example
|
|
9
|
+
*/
|
|
10
|
+
clientToken?: string;
|
|
3
11
|
/**
|
|
4
12
|
* @remarks
|
|
5
13
|
* The description of the instance. The description can be up to 128 characters in length.
|
|
@@ -39,11 +39,13 @@ const $dara = __importStar(require("@darabonba/typescript"));
|
|
|
39
39
|
class CreateInstanceRequest extends $dara.Model {
|
|
40
40
|
static names() {
|
|
41
41
|
return {
|
|
42
|
+
clientToken: 'ClientToken',
|
|
42
43
|
description: 'Description',
|
|
43
44
|
};
|
|
44
45
|
}
|
|
45
46
|
static types() {
|
|
46
47
|
return {
|
|
48
|
+
clientToken: 'string',
|
|
47
49
|
description: 'string',
|
|
48
50
|
};
|
|
49
51
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CreateInstanceRequest.js","sourceRoot":"","sources":["../../src/models/CreateInstanceRequest.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA6C;AAC7C,6DAA+C;AAG/C,MAAa,qBAAsB,SAAQ,KAAK,CAAC,KAAK;
|
|
1
|
+
{"version":3,"file":"CreateInstanceRequest.js","sourceRoot":"","sources":["../../src/models/CreateInstanceRequest.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA6C;AAC7C,6DAA+C;AAG/C,MAAa,qBAAsB,SAAQ,KAAK,CAAC,KAAK;IAiBpD,MAAM,CAAC,KAAK;QACV,OAAO;YACL,WAAW,EAAE,aAAa;YAC1B,WAAW,EAAE,aAAa;SAC3B,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,KAAK;QACV,OAAO;YACL,WAAW,EAAE,QAAQ;YACrB,WAAW,EAAE,QAAQ;SACtB,CAAC;IACJ,CAAC;IAED,QAAQ;QACN,KAAK,CAAC,QAAQ,EAAE,CAAC;IACnB,CAAC;IAED,YAAY,GAA4B;QACtC,KAAK,CAAC,GAAG,CAAC,CAAC;IACb,CAAC;CACF;AAtCD,sDAsCC"}
|
|
@@ -2,7 +2,7 @@ import * as $dara from '@darabonba/typescript';
|
|
|
2
2
|
export declare class CreateInstanceResponseBody extends $dara.Model {
|
|
3
3
|
/**
|
|
4
4
|
* @remarks
|
|
5
|
-
* The ID of the instance
|
|
5
|
+
* The ID of the instance created by this API call.
|
|
6
6
|
*
|
|
7
7
|
* @example
|
|
8
8
|
* idaas_wj5htncdvoc4q5xxxxxxxxx
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import * as $dara from '@darabonba/typescript';
|
|
2
|
+
export declare class ExecuteInstanceFailoverRequest extends $dara.Model {
|
|
3
|
+
/**
|
|
4
|
+
* @remarks
|
|
5
|
+
* The failover status. Valid values:
|
|
6
|
+
* - inactive: The primary instance is active.
|
|
7
|
+
* - active: The replica instance is active.
|
|
8
|
+
*
|
|
9
|
+
* This parameter is required.
|
|
10
|
+
*
|
|
11
|
+
* @example
|
|
12
|
+
* active
|
|
13
|
+
*/
|
|
14
|
+
instanceFailoverStatus?: string;
|
|
15
|
+
/**
|
|
16
|
+
* @remarks
|
|
17
|
+
* The replica instance ID.
|
|
18
|
+
*
|
|
19
|
+
* This parameter is required.
|
|
20
|
+
*
|
|
21
|
+
* @example
|
|
22
|
+
* idaas_xxx
|
|
23
|
+
*/
|
|
24
|
+
instanceId?: string;
|
|
25
|
+
static names(): {
|
|
26
|
+
[key: string]: string;
|
|
27
|
+
};
|
|
28
|
+
static types(): {
|
|
29
|
+
[key: string]: any;
|
|
30
|
+
};
|
|
31
|
+
validate(): void;
|
|
32
|
+
constructor(map?: {
|
|
33
|
+
[key: string]: any;
|
|
34
|
+
});
|
|
35
|
+
}
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
+
}) : function(o, v) {
|
|
16
|
+
o["default"] = v;
|
|
17
|
+
});
|
|
18
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
19
|
+
var ownKeys = function(o) {
|
|
20
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
21
|
+
var ar = [];
|
|
22
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
23
|
+
return ar;
|
|
24
|
+
};
|
|
25
|
+
return ownKeys(o);
|
|
26
|
+
};
|
|
27
|
+
return function (mod) {
|
|
28
|
+
if (mod && mod.__esModule) return mod;
|
|
29
|
+
var result = {};
|
|
30
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
31
|
+
__setModuleDefault(result, mod);
|
|
32
|
+
return result;
|
|
33
|
+
};
|
|
34
|
+
})();
|
|
35
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
36
|
+
exports.ExecuteInstanceFailoverRequest = void 0;
|
|
37
|
+
// This file is auto-generated, don't edit it
|
|
38
|
+
const $dara = __importStar(require("@darabonba/typescript"));
|
|
39
|
+
class ExecuteInstanceFailoverRequest extends $dara.Model {
|
|
40
|
+
static names() {
|
|
41
|
+
return {
|
|
42
|
+
instanceFailoverStatus: 'InstanceFailoverStatus',
|
|
43
|
+
instanceId: 'InstanceId',
|
|
44
|
+
};
|
|
45
|
+
}
|
|
46
|
+
static types() {
|
|
47
|
+
return {
|
|
48
|
+
instanceFailoverStatus: 'string',
|
|
49
|
+
instanceId: 'string',
|
|
50
|
+
};
|
|
51
|
+
}
|
|
52
|
+
validate() {
|
|
53
|
+
super.validate();
|
|
54
|
+
}
|
|
55
|
+
constructor(map) {
|
|
56
|
+
super(map);
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
exports.ExecuteInstanceFailoverRequest = ExecuteInstanceFailoverRequest;
|
|
60
|
+
//# sourceMappingURL=ExecuteInstanceFailoverRequest.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ExecuteInstanceFailoverRequest.js","sourceRoot":"","sources":["../../src/models/ExecuteInstanceFailoverRequest.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA6C;AAC7C,6DAA+C;AAG/C,MAAa,8BAA+B,SAAQ,KAAK,CAAC,KAAK;IAuB7D,MAAM,CAAC,KAAK;QACV,OAAO;YACL,sBAAsB,EAAE,wBAAwB;YAChD,UAAU,EAAE,YAAY;SACzB,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,KAAK;QACV,OAAO;YACL,sBAAsB,EAAE,QAAQ;YAChC,UAAU,EAAE,QAAQ;SACrB,CAAC;IACJ,CAAC;IAED,QAAQ;QACN,KAAK,CAAC,QAAQ,EAAE,CAAC;IACnB,CAAC;IAED,YAAY,GAA4B;QACtC,KAAK,CAAC,GAAG,CAAC,CAAC;IACb,CAAC;CACF;AA5CD,wEA4CC"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import * as $dara from '@darabonba/typescript';
|
|
2
|
+
import { ExecuteInstanceFailoverResponseBody } from "./ExecuteInstanceFailoverResponseBody";
|
|
3
|
+
export declare class ExecuteInstanceFailoverResponse extends $dara.Model {
|
|
4
|
+
headers?: {
|
|
5
|
+
[key: string]: string;
|
|
6
|
+
};
|
|
7
|
+
statusCode?: number;
|
|
8
|
+
body?: ExecuteInstanceFailoverResponseBody;
|
|
9
|
+
static names(): {
|
|
10
|
+
[key: string]: string;
|
|
11
|
+
};
|
|
12
|
+
static types(): {
|
|
13
|
+
[key: string]: any;
|
|
14
|
+
};
|
|
15
|
+
validate(): void;
|
|
16
|
+
constructor(map?: {
|
|
17
|
+
[key: string]: any;
|
|
18
|
+
});
|
|
19
|
+
}
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
+
}) : function(o, v) {
|
|
16
|
+
o["default"] = v;
|
|
17
|
+
});
|
|
18
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
19
|
+
var ownKeys = function(o) {
|
|
20
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
21
|
+
var ar = [];
|
|
22
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
23
|
+
return ar;
|
|
24
|
+
};
|
|
25
|
+
return ownKeys(o);
|
|
26
|
+
};
|
|
27
|
+
return function (mod) {
|
|
28
|
+
if (mod && mod.__esModule) return mod;
|
|
29
|
+
var result = {};
|
|
30
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
31
|
+
__setModuleDefault(result, mod);
|
|
32
|
+
return result;
|
|
33
|
+
};
|
|
34
|
+
})();
|
|
35
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
36
|
+
exports.ExecuteInstanceFailoverResponse = void 0;
|
|
37
|
+
// This file is auto-generated, don't edit it
|
|
38
|
+
const $dara = __importStar(require("@darabonba/typescript"));
|
|
39
|
+
const ExecuteInstanceFailoverResponseBody_1 = require("./ExecuteInstanceFailoverResponseBody");
|
|
40
|
+
class ExecuteInstanceFailoverResponse extends $dara.Model {
|
|
41
|
+
static names() {
|
|
42
|
+
return {
|
|
43
|
+
headers: 'headers',
|
|
44
|
+
statusCode: 'statusCode',
|
|
45
|
+
body: 'body',
|
|
46
|
+
};
|
|
47
|
+
}
|
|
48
|
+
static types() {
|
|
49
|
+
return {
|
|
50
|
+
headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
|
|
51
|
+
statusCode: 'number',
|
|
52
|
+
body: ExecuteInstanceFailoverResponseBody_1.ExecuteInstanceFailoverResponseBody,
|
|
53
|
+
};
|
|
54
|
+
}
|
|
55
|
+
validate() {
|
|
56
|
+
if (this.headers) {
|
|
57
|
+
$dara.Model.validateMap(this.headers);
|
|
58
|
+
}
|
|
59
|
+
if (this.body && typeof this.body.validate === 'function') {
|
|
60
|
+
this.body.validate();
|
|
61
|
+
}
|
|
62
|
+
super.validate();
|
|
63
|
+
}
|
|
64
|
+
constructor(map) {
|
|
65
|
+
super(map);
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
exports.ExecuteInstanceFailoverResponse = ExecuteInstanceFailoverResponse;
|
|
69
|
+
//# sourceMappingURL=ExecuteInstanceFailoverResponse.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ExecuteInstanceFailoverResponse.js","sourceRoot":"","sources":["../../src/models/ExecuteInstanceFailoverResponse.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA6C;AAC7C,6DAA+C;AAC/C,+FAA4F;AAG5F,MAAa,+BAAgC,SAAQ,KAAK,CAAC,KAAK;IAI9D,MAAM,CAAC,KAAK;QACV,OAAO;YACL,OAAO,EAAE,SAAS;YAClB,UAAU,EAAE,YAAY;YACxB,IAAI,EAAE,MAAM;SACb,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,KAAK;QACV,OAAO;YACL,OAAO,EAAE,EAAE,MAAM,EAAE,KAAK,EAAE,SAAS,EAAE,QAAQ,EAAE,WAAW,EAAE,QAAQ,EAAE;YACtE,UAAU,EAAE,QAAQ;YACpB,IAAI,EAAE,yEAAmC;SAC1C,CAAC;IACJ,CAAC;IAED,QAAQ;QACN,IAAG,IAAI,CAAC,OAAO,EAAE,CAAC;YAChB,KAAK,CAAC,KAAK,CAAC,WAAW,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QACxC,CAAC;QACD,IAAG,IAAI,CAAC,IAAI,IAAI,OAAQ,IAAI,CAAC,IAAY,CAAC,QAAQ,KAAK,UAAU,EAAE,CAAC;YACjE,IAAI,CAAC,IAAY,CAAC,QAAQ,EAAE,CAAC;QAChC,CAAC;QACD,KAAK,CAAC,QAAQ,EAAE,CAAC;IACnB,CAAC;IAED,YAAY,GAA4B;QACtC,KAAK,CAAC,GAAG,CAAC,CAAC;IACb,CAAC;CACF;AAjCD,0EAiCC"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import * as $dara from '@darabonba/typescript';
|
|
2
|
+
export declare class ExecuteInstanceFailoverResponseBody extends $dara.Model {
|
|
3
|
+
/**
|
|
4
|
+
* @remarks
|
|
5
|
+
* The request ID.
|
|
6
|
+
*
|
|
7
|
+
* @example
|
|
8
|
+
* 0441BD79-92F3-53AA-8657-F8CE4A2B912A
|
|
9
|
+
*/
|
|
10
|
+
requestId?: string;
|
|
11
|
+
static names(): {
|
|
12
|
+
[key: string]: string;
|
|
13
|
+
};
|
|
14
|
+
static types(): {
|
|
15
|
+
[key: string]: any;
|
|
16
|
+
};
|
|
17
|
+
validate(): void;
|
|
18
|
+
constructor(map?: {
|
|
19
|
+
[key: string]: any;
|
|
20
|
+
});
|
|
21
|
+
}
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
+
}) : function(o, v) {
|
|
16
|
+
o["default"] = v;
|
|
17
|
+
});
|
|
18
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
19
|
+
var ownKeys = function(o) {
|
|
20
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
21
|
+
var ar = [];
|
|
22
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
23
|
+
return ar;
|
|
24
|
+
};
|
|
25
|
+
return ownKeys(o);
|
|
26
|
+
};
|
|
27
|
+
return function (mod) {
|
|
28
|
+
if (mod && mod.__esModule) return mod;
|
|
29
|
+
var result = {};
|
|
30
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
31
|
+
__setModuleDefault(result, mod);
|
|
32
|
+
return result;
|
|
33
|
+
};
|
|
34
|
+
})();
|
|
35
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
36
|
+
exports.ExecuteInstanceFailoverResponseBody = void 0;
|
|
37
|
+
// This file is auto-generated, don't edit it
|
|
38
|
+
const $dara = __importStar(require("@darabonba/typescript"));
|
|
39
|
+
class ExecuteInstanceFailoverResponseBody extends $dara.Model {
|
|
40
|
+
static names() {
|
|
41
|
+
return {
|
|
42
|
+
requestId: 'RequestId',
|
|
43
|
+
};
|
|
44
|
+
}
|
|
45
|
+
static types() {
|
|
46
|
+
return {
|
|
47
|
+
requestId: 'string',
|
|
48
|
+
};
|
|
49
|
+
}
|
|
50
|
+
validate() {
|
|
51
|
+
super.validate();
|
|
52
|
+
}
|
|
53
|
+
constructor(map) {
|
|
54
|
+
super(map);
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
exports.ExecuteInstanceFailoverResponseBody = ExecuteInstanceFailoverResponseBody;
|
|
58
|
+
//# sourceMappingURL=ExecuteInstanceFailoverResponseBody.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ExecuteInstanceFailoverResponseBody.js","sourceRoot":"","sources":["../../src/models/ExecuteInstanceFailoverResponseBody.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA6C;AAC7C,6DAA+C;AAG/C,MAAa,mCAAoC,SAAQ,KAAK,CAAC,KAAK;IASlE,MAAM,CAAC,KAAK;QACV,OAAO;YACL,SAAS,EAAE,WAAW;SACvB,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,KAAK;QACV,OAAO;YACL,SAAS,EAAE,QAAQ;SACpB,CAAC;IACJ,CAAC;IAED,QAAQ;QACN,KAAK,CAAC,QAAQ,EAAE,CAAC;IACnB,CAAC;IAED,YAAY,GAA4B;QACtC,KAAK,CAAC,GAAG,CAAC,CAAC;IACb,CAAC;CACF;AA5BD,kFA4BC"}
|
|
@@ -1,8 +1,42 @@
|
|
|
1
1
|
import * as $dara from '@darabonba/typescript';
|
|
2
|
+
export declare class GetAuthorizationResourceResponseBodyAuthorizationResourceConditionCredentialCondition extends $dara.Model {
|
|
3
|
+
/**
|
|
4
|
+
* @remarks
|
|
5
|
+
* Specifies whether same-name identity accounts are supported.
|
|
6
|
+
*/
|
|
7
|
+
allowSameNameIdentity?: boolean;
|
|
8
|
+
static names(): {
|
|
9
|
+
[key: string]: string;
|
|
10
|
+
};
|
|
11
|
+
static types(): {
|
|
12
|
+
[key: string]: any;
|
|
13
|
+
};
|
|
14
|
+
validate(): void;
|
|
15
|
+
constructor(map?: {
|
|
16
|
+
[key: string]: any;
|
|
17
|
+
});
|
|
18
|
+
}
|
|
19
|
+
export declare class GetAuthorizationResourceResponseBodyAuthorizationResourceCondition extends $dara.Model {
|
|
20
|
+
/**
|
|
21
|
+
* @remarks
|
|
22
|
+
* The credential condition.
|
|
23
|
+
*/
|
|
24
|
+
credentialCondition?: GetAuthorizationResourceResponseBodyAuthorizationResourceConditionCredentialCondition;
|
|
25
|
+
static names(): {
|
|
26
|
+
[key: string]: string;
|
|
27
|
+
};
|
|
28
|
+
static types(): {
|
|
29
|
+
[key: string]: any;
|
|
30
|
+
};
|
|
31
|
+
validate(): void;
|
|
32
|
+
constructor(map?: {
|
|
33
|
+
[key: string]: any;
|
|
34
|
+
});
|
|
35
|
+
}
|
|
2
36
|
export declare class GetAuthorizationResourceResponseBodyAuthorizationResource extends $dara.Model {
|
|
3
37
|
/**
|
|
4
38
|
* @remarks
|
|
5
|
-
* The
|
|
39
|
+
* The resource entity ID associated with the authorization resource.
|
|
6
40
|
*
|
|
7
41
|
* @example
|
|
8
42
|
* carole_01kmek49aqxxxx
|
|
@@ -10,8 +44,7 @@ export declare class GetAuthorizationResourceResponseBodyAuthorizationResource e
|
|
|
10
44
|
authorizationResourceEntityId?: string;
|
|
11
45
|
/**
|
|
12
46
|
* @remarks
|
|
13
|
-
* The
|
|
14
|
-
*
|
|
47
|
+
* The resource entity type associated with the authorization resource. Valid values:
|
|
15
48
|
* - cloud_account_role: cloud role.
|
|
16
49
|
*
|
|
17
50
|
* @example
|
|
@@ -36,12 +69,25 @@ export declare class GetAuthorizationResourceResponseBodyAuthorizationResource e
|
|
|
36
69
|
authorizationRuleId?: string;
|
|
37
70
|
/**
|
|
38
71
|
* @remarks
|
|
39
|
-
* The
|
|
72
|
+
* The cloud account ID to which the resource entity associated with the authorization resource belongs.
|
|
40
73
|
*
|
|
41
74
|
* @example
|
|
42
75
|
* ca_01kmegjc11qa1txxxxx
|
|
43
76
|
*/
|
|
44
77
|
cloudAccountId?: string;
|
|
78
|
+
/**
|
|
79
|
+
* @remarks
|
|
80
|
+
* The condition restriction.
|
|
81
|
+
*/
|
|
82
|
+
condition?: GetAuthorizationResourceResponseBodyAuthorizationResourceCondition;
|
|
83
|
+
/**
|
|
84
|
+
* @remarks
|
|
85
|
+
* The creation time.
|
|
86
|
+
*
|
|
87
|
+
* @example
|
|
88
|
+
* 1787023451494
|
|
89
|
+
*/
|
|
90
|
+
createTime?: number;
|
|
45
91
|
/**
|
|
46
92
|
* @remarks
|
|
47
93
|
* The instance ID.
|
|
@@ -50,6 +96,14 @@ export declare class GetAuthorizationResourceResponseBodyAuthorizationResource e
|
|
|
50
96
|
* idaas_ue2jvisn35ea5lmthk267xxxxx
|
|
51
97
|
*/
|
|
52
98
|
instanceId?: string;
|
|
99
|
+
/**
|
|
100
|
+
* @remarks
|
|
101
|
+
* The update time.
|
|
102
|
+
*
|
|
103
|
+
* @example
|
|
104
|
+
* 1787023451494
|
|
105
|
+
*/
|
|
106
|
+
updateTime?: number;
|
|
53
107
|
static names(): {
|
|
54
108
|
[key: string]: string;
|
|
55
109
|
};
|
|
@@ -64,7 +118,7 @@ export declare class GetAuthorizationResourceResponseBodyAuthorizationResource e
|
|
|
64
118
|
export declare class GetAuthorizationResourceResponseBody extends $dara.Model {
|
|
65
119
|
/**
|
|
66
120
|
* @remarks
|
|
67
|
-
* The
|
|
121
|
+
* The authorization resource.
|
|
68
122
|
*/
|
|
69
123
|
authorizationResource?: GetAuthorizationResourceResponseBodyAuthorizationResource;
|
|
70
124
|
/**
|
|
@@ -33,9 +33,50 @@ var __importStar = (this && this.__importStar) || (function () {
|
|
|
33
33
|
};
|
|
34
34
|
})();
|
|
35
35
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
36
|
-
exports.GetAuthorizationResourceResponseBody = exports.GetAuthorizationResourceResponseBodyAuthorizationResource = void 0;
|
|
36
|
+
exports.GetAuthorizationResourceResponseBody = exports.GetAuthorizationResourceResponseBodyAuthorizationResource = exports.GetAuthorizationResourceResponseBodyAuthorizationResourceCondition = exports.GetAuthorizationResourceResponseBodyAuthorizationResourceConditionCredentialCondition = void 0;
|
|
37
37
|
// This file is auto-generated, don't edit it
|
|
38
38
|
const $dara = __importStar(require("@darabonba/typescript"));
|
|
39
|
+
class GetAuthorizationResourceResponseBodyAuthorizationResourceConditionCredentialCondition extends $dara.Model {
|
|
40
|
+
static names() {
|
|
41
|
+
return {
|
|
42
|
+
allowSameNameIdentity: 'AllowSameNameIdentity',
|
|
43
|
+
};
|
|
44
|
+
}
|
|
45
|
+
static types() {
|
|
46
|
+
return {
|
|
47
|
+
allowSameNameIdentity: 'boolean',
|
|
48
|
+
};
|
|
49
|
+
}
|
|
50
|
+
validate() {
|
|
51
|
+
super.validate();
|
|
52
|
+
}
|
|
53
|
+
constructor(map) {
|
|
54
|
+
super(map);
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
exports.GetAuthorizationResourceResponseBodyAuthorizationResourceConditionCredentialCondition = GetAuthorizationResourceResponseBodyAuthorizationResourceConditionCredentialCondition;
|
|
58
|
+
class GetAuthorizationResourceResponseBodyAuthorizationResourceCondition extends $dara.Model {
|
|
59
|
+
static names() {
|
|
60
|
+
return {
|
|
61
|
+
credentialCondition: 'CredentialCondition',
|
|
62
|
+
};
|
|
63
|
+
}
|
|
64
|
+
static types() {
|
|
65
|
+
return {
|
|
66
|
+
credentialCondition: GetAuthorizationResourceResponseBodyAuthorizationResourceConditionCredentialCondition,
|
|
67
|
+
};
|
|
68
|
+
}
|
|
69
|
+
validate() {
|
|
70
|
+
if (this.credentialCondition && typeof this.credentialCondition.validate === 'function') {
|
|
71
|
+
this.credentialCondition.validate();
|
|
72
|
+
}
|
|
73
|
+
super.validate();
|
|
74
|
+
}
|
|
75
|
+
constructor(map) {
|
|
76
|
+
super(map);
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
exports.GetAuthorizationResourceResponseBodyAuthorizationResourceCondition = GetAuthorizationResourceResponseBodyAuthorizationResourceCondition;
|
|
39
80
|
class GetAuthorizationResourceResponseBodyAuthorizationResource extends $dara.Model {
|
|
40
81
|
static names() {
|
|
41
82
|
return {
|
|
@@ -44,7 +85,10 @@ class GetAuthorizationResourceResponseBodyAuthorizationResource extends $dara.Mo
|
|
|
44
85
|
authorizationResourceId: 'AuthorizationResourceId',
|
|
45
86
|
authorizationRuleId: 'AuthorizationRuleId',
|
|
46
87
|
cloudAccountId: 'CloudAccountId',
|
|
88
|
+
condition: 'Condition',
|
|
89
|
+
createTime: 'CreateTime',
|
|
47
90
|
instanceId: 'InstanceId',
|
|
91
|
+
updateTime: 'UpdateTime',
|
|
48
92
|
};
|
|
49
93
|
}
|
|
50
94
|
static types() {
|
|
@@ -54,10 +98,16 @@ class GetAuthorizationResourceResponseBodyAuthorizationResource extends $dara.Mo
|
|
|
54
98
|
authorizationResourceId: 'string',
|
|
55
99
|
authorizationRuleId: 'string',
|
|
56
100
|
cloudAccountId: 'string',
|
|
101
|
+
condition: GetAuthorizationResourceResponseBodyAuthorizationResourceCondition,
|
|
102
|
+
createTime: 'number',
|
|
57
103
|
instanceId: 'string',
|
|
104
|
+
updateTime: 'number',
|
|
58
105
|
};
|
|
59
106
|
}
|
|
60
107
|
validate() {
|
|
108
|
+
if (this.condition && typeof this.condition.validate === 'function') {
|
|
109
|
+
this.condition.validate();
|
|
110
|
+
}
|
|
61
111
|
super.validate();
|
|
62
112
|
}
|
|
63
113
|
constructor(map) {
|