@alicloud/ecs20140526 7.1.2 → 7.2.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 (66) hide show
  1. package/dist/client.d.ts +41 -8
  2. package/dist/client.js +98 -8
  3. package/dist/client.js.map +1 -1
  4. package/dist/models/CreatePrefixListRequest.d.ts +5 -5
  5. package/dist/models/DescribeCloudAssistantSettingsResponseBody.d.ts +18 -0
  6. package/dist/models/DescribeCloudAssistantSettingsResponseBody.js.map +1 -1
  7. package/dist/models/DescribeDeploymentSetsRequest.d.ts +1 -1
  8. package/dist/models/DescribeInstanceTypesRequest.d.ts +1 -0
  9. package/dist/models/DescribeInstanceTypesRequest.js +5 -0
  10. package/dist/models/DescribeInstanceTypesRequest.js.map +1 -1
  11. package/dist/models/DescribeInstanceTypesResponseBody.d.ts +57 -0
  12. package/dist/models/DescribeInstanceTypesResponseBody.js +99 -1
  13. package/dist/models/DescribeInstanceTypesResponseBody.js.map +1 -1
  14. package/dist/models/DescribeNetworkInterfacesResponseBody.d.ts +1 -1
  15. package/dist/models/DescribeSecurityGroupAttributeRequest.d.ts +8 -0
  16. package/dist/models/DescribeSecurityGroupAttributeRequest.js +2 -0
  17. package/dist/models/DescribeSecurityGroupAttributeRequest.js.map +1 -1
  18. package/dist/models/DescribeSecurityGroupAttributeResponseBody.d.ts +14 -0
  19. package/dist/models/DescribeSecurityGroupAttributeResponseBody.js +28 -1
  20. package/dist/models/DescribeSecurityGroupAttributeResponseBody.js.map +1 -1
  21. package/dist/models/ModifyCloudAssistantSettingsRequest.d.ts +18 -0
  22. package/dist/models/ModifyCloudAssistantSettingsRequest.js.map +1 -1
  23. package/dist/models/ModifyCloudAssistantSettingsShrinkRequest.d.ts +4 -0
  24. package/dist/models/ModifyCloudAssistantSettingsShrinkRequest.js.map +1 -1
  25. package/dist/models/ModifyInstanceClockOptionsRequest.d.ts +71 -0
  26. package/dist/models/ModifyInstanceClockOptionsRequest.js +74 -0
  27. package/dist/models/ModifyInstanceClockOptionsRequest.js.map +1 -0
  28. package/dist/models/ModifyInstanceClockOptionsResponse.d.ts +19 -0
  29. package/dist/models/ModifyInstanceClockOptionsResponse.js +69 -0
  30. package/dist/models/ModifyInstanceClockOptionsResponse.js.map +1 -0
  31. package/dist/models/ModifyInstanceClockOptionsResponseBody.d.ts +31 -0
  32. package/dist/models/ModifyInstanceClockOptionsResponseBody.js +60 -0
  33. package/dist/models/ModifyInstanceClockOptionsResponseBody.js.map +1 -0
  34. package/dist/models/ModifyInstanceNetworkOptionsRequest.d.ts +14 -0
  35. package/dist/models/ModifyInstanceNetworkOptionsRequest.js.map +1 -1
  36. package/dist/models/ModifyInstanceNetworkOptionsResponseBody.d.ts +5 -0
  37. package/dist/models/ModifyInstanceNetworkOptionsResponseBody.js.map +1 -1
  38. package/dist/models/ModifySnapshotAttributeRequest.d.ts +1 -1
  39. package/dist/models/ModifySnapshotCategoryRequest.d.ts +1 -1
  40. package/dist/models/RunInstancesRequest.d.ts +14 -0
  41. package/dist/models/RunInstancesRequest.js +25 -1
  42. package/dist/models/RunInstancesRequest.js.map +1 -1
  43. package/dist/models/model.d.ts +9 -0
  44. package/dist/models/model.js +65 -47
  45. package/dist/models/model.js.map +1 -1
  46. package/package.json +1 -1
  47. package/src/client.ts +112 -8
  48. package/src/models/CreatePrefixListRequest.ts +5 -5
  49. package/src/models/DescribeCloudAssistantSettingsResponseBody.ts +18 -0
  50. package/src/models/DescribeDeploymentSetsRequest.ts +1 -1
  51. package/src/models/DescribeInstanceTypesRequest.ts +6 -0
  52. package/src/models/DescribeInstanceTypesResponseBody.ts +119 -0
  53. package/src/models/DescribeNetworkInterfacesResponseBody.ts +1 -1
  54. package/src/models/DescribeSecurityGroupAttributeRequest.ts +10 -0
  55. package/src/models/DescribeSecurityGroupAttributeResponseBody.ts +32 -0
  56. package/src/models/ModifyCloudAssistantSettingsRequest.ts +18 -0
  57. package/src/models/ModifyCloudAssistantSettingsShrinkRequest.ts +4 -0
  58. package/src/models/ModifyInstanceClockOptionsRequest.ts +100 -0
  59. package/src/models/ModifyInstanceClockOptionsResponse.ts +40 -0
  60. package/src/models/ModifyInstanceClockOptionsResponseBody.ts +46 -0
  61. package/src/models/ModifyInstanceNetworkOptionsRequest.ts +14 -0
  62. package/src/models/ModifyInstanceNetworkOptionsResponseBody.ts +5 -0
  63. package/src/models/ModifySnapshotAttributeRequest.ts +1 -1
  64. package/src/models/ModifySnapshotCategoryRequest.ts +1 -1
  65. package/src/models/RunInstancesRequest.ts +29 -0
  66. package/src/models/model.ts +9 -0
package/dist/client.d.ts CHANGED
@@ -7112,6 +7112,31 @@ export default class Client extends OpenApi {
7112
7112
  * @returns ModifyInstanceChargeTypeResponse
7113
7113
  */
7114
7114
  modifyInstanceChargeType(request: $_model.ModifyInstanceChargeTypeRequest): Promise<$_model.ModifyInstanceChargeTypeResponse>;
7115
+ /**
7116
+ * Modifies the instance clock options.
7117
+ *
7118
+ * @remarks
7119
+ * When you call this operation, note that:
7120
+ * * 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.
7121
+ * * 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) ).
7122
+ *
7123
+ * @param request - ModifyInstanceClockOptionsRequest
7124
+ * @param runtime - runtime options for this request RuntimeOptions
7125
+ * @returns ModifyInstanceClockOptionsResponse
7126
+ */
7127
+ modifyInstanceClockOptionsWithOptions(request: $_model.ModifyInstanceClockOptionsRequest, runtime: $dara.RuntimeOptions): Promise<$_model.ModifyInstanceClockOptionsResponse>;
7128
+ /**
7129
+ * Modifies the instance clock options.
7130
+ *
7131
+ * @remarks
7132
+ * When you call this operation, note that:
7133
+ * * 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.
7134
+ * * 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) ).
7135
+ *
7136
+ * @param request - ModifyInstanceClockOptionsRequest
7137
+ * @returns ModifyInstanceClockOptionsResponse
7138
+ */
7139
+ modifyInstanceClockOptions(request: $_model.ModifyInstanceClockOptionsRequest): Promise<$_model.ModifyInstanceClockOptionsResponse>;
7115
7140
  /**
7116
7141
  * 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.
7117
7142
  *
@@ -7186,7 +7211,13 @@ export default class Client extends OpenApi {
7186
7211
  */
7187
7212
  modifyInstanceMetadataOptions(request: $_model.ModifyInstanceMetadataOptionsRequest): Promise<$_model.ModifyInstanceMetadataOptionsResponse>;
7188
7213
  /**
7189
- * 修改实例网络选项
7214
+ * Modifies instance network configurations.
7215
+ *
7216
+ * @remarks
7217
+ * When you call this operation, take note of the following item:
7218
+ * * 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.
7219
+ * * You can modify only one attribute at a time. If you modify multiple attributes, call this operation multiple times.
7220
+ * * 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).
7190
7221
  *
7191
7222
  * @param request - ModifyInstanceNetworkOptionsRequest
7192
7223
  * @param runtime - runtime options for this request RuntimeOptions
@@ -7194,7 +7225,13 @@ export default class Client extends OpenApi {
7194
7225
  */
7195
7226
  modifyInstanceNetworkOptionsWithOptions(request: $_model.ModifyInstanceNetworkOptionsRequest, runtime: $dara.RuntimeOptions): Promise<$_model.ModifyInstanceNetworkOptionsResponse>;
7196
7227
  /**
7197
- * 修改实例网络选项
7228
+ * Modifies instance network configurations.
7229
+ *
7230
+ * @remarks
7231
+ * When you call this operation, take note of the following item:
7232
+ * * 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.
7233
+ * * You can modify only one attribute at a time. If you modify multiple attributes, call this operation multiple times.
7234
+ * * 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).
7198
7235
  *
7199
7236
  * @param request - ModifyInstanceNetworkOptionsRequest
7200
7237
  * @returns ModifyInstanceNetworkOptionsResponse
@@ -7872,11 +7909,9 @@ export default class Client extends OpenApi {
7872
7909
  * Changes the type of a snapshot. You can call this operation to convert a standard snapshot into an archive snapshot.
7873
7910
  *
7874
7911
  * @remarks
7875
- * Archive snapshots cannot be restored to standard snapshots.
7912
+ * Archived snapshots cannot be restored to standard snapshots.
7876
7913
  * * You can archive only standard snapshots that have been retained for at least 14 days.
7877
- * * You cannot archive encrypted snapshots.
7878
7914
  * * You cannot archive snapshots that are shared to you, snapshots managed by Cloud Backup, or snapshots in cloud boxes.
7879
- * * 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.
7880
7915
  *
7881
7916
  * @param request - ModifySnapshotCategoryRequest
7882
7917
  * @param runtime - runtime options for this request RuntimeOptions
@@ -7887,11 +7922,9 @@ export default class Client extends OpenApi {
7887
7922
  * Changes the type of a snapshot. You can call this operation to convert a standard snapshot into an archive snapshot.
7888
7923
  *
7889
7924
  * @remarks
7890
- * Archive snapshots cannot be restored to standard snapshots.
7925
+ * Archived snapshots cannot be restored to standard snapshots.
7891
7926
  * * You can archive only standard snapshots that have been retained for at least 14 days.
7892
- * * You cannot archive encrypted snapshots.
7893
7927
  * * You cannot archive snapshots that are shared to you, snapshots managed by Cloud Backup, or snapshots in cloud boxes.
7894
- * * 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.
7895
7928
  *
7896
7929
  * @param request - ModifySnapshotCategoryRequest
7897
7930
  * @returns ModifySnapshotCategoryResponse
package/dist/client.js CHANGED
@@ -13291,6 +13291,9 @@ class Client extends openapi_core_1.default {
13291
13291
  async describeInstanceTypesWithOptions(request, runtime) {
13292
13292
  request.validate();
13293
13293
  let query = {};
13294
+ if (!$dara.isNull(request.additionalAttributes)) {
13295
+ query["AdditionalAttributes"] = request.additionalAttributes;
13296
+ }
13294
13297
  if (!$dara.isNull(request.cpuArchitecture)) {
13295
13298
  query["CpuArchitecture"] = request.cpuArchitecture;
13296
13299
  }
@@ -16330,6 +16333,9 @@ class Client extends openapi_core_1.default {
16330
16333
  async describeSecurityGroupAttributeWithOptions(request, runtime) {
16331
16334
  request.validate();
16332
16335
  let query = {};
16336
+ if (!$dara.isNull(request.attribute)) {
16337
+ query["Attribute"] = request.attribute;
16338
+ }
16333
16339
  if (!$dara.isNull(request.direction)) {
16334
16340
  query["Direction"] = request.direction;
16335
16341
  }
@@ -22763,6 +22769,79 @@ class Client extends openapi_core_1.default {
22763
22769
  let runtime = new $dara.RuntimeOptions({});
22764
22770
  return await this.modifyInstanceChargeTypeWithOptions(request, runtime);
22765
22771
  }
22772
+ /**
22773
+ * Modifies the instance clock options.
22774
+ *
22775
+ * @remarks
22776
+ * When you call this operation, note that:
22777
+ * * 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.
22778
+ * * 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) ).
22779
+ *
22780
+ * @param request - ModifyInstanceClockOptionsRequest
22781
+ * @param runtime - runtime options for this request RuntimeOptions
22782
+ * @returns ModifyInstanceClockOptionsResponse
22783
+ */
22784
+ async modifyInstanceClockOptionsWithOptions(request, runtime) {
22785
+ request.validate();
22786
+ let query = {};
22787
+ if (!$dara.isNull(request.clientToken)) {
22788
+ query["ClientToken"] = request.clientToken;
22789
+ }
22790
+ if (!$dara.isNull(request.dryRun)) {
22791
+ query["DryRun"] = request.dryRun;
22792
+ }
22793
+ if (!$dara.isNull(request.instanceId)) {
22794
+ query["InstanceId"] = request.instanceId;
22795
+ }
22796
+ if (!$dara.isNull(request.ownerAccount)) {
22797
+ query["OwnerAccount"] = request.ownerAccount;
22798
+ }
22799
+ if (!$dara.isNull(request.ownerId)) {
22800
+ query["OwnerId"] = request.ownerId;
22801
+ }
22802
+ if (!$dara.isNull(request.ptpStatus)) {
22803
+ query["PtpStatus"] = request.ptpStatus;
22804
+ }
22805
+ if (!$dara.isNull(request.regionId)) {
22806
+ query["RegionId"] = request.regionId;
22807
+ }
22808
+ if (!$dara.isNull(request.resourceOwnerAccount)) {
22809
+ query["ResourceOwnerAccount"] = request.resourceOwnerAccount;
22810
+ }
22811
+ if (!$dara.isNull(request.resourceOwnerId)) {
22812
+ query["ResourceOwnerId"] = request.resourceOwnerId;
22813
+ }
22814
+ let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({
22815
+ query: openapi_core_2.OpenApiUtil.query(query),
22816
+ });
22817
+ let params = new openapi_core_2.$OpenApiUtil.Params({
22818
+ action: "ModifyInstanceClockOptions",
22819
+ version: "2014-05-26",
22820
+ protocol: "HTTPS",
22821
+ pathname: "/",
22822
+ method: "POST",
22823
+ authType: "AK",
22824
+ style: "RPC",
22825
+ reqBodyType: "formData",
22826
+ bodyType: "json",
22827
+ });
22828
+ return $dara.cast(await this.callApi(params, req, runtime), new $_model.ModifyInstanceClockOptionsResponse({}));
22829
+ }
22830
+ /**
22831
+ * Modifies the instance clock options.
22832
+ *
22833
+ * @remarks
22834
+ * When you call this operation, note that:
22835
+ * * 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.
22836
+ * * 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) ).
22837
+ *
22838
+ * @param request - ModifyInstanceClockOptionsRequest
22839
+ * @returns ModifyInstanceClockOptionsResponse
22840
+ */
22841
+ async modifyInstanceClockOptions(request) {
22842
+ let runtime = new $dara.RuntimeOptions({});
22843
+ return await this.modifyInstanceClockOptionsWithOptions(request, runtime);
22844
+ }
22766
22845
  /**
22767
22846
  * 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.
22768
22847
  *
@@ -23002,7 +23081,13 @@ class Client extends openapi_core_1.default {
23002
23081
  return await this.modifyInstanceMetadataOptionsWithOptions(request, runtime);
23003
23082
  }
23004
23083
  /**
23005
- * 修改实例网络选项
23084
+ * Modifies instance network configurations.
23085
+ *
23086
+ * @remarks
23087
+ * When you call this operation, take note of the following item:
23088
+ * * 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.
23089
+ * * You can modify only one attribute at a time. If you modify multiple attributes, call this operation multiple times.
23090
+ * * 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).
23006
23091
  *
23007
23092
  * @param request - ModifyInstanceNetworkOptionsRequest
23008
23093
  * @param runtime - runtime options for this request RuntimeOptions
@@ -23043,7 +23128,13 @@ class Client extends openapi_core_1.default {
23043
23128
  return $dara.cast(await this.callApi(params, req, runtime), new $_model.ModifyInstanceNetworkOptionsResponse({}));
23044
23129
  }
23045
23130
  /**
23046
- * 修改实例网络选项
23131
+ * Modifies instance network configurations.
23132
+ *
23133
+ * @remarks
23134
+ * When you call this operation, take note of the following item:
23135
+ * * 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.
23136
+ * * You can modify only one attribute at a time. If you modify multiple attributes, call this operation multiple times.
23137
+ * * 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).
23047
23138
  *
23048
23139
  * @param request - ModifyInstanceNetworkOptionsRequest
23049
23140
  * @returns ModifyInstanceNetworkOptionsResponse
@@ -25007,11 +25098,9 @@ class Client extends openapi_core_1.default {
25007
25098
  * Changes the type of a snapshot. You can call this operation to convert a standard snapshot into an archive snapshot.
25008
25099
  *
25009
25100
  * @remarks
25010
- * Archive snapshots cannot be restored to standard snapshots.
25101
+ * Archived snapshots cannot be restored to standard snapshots.
25011
25102
  * * You can archive only standard snapshots that have been retained for at least 14 days.
25012
- * * You cannot archive encrypted snapshots.
25013
25103
  * * You cannot archive snapshots that are shared to you, snapshots managed by Cloud Backup, or snapshots in cloud boxes.
25014
- * * 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.
25015
25104
  *
25016
25105
  * @param request - ModifySnapshotCategoryRequest
25017
25106
  * @param runtime - runtime options for this request RuntimeOptions
@@ -25061,11 +25150,9 @@ class Client extends openapi_core_1.default {
25061
25150
  * Changes the type of a snapshot. You can call this operation to convert a standard snapshot into an archive snapshot.
25062
25151
  *
25063
25152
  * @remarks
25064
- * Archive snapshots cannot be restored to standard snapshots.
25153
+ * Archived snapshots cannot be restored to standard snapshots.
25065
25154
  * * You can archive only standard snapshots that have been retained for at least 14 days.
25066
- * * You cannot archive encrypted snapshots.
25067
25155
  * * You cannot archive snapshots that are shared to you, snapshots managed by Cloud Backup, or snapshots in cloud boxes.
25068
- * * 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.
25069
25156
  *
25070
25157
  * @param request - ModifySnapshotCategoryRequest
25071
25158
  * @returns ModifySnapshotCategoryResponse
@@ -28288,6 +28375,9 @@ class Client extends openapi_core_1.default {
28288
28375
  if (!$dara.isNull(request.clientToken)) {
28289
28376
  query["ClientToken"] = request.clientToken;
28290
28377
  }
28378
+ if (!$dara.isNull(request.clockOptions)) {
28379
+ query["ClockOptions"] = request.clockOptions;
28380
+ }
28291
28381
  if (!$dara.isNull(request.creditSpecification)) {
28292
28382
  query["CreditSpecification"] = request.creditSpecification;
28293
28383
  }