@alicloud/ecs20140526 7.3.0 → 7.4.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 (45) hide show
  1. package/dist/client.d.ts +30 -0
  2. package/dist/client.js +120 -0
  3. package/dist/client.js.map +1 -1
  4. package/dist/models/DescribeManagedInstancesRequest.d.ts +1 -0
  5. package/dist/models/DescribeManagedInstancesRequest.js +2 -0
  6. package/dist/models/DescribeManagedInstancesRequest.js.map +1 -1
  7. package/dist/models/DescribeNetworkInterfaceAttributeResponseBody.d.ts +52 -0
  8. package/dist/models/DescribeNetworkInterfaceAttributeResponseBody.js +57 -1
  9. package/dist/models/DescribeNetworkInterfaceAttributeResponseBody.js.map +1 -1
  10. package/dist/models/DescribeStorageSetDetailsRequest.d.ts +2 -2
  11. package/dist/models/DescribeStorageSetsRequest.d.ts +3 -3
  12. package/dist/models/DisableNetworkInterfaceQoSrequest.d.ts +33 -0
  13. package/dist/models/DisableNetworkInterfaceQoSrequest.js +68 -0
  14. package/dist/models/DisableNetworkInterfaceQoSrequest.js.map +1 -0
  15. package/dist/models/DisableNetworkInterfaceQoSresponse.d.ts +19 -0
  16. package/dist/models/DisableNetworkInterfaceQoSresponse.js +69 -0
  17. package/dist/models/DisableNetworkInterfaceQoSresponse.js.map +1 -0
  18. package/dist/models/DisableNetworkInterfaceQoSresponseBody.d.ts +18 -0
  19. package/dist/models/DisableNetworkInterfaceQoSresponseBody.js +58 -0
  20. package/dist/models/DisableNetworkInterfaceQoSresponseBody.js.map +1 -0
  21. package/dist/models/EnableNetworkInterfaceQoSrequest.d.ts +71 -0
  22. package/dist/models/EnableNetworkInterfaceQoSrequest.js +100 -0
  23. package/dist/models/EnableNetworkInterfaceQoSrequest.js.map +1 -0
  24. package/dist/models/EnableNetworkInterfaceQoSresponse.d.ts +19 -0
  25. package/dist/models/EnableNetworkInterfaceQoSresponse.js +69 -0
  26. package/dist/models/EnableNetworkInterfaceQoSresponse.js.map +1 -0
  27. package/dist/models/EnableNetworkInterfaceQoSresponseBody.d.ts +18 -0
  28. package/dist/models/EnableNetworkInterfaceQoSresponseBody.js +58 -0
  29. package/dist/models/EnableNetworkInterfaceQoSresponseBody.js.map +1 -0
  30. package/dist/models/model.d.ts +9 -0
  31. package/dist/models/model.js +53 -35
  32. package/dist/models/model.js.map +1 -1
  33. package/package.json +1 -1
  34. package/src/client.ts +140 -0
  35. package/src/models/DescribeManagedInstancesRequest.ts +3 -0
  36. package/src/models/DescribeNetworkInterfaceAttributeResponseBody.ts +90 -0
  37. package/src/models/DescribeStorageSetDetailsRequest.ts +2 -2
  38. package/src/models/DescribeStorageSetsRequest.ts +3 -3
  39. package/src/models/DisableNetworkInterfaceQoSrequest.ts +56 -0
  40. package/src/models/DisableNetworkInterfaceQoSresponse.ts +40 -0
  41. package/src/models/DisableNetworkInterfaceQoSresponseBody.ts +31 -0
  42. package/src/models/EnableNetworkInterfaceQoSrequest.ts +117 -0
  43. package/src/models/EnableNetworkInterfaceQoSresponse.ts +40 -0
  44. package/src/models/EnableNetworkInterfaceQoSresponseBody.ts +31 -0
  45. package/src/models/model.ts +9 -0
@@ -694,6 +694,90 @@ export class DescribeNetworkInterfaceAttributeResponseBodyPrivateIpSets extends
694
694
  }
695
695
  }
696
696
 
697
+ export class DescribeNetworkInterfaceAttributeResponseBodyQoSConfigQoS extends $dara.Model {
698
+ /**
699
+ * @example
700
+ * 50000
701
+ */
702
+ bandwidthRx?: number;
703
+ /**
704
+ * @example
705
+ * 50000
706
+ */
707
+ bandwidthTx?: number;
708
+ /**
709
+ * @example
710
+ * 50000
711
+ */
712
+ concurrentConnections?: number;
713
+ /**
714
+ * @example
715
+ * 50000
716
+ */
717
+ ppsRx?: number;
718
+ /**
719
+ * @example
720
+ * 50000
721
+ */
722
+ ppsTx?: number;
723
+ static names(): { [key: string]: string } {
724
+ return {
725
+ bandwidthRx: 'BandwidthRx',
726
+ bandwidthTx: 'BandwidthTx',
727
+ concurrentConnections: 'ConcurrentConnections',
728
+ ppsRx: 'PpsRx',
729
+ ppsTx: 'PpsTx',
730
+ };
731
+ }
732
+
733
+ static types(): { [key: string]: any } {
734
+ return {
735
+ bandwidthRx: 'number',
736
+ bandwidthTx: 'number',
737
+ concurrentConnections: 'number',
738
+ ppsRx: 'number',
739
+ ppsTx: 'number',
740
+ };
741
+ }
742
+
743
+ validate() {
744
+ super.validate();
745
+ }
746
+
747
+ constructor(map?: { [key: string]: any }) {
748
+ super(map);
749
+ }
750
+ }
751
+
752
+ export class DescribeNetworkInterfaceAttributeResponseBodyQoSConfig extends $dara.Model {
753
+ enableQoS?: boolean;
754
+ qoS?: DescribeNetworkInterfaceAttributeResponseBodyQoSConfigQoS;
755
+ static names(): { [key: string]: string } {
756
+ return {
757
+ enableQoS: 'EnableQoS',
758
+ qoS: 'QoS',
759
+ };
760
+ }
761
+
762
+ static types(): { [key: string]: any } {
763
+ return {
764
+ enableQoS: 'boolean',
765
+ qoS: DescribeNetworkInterfaceAttributeResponseBodyQoSConfigQoS,
766
+ };
767
+ }
768
+
769
+ validate() {
770
+ if(this.qoS && typeof (this.qoS as any).validate === 'function') {
771
+ (this.qoS as any).validate();
772
+ }
773
+ super.validate();
774
+ }
775
+
776
+ constructor(map?: { [key: string]: any }) {
777
+ super(map);
778
+ }
779
+ }
780
+
697
781
  export class DescribeNetworkInterfaceAttributeResponseBodySecurityGroupIds extends $dara.Model {
698
782
  securityGroupId?: string[];
699
783
  static names(): { [key: string]: string } {
@@ -981,6 +1065,7 @@ export class DescribeNetworkInterfaceAttributeResponseBody extends $dara.Model {
981
1065
  * The private IP addresses of the ENI.
982
1066
  */
983
1067
  privateIpSets?: DescribeNetworkInterfaceAttributeResponseBodyPrivateIpSets;
1068
+ qoSConfig?: DescribeNetworkInterfaceAttributeResponseBodyQoSConfig;
984
1069
  /**
985
1070
  * @remarks
986
1071
  * The number of queues supported by the ENI.
@@ -1149,6 +1234,7 @@ export class DescribeNetworkInterfaceAttributeResponseBody extends $dara.Model {
1149
1234
  ownerId: 'OwnerId',
1150
1235
  privateIpAddress: 'PrivateIpAddress',
1151
1236
  privateIpSets: 'PrivateIpSets',
1237
+ qoSConfig: 'QoSConfig',
1152
1238
  queueNumber: 'QueueNumber',
1153
1239
  queuePairNumber: 'QueuePairNumber',
1154
1240
  requestId: 'RequestId',
@@ -1190,6 +1276,7 @@ export class DescribeNetworkInterfaceAttributeResponseBody extends $dara.Model {
1190
1276
  ownerId: 'string',
1191
1277
  privateIpAddress: 'string',
1192
1278
  privateIpSets: DescribeNetworkInterfaceAttributeResponseBodyPrivateIpSets,
1279
+ qoSConfig: DescribeNetworkInterfaceAttributeResponseBodyQoSConfig,
1193
1280
  queueNumber: 'number',
1194
1281
  queuePairNumber: 'number',
1195
1282
  requestId: 'string',
@@ -1240,6 +1327,9 @@ export class DescribeNetworkInterfaceAttributeResponseBody extends $dara.Model {
1240
1327
  if(this.privateIpSets && typeof (this.privateIpSets as any).validate === 'function') {
1241
1328
  (this.privateIpSets as any).validate();
1242
1329
  }
1330
+ if(this.qoSConfig && typeof (this.qoSConfig as any).validate === 'function') {
1331
+ (this.qoSConfig as any).validate();
1332
+ }
1243
1333
  if(this.securityGroupIds && typeof (this.securityGroupIds as any).validate === 'function') {
1244
1334
  (this.securityGroupIds as any).validate();
1245
1335
  }
@@ -45,9 +45,9 @@ export class DescribeStorageSetDetailsRequest extends $dara.Model {
45
45
  * @remarks
46
46
  * The number of entries per page.
47
47
  *
48
- * Valid values: 1 to 100.
48
+ * Maximum value: 100
49
49
  *
50
- * Default value: 10.
50
+ * Default value: 10
51
51
  *
52
52
  * @example
53
53
  * 10
@@ -51,7 +51,7 @@ export class DescribeStorageSetsRequest extends $dara.Model {
51
51
  * @remarks
52
52
  * The page number. Pages start from page 1.
53
53
  *
54
- * Default value: 1.
54
+ * Default value: 1
55
55
  *
56
56
  * @example
57
57
  * 1
@@ -59,9 +59,9 @@ export class DescribeStorageSetsRequest extends $dara.Model {
59
59
  pageNumber?: number;
60
60
  /**
61
61
  * @remarks
62
- * The number of entries per page. Valid values: 1 to 100.
62
+ * The number of entries to return on each page. Maximum value: 100.
63
63
  *
64
- * Default value: 10.
64
+ * Default value: 10
65
65
  *
66
66
  * @example
67
67
  * 1
@@ -0,0 +1,56 @@
1
+ // This file is auto-generated, don't edit it
2
+ import * as $dara from '@darabonba/typescript';
3
+
4
+
5
+ export class DisableNetworkInterfaceQoSRequest extends $dara.Model {
6
+ /**
7
+ * @remarks
8
+ * This parameter is required.
9
+ *
10
+ * @example
11
+ * eni-bp1iqejowblx6h8j****
12
+ */
13
+ networkInterfaceId?: string;
14
+ ownerAccount?: string;
15
+ ownerId?: number;
16
+ /**
17
+ * @remarks
18
+ * This parameter is required.
19
+ *
20
+ * @example
21
+ * cn-hangzhou
22
+ */
23
+ regionId?: string;
24
+ resourceOwnerAccount?: string;
25
+ resourceOwnerId?: number;
26
+ static names(): { [key: string]: string } {
27
+ return {
28
+ networkInterfaceId: 'NetworkInterfaceId',
29
+ ownerAccount: 'OwnerAccount',
30
+ ownerId: 'OwnerId',
31
+ regionId: 'RegionId',
32
+ resourceOwnerAccount: 'ResourceOwnerAccount',
33
+ resourceOwnerId: 'ResourceOwnerId',
34
+ };
35
+ }
36
+
37
+ static types(): { [key: string]: any } {
38
+ return {
39
+ networkInterfaceId: 'string',
40
+ ownerAccount: 'string',
41
+ ownerId: 'number',
42
+ regionId: 'string',
43
+ resourceOwnerAccount: 'string',
44
+ resourceOwnerId: 'number',
45
+ };
46
+ }
47
+
48
+ validate() {
49
+ super.validate();
50
+ }
51
+
52
+ constructor(map?: { [key: string]: any }) {
53
+ super(map);
54
+ }
55
+ }
56
+
@@ -0,0 +1,40 @@
1
+ // This file is auto-generated, don't edit it
2
+ import * as $dara from '@darabonba/typescript';
3
+ import { DisableNetworkInterfaceQoSResponseBody } from "./DisableNetworkInterfaceQoSresponseBody";
4
+
5
+
6
+ export class DisableNetworkInterfaceQoSResponse extends $dara.Model {
7
+ headers?: { [key: string]: string };
8
+ statusCode?: number;
9
+ body?: DisableNetworkInterfaceQoSResponseBody;
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: DisableNetworkInterfaceQoSResponseBody,
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,31 @@
1
+ // This file is auto-generated, don't edit it
2
+ import * as $dara from '@darabonba/typescript';
3
+
4
+
5
+ export class DisableNetworkInterfaceQoSResponseBody extends $dara.Model {
6
+ /**
7
+ * @example
8
+ * 745CEC9F-0DD7-4451-9FE7-8B752F39****
9
+ */
10
+ requestId?: string;
11
+ static names(): { [key: string]: string } {
12
+ return {
13
+ requestId: 'RequestId',
14
+ };
15
+ }
16
+
17
+ static types(): { [key: string]: any } {
18
+ return {
19
+ requestId: 'string',
20
+ };
21
+ }
22
+
23
+ validate() {
24
+ super.validate();
25
+ }
26
+
27
+ constructor(map?: { [key: string]: any }) {
28
+ super(map);
29
+ }
30
+ }
31
+
@@ -0,0 +1,117 @@
1
+ // This file is auto-generated, don't edit it
2
+ import * as $dara from '@darabonba/typescript';
3
+
4
+
5
+ export class EnableNetworkInterfaceQoSRequestQoS extends $dara.Model {
6
+ /**
7
+ * @example
8
+ * 50000
9
+ */
10
+ bandwidthRx?: number;
11
+ /**
12
+ * @example
13
+ * 50000
14
+ */
15
+ bandwidthTx?: number;
16
+ /**
17
+ * @example
18
+ * 50000
19
+ */
20
+ concurrentConnections?: number;
21
+ /**
22
+ * @example
23
+ * 50000
24
+ */
25
+ ppsRx?: number;
26
+ /**
27
+ * @example
28
+ * 50000
29
+ */
30
+ ppsTx?: number;
31
+ static names(): { [key: string]: string } {
32
+ return {
33
+ bandwidthRx: 'BandwidthRx',
34
+ bandwidthTx: 'BandwidthTx',
35
+ concurrentConnections: 'ConcurrentConnections',
36
+ ppsRx: 'PpsRx',
37
+ ppsTx: 'PpsTx',
38
+ };
39
+ }
40
+
41
+ static types(): { [key: string]: any } {
42
+ return {
43
+ bandwidthRx: 'number',
44
+ bandwidthTx: 'number',
45
+ concurrentConnections: 'number',
46
+ ppsRx: 'number',
47
+ ppsTx: 'number',
48
+ };
49
+ }
50
+
51
+ validate() {
52
+ super.validate();
53
+ }
54
+
55
+ constructor(map?: { [key: string]: any }) {
56
+ super(map);
57
+ }
58
+ }
59
+
60
+ export class EnableNetworkInterfaceQoSRequest extends $dara.Model {
61
+ /**
62
+ * @remarks
63
+ * This parameter is required.
64
+ *
65
+ * @example
66
+ * eni-2zeh9atclduxvf1z****
67
+ */
68
+ networkInterfaceId?: string;
69
+ ownerAccount?: string;
70
+ ownerId?: number;
71
+ qoS?: EnableNetworkInterfaceQoSRequestQoS;
72
+ /**
73
+ * @remarks
74
+ * This parameter is required.
75
+ *
76
+ * @example
77
+ * cn-hangzhou
78
+ */
79
+ regionId?: string;
80
+ resourceOwnerAccount?: string;
81
+ resourceOwnerId?: number;
82
+ static names(): { [key: string]: string } {
83
+ return {
84
+ networkInterfaceId: 'NetworkInterfaceId',
85
+ ownerAccount: 'OwnerAccount',
86
+ ownerId: 'OwnerId',
87
+ qoS: 'QoS',
88
+ regionId: 'RegionId',
89
+ resourceOwnerAccount: 'ResourceOwnerAccount',
90
+ resourceOwnerId: 'ResourceOwnerId',
91
+ };
92
+ }
93
+
94
+ static types(): { [key: string]: any } {
95
+ return {
96
+ networkInterfaceId: 'string',
97
+ ownerAccount: 'string',
98
+ ownerId: 'number',
99
+ qoS: EnableNetworkInterfaceQoSRequestQoS,
100
+ regionId: 'string',
101
+ resourceOwnerAccount: 'string',
102
+ resourceOwnerId: 'number',
103
+ };
104
+ }
105
+
106
+ validate() {
107
+ if(this.qoS && typeof (this.qoS as any).validate === 'function') {
108
+ (this.qoS as any).validate();
109
+ }
110
+ super.validate();
111
+ }
112
+
113
+ constructor(map?: { [key: string]: any }) {
114
+ super(map);
115
+ }
116
+ }
117
+
@@ -0,0 +1,40 @@
1
+ // This file is auto-generated, don't edit it
2
+ import * as $dara from '@darabonba/typescript';
3
+ import { EnableNetworkInterfaceQoSResponseBody } from "./EnableNetworkInterfaceQoSresponseBody";
4
+
5
+
6
+ export class EnableNetworkInterfaceQoSResponse extends $dara.Model {
7
+ headers?: { [key: string]: string };
8
+ statusCode?: number;
9
+ body?: EnableNetworkInterfaceQoSResponseBody;
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: EnableNetworkInterfaceQoSResponseBody,
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,31 @@
1
+ // This file is auto-generated, don't edit it
2
+ import * as $dara from '@darabonba/typescript';
3
+
4
+
5
+ export class EnableNetworkInterfaceQoSResponseBody extends $dara.Model {
6
+ /**
7
+ * @example
8
+ * 473469C7-AA6F-4DC5-B3DB-A3DC0DE3****
9
+ */
10
+ requestId?: string;
11
+ static names(): { [key: string]: string } {
12
+ return {
13
+ requestId: 'RequestId',
14
+ };
15
+ }
16
+
17
+ static types(): { [key: string]: any } {
18
+ return {
19
+ requestId: 'string',
20
+ };
21
+ }
22
+
23
+ validate() {
24
+ super.validate();
25
+ }
26
+
27
+ constructor(map?: { [key: string]: any }) {
28
+ super(map);
29
+ }
30
+ }
31
+
@@ -560,6 +560,8 @@ export { DescribeNetworkInterfaceAttributeResponseBodyNetworkInterfaceTrafficCon
560
560
  export { DescribeNetworkInterfaceAttributeResponseBodyPrivateIpSetsPrivateIpSetAssociatedPublicIp } from './DescribeNetworkInterfaceAttributeResponseBody';
561
561
  export { DescribeNetworkInterfaceAttributeResponseBodyPrivateIpSetsPrivateIpSet } from './DescribeNetworkInterfaceAttributeResponseBody';
562
562
  export { DescribeNetworkInterfaceAttributeResponseBodyPrivateIpSets } from './DescribeNetworkInterfaceAttributeResponseBody';
563
+ export { DescribeNetworkInterfaceAttributeResponseBodyQoSConfigQoS } from './DescribeNetworkInterfaceAttributeResponseBody';
564
+ export { DescribeNetworkInterfaceAttributeResponseBodyQoSConfig } from './DescribeNetworkInterfaceAttributeResponseBody';
563
565
  export { DescribeNetworkInterfaceAttributeResponseBodySecurityGroupIds } from './DescribeNetworkInterfaceAttributeResponseBody';
564
566
  export { DescribeNetworkInterfaceAttributeResponseBodySlaveInterfaceSpecification } from './DescribeNetworkInterfaceAttributeResponseBody';
565
567
  export { DescribeNetworkInterfaceAttributeResponseBodyTagsTag } from './DescribeNetworkInterfaceAttributeResponseBody';
@@ -776,6 +778,7 @@ export { DetachInstanceRamRoleResponseBodyDetachInstanceRamRoleResults } from '.
776
778
  export { DetachKeyPairResponseBodyResultsResult } from './DetachKeyPairResponseBody';
777
779
  export { DetachKeyPairResponseBodyResults } from './DetachKeyPairResponseBody';
778
780
  export { DisableActivationResponseBodyActivation } from './DisableActivationResponseBody';
781
+ export { EnableNetworkInterfaceQoSRequestQoS } from './EnableNetworkInterfaceQoSrequest';
779
782
  export { ImportImageRequestDiskDeviceMapping } from './ImportImageRequest';
780
783
  export { ImportImageRequestFeatures } from './ImportImageRequest';
781
784
  export { ImportImageRequestTag } from './ImportImageRequest';
@@ -1582,9 +1585,15 @@ export { DisableActivationResponse } from './DisableActivationResponse';
1582
1585
  export { DisableDiskEncryptionByDefaultRequest } from './DisableDiskEncryptionByDefaultRequest';
1583
1586
  export { DisableDiskEncryptionByDefaultResponseBody } from './DisableDiskEncryptionByDefaultResponseBody';
1584
1587
  export { DisableDiskEncryptionByDefaultResponse } from './DisableDiskEncryptionByDefaultResponse';
1588
+ export { DisableNetworkInterfaceQoSRequest } from './DisableNetworkInterfaceQoSrequest';
1589
+ export { DisableNetworkInterfaceQoSResponseBody } from './DisableNetworkInterfaceQoSresponseBody';
1590
+ export { DisableNetworkInterfaceQoSResponse } from './DisableNetworkInterfaceQoSresponse';
1585
1591
  export { EnableDiskEncryptionByDefaultRequest } from './EnableDiskEncryptionByDefaultRequest';
1586
1592
  export { EnableDiskEncryptionByDefaultResponseBody } from './EnableDiskEncryptionByDefaultResponseBody';
1587
1593
  export { EnableDiskEncryptionByDefaultResponse } from './EnableDiskEncryptionByDefaultResponse';
1594
+ export { EnableNetworkInterfaceQoSRequest } from './EnableNetworkInterfaceQoSrequest';
1595
+ export { EnableNetworkInterfaceQoSResponseBody } from './EnableNetworkInterfaceQoSresponseBody';
1596
+ export { EnableNetworkInterfaceQoSResponse } from './EnableNetworkInterfaceQoSresponse';
1588
1597
  export { EnablePhysicalConnectionRequest } from './EnablePhysicalConnectionRequest';
1589
1598
  export { EnablePhysicalConnectionResponseBody } from './EnablePhysicalConnectionResponseBody';
1590
1599
  export { EnablePhysicalConnectionResponse } from './EnablePhysicalConnectionResponse';