@alicloud/ecs20140526 7.0.17 → 7.1.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.
Files changed (45) hide show
  1. package/dist/client.d.ts +30 -0
  2. package/dist/client.js +117 -0
  3. package/dist/client.js.map +1 -1
  4. package/dist/models/CancelAutoSnapshotPolicyRequest.d.ts +1 -0
  5. package/dist/models/CancelAutoSnapshotPolicyRequest.js +2 -0
  6. package/dist/models/CancelAutoSnapshotPolicyRequest.js.map +1 -1
  7. package/dist/models/DescribeAutoSnapshotPolicyAssociationsRequest.d.ts +26 -0
  8. package/dist/models/DescribeAutoSnapshotPolicyAssociationsRequest.js +74 -0
  9. package/dist/models/DescribeAutoSnapshotPolicyAssociationsRequest.js.map +1 -0
  10. package/dist/models/DescribeAutoSnapshotPolicyAssociationsResponse.d.ts +19 -0
  11. package/dist/models/DescribeAutoSnapshotPolicyAssociationsResponse.js +69 -0
  12. package/dist/models/DescribeAutoSnapshotPolicyAssociationsResponse.js.map +1 -0
  13. package/dist/models/DescribeAutoSnapshotPolicyAssociationsResponseBody.d.ts +43 -0
  14. package/dist/models/DescribeAutoSnapshotPolicyAssociationsResponseBody.js +108 -0
  15. package/dist/models/DescribeAutoSnapshotPolicyAssociationsResponseBody.js.map +1 -0
  16. package/dist/models/DescribeInstanceAttributeResponseBody.d.ts +1 -0
  17. package/dist/models/DescribeInstanceAttributeResponseBody.js +2 -0
  18. package/dist/models/DescribeInstanceAttributeResponseBody.js.map +1 -1
  19. package/dist/models/ModifyInstanceNetworkOptionsRequest.d.ts +26 -0
  20. package/dist/models/ModifyInstanceNetworkOptionsRequest.js +66 -0
  21. package/dist/models/ModifyInstanceNetworkOptionsRequest.js.map +1 -0
  22. package/dist/models/ModifyInstanceNetworkOptionsResponse.d.ts +19 -0
  23. package/dist/models/ModifyInstanceNetworkOptionsResponse.js +69 -0
  24. package/dist/models/ModifyInstanceNetworkOptionsResponse.js.map +1 -0
  25. package/dist/models/ModifyInstanceNetworkOptionsResponseBody.d.ts +26 -0
  26. package/dist/models/ModifyInstanceNetworkOptionsResponseBody.js +60 -0
  27. package/dist/models/ModifyInstanceNetworkOptionsResponseBody.js.map +1 -0
  28. package/dist/models/RunInstancesRequest.d.ts +1 -0
  29. package/dist/models/RunInstancesRequest.js +2 -0
  30. package/dist/models/RunInstancesRequest.js.map +1 -1
  31. package/dist/models/model.d.ts +8 -0
  32. package/dist/models/model.js +53 -36
  33. package/dist/models/model.js.map +1 -1
  34. package/package.json +1 -1
  35. package/src/client.ts +136 -0
  36. package/src/models/CancelAutoSnapshotPolicyRequest.ts +3 -0
  37. package/src/models/DescribeAutoSnapshotPolicyAssociationsRequest.ts +55 -0
  38. package/src/models/DescribeAutoSnapshotPolicyAssociationsResponse.ts +40 -0
  39. package/src/models/DescribeAutoSnapshotPolicyAssociationsResponseBody.ts +88 -0
  40. package/src/models/DescribeInstanceAttributeResponseBody.ts +3 -0
  41. package/src/models/ModifyInstanceNetworkOptionsRequest.ts +47 -0
  42. package/src/models/ModifyInstanceNetworkOptionsResponse.ts +40 -0
  43. package/src/models/ModifyInstanceNetworkOptionsResponseBody.ts +41 -0
  44. package/src/models/RunInstancesRequest.ts +3 -0
  45. package/src/models/model.ts +8 -0
@@ -0,0 +1,88 @@
1
+ // This file is auto-generated, don't edit it
2
+ import * as $dara from '@darabonba/typescript';
3
+
4
+
5
+ export class DescribeAutoSnapshotPolicyAssociationsResponseBodyAutoSnapshotPolicyAssociationsAutoSnapshotPolicyAssociation extends $dara.Model {
6
+ autoSnapshotPolicyId?: string;
7
+ diskId?: string;
8
+ static names(): { [key: string]: string } {
9
+ return {
10
+ autoSnapshotPolicyId: 'AutoSnapshotPolicyId',
11
+ diskId: 'DiskId',
12
+ };
13
+ }
14
+
15
+ static types(): { [key: string]: any } {
16
+ return {
17
+ autoSnapshotPolicyId: 'string',
18
+ diskId: 'string',
19
+ };
20
+ }
21
+
22
+ validate() {
23
+ super.validate();
24
+ }
25
+
26
+ constructor(map?: { [key: string]: any }) {
27
+ super(map);
28
+ }
29
+ }
30
+
31
+ export class DescribeAutoSnapshotPolicyAssociationsResponseBodyAutoSnapshotPolicyAssociations extends $dara.Model {
32
+ autoSnapshotPolicyAssociation?: DescribeAutoSnapshotPolicyAssociationsResponseBodyAutoSnapshotPolicyAssociationsAutoSnapshotPolicyAssociation[];
33
+ static names(): { [key: string]: string } {
34
+ return {
35
+ autoSnapshotPolicyAssociation: 'AutoSnapshotPolicyAssociation',
36
+ };
37
+ }
38
+
39
+ static types(): { [key: string]: any } {
40
+ return {
41
+ autoSnapshotPolicyAssociation: { 'type': 'array', 'itemType': DescribeAutoSnapshotPolicyAssociationsResponseBodyAutoSnapshotPolicyAssociationsAutoSnapshotPolicyAssociation },
42
+ };
43
+ }
44
+
45
+ validate() {
46
+ if(Array.isArray(this.autoSnapshotPolicyAssociation)) {
47
+ $dara.Model.validateArray(this.autoSnapshotPolicyAssociation);
48
+ }
49
+ super.validate();
50
+ }
51
+
52
+ constructor(map?: { [key: string]: any }) {
53
+ super(map);
54
+ }
55
+ }
56
+
57
+ export class DescribeAutoSnapshotPolicyAssociationsResponseBody extends $dara.Model {
58
+ autoSnapshotPolicyAssociations?: DescribeAutoSnapshotPolicyAssociationsResponseBodyAutoSnapshotPolicyAssociations;
59
+ nextToken?: string;
60
+ requestId?: string;
61
+ static names(): { [key: string]: string } {
62
+ return {
63
+ autoSnapshotPolicyAssociations: 'AutoSnapshotPolicyAssociations',
64
+ nextToken: 'NextToken',
65
+ requestId: 'RequestId',
66
+ };
67
+ }
68
+
69
+ static types(): { [key: string]: any } {
70
+ return {
71
+ autoSnapshotPolicyAssociations: DescribeAutoSnapshotPolicyAssociationsResponseBodyAutoSnapshotPolicyAssociations,
72
+ nextToken: 'string',
73
+ requestId: 'string',
74
+ };
75
+ }
76
+
77
+ validate() {
78
+ if(this.autoSnapshotPolicyAssociations && typeof (this.autoSnapshotPolicyAssociations as any).validate === 'function') {
79
+ (this.autoSnapshotPolicyAssociations as any).validate();
80
+ }
81
+ super.validate();
82
+ }
83
+
84
+ constructor(map?: { [key: string]: any }) {
85
+ super(map);
86
+ }
87
+ }
88
+
@@ -134,10 +134,12 @@ export class DescribeInstanceAttributeResponseBodyInnerIpAddress extends $dara.M
134
134
  }
135
135
 
136
136
  export class DescribeInstanceAttributeResponseBodyNetworkOptions extends $dara.Model {
137
+ bandwidthWeighting?: string;
137
138
  enableJumboFrame?: boolean;
138
139
  enableNetworkEncryption?: boolean;
139
140
  static names(): { [key: string]: string } {
140
141
  return {
142
+ bandwidthWeighting: 'BandwidthWeighting',
141
143
  enableJumboFrame: 'EnableJumboFrame',
142
144
  enableNetworkEncryption: 'EnableNetworkEncryption',
143
145
  };
@@ -145,6 +147,7 @@ export class DescribeInstanceAttributeResponseBodyNetworkOptions extends $dara.M
145
147
 
146
148
  static types(): { [key: string]: any } {
147
149
  return {
150
+ bandwidthWeighting: 'string',
148
151
  enableJumboFrame: 'boolean',
149
152
  enableNetworkEncryption: 'boolean',
150
153
  };
@@ -0,0 +1,47 @@
1
+ // This file is auto-generated, don't edit it
2
+ import * as $dara from '@darabonba/typescript';
3
+
4
+
5
+ export class ModifyInstanceNetworkOptionsRequest extends $dara.Model {
6
+ /**
7
+ * @example
8
+ * Vpc-L1
9
+ */
10
+ bandwidthWeighting?: string;
11
+ /**
12
+ * @example
13
+ * i-bp67acfmxazb4p****
14
+ */
15
+ instanceId?: string;
16
+ ownerId?: number;
17
+ resourceOwnerAccount?: string;
18
+ resourceOwnerId?: number;
19
+ static names(): { [key: string]: string } {
20
+ return {
21
+ bandwidthWeighting: 'BandwidthWeighting',
22
+ instanceId: 'InstanceId',
23
+ ownerId: 'OwnerId',
24
+ resourceOwnerAccount: 'ResourceOwnerAccount',
25
+ resourceOwnerId: 'ResourceOwnerId',
26
+ };
27
+ }
28
+
29
+ static types(): { [key: string]: any } {
30
+ return {
31
+ bandwidthWeighting: 'string',
32
+ instanceId: 'string',
33
+ ownerId: 'number',
34
+ resourceOwnerAccount: 'string',
35
+ resourceOwnerId: 'number',
36
+ };
37
+ }
38
+
39
+ validate() {
40
+ super.validate();
41
+ }
42
+
43
+ constructor(map?: { [key: string]: any }) {
44
+ super(map);
45
+ }
46
+ }
47
+
@@ -0,0 +1,40 @@
1
+ // This file is auto-generated, don't edit it
2
+ import * as $dara from '@darabonba/typescript';
3
+ import { ModifyInstanceNetworkOptionsResponseBody } from "./ModifyInstanceNetworkOptionsResponseBody";
4
+
5
+
6
+ export class ModifyInstanceNetworkOptionsResponse extends $dara.Model {
7
+ headers?: { [key: string]: string };
8
+ statusCode?: number;
9
+ body?: ModifyInstanceNetworkOptionsResponseBody;
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: ModifyInstanceNetworkOptionsResponseBody,
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,41 @@
1
+ // This file is auto-generated, don't edit it
2
+ import * as $dara from '@darabonba/typescript';
3
+
4
+
5
+ export class ModifyInstanceNetworkOptionsResponseBody extends $dara.Model {
6
+ /**
7
+ * @remarks
8
+ * Id of the request
9
+ *
10
+ * @example
11
+ * 473469C7-AA6F-4DC5-B3DB-A3DC0DE3C83E
12
+ */
13
+ requestId?: string;
14
+ /**
15
+ * @example
16
+ * t-bp198jigq7l0h5ac****
17
+ */
18
+ taskId?: string;
19
+ static names(): { [key: string]: string } {
20
+ return {
21
+ requestId: 'RequestId',
22
+ taskId: 'TaskId',
23
+ };
24
+ }
25
+
26
+ static types(): { [key: string]: any } {
27
+ return {
28
+ requestId: 'string',
29
+ taskId: 'string',
30
+ };
31
+ }
32
+
33
+ validate() {
34
+ super.validate();
35
+ }
36
+
37
+ constructor(map?: { [key: string]: any }) {
38
+ super(map);
39
+ }
40
+ }
41
+
@@ -1111,6 +1111,7 @@ export class RunInstancesRequestNetworkInterface extends $dara.Model {
1111
1111
  }
1112
1112
 
1113
1113
  export class RunInstancesRequestNetworkOptions extends $dara.Model {
1114
+ bandwidthWeighting?: string;
1114
1115
  /**
1115
1116
  * @remarks
1116
1117
  * Specifies whether to enable the Jumbo Frames feature for the instance. Valid values:
@@ -1129,6 +1130,7 @@ export class RunInstancesRequestNetworkOptions extends $dara.Model {
1129
1130
  enableNetworkEncryption?: boolean;
1130
1131
  static names(): { [key: string]: string } {
1131
1132
  return {
1133
+ bandwidthWeighting: 'BandwidthWeighting',
1132
1134
  enableJumboFrame: 'EnableJumboFrame',
1133
1135
  enableNetworkEncryption: 'EnableNetworkEncryption',
1134
1136
  };
@@ -1136,6 +1138,7 @@ export class RunInstancesRequestNetworkOptions extends $dara.Model {
1136
1138
 
1137
1139
  static types(): { [key: string]: any } {
1138
1140
  return {
1141
+ bandwidthWeighting: 'string',
1139
1142
  enableJumboFrame: 'boolean',
1140
1143
  enableNetworkEncryption: 'boolean',
1141
1144
  };
@@ -155,6 +155,8 @@ export { DescribeAutoProvisioningGroupsResponseBodyAutoProvisioningGroupsAutoPro
155
155
  export { DescribeAutoProvisioningGroupsResponseBodyAutoProvisioningGroupsAutoProvisioningGroupTargetCapacitySpecification } from './DescribeAutoProvisioningGroupsResponseBody';
156
156
  export { DescribeAutoProvisioningGroupsResponseBodyAutoProvisioningGroupsAutoProvisioningGroup } from './DescribeAutoProvisioningGroupsResponseBody';
157
157
  export { DescribeAutoProvisioningGroupsResponseBodyAutoProvisioningGroups } from './DescribeAutoProvisioningGroupsResponseBody';
158
+ export { DescribeAutoSnapshotPolicyAssociationsResponseBodyAutoSnapshotPolicyAssociationsAutoSnapshotPolicyAssociation } from './DescribeAutoSnapshotPolicyAssociationsResponseBody';
159
+ export { DescribeAutoSnapshotPolicyAssociationsResponseBodyAutoSnapshotPolicyAssociations } from './DescribeAutoSnapshotPolicyAssociationsResponseBody';
158
160
  export { DescribeAutoSnapshotPolicyExRequestTag } from './DescribeAutoSnapshotPolicyExRequest';
159
161
  export { DescribeAutoSnapshotPolicyExResponseBodyAutoSnapshotPoliciesAutoSnapshotPolicyCopyEncryptionConfiguration } from './DescribeAutoSnapshotPolicyExResponseBody';
160
162
  export { DescribeAutoSnapshotPolicyExResponseBodyAutoSnapshotPoliciesAutoSnapshotPolicyTagsTag } from './DescribeAutoSnapshotPolicyExResponseBody';
@@ -1194,6 +1196,9 @@ export { DescribeAutoProvisioningGroupInstancesResponse } from './DescribeAutoPr
1194
1196
  export { DescribeAutoProvisioningGroupsRequest } from './DescribeAutoProvisioningGroupsRequest';
1195
1197
  export { DescribeAutoProvisioningGroupsResponseBody } from './DescribeAutoProvisioningGroupsResponseBody';
1196
1198
  export { DescribeAutoProvisioningGroupsResponse } from './DescribeAutoProvisioningGroupsResponse';
1199
+ export { DescribeAutoSnapshotPolicyAssociationsRequest } from './DescribeAutoSnapshotPolicyAssociationsRequest';
1200
+ export { DescribeAutoSnapshotPolicyAssociationsResponseBody } from './DescribeAutoSnapshotPolicyAssociationsResponseBody';
1201
+ export { DescribeAutoSnapshotPolicyAssociationsResponse } from './DescribeAutoSnapshotPolicyAssociationsResponse';
1197
1202
  export { DescribeAutoSnapshotPolicyExRequest } from './DescribeAutoSnapshotPolicyExRequest';
1198
1203
  export { DescribeAutoSnapshotPolicyExResponseBody } from './DescribeAutoSnapshotPolicyExResponseBody';
1199
1204
  export { DescribeAutoSnapshotPolicyExResponse } from './DescribeAutoSnapshotPolicyExResponse';
@@ -1715,6 +1720,9 @@ export { ModifyInstanceMaintenanceAttributesResponse } from './ModifyInstanceMai
1715
1720
  export { ModifyInstanceMetadataOptionsRequest } from './ModifyInstanceMetadataOptionsRequest';
1716
1721
  export { ModifyInstanceMetadataOptionsResponseBody } from './ModifyInstanceMetadataOptionsResponseBody';
1717
1722
  export { ModifyInstanceMetadataOptionsResponse } from './ModifyInstanceMetadataOptionsResponse';
1723
+ export { ModifyInstanceNetworkOptionsRequest } from './ModifyInstanceNetworkOptionsRequest';
1724
+ export { ModifyInstanceNetworkOptionsResponseBody } from './ModifyInstanceNetworkOptionsResponseBody';
1725
+ export { ModifyInstanceNetworkOptionsResponse } from './ModifyInstanceNetworkOptionsResponse';
1718
1726
  export { ModifyInstanceNetworkSpecRequest } from './ModifyInstanceNetworkSpecRequest';
1719
1727
  export { ModifyInstanceNetworkSpecResponseBody } from './ModifyInstanceNetworkSpecResponseBody';
1720
1728
  export { ModifyInstanceNetworkSpecResponse } from './ModifyInstanceNetworkSpecResponse';