@alicloud/eas20210701 7.2.0 → 7.3.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 +20 -2
  2. package/dist/client.js +65 -3
  3. package/dist/client.js.map +1 -1
  4. package/dist/models/DescribeGatewayResponseBody.d.ts +23 -0
  5. package/dist/models/DescribeGatewayResponseBody.js +27 -1
  6. package/dist/models/DescribeGatewayResponseBody.js.map +1 -1
  7. package/dist/models/DescribeMachineSpecRequest.d.ts +2 -0
  8. package/dist/models/DescribeMachineSpecRequest.js +4 -0
  9. package/dist/models/DescribeMachineSpecRequest.js.map +1 -1
  10. package/dist/models/DescribeMachineSpecShrinkRequest.d.ts +2 -0
  11. package/dist/models/DescribeMachineSpecShrinkRequest.js +4 -0
  12. package/dist/models/DescribeMachineSpecShrinkRequest.js.map +1 -1
  13. package/dist/models/ListGatewayRequest.d.ts +3 -0
  14. package/dist/models/ListGatewayRequest.js +5 -0
  15. package/dist/models/ListGatewayRequest.js.map +1 -1
  16. package/dist/models/ListGatewayResponseBody.d.ts +23 -0
  17. package/dist/models/ListGatewayResponseBody.js +27 -1
  18. package/dist/models/ListGatewayResponseBody.js.map +1 -1
  19. package/dist/models/ListGatewayShrinkRequest.d.ts +60 -0
  20. package/dist/models/ListGatewayShrinkRequest.js +80 -0
  21. package/dist/models/ListGatewayShrinkRequest.js.map +1 -0
  22. package/dist/models/MigrateResourceInstanceRequest.d.ts +31 -0
  23. package/dist/models/MigrateResourceInstanceRequest.js +65 -0
  24. package/dist/models/MigrateResourceInstanceRequest.js.map +1 -0
  25. package/dist/models/MigrateResourceInstanceResponse.d.ts +19 -0
  26. package/dist/models/MigrateResourceInstanceResponse.js +69 -0
  27. package/dist/models/MigrateResourceInstanceResponse.js.map +1 -0
  28. package/dist/models/MigrateResourceInstanceResponseBody.d.ts +34 -0
  29. package/dist/models/MigrateResourceInstanceResponseBody.js +65 -0
  30. package/dist/models/MigrateResourceInstanceResponseBody.js.map +1 -0
  31. package/dist/models/model.d.ts +6 -0
  32. package/dist/models/model.js +24 -12
  33. package/dist/models/model.js.map +1 -1
  34. package/package.json +1 -1
  35. package/src/client.ts +74 -3
  36. package/src/models/DescribeGatewayResponseBody.ts +40 -0
  37. package/src/models/DescribeMachineSpecRequest.ts +6 -0
  38. package/src/models/DescribeMachineSpecShrinkRequest.ts +6 -0
  39. package/src/models/ListGatewayRequest.ts +6 -0
  40. package/src/models/ListGatewayResponseBody.ts +40 -0
  41. package/src/models/ListGatewayShrinkRequest.ts +95 -0
  42. package/src/models/MigrateResourceInstanceRequest.ts +51 -0
  43. package/src/models/MigrateResourceInstanceResponse.ts +40 -0
  44. package/src/models/MigrateResourceInstanceResponseBody.ts +54 -0
  45. package/src/models/model.ts +6 -0
@@ -3,6 +3,7 @@ import * as $dara from '@darabonba/typescript';
3
3
 
4
4
 
5
5
  export class DescribeMachineSpecShrinkRequest extends $dara.Model {
6
+ chargeType?: string;
6
7
  /**
7
8
  * @remarks
8
9
  * This parameter is deprecated.
@@ -10,15 +11,20 @@ export class DescribeMachineSpecShrinkRequest extends $dara.Model {
10
11
  * @deprecated
11
12
  */
12
13
  instanceTypesShrink?: string;
14
+ resourceType?: string;
13
15
  static names(): { [key: string]: string } {
14
16
  return {
17
+ chargeType: 'ChargeType',
15
18
  instanceTypesShrink: 'InstanceTypes',
19
+ resourceType: 'ResourceType',
16
20
  };
17
21
  }
18
22
 
19
23
  static types(): { [key: string]: any } {
20
24
  return {
25
+ chargeType: 'string',
21
26
  instanceTypesShrink: 'string',
27
+ resourceType: 'string',
22
28
  };
23
29
  }
24
30
 
@@ -22,6 +22,7 @@ export class ListGatewayRequest extends $dara.Model {
22
22
  gatewayName?: string;
23
23
  gatewayType?: string;
24
24
  internetEnabled?: boolean;
25
+ label?: { [key: string]: string };
25
26
  order?: string;
26
27
  /**
27
28
  * @remarks
@@ -56,6 +57,7 @@ export class ListGatewayRequest extends $dara.Model {
56
57
  gatewayName: 'GatewayName',
57
58
  gatewayType: 'GatewayType',
58
59
  internetEnabled: 'InternetEnabled',
60
+ label: 'Label',
59
61
  order: 'Order',
60
62
  pageNumber: 'PageNumber',
61
63
  pageSize: 'PageSize',
@@ -72,6 +74,7 @@ export class ListGatewayRequest extends $dara.Model {
72
74
  gatewayName: 'string',
73
75
  gatewayType: 'string',
74
76
  internetEnabled: 'boolean',
77
+ label: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
75
78
  order: 'string',
76
79
  pageNumber: 'number',
77
80
  pageSize: 'number',
@@ -82,6 +85,9 @@ export class ListGatewayRequest extends $dara.Model {
82
85
  }
83
86
 
84
87
  validate() {
88
+ if(this.label) {
89
+ $dara.Model.validateMap(this.label);
90
+ }
85
91
  super.validate();
86
92
  }
87
93
 
@@ -2,6 +2,40 @@
2
2
  import * as $dara from '@darabonba/typescript';
3
3
 
4
4
 
5
+ export class ListGatewayResponseBodyGatewaysLabels extends $dara.Model {
6
+ /**
7
+ * @example
8
+ * key1
9
+ */
10
+ labelKey?: string;
11
+ /**
12
+ * @example
13
+ * value1
14
+ */
15
+ labelValue?: string;
16
+ static names(): { [key: string]: string } {
17
+ return {
18
+ labelKey: 'LabelKey',
19
+ labelValue: 'LabelValue',
20
+ };
21
+ }
22
+
23
+ static types(): { [key: string]: any } {
24
+ return {
25
+ labelKey: 'string',
26
+ labelValue: 'string',
27
+ };
28
+ }
29
+
30
+ validate() {
31
+ super.validate();
32
+ }
33
+
34
+ constructor(map?: { [key: string]: any }) {
35
+ super(map);
36
+ }
37
+ }
38
+
5
39
  export class ListGatewayResponseBodyGateways extends $dara.Model {
6
40
  /**
7
41
  * @remarks
@@ -79,6 +113,7 @@ export class ListGatewayResponseBodyGateways extends $dara.Model {
79
113
  * true
80
114
  */
81
115
  isDefault?: boolean;
116
+ labels?: ListGatewayResponseBodyGatewaysLabels[];
82
117
  /**
83
118
  * @remarks
84
119
  * The number of nodes in the private gateway.
@@ -133,6 +168,7 @@ export class ListGatewayResponseBodyGateways extends $dara.Model {
133
168
  intranetDomain: 'IntranetDomain',
134
169
  intranetEnabled: 'IntranetEnabled',
135
170
  isDefault: 'IsDefault',
171
+ labels: 'Labels',
136
172
  replicas: 'Replicas',
137
173
  SSLRedirectionEnabled: 'SSLRedirectionEnabled',
138
174
  status: 'Status',
@@ -152,6 +188,7 @@ export class ListGatewayResponseBodyGateways extends $dara.Model {
152
188
  intranetDomain: 'string',
153
189
  intranetEnabled: 'boolean',
154
190
  isDefault: 'boolean',
191
+ labels: { 'type': 'array', 'itemType': ListGatewayResponseBodyGatewaysLabels },
155
192
  replicas: 'number',
156
193
  SSLRedirectionEnabled: 'boolean',
157
194
  status: 'string',
@@ -160,6 +197,9 @@ export class ListGatewayResponseBodyGateways extends $dara.Model {
160
197
  }
161
198
 
162
199
  validate() {
200
+ if(Array.isArray(this.labels)) {
201
+ $dara.Model.validateArray(this.labels);
202
+ }
163
203
  super.validate();
164
204
  }
165
205
 
@@ -0,0 +1,95 @@
1
+ // This file is auto-generated, don't edit it
2
+ import * as $dara from '@darabonba/typescript';
3
+
4
+
5
+ export class ListGatewayShrinkRequest extends $dara.Model {
6
+ chargeType?: string;
7
+ /**
8
+ * @remarks
9
+ * The private gateway ID. To obtain the private gateway ID, see the private_gateway_id parameter in the response parameters of the ListResources operation.
10
+ *
11
+ * @example
12
+ * gw-1uhcqmsc7x22******
13
+ */
14
+ gatewayId?: string;
15
+ /**
16
+ * @remarks
17
+ * The private gateway alias.
18
+ *
19
+ * @example
20
+ * mygateway1
21
+ */
22
+ gatewayName?: string;
23
+ gatewayType?: string;
24
+ internetEnabled?: boolean;
25
+ labelShrink?: string;
26
+ order?: string;
27
+ /**
28
+ * @remarks
29
+ * The page number. Default value: 1.
30
+ *
31
+ * @example
32
+ * 1
33
+ */
34
+ pageNumber?: number;
35
+ /**
36
+ * @remarks
37
+ * The number of entries per page. Default value: 100.
38
+ *
39
+ * @example
40
+ * 100
41
+ */
42
+ pageSize?: number;
43
+ /**
44
+ * @remarks
45
+ * The ID of the resource group. To obtain a resource group ID, see the ResourceId field in the response of the [ListResources](https://help.aliyun.com/document_detail/412133.html) operation.
46
+ *
47
+ * @example
48
+ * eas-r-4gt8twzwllfo******
49
+ */
50
+ resourceName?: string;
51
+ sort?: string;
52
+ status?: string;
53
+ static names(): { [key: string]: string } {
54
+ return {
55
+ chargeType: 'ChargeType',
56
+ gatewayId: 'GatewayId',
57
+ gatewayName: 'GatewayName',
58
+ gatewayType: 'GatewayType',
59
+ internetEnabled: 'InternetEnabled',
60
+ labelShrink: 'Label',
61
+ order: 'Order',
62
+ pageNumber: 'PageNumber',
63
+ pageSize: 'PageSize',
64
+ resourceName: 'ResourceName',
65
+ sort: 'Sort',
66
+ status: 'Status',
67
+ };
68
+ }
69
+
70
+ static types(): { [key: string]: any } {
71
+ return {
72
+ chargeType: 'string',
73
+ gatewayId: 'string',
74
+ gatewayName: 'string',
75
+ gatewayType: 'string',
76
+ internetEnabled: 'boolean',
77
+ labelShrink: 'string',
78
+ order: 'string',
79
+ pageNumber: 'number',
80
+ pageSize: 'number',
81
+ resourceName: 'string',
82
+ sort: 'string',
83
+ status: 'string',
84
+ };
85
+ }
86
+
87
+ validate() {
88
+ super.validate();
89
+ }
90
+
91
+ constructor(map?: { [key: string]: any }) {
92
+ super(map);
93
+ }
94
+ }
95
+
@@ -0,0 +1,51 @@
1
+ // This file is auto-generated, don't edit it
2
+ import * as $dara from '@darabonba/typescript';
3
+
4
+
5
+ export class MigrateResourceInstanceRequest extends $dara.Model {
6
+ /**
7
+ * @remarks
8
+ * The ID of the destination resource group.
9
+ *
10
+ * This parameter is required.
11
+ *
12
+ * @example
13
+ * eas-r-asdasdasd****
14
+ */
15
+ destResourceId?: string;
16
+ /**
17
+ * @remarks
18
+ * The instance ID.
19
+ *
20
+ * This parameter is required.
21
+ */
22
+ instanceIds?: string[];
23
+ migrateToHybrid?: boolean;
24
+ static names(): { [key: string]: string } {
25
+ return {
26
+ destResourceId: 'DestResourceId',
27
+ instanceIds: 'InstanceIds',
28
+ migrateToHybrid: 'MigrateToHybrid',
29
+ };
30
+ }
31
+
32
+ static types(): { [key: string]: any } {
33
+ return {
34
+ destResourceId: 'string',
35
+ instanceIds: { 'type': 'array', 'itemType': 'string' },
36
+ migrateToHybrid: 'boolean',
37
+ };
38
+ }
39
+
40
+ validate() {
41
+ if(Array.isArray(this.instanceIds)) {
42
+ $dara.Model.validateArray(this.instanceIds);
43
+ }
44
+ super.validate();
45
+ }
46
+
47
+ constructor(map?: { [key: string]: any }) {
48
+ super(map);
49
+ }
50
+ }
51
+
@@ -0,0 +1,40 @@
1
+ // This file is auto-generated, don't edit it
2
+ import * as $dara from '@darabonba/typescript';
3
+ import { MigrateResourceInstanceResponseBody } from "./MigrateResourceInstanceResponseBody";
4
+
5
+
6
+ export class MigrateResourceInstanceResponse extends $dara.Model {
7
+ headers?: { [key: string]: string };
8
+ statusCode?: number;
9
+ body?: MigrateResourceInstanceResponseBody;
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: MigrateResourceInstanceResponseBody,
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,54 @@
1
+ // This file is auto-generated, don't edit it
2
+ import * as $dara from '@darabonba/typescript';
3
+
4
+
5
+ export class MigrateResourceInstanceResponseBody extends $dara.Model {
6
+ /**
7
+ * @remarks
8
+ * The instance ID.
9
+ */
10
+ instanceIds?: string[];
11
+ /**
12
+ * @remarks
13
+ * The returned message.
14
+ *
15
+ * @example
16
+ * Success
17
+ */
18
+ message?: string;
19
+ /**
20
+ * @remarks
21
+ * The request ID.
22
+ *
23
+ * @example
24
+ * 40325405-579C-4D82***
25
+ */
26
+ requestId?: string;
27
+ static names(): { [key: string]: string } {
28
+ return {
29
+ instanceIds: 'InstanceIds',
30
+ message: 'Message',
31
+ requestId: 'RequestId',
32
+ };
33
+ }
34
+
35
+ static types(): { [key: string]: any } {
36
+ return {
37
+ instanceIds: { 'type': 'array', 'itemType': 'string' },
38
+ message: 'string',
39
+ requestId: 'string',
40
+ };
41
+ }
42
+
43
+ validate() {
44
+ if(Array.isArray(this.instanceIds)) {
45
+ $dara.Model.validateArray(this.instanceIds);
46
+ }
47
+ super.validate();
48
+ }
49
+
50
+ constructor(map?: { [key: string]: any }) {
51
+ super(map);
52
+ }
53
+ }
54
+
@@ -15,6 +15,7 @@ export { CreateServiceCronScalerRequestScaleJobs } from './CreateServiceCronScal
15
15
  export { CreateVirtualResourceRequestResources } from './CreateVirtualResourceRequest';
16
16
  export { DeleteAclPolicyRequestAclPolicyList } from './DeleteAclPolicyRequest';
17
17
  export { DeleteGatewayIntranetLinkedVpcPeerRequestPeerVpcs } from './DeleteGatewayIntranetLinkedVpcPeerRequest';
18
+ export { DescribeGatewayResponseBodyLabels } from './DescribeGatewayResponseBody';
18
19
  export { DescribeGroupEndpointsResponseBodyEndpoints } from './DescribeGroupEndpointsResponseBody';
19
20
  export { DescribeMachineSpecResponseBodyInstanceMetas } from './DescribeMachineSpecResponseBody';
20
21
  export { DescribeMachineSpecResponseBodyTypes } from './DescribeMachineSpecResponseBody';
@@ -34,6 +35,7 @@ export { ListAclPolicyResponseBodyInternetAclPolicyList } from './ListAclPolicyR
34
35
  export { ListAclPolicyResponseBodyIntranetVpcAclPolicyListAclPolicyList } from './ListAclPolicyResponseBody';
35
36
  export { ListAclPolicyResponseBodyIntranetVpcAclPolicyList } from './ListAclPolicyResponseBody';
36
37
  export { ListBenchmarkTaskResponseBodyTasks } from './ListBenchmarkTaskResponseBody';
38
+ export { ListGatewayResponseBodyGatewaysLabels } from './ListGatewayResponseBody';
37
39
  export { ListGatewayResponseBodyGateways } from './ListGatewayResponseBody';
38
40
  export { ListGatewayDomainsResponseBodyCustomDomains } from './ListGatewayDomainsResponseBody';
39
41
  export { ListGatewayIntranetLinkedVpcResponseBodyIntranetLinkedVpcList } from './ListGatewayIntranetLinkedVpcResponseBody';
@@ -228,6 +230,7 @@ export { ListBenchmarkTaskRequest } from './ListBenchmarkTaskRequest';
228
230
  export { ListBenchmarkTaskResponseBody } from './ListBenchmarkTaskResponseBody';
229
231
  export { ListBenchmarkTaskResponse } from './ListBenchmarkTaskResponse';
230
232
  export { ListGatewayRequest } from './ListGatewayRequest';
233
+ export { ListGatewayShrinkRequest } from './ListGatewayShrinkRequest';
231
234
  export { ListGatewayResponseBody } from './ListGatewayResponseBody';
232
235
  export { ListGatewayResponse } from './ListGatewayResponse';
233
236
  export { ListGatewayDomainsResponseBody } from './ListGatewayDomainsResponseBody';
@@ -274,6 +277,9 @@ export { ListTenantAddonsResponse } from './ListTenantAddonsResponse';
274
277
  export { ListVirtualResourceRequest } from './ListVirtualResourceRequest';
275
278
  export { ListVirtualResourceResponseBody } from './ListVirtualResourceResponseBody';
276
279
  export { ListVirtualResourceResponse } from './ListVirtualResourceResponse';
280
+ export { MigrateResourceInstanceRequest } from './MigrateResourceInstanceRequest';
281
+ export { MigrateResourceInstanceResponseBody } from './MigrateResourceInstanceResponseBody';
282
+ export { MigrateResourceInstanceResponse } from './MigrateResourceInstanceResponse';
277
283
  export { ReinstallTenantAddonResponseBody } from './ReinstallTenantAddonResponseBody';
278
284
  export { ReinstallTenantAddonResponse } from './ReinstallTenantAddonResponse';
279
285
  export { ReleaseServiceRequest } from './ReleaseServiceRequest';