@alicloud/dts20200101 1.7.1 → 1.8.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 +11 -0
- package/dist/client.js +47 -0
- package/dist/client.js.map +1 -1
- package/dist/models/PromoteToMasterRequest.d.ts +38 -0
- package/dist/models/PromoteToMasterRequest.js +66 -0
- package/dist/models/PromoteToMasterRequest.js.map +1 -0
- package/dist/models/PromoteToMasterResponse.d.ts +19 -0
- package/dist/models/PromoteToMasterResponse.js +69 -0
- package/dist/models/PromoteToMasterResponse.js.map +1 -0
- package/dist/models/PromoteToMasterResponseBody.d.ts +53 -0
- package/dist/models/PromoteToMasterResponseBody.js +72 -0
- package/dist/models/PromoteToMasterResponseBody.js.map +1 -0
- package/dist/models/model.d.ts +3 -0
- package/dist/models/model.js +9 -3
- package/dist/models/model.js.map +1 -1
- package/package.json +1 -1
- package/src/client.ts +54 -0
- package/src/models/PromoteToMasterRequest.ts +59 -0
- package/src/models/PromoteToMasterResponse.ts +40 -0
- package/src/models/PromoteToMasterResponseBody.ts +80 -0
- package/src/models/model.ts +3 -0
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
// This file is auto-generated, don't edit it
|
|
2
|
+
import * as $dara from '@darabonba/typescript';
|
|
3
|
+
import { PromoteToMasterResponseBody } from "./PromoteToMasterResponseBody";
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
export class PromoteToMasterResponse extends $dara.Model {
|
|
7
|
+
headers?: { [key: string]: string };
|
|
8
|
+
statusCode?: number;
|
|
9
|
+
body?: PromoteToMasterResponseBody;
|
|
10
|
+
static names(): { [key: string]: string } {
|
|
11
|
+
return {
|
|
12
|
+
headers: 'headers',
|
|
13
|
+
statusCode: 'statusCode',
|
|
14
|
+
body: 'body',
|
|
15
|
+
};
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
static types(): { [key: string]: any } {
|
|
19
|
+
return {
|
|
20
|
+
headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
|
|
21
|
+
statusCode: 'number',
|
|
22
|
+
body: PromoteToMasterResponseBody,
|
|
23
|
+
};
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
validate() {
|
|
27
|
+
if(this.headers) {
|
|
28
|
+
$dara.Model.validateMap(this.headers);
|
|
29
|
+
}
|
|
30
|
+
if(this.body && typeof (this.body as any).validate === 'function') {
|
|
31
|
+
(this.body as any).validate();
|
|
32
|
+
}
|
|
33
|
+
super.validate();
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
constructor(map?: { [key: string]: any }) {
|
|
37
|
+
super(map);
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
|
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
// This file is auto-generated, don't edit it
|
|
2
|
+
import * as $dara from '@darabonba/typescript';
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
export class PromoteToMasterResponseBody extends $dara.Model {
|
|
6
|
+
/**
|
|
7
|
+
* @example
|
|
8
|
+
* 403
|
|
9
|
+
*/
|
|
10
|
+
dynamicCode?: string;
|
|
11
|
+
/**
|
|
12
|
+
* @example
|
|
13
|
+
* present environment is not support,so skip.
|
|
14
|
+
*/
|
|
15
|
+
dynamicMessage?: string;
|
|
16
|
+
/**
|
|
17
|
+
* @example
|
|
18
|
+
* InternalError
|
|
19
|
+
*/
|
|
20
|
+
errCode?: string;
|
|
21
|
+
/**
|
|
22
|
+
* @example
|
|
23
|
+
* The request processing has failed due to some unknown error.
|
|
24
|
+
*/
|
|
25
|
+
errMessage?: string;
|
|
26
|
+
/**
|
|
27
|
+
* @example
|
|
28
|
+
* 200
|
|
29
|
+
*/
|
|
30
|
+
httpStatusCode?: number;
|
|
31
|
+
/**
|
|
32
|
+
* @example
|
|
33
|
+
* 210ec2e116055198849072222d****
|
|
34
|
+
*/
|
|
35
|
+
requestId?: string;
|
|
36
|
+
/**
|
|
37
|
+
* @example
|
|
38
|
+
* true
|
|
39
|
+
*/
|
|
40
|
+
success?: boolean;
|
|
41
|
+
/**
|
|
42
|
+
* @example
|
|
43
|
+
* z2v12jfo309****
|
|
44
|
+
*/
|
|
45
|
+
taskId?: string;
|
|
46
|
+
static names(): { [key: string]: string } {
|
|
47
|
+
return {
|
|
48
|
+
dynamicCode: 'DynamicCode',
|
|
49
|
+
dynamicMessage: 'DynamicMessage',
|
|
50
|
+
errCode: 'ErrCode',
|
|
51
|
+
errMessage: 'ErrMessage',
|
|
52
|
+
httpStatusCode: 'HttpStatusCode',
|
|
53
|
+
requestId: 'RequestId',
|
|
54
|
+
success: 'Success',
|
|
55
|
+
taskId: 'TaskId',
|
|
56
|
+
};
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
static types(): { [key: string]: any } {
|
|
60
|
+
return {
|
|
61
|
+
dynamicCode: 'string',
|
|
62
|
+
dynamicMessage: 'string',
|
|
63
|
+
errCode: 'string',
|
|
64
|
+
errMessage: 'string',
|
|
65
|
+
httpStatusCode: 'number',
|
|
66
|
+
requestId: 'string',
|
|
67
|
+
success: 'boolean',
|
|
68
|
+
taskId: 'string',
|
|
69
|
+
};
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
validate() {
|
|
73
|
+
super.validate();
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
constructor(map?: { [key: string]: any }) {
|
|
77
|
+
super(map);
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
|
package/src/models/model.ts
CHANGED
|
@@ -561,6 +561,9 @@ export { ModifySynchronizationObjectResponse } from './ModifySynchronizationObje
|
|
|
561
561
|
export { PreCheckCreateGadOrderRequest } from './PreCheckCreateGadOrderRequest';
|
|
562
562
|
export { PreCheckCreateGadOrderResponseBody } from './PreCheckCreateGadOrderResponseBody';
|
|
563
563
|
export { PreCheckCreateGadOrderResponse } from './PreCheckCreateGadOrderResponse';
|
|
564
|
+
export { PromoteToMasterRequest } from './PromoteToMasterRequest';
|
|
565
|
+
export { PromoteToMasterResponseBody } from './PromoteToMasterResponseBody';
|
|
566
|
+
export { PromoteToMasterResponse } from './PromoteToMasterResponse';
|
|
564
567
|
export { RenewInstanceRequest } from './RenewInstanceRequest';
|
|
565
568
|
export { RenewInstanceResponseBody } from './RenewInstanceResponseBody';
|
|
566
569
|
export { RenewInstanceResponse } from './RenewInstanceResponse';
|