Skip to content

Commit 9c805d6

Browse files
committed
Support API ModifyInstanceClockOptions.
1 parent 242e30f commit 9c805d6

19 files changed

+537
-17
lines changed

ecs-20140526/package.json

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

ecs-20140526/src/client.ts

Lines changed: 108 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -15461,6 +15461,10 @@ export default class Client extends OpenApi {
1546115461
async describeInstanceTypesWithOptions(request: $_model.DescribeInstanceTypesRequest, runtime: $dara.RuntimeOptions): Promise<$_model.DescribeInstanceTypesResponse> {
1546215462
request.validate();
1546315463
let query = { };
15464+
if (!$dara.isNull(request.additionalAttributes)) {
15465+
query["AdditionalAttributes"] = request.additionalAttributes;
15466+
}
15467+
1546415468
if (!$dara.isNull(request.cpuArchitecture)) {
1546515469
query["CpuArchitecture"] = request.cpuArchitecture;
1546615470
}
@@ -19061,6 +19065,10 @@ export default class Client extends OpenApi {
1906119065
async describeSecurityGroupAttributeWithOptions(request: $_model.DescribeSecurityGroupAttributeRequest, runtime: $dara.RuntimeOptions): Promise<$_model.DescribeSecurityGroupAttributeResponse> {
1906219066
request.validate();
1906319067
let query = { };
19068+
if (!$dara.isNull(request.attribute)) {
19069+
query["Attribute"] = request.attribute;
19070+
}
19071+
1906419072
if (!$dara.isNull(request.direction)) {
1906519073
query["Direction"] = request.direction;
1906619074
}
@@ -26487,6 +26495,90 @@ export default class Client extends OpenApi {
2648726495
return await this.modifyInstanceChargeTypeWithOptions(request, runtime);
2648826496
}
2648926497

26498+
/**
26499+
* Modifies the instance clock options.
26500+
*
26501+
* @remarks
26502+
* When you call this operation, note that:
26503+
* * This is an asynchronous operation. The ID of the asynchronous task is returned after the call. Query the asynchronous task result to determine whether the execution is complete.
26504+
* * To modify the PtpStatus parameter, you must specify the parameter. The instance types that are supported. You can query the instance type list ([DescribeInstanceTypes](https://help.aliyun.com/document_detail/25620.html) ).
26505+
*
26506+
* @param request - ModifyInstanceClockOptionsRequest
26507+
* @param runtime - runtime options for this request RuntimeOptions
26508+
* @returns ModifyInstanceClockOptionsResponse
26509+
*/
26510+
async modifyInstanceClockOptionsWithOptions(request: $_model.ModifyInstanceClockOptionsRequest, runtime: $dara.RuntimeOptions): Promise<$_model.ModifyInstanceClockOptionsResponse> {
26511+
request.validate();
26512+
let query = { };
26513+
if (!$dara.isNull(request.clientToken)) {
26514+
query["ClientToken"] = request.clientToken;
26515+
}
26516+
26517+
if (!$dara.isNull(request.dryRun)) {
26518+
query["DryRun"] = request.dryRun;
26519+
}
26520+
26521+
if (!$dara.isNull(request.instanceId)) {
26522+
query["InstanceId"] = request.instanceId;
26523+
}
26524+
26525+
if (!$dara.isNull(request.ownerAccount)) {
26526+
query["OwnerAccount"] = request.ownerAccount;
26527+
}
26528+
26529+
if (!$dara.isNull(request.ownerId)) {
26530+
query["OwnerId"] = request.ownerId;
26531+
}
26532+
26533+
if (!$dara.isNull(request.ptpStatus)) {
26534+
query["PtpStatus"] = request.ptpStatus;
26535+
}
26536+
26537+
if (!$dara.isNull(request.regionId)) {
26538+
query["RegionId"] = request.regionId;
26539+
}
26540+
26541+
if (!$dara.isNull(request.resourceOwnerAccount)) {
26542+
query["ResourceOwnerAccount"] = request.resourceOwnerAccount;
26543+
}
26544+
26545+
if (!$dara.isNull(request.resourceOwnerId)) {
26546+
query["ResourceOwnerId"] = request.resourceOwnerId;
26547+
}
26548+
26549+
let req = new $OpenApiUtil.OpenApiRequest({
26550+
query: OpenApiUtil.query(query),
26551+
});
26552+
let params = new $OpenApiUtil.Params({
26553+
action: "ModifyInstanceClockOptions",
26554+
version: "2014-05-26",
26555+
protocol: "HTTPS",
26556+
pathname: "/",
26557+
method: "POST",
26558+
authType: "AK",
26559+
style: "RPC",
26560+
reqBodyType: "formData",
26561+
bodyType: "json",
26562+
});
26563+
return $dara.cast<$_model.ModifyInstanceClockOptionsResponse>(await this.callApi(params, req, runtime), new $_model.ModifyInstanceClockOptionsResponse({}));
26564+
}
26565+
26566+
/**
26567+
* Modifies the instance clock options.
26568+
*
26569+
* @remarks
26570+
* When you call this operation, note that:
26571+
* * This is an asynchronous operation. The ID of the asynchronous task is returned after the call. Query the asynchronous task result to determine whether the execution is complete.
26572+
* * To modify the PtpStatus parameter, you must specify the parameter. The instance types that are supported. You can query the instance type list ([DescribeInstanceTypes](https://help.aliyun.com/document_detail/25620.html) ).
26573+
*
26574+
* @param request - ModifyInstanceClockOptionsRequest
26575+
* @returns ModifyInstanceClockOptionsResponse
26576+
*/
26577+
async modifyInstanceClockOptions(request: $_model.ModifyInstanceClockOptionsRequest): Promise<$_model.ModifyInstanceClockOptionsResponse> {
26578+
let runtime = new $dara.RuntimeOptions({ });
26579+
return await this.modifyInstanceClockOptionsWithOptions(request, runtime);
26580+
}
26581+
2649026582
/**
2649126583
* Changes the deployment set of an Elastic Compute Service (ECS) instance or migrates an ECS instance to a dedicated host. You can change the instance type of an ECS instance when you migrate the instance.
2649226584
*
@@ -26766,7 +26858,13 @@ export default class Client extends OpenApi {
2676626858
}
2676726859

2676826860
/**
26769-
* 修改实例网络选项
26861+
* Modifies instance network configurations.
26862+
*
26863+
* @remarks
26864+
* When you call this operation, take note of the following item:
26865+
* * This is an asynchronous operation. The ID of the asynchronous task is returned after the call. Query the asynchronous task result to determine whether the execution is complete.
26866+
* * You can modify only one attribute at a time. If you modify multiple attributes, call this operation multiple times.
26867+
* * To modify the BandwidthWeighting, you must specify the specifications of the instance. The instance types that are supported. You can query the instance type list (DescribeInstanceTypes).
2677026868
*
2677126869
* @param request - ModifyInstanceNetworkOptionsRequest
2677226870
* @param runtime - runtime options for this request RuntimeOptions
@@ -26813,7 +26911,13 @@ export default class Client extends OpenApi {
2681326911
}
2681426912

2681526913
/**
26816-
* 修改实例网络选项
26914+
* Modifies instance network configurations.
26915+
*
26916+
* @remarks
26917+
* When you call this operation, take note of the following item:
26918+
* * This is an asynchronous operation. The ID of the asynchronous task is returned after the call. Query the asynchronous task result to determine whether the execution is complete.
26919+
* * You can modify only one attribute at a time. If you modify multiple attributes, call this operation multiple times.
26920+
* * To modify the BandwidthWeighting, you must specify the specifications of the instance. The instance types that are supported. You can query the instance type list (DescribeInstanceTypes).
2681726921
*
2681826922
* @param request - ModifyInstanceNetworkOptionsRequest
2681926923
* @returns ModifyInstanceNetworkOptionsResponse
@@ -29094,11 +29198,9 @@ export default class Client extends OpenApi {
2909429198
* Changes the type of a snapshot. You can call this operation to convert a standard snapshot into an archive snapshot.
2909529199
*
2909629200
* @remarks
29097-
* Archive snapshots cannot be restored to standard snapshots.
29201+
* Archived snapshots cannot be restored to standard snapshots.
2909829202
* * You can archive only standard snapshots that have been retained for at least 14 days.
29099-
* * You cannot archive encrypted snapshots.
2910029203
* * You cannot archive snapshots that are shared to you, snapshots managed by Cloud Backup, or snapshots in cloud boxes.
29101-
* * The archive snapshot feature is available only in the China (Hohhot), Malaysia (Kuala Lumpur), South Korea (Seoul), Philippines (Manila), Thailand (Bangkok), and Mexico regions. The availability of the feature in other regions is subject to notice.
2910229204
*
2910329205
* @param request - ModifySnapshotCategoryRequest
2910429206
* @param runtime - runtime options for this request RuntimeOptions
@@ -29156,11 +29258,9 @@ export default class Client extends OpenApi {
2915629258
* Changes the type of a snapshot. You can call this operation to convert a standard snapshot into an archive snapshot.
2915729259
*
2915829260
* @remarks
29159-
* Archive snapshots cannot be restored to standard snapshots.
29261+
* Archived snapshots cannot be restored to standard snapshots.
2916029262
* * You can archive only standard snapshots that have been retained for at least 14 days.
29161-
* * You cannot archive encrypted snapshots.
2916229263
* * You cannot archive snapshots that are shared to you, snapshots managed by Cloud Backup, or snapshots in cloud boxes.
29163-
* * The archive snapshot feature is available only in the China (Hohhot), Malaysia (Kuala Lumpur), South Korea (Seoul), Philippines (Manila), Thailand (Bangkok), and Mexico regions. The availability of the feature in other regions is subject to notice.
2916429264
*
2916529265
* @param request - ModifySnapshotCategoryRequest
2916629266
* @returns ModifySnapshotCategoryResponse

ecs-20140526/src/models/CreatePrefixListRequest.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,17 +5,17 @@ import * as $dara from '@darabonba/typescript';
55
export class CreatePrefixListRequestEntry extends $dara.Model {
66
/**
77
* @remarks
8-
* The CIDR block in entry N. Valid values of N: 0 to 200. Take note of the following items:
8+
* The CIDR block in entry N. Valid values of N: 0 to 200. Notes:
99
*
1010
* * The total number of entries cannot exceed the `MaxEntries` value.
1111
* * CIDR block types are determined by the IP address family. You cannot combine IPv4 and IPv6 CIDR blocks in a single prefix list.
1212
* * CIDR blocks must be unique across all entries in a prefix list. For example, you cannot specify 192.168.1.0/24 twice in the entries of the prefix list.
13-
* * IP addresses are supported. The system converts IP addresses into CIDR blocks. For example, if you specify 192.168.1.100, the system converts it into the 192.168.1.100/32 CIDR block.
14-
* * If an IPv6 CIDR block is used, the system converts it into the zero compression format and changes uppercase letters into lowercase ones. For example, if you specify 2001:0DB8:0000:0000:0000:0000:0000:0000/32, the system converts it into 2001:db8::/32.
13+
* * You can set a single IP address. The system automatically converts the IP address to a CIDR block. For example, if you set 192.168.1.100, the system automatically converts it to 192.168.1.100/32.
14+
* * If you use an IPv6 CIDR block, the system automatically converts the CIDR block to zero and the letters to lowercase. For example, if you specify 2001:0DB8:0000:0000:0000:0000:0000:0000/32, the system converts it to 2001:db8::/32.
1515
*
16-
* For more information about CIDR blocks, see the [What is CIDR?](https://help.aliyun.com/document_detail/40637.html#title-gu4-uzk-12r) section in the "Network FAQ" topic.
16+
* For more information about CIDR blocks, see [What is CIDR?](https://help.aliyun.com/document_detail/185311.html#598efe6ef1v00)
1717
*
18-
* This parameter is empty by default.
18+
* By default, this parameter is left empty.
1919
*
2020
* This parameter is required.
2121
*

ecs-20140526/src/models/DescribeCloudAssistantSettingsResponseBody.ts

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -205,6 +205,20 @@ export class DescribeCloudAssistantSettingsResponseBodyOssDeliveryConfigs extend
205205
}
206206

207207
export class DescribeCloudAssistantSettingsResponseBodySessionManagerConfig extends $dara.Model {
208+
/**
209+
* @remarks
210+
* Specify whether to enable Cloud Assistant Session Manager. Valid values:
211+
*
212+
* * true: Enables the feature.
213+
* * false: Disables the feature.
214+
*
215+
* Note:
216+
*
217+
* * The feature applies to all regions.
218+
*
219+
* @example
220+
* true
221+
*/
208222
sessionManagerEnabled?: boolean;
209223
static names(): { [key: string]: string } {
210224
return {
@@ -335,6 +349,10 @@ export class DescribeCloudAssistantSettingsResponseBody extends $dara.Model {
335349
* 473469C7-AA6F-4DC5-B3DB-A3DC0DE3****
336350
*/
337351
requestId?: string;
352+
/**
353+
* @remarks
354+
* Cloud Assistant Session Manager configuration.
355+
*/
338356
sessionManagerConfig?: DescribeCloudAssistantSettingsResponseBodySessionManagerConfig;
339357
/**
340358
* @remarks

ecs-20140526/src/models/DescribeInstanceTypesRequest.ts

Lines changed: 6 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 DescribeInstanceTypesRequest extends $dara.Model {
6+
additionalAttributes?: string[];
67
/**
78
* @remarks
89
* The CPU architecture. Valid values:
@@ -434,6 +435,7 @@ export class DescribeInstanceTypesRequest extends $dara.Model {
434435
resourceOwnerId?: number;
435436
static names(): { [key: string]: string } {
436437
return {
438+
additionalAttributes: 'AdditionalAttributes',
437439
cpuArchitecture: 'CpuArchitecture',
438440
cpuArchitectures: 'CpuArchitectures',
439441
GPUSpec: 'GPUSpec',
@@ -486,6 +488,7 @@ export class DescribeInstanceTypesRequest extends $dara.Model {
486488

487489
static types(): { [key: string]: any } {
488490
return {
491+
additionalAttributes: { 'type': 'array', 'itemType': 'string' },
489492
cpuArchitecture: 'string',
490493
cpuArchitectures: { 'type': 'array', 'itemType': 'string' },
491494
GPUSpec: 'string',
@@ -537,6 +540,9 @@ export class DescribeInstanceTypesRequest extends $dara.Model {
537540
}
538541

539542
validate() {
543+
if(Array.isArray(this.additionalAttributes)) {
544+
$dara.Model.validateArray(this.additionalAttributes);
545+
}
540546
if(Array.isArray(this.cpuArchitectures)) {
541547
$dara.Model.validateArray(this.cpuArchitectures);
542548
}

0 commit comments

Comments
 (0)