@alicloud/eas20210701 7.3.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.
- package/dist/client.d.ts +2 -2
- package/dist/client.js +11 -3
- package/dist/client.js.map +1 -1
- package/dist/models/DescribeGatewayResponseBody.d.ts +23 -0
- package/dist/models/DescribeGatewayResponseBody.js +27 -1
- package/dist/models/DescribeGatewayResponseBody.js.map +1 -1
- package/dist/models/ListGatewayRequest.d.ts +3 -0
- package/dist/models/ListGatewayRequest.js +5 -0
- package/dist/models/ListGatewayRequest.js.map +1 -1
- package/dist/models/ListGatewayResponseBody.d.ts +23 -0
- package/dist/models/ListGatewayResponseBody.js +27 -1
- package/dist/models/ListGatewayResponseBody.js.map +1 -1
- package/dist/models/ListGatewayShrinkRequest.d.ts +60 -0
- package/dist/models/ListGatewayShrinkRequest.js +80 -0
- package/dist/models/ListGatewayShrinkRequest.js.map +1 -0
- package/dist/models/model.d.ts +3 -0
- package/dist/models/model.js +18 -12
- package/dist/models/model.js.map +1 -1
- package/package.json +1 -1
- package/src/client.ts +13 -3
- package/src/models/DescribeGatewayResponseBody.ts +40 -0
- package/src/models/ListGatewayRequest.ts +6 -0
- package/src/models/ListGatewayResponseBody.ts +40 -0
- package/src/models/ListGatewayShrinkRequest.ts +95 -0
- package/src/models/model.ts +3 -0
package/src/client.ts
CHANGED
|
@@ -2986,13 +2986,19 @@ export default class Client extends OpenApi {
|
|
|
2986
2986
|
/**
|
|
2987
2987
|
* Queries a list of private gateways.
|
|
2988
2988
|
*
|
|
2989
|
-
* @param
|
|
2989
|
+
* @param tmpReq - ListGatewayRequest
|
|
2990
2990
|
* @param headers - map
|
|
2991
2991
|
* @param runtime - runtime options for this request RuntimeOptions
|
|
2992
2992
|
* @returns ListGatewayResponse
|
|
2993
2993
|
*/
|
|
2994
|
-
async listGatewayWithOptions(
|
|
2995
|
-
|
|
2994
|
+
async listGatewayWithOptions(tmpReq: $_model.ListGatewayRequest, headers: {[key: string ]: string}, runtime: $dara.RuntimeOptions): Promise<$_model.ListGatewayResponse> {
|
|
2995
|
+
tmpReq.validate();
|
|
2996
|
+
let request = new $_model.ListGatewayShrinkRequest({ });
|
|
2997
|
+
OpenApiUtil.convert(tmpReq, request);
|
|
2998
|
+
if (!$dara.isNull(tmpReq.label)) {
|
|
2999
|
+
request.labelShrink = OpenApiUtil.arrayToStringWithSpecifiedStyle(tmpReq.label, "Label", "json");
|
|
3000
|
+
}
|
|
3001
|
+
|
|
2996
3002
|
let query : {[key: string ]: any} = { };
|
|
2997
3003
|
if (!$dara.isNull(request.chargeType)) {
|
|
2998
3004
|
query["ChargeType"] = request.chargeType;
|
|
@@ -3014,6 +3020,10 @@ export default class Client extends OpenApi {
|
|
|
3014
3020
|
query["InternetEnabled"] = request.internetEnabled;
|
|
3015
3021
|
}
|
|
3016
3022
|
|
|
3023
|
+
if (!$dara.isNull(request.labelShrink)) {
|
|
3024
|
+
query["Label"] = request.labelShrink;
|
|
3025
|
+
}
|
|
3026
|
+
|
|
3017
3027
|
if (!$dara.isNull(request.order)) {
|
|
3018
3028
|
query["Order"] = request.order;
|
|
3019
3029
|
}
|
|
@@ -2,6 +2,40 @@
|
|
|
2
2
|
import * as $dara from '@darabonba/typescript';
|
|
3
3
|
|
|
4
4
|
|
|
5
|
+
export class DescribeGatewayResponseBodyLabels 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 DescribeGatewayResponseBody extends $dara.Model {
|
|
6
40
|
chargeType?: string;
|
|
7
41
|
/**
|
|
@@ -100,6 +134,7 @@ export class DescribeGatewayResponseBody extends $dara.Model {
|
|
|
100
134
|
* true
|
|
101
135
|
*/
|
|
102
136
|
isDefault?: boolean;
|
|
137
|
+
labels?: DescribeGatewayResponseBodyLabels[];
|
|
103
138
|
/**
|
|
104
139
|
* @remarks
|
|
105
140
|
* The number of nodes in the private gateway.
|
|
@@ -164,6 +199,7 @@ export class DescribeGatewayResponseBody extends $dara.Model {
|
|
|
164
199
|
intranetDomain: 'IntranetDomain',
|
|
165
200
|
intranetEnabled: 'IntranetEnabled',
|
|
166
201
|
isDefault: 'IsDefault',
|
|
202
|
+
labels: 'Labels',
|
|
167
203
|
replicas: 'Replicas',
|
|
168
204
|
requestId: 'RequestId',
|
|
169
205
|
SSLRedirectionEnabled: 'SSLRedirectionEnabled',
|
|
@@ -186,6 +222,7 @@ export class DescribeGatewayResponseBody extends $dara.Model {
|
|
|
186
222
|
intranetDomain: 'string',
|
|
187
223
|
intranetEnabled: 'boolean',
|
|
188
224
|
isDefault: 'boolean',
|
|
225
|
+
labels: { 'type': 'array', 'itemType': DescribeGatewayResponseBodyLabels },
|
|
189
226
|
replicas: 'number',
|
|
190
227
|
requestId: 'string',
|
|
191
228
|
SSLRedirectionEnabled: 'boolean',
|
|
@@ -195,6 +232,9 @@ export class DescribeGatewayResponseBody extends $dara.Model {
|
|
|
195
232
|
}
|
|
196
233
|
|
|
197
234
|
validate() {
|
|
235
|
+
if(Array.isArray(this.labels)) {
|
|
236
|
+
$dara.Model.validateArray(this.labels);
|
|
237
|
+
}
|
|
198
238
|
super.validate();
|
|
199
239
|
}
|
|
200
240
|
|
|
@@ -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
|
+
|
package/src/models/model.ts
CHANGED
|
@@ -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';
|