Skip to content

Commit d29b637

Browse files
committed
Update API CreateWuyingServer: add request parameters VirtualNodePoolId.
1 parent 08e1c28 commit d29b637

File tree

7 files changed

+154
-23
lines changed

7 files changed

+154
-23
lines changed

appstream-center-20210901/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@alicloud/appstream-center20210901",
3-
"version": "4.1.0",
3+
"version": "4.1.1",
44
"description": "",
55
"main": "dist/client.js",
66
"scripts": {

appstream-center-20210901/src/client.ts

Lines changed: 31 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@ export default class Client extends OpenApi {
1111

1212
constructor(config: $OpenApiUtil.Config) {
1313
super(config);
14-
this._signatureAlgorithm = "v2";
1514
this._endpointRule = "";
1615
this.checkConfig(config);
1716
this._endpoint = this.getEndpoint("appstream-center", this._regionId, this._endpointRule, this._network, this._suffix, this._endpointMap, this._endpoint);
@@ -484,6 +483,10 @@ export default class Client extends OpenApi {
484483
body["VSwitchIds"] = request.vSwitchIds;
485484
}
486485

486+
if (!$dara.isNull(request.virtualNodePoolId)) {
487+
body["VirtualNodePoolId"] = request.virtualNodePoolId;
488+
}
489+
487490
if (!$dara.isNull(request.wuyingServerName)) {
488491
body["WuyingServerName"] = request.wuyingServerName;
489492
}
@@ -1682,6 +1685,11 @@ export default class Client extends OpenApi {
16821685
async listWuyingServerWithOptions(request: $_model.ListWuyingServerRequest, runtime: $dara.RuntimeOptions): Promise<$_model.ListWuyingServerResponse> {
16831686
request.validate();
16841687
let body : {[key: string ]: any} = { };
1688+
let bodyFlat : {[key: string ]: any} = { };
1689+
if (!$dara.isNull(request.addVirtualNodePoolStatusList)) {
1690+
bodyFlat["AddVirtualNodePoolStatusList"] = request.addVirtualNodePoolStatusList;
1691+
}
1692+
16851693
if (!$dara.isNull(request.bizRegionId)) {
16861694
body["BizRegionId"] = request.bizRegionId;
16871695
}
@@ -1714,7 +1722,10 @@ export default class Client extends OpenApi {
17141722
body["Status"] = request.status;
17151723
}
17161724

1717-
let bodyFlat : {[key: string ]: any} = { };
1725+
if (!$dara.isNull(request.virtualNodePoolId)) {
1726+
body["VirtualNodePoolId"] = request.virtualNodePoolId;
1727+
}
1728+
17181729
if (!$dara.isNull(request.wuyingServerIdList)) {
17191730
bodyFlat["WuyingServerIdList"] = request.wuyingServerIdList;
17201731
}
@@ -2022,6 +2033,15 @@ export default class Client extends OpenApi {
20222033
}
20232034

20242035
/**
2036+
* Changes the scaling policy of a delivery group. The following scaling policies are supported: fixed resource number, scheduled scaling, and auto scaling.
2037+
*
2038+
* @remarks
2039+
* You can select one of the following scaling policies for cloud app resources:
2040+
* * No scaling: Resources are not scaled.
2041+
* * Auto scaling: Resources are automatically scaled based on the number of connected sessions and the duration during which no session is connected.
2042+
* * Scheduled scaling: Resources are scaled during specific periods of time on specific dates.
2043+
* Before you call this operation, make sure that you fully understand the [billing methods and prices](https://help.aliyun.com/document_detail/426039.html) of App Streaming.
2044+
*
20252045
* @param tmpReq - ModifyNodePoolAttributeRequest
20262046
* @param runtime - runtime options for this request RuntimeOptions
20272047
* @returns ModifyNodePoolAttributeResponse
@@ -2073,6 +2093,15 @@ export default class Client extends OpenApi {
20732093
}
20742094

20752095
/**
2096+
* Changes the scaling policy of a delivery group. The following scaling policies are supported: fixed resource number, scheduled scaling, and auto scaling.
2097+
*
2098+
* @remarks
2099+
* You can select one of the following scaling policies for cloud app resources:
2100+
* * No scaling: Resources are not scaled.
2101+
* * Auto scaling: Resources are automatically scaled based on the number of connected sessions and the duration during which no session is connected.
2102+
* * Scheduled scaling: Resources are scaled during specific periods of time on specific dates.
2103+
* Before you call this operation, make sure that you fully understand the [billing methods and prices](https://help.aliyun.com/document_detail/426039.html) of App Streaming.
2104+
*
20762105
* @param request - ModifyNodePoolAttributeRequest
20772106
* @returns ModifyNodePoolAttributeResponse
20782107
*/

appstream-center-20210901/src/models/CreateWuyingServerRequest.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -121,6 +121,7 @@ export class CreateWuyingServerRequest extends $dara.Model {
121121
*/
122122
systemDiskSize?: number;
123123
vSwitchIds?: string[];
124+
virtualNodePoolId?: string;
124125
/**
125126
* @example
126127
* exampleServerName
@@ -145,6 +146,7 @@ export class CreateWuyingServerRequest extends $dara.Model {
145146
systemDiskPerformanceLevel: 'SystemDiskPerformanceLevel',
146147
systemDiskSize: 'SystemDiskSize',
147148
vSwitchIds: 'VSwitchIds',
149+
virtualNodePoolId: 'VirtualNodePoolId',
148150
wuyingServerName: 'WuyingServerName',
149151
};
150152
}
@@ -168,6 +170,7 @@ export class CreateWuyingServerRequest extends $dara.Model {
168170
systemDiskPerformanceLevel: 'string',
169171
systemDiskSize: 'number',
170172
vSwitchIds: { 'type': 'array', 'itemType': 'string' },
173+
virtualNodePoolId: 'string',
171174
wuyingServerName: 'string',
172175
};
173176
}

appstream-center-20210901/src/models/ListWuyingServerRequest.ts

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ import * as $dara from '@darabonba/typescript';
33

44

55
export class ListWuyingServerRequest extends $dara.Model {
6+
addVirtualNodePoolStatusList?: string[];
67
/**
78
* @example
89
* cn-hangzhou
@@ -43,6 +44,7 @@ export class ListWuyingServerRequest extends $dara.Model {
4344
* RUNNING
4445
*/
4546
status?: string;
47+
virtualNodePoolId?: string;
4648
wuyingServerIdList?: string[];
4749
/**
4850
* @example
@@ -51,6 +53,7 @@ export class ListWuyingServerRequest extends $dara.Model {
5153
wuyingServerNameOrId?: string;
5254
static names(): { [key: string]: string } {
5355
return {
56+
addVirtualNodePoolStatusList: 'AddVirtualNodePoolStatusList',
5457
bizRegionId: 'BizRegionId',
5558
chargeType: 'ChargeType',
5659
imageId: 'ImageId',
@@ -59,13 +62,15 @@ export class ListWuyingServerRequest extends $dara.Model {
5962
pageSize: 'PageSize',
6063
serverInstanceType: 'ServerInstanceType',
6164
status: 'Status',
65+
virtualNodePoolId: 'VirtualNodePoolId',
6266
wuyingServerIdList: 'WuyingServerIdList',
6367
wuyingServerNameOrId: 'WuyingServerNameOrId',
6468
};
6569
}
6670

6771
static types(): { [key: string]: any } {
6872
return {
73+
addVirtualNodePoolStatusList: { 'type': 'array', 'itemType': 'string' },
6974
bizRegionId: 'string',
7075
chargeType: 'string',
7176
imageId: 'string',
@@ -74,12 +79,16 @@ export class ListWuyingServerRequest extends $dara.Model {
7479
pageSize: 'number',
7580
serverInstanceType: 'string',
7681
status: 'string',
82+
virtualNodePoolId: 'string',
7783
wuyingServerIdList: { 'type': 'array', 'itemType': 'string' },
7884
wuyingServerNameOrId: 'string',
7985
};
8086
}
8187

8288
validate() {
89+
if(Array.isArray(this.addVirtualNodePoolStatusList)) {
90+
$dara.Model.validateArray(this.addVirtualNodePoolStatusList);
91+
}
8392
if(Array.isArray(this.wuyingServerIdList)) {
8493
$dara.Model.validateArray(this.wuyingServerIdList);
8594
}

appstream-center-20210901/src/models/ListWuyingServerResponseBody.ts

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -133,6 +133,7 @@ export class ListWuyingServerResponseBodyWuyingServerListServerInstanceTypeInfo
133133
}
134134

135135
export class ListWuyingServerResponseBodyWuyingServerList extends $dara.Model {
136+
addVirtualNodePoolStatus?: string;
136137
/**
137138
* @example
138139
* cn-hangzhou
@@ -186,6 +187,7 @@ export class ListWuyingServerResponseBodyWuyingServerList extends $dara.Model {
186187
* Linux
187188
*/
188189
osType?: string;
190+
securityGroupIds?: string[];
189191
serverInstanceTypeInfo?: ListWuyingServerResponseBodyWuyingServerListServerInstanceTypeInfo;
190192
/**
191193
* @example
@@ -207,6 +209,7 @@ export class ListWuyingServerResponseBodyWuyingServerList extends $dara.Model {
207209
* 100
208210
*/
209211
systemDiskSize?: number;
212+
virtualNodePoolId?: string;
210213
/**
211214
* @example
212215
* ws-0byd****8wn2lwi
@@ -219,6 +222,7 @@ export class ListWuyingServerResponseBodyWuyingServerList extends $dara.Model {
219222
wuyingServerName?: string;
220223
static names(): { [key: string]: string } {
221224
return {
225+
addVirtualNodePoolStatus: 'AddVirtualNodePoolStatus',
222226
bizRegionId: 'BizRegionId',
223227
chargeType: 'ChargeType',
224228
createTime: 'CreateTime',
@@ -232,18 +236,21 @@ export class ListWuyingServerResponseBodyWuyingServerList extends $dara.Model {
232236
officeSiteName: 'OfficeSiteName',
233237
officeSiteType: 'OfficeSiteType',
234238
osType: 'OsType',
239+
securityGroupIds: 'SecurityGroupIds',
235240
serverInstanceTypeInfo: 'ServerInstanceTypeInfo',
236241
status: 'Status',
237242
systemDiskCategory: 'SystemDiskCategory',
238243
systemDiskPerformanceLevel: 'SystemDiskPerformanceLevel',
239244
systemDiskSize: 'SystemDiskSize',
245+
virtualNodePoolId: 'VirtualNodePoolId',
240246
wuyingServerId: 'WuyingServerId',
241247
wuyingServerName: 'WuyingServerName',
242248
};
243249
}
244250

245251
static types(): { [key: string]: any } {
246252
return {
253+
addVirtualNodePoolStatus: 'string',
247254
bizRegionId: 'string',
248255
chargeType: 'string',
249256
createTime: 'string',
@@ -257,11 +264,13 @@ export class ListWuyingServerResponseBodyWuyingServerList extends $dara.Model {
257264
officeSiteName: 'string',
258265
officeSiteType: 'string',
259266
osType: 'string',
267+
securityGroupIds: { 'type': 'array', 'itemType': 'string' },
260268
serverInstanceTypeInfo: ListWuyingServerResponseBodyWuyingServerListServerInstanceTypeInfo,
261269
status: 'string',
262270
systemDiskCategory: 'string',
263271
systemDiskPerformanceLevel: 'string',
264272
systemDiskSize: 'number',
273+
virtualNodePoolId: 'string',
265274
wuyingServerId: 'string',
266275
wuyingServerName: 'string',
267276
};
@@ -274,6 +283,9 @@ export class ListWuyingServerResponseBodyWuyingServerList extends $dara.Model {
274283
if(Array.isArray(this.instanceInfoList)) {
275284
$dara.Model.validateArray(this.instanceInfoList);
276285
}
286+
if(Array.isArray(this.securityGroupIds)) {
287+
$dara.Model.validateArray(this.securityGroupIds);
288+
}
277289
if(this.serverInstanceTypeInfo && typeof (this.serverInstanceTypeInfo as any).validate === 'function') {
278290
(this.serverInstanceTypeInfo as any).validate();
279291
}

0 commit comments

Comments
 (0)