@alicloud/ecs20140526 7.1.3 → 7.2.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 (91) hide show
  1. package/dist/client.d.ts +43 -10
  2. package/dist/client.js +112 -11
  3. package/dist/client.js.map +1 -1
  4. package/dist/models/CreateLaunchTemplateRequest.d.ts +14 -0
  5. package/dist/models/CreateLaunchTemplateRequest.js +25 -1
  6. package/dist/models/CreateLaunchTemplateRequest.js.map +1 -1
  7. package/dist/models/CreateLaunchTemplateVersionRequest.d.ts +14 -0
  8. package/dist/models/CreateLaunchTemplateVersionRequest.js +25 -1
  9. package/dist/models/CreateLaunchTemplateVersionRequest.js.map +1 -1
  10. package/dist/models/CreatePrefixListRequest.d.ts +5 -5
  11. package/dist/models/DescribeCloudAssistantSettingsResponseBody.d.ts +18 -0
  12. package/dist/models/DescribeCloudAssistantSettingsResponseBody.js.map +1 -1
  13. package/dist/models/DescribeImagesResponseBody.d.ts +1 -0
  14. package/dist/models/DescribeImagesResponseBody.js +2 -0
  15. package/dist/models/DescribeImagesResponseBody.js.map +1 -1
  16. package/dist/models/DescribeInstanceAttributeResponseBody.d.ts +18 -0
  17. package/dist/models/DescribeInstanceAttributeResponseBody.js.map +1 -1
  18. package/dist/models/DescribeInstanceHistoryEventsResponseBody.d.ts +2 -0
  19. package/dist/models/DescribeInstanceHistoryEventsResponseBody.js +4 -0
  20. package/dist/models/DescribeInstanceHistoryEventsResponseBody.js.map +1 -1
  21. package/dist/models/DescribeInstanceTypesRequest.d.ts +1 -0
  22. package/dist/models/DescribeInstanceTypesRequest.js +5 -0
  23. package/dist/models/DescribeInstanceTypesRequest.js.map +1 -1
  24. package/dist/models/DescribeInstanceTypesResponseBody.d.ts +57 -0
  25. package/dist/models/DescribeInstanceTypesResponseBody.js +99 -1
  26. package/dist/models/DescribeInstanceTypesResponseBody.js.map +1 -1
  27. package/dist/models/DescribeLaunchTemplateVersionsResponseBody.d.ts +14 -0
  28. package/dist/models/DescribeLaunchTemplateVersionsResponseBody.js +25 -1
  29. package/dist/models/DescribeLaunchTemplateVersionsResponseBody.js.map +1 -1
  30. package/dist/models/DescribeNetworkInterfacesResponseBody.d.ts +1 -1
  31. package/dist/models/DescribeSecurityGroupAttributeRequest.d.ts +8 -0
  32. package/dist/models/DescribeSecurityGroupAttributeRequest.js +2 -0
  33. package/dist/models/DescribeSecurityGroupAttributeRequest.js.map +1 -1
  34. package/dist/models/DescribeSecurityGroupAttributeResponseBody.d.ts +14 -0
  35. package/dist/models/DescribeSecurityGroupAttributeResponseBody.js +28 -1
  36. package/dist/models/DescribeSecurityGroupAttributeResponseBody.js.map +1 -1
  37. package/dist/models/ModifyCloudAssistantSettingsRequest.d.ts +18 -0
  38. package/dist/models/ModifyCloudAssistantSettingsRequest.js.map +1 -1
  39. package/dist/models/ModifyCloudAssistantSettingsShrinkRequest.d.ts +4 -0
  40. package/dist/models/ModifyCloudAssistantSettingsShrinkRequest.js.map +1 -1
  41. package/dist/models/ModifyInstanceClockOptionsRequest.d.ts +71 -0
  42. package/dist/models/ModifyInstanceClockOptionsRequest.js +74 -0
  43. package/dist/models/ModifyInstanceClockOptionsRequest.js.map +1 -0
  44. package/dist/models/ModifyInstanceClockOptionsResponse.d.ts +19 -0
  45. package/dist/models/ModifyInstanceClockOptionsResponse.js +69 -0
  46. package/dist/models/ModifyInstanceClockOptionsResponse.js.map +1 -0
  47. package/dist/models/ModifyInstanceClockOptionsResponseBody.d.ts +31 -0
  48. package/dist/models/ModifyInstanceClockOptionsResponseBody.js +60 -0
  49. package/dist/models/ModifyInstanceClockOptionsResponseBody.js.map +1 -0
  50. package/dist/models/ModifyInstanceNetworkOptionsRequest.d.ts +14 -0
  51. package/dist/models/ModifyInstanceNetworkOptionsRequest.js.map +1 -1
  52. package/dist/models/ModifyInstanceNetworkOptionsResponseBody.d.ts +5 -0
  53. package/dist/models/ModifyInstanceNetworkOptionsResponseBody.js.map +1 -1
  54. package/dist/models/ModifySnapshotAttributeRequest.d.ts +1 -1
  55. package/dist/models/ModifySnapshotCategoryRequest.d.ts +1 -1
  56. package/dist/models/StartTerminalSessionRequest.d.ts +16 -0
  57. package/dist/models/StartTerminalSessionRequest.js +29 -1
  58. package/dist/models/StartTerminalSessionRequest.js.map +1 -1
  59. package/dist/models/StartTerminalSessionShrinkRequest.d.ts +85 -0
  60. package/dist/models/StartTerminalSessionShrinkRequest.js +85 -0
  61. package/dist/models/StartTerminalSessionShrinkRequest.js.map +1 -0
  62. package/dist/models/model.d.ts +13 -0
  63. package/dist/models/model.js +88 -62
  64. package/dist/models/model.js.map +1 -1
  65. package/package.json +1 -1
  66. package/src/client.ts +129 -11
  67. package/src/models/CreateLaunchTemplateRequest.ts +29 -0
  68. package/src/models/CreateLaunchTemplateVersionRequest.ts +29 -0
  69. package/src/models/CreatePrefixListRequest.ts +5 -5
  70. package/src/models/DescribeCloudAssistantSettingsResponseBody.ts +18 -0
  71. package/src/models/DescribeImagesResponseBody.ts +3 -0
  72. package/src/models/DescribeInstanceAttributeResponseBody.ts +18 -0
  73. package/src/models/DescribeInstanceHistoryEventsResponseBody.ts +6 -0
  74. package/src/models/DescribeInstanceTypesRequest.ts +6 -0
  75. package/src/models/DescribeInstanceTypesResponseBody.ts +119 -0
  76. package/src/models/DescribeLaunchTemplateVersionsResponseBody.ts +29 -0
  77. package/src/models/DescribeNetworkInterfacesResponseBody.ts +1 -1
  78. package/src/models/DescribeSecurityGroupAttributeRequest.ts +10 -0
  79. package/src/models/DescribeSecurityGroupAttributeResponseBody.ts +32 -0
  80. package/src/models/ModifyCloudAssistantSettingsRequest.ts +18 -0
  81. package/src/models/ModifyCloudAssistantSettingsShrinkRequest.ts +4 -0
  82. package/src/models/ModifyInstanceClockOptionsRequest.ts +100 -0
  83. package/src/models/ModifyInstanceClockOptionsResponse.ts +40 -0
  84. package/src/models/ModifyInstanceClockOptionsResponseBody.ts +46 -0
  85. package/src/models/ModifyInstanceNetworkOptionsRequest.ts +14 -0
  86. package/src/models/ModifyInstanceNetworkOptionsResponseBody.ts +5 -0
  87. package/src/models/ModifySnapshotAttributeRequest.ts +1 -1
  88. package/src/models/ModifySnapshotCategoryRequest.ts +1 -1
  89. package/src/models/StartTerminalSessionRequest.ts +35 -0
  90. package/src/models/StartTerminalSessionShrinkRequest.ts +125 -0
  91. package/src/models/model.ts +13 -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
@@ -9323,11 +9356,11 @@ export default class Client extends OpenApi {
9323
9356
  * * The port forwarding feature supports only TCP port forwarding. UDP port forwarding is not supported.
9324
9357
  * * If you want to permanently close a session and invalidate the WebSocket URL, call the EndTerminalSession operation.
9325
9358
  *
9326
- * @param request - StartTerminalSessionRequest
9359
+ * @param tmpReq - StartTerminalSessionRequest
9327
9360
  * @param runtime - runtime options for this request RuntimeOptions
9328
9361
  * @returns StartTerminalSessionResponse
9329
9362
  */
9330
- startTerminalSessionWithOptions(request: $_model.StartTerminalSessionRequest, runtime: $dara.RuntimeOptions): Promise<$_model.StartTerminalSessionResponse>;
9363
+ startTerminalSessionWithOptions(tmpReq: $_model.StartTerminalSessionRequest, runtime: $dara.RuntimeOptions): Promise<$_model.StartTerminalSessionResponse>;
9331
9364
  /**
9332
9365
  * Creates a session by using the session management feature. When you call this operation, you can include the ID of an Elastic Compute Service (ECS) instance in the request to create a WebSocket session for the instance. The URL of the WebSocket session returned by the operation can be used to connect to the instance.
9333
9366
  *
package/dist/client.js CHANGED
@@ -4635,6 +4635,9 @@ class Client extends openapi_core_1.default {
4635
4635
  if (!$dara.isNull(request.securityGroupIds)) {
4636
4636
  query["SecurityGroupIds"] = request.securityGroupIds;
4637
4637
  }
4638
+ if (!$dara.isNull(request.securityOptions)) {
4639
+ query["SecurityOptions"] = request.securityOptions;
4640
+ }
4638
4641
  if (!$dara.isNull(request.spotDuration)) {
4639
4642
  query["SpotDuration"] = request.spotDuration;
4640
4643
  }
@@ -4851,6 +4854,9 @@ class Client extends openapi_core_1.default {
4851
4854
  if (!$dara.isNull(request.securityGroupIds)) {
4852
4855
  query["SecurityGroupIds"] = request.securityGroupIds;
4853
4856
  }
4857
+ if (!$dara.isNull(request.securityOptions)) {
4858
+ query["SecurityOptions"] = request.securityOptions;
4859
+ }
4854
4860
  if (!$dara.isNull(request.spotDuration)) {
4855
4861
  query["SpotDuration"] = request.spotDuration;
4856
4862
  }
@@ -13291,6 +13297,9 @@ class Client extends openapi_core_1.default {
13291
13297
  async describeInstanceTypesWithOptions(request, runtime) {
13292
13298
  request.validate();
13293
13299
  let query = {};
13300
+ if (!$dara.isNull(request.additionalAttributes)) {
13301
+ query["AdditionalAttributes"] = request.additionalAttributes;
13302
+ }
13294
13303
  if (!$dara.isNull(request.cpuArchitecture)) {
13295
13304
  query["CpuArchitecture"] = request.cpuArchitecture;
13296
13305
  }
@@ -16330,6 +16339,9 @@ class Client extends openapi_core_1.default {
16330
16339
  async describeSecurityGroupAttributeWithOptions(request, runtime) {
16331
16340
  request.validate();
16332
16341
  let query = {};
16342
+ if (!$dara.isNull(request.attribute)) {
16343
+ query["Attribute"] = request.attribute;
16344
+ }
16333
16345
  if (!$dara.isNull(request.direction)) {
16334
16346
  query["Direction"] = request.direction;
16335
16347
  }
@@ -22763,6 +22775,79 @@ class Client extends openapi_core_1.default {
22763
22775
  let runtime = new $dara.RuntimeOptions({});
22764
22776
  return await this.modifyInstanceChargeTypeWithOptions(request, runtime);
22765
22777
  }
22778
+ /**
22779
+ * Modifies the instance clock options.
22780
+ *
22781
+ * @remarks
22782
+ * When you call this operation, note that:
22783
+ * * 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.
22784
+ * * 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) ).
22785
+ *
22786
+ * @param request - ModifyInstanceClockOptionsRequest
22787
+ * @param runtime - runtime options for this request RuntimeOptions
22788
+ * @returns ModifyInstanceClockOptionsResponse
22789
+ */
22790
+ async modifyInstanceClockOptionsWithOptions(request, runtime) {
22791
+ request.validate();
22792
+ let query = {};
22793
+ if (!$dara.isNull(request.clientToken)) {
22794
+ query["ClientToken"] = request.clientToken;
22795
+ }
22796
+ if (!$dara.isNull(request.dryRun)) {
22797
+ query["DryRun"] = request.dryRun;
22798
+ }
22799
+ if (!$dara.isNull(request.instanceId)) {
22800
+ query["InstanceId"] = request.instanceId;
22801
+ }
22802
+ if (!$dara.isNull(request.ownerAccount)) {
22803
+ query["OwnerAccount"] = request.ownerAccount;
22804
+ }
22805
+ if (!$dara.isNull(request.ownerId)) {
22806
+ query["OwnerId"] = request.ownerId;
22807
+ }
22808
+ if (!$dara.isNull(request.ptpStatus)) {
22809
+ query["PtpStatus"] = request.ptpStatus;
22810
+ }
22811
+ if (!$dara.isNull(request.regionId)) {
22812
+ query["RegionId"] = request.regionId;
22813
+ }
22814
+ if (!$dara.isNull(request.resourceOwnerAccount)) {
22815
+ query["ResourceOwnerAccount"] = request.resourceOwnerAccount;
22816
+ }
22817
+ if (!$dara.isNull(request.resourceOwnerId)) {
22818
+ query["ResourceOwnerId"] = request.resourceOwnerId;
22819
+ }
22820
+ let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({
22821
+ query: openapi_core_2.OpenApiUtil.query(query),
22822
+ });
22823
+ let params = new openapi_core_2.$OpenApiUtil.Params({
22824
+ action: "ModifyInstanceClockOptions",
22825
+ version: "2014-05-26",
22826
+ protocol: "HTTPS",
22827
+ pathname: "/",
22828
+ method: "POST",
22829
+ authType: "AK",
22830
+ style: "RPC",
22831
+ reqBodyType: "formData",
22832
+ bodyType: "json",
22833
+ });
22834
+ return $dara.cast(await this.callApi(params, req, runtime), new $_model.ModifyInstanceClockOptionsResponse({}));
22835
+ }
22836
+ /**
22837
+ * Modifies the instance clock options.
22838
+ *
22839
+ * @remarks
22840
+ * When you call this operation, note that:
22841
+ * * 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.
22842
+ * * 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) ).
22843
+ *
22844
+ * @param request - ModifyInstanceClockOptionsRequest
22845
+ * @returns ModifyInstanceClockOptionsResponse
22846
+ */
22847
+ async modifyInstanceClockOptions(request) {
22848
+ let runtime = new $dara.RuntimeOptions({});
22849
+ return await this.modifyInstanceClockOptionsWithOptions(request, runtime);
22850
+ }
22766
22851
  /**
22767
22852
  * 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
22853
  *
@@ -23002,7 +23087,13 @@ class Client extends openapi_core_1.default {
23002
23087
  return await this.modifyInstanceMetadataOptionsWithOptions(request, runtime);
23003
23088
  }
23004
23089
  /**
23005
- * 修改实例网络选项
23090
+ * Modifies instance network configurations.
23091
+ *
23092
+ * @remarks
23093
+ * When you call this operation, take note of the following item:
23094
+ * * 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.
23095
+ * * You can modify only one attribute at a time. If you modify multiple attributes, call this operation multiple times.
23096
+ * * 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
23097
  *
23007
23098
  * @param request - ModifyInstanceNetworkOptionsRequest
23008
23099
  * @param runtime - runtime options for this request RuntimeOptions
@@ -23043,7 +23134,13 @@ class Client extends openapi_core_1.default {
23043
23134
  return $dara.cast(await this.callApi(params, req, runtime), new $_model.ModifyInstanceNetworkOptionsResponse({}));
23044
23135
  }
23045
23136
  /**
23046
- * 修改实例网络选项
23137
+ * Modifies instance network configurations.
23138
+ *
23139
+ * @remarks
23140
+ * When you call this operation, take note of the following item:
23141
+ * * 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.
23142
+ * * You can modify only one attribute at a time. If you modify multiple attributes, call this operation multiple times.
23143
+ * * 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
23144
  *
23048
23145
  * @param request - ModifyInstanceNetworkOptionsRequest
23049
23146
  * @returns ModifyInstanceNetworkOptionsResponse
@@ -25007,11 +25104,9 @@ class Client extends openapi_core_1.default {
25007
25104
  * Changes the type of a snapshot. You can call this operation to convert a standard snapshot into an archive snapshot.
25008
25105
  *
25009
25106
  * @remarks
25010
- * Archive snapshots cannot be restored to standard snapshots.
25107
+ * Archived snapshots cannot be restored to standard snapshots.
25011
25108
  * * You can archive only standard snapshots that have been retained for at least 14 days.
25012
- * * You cannot archive encrypted snapshots.
25013
25109
  * * 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
25110
  *
25016
25111
  * @param request - ModifySnapshotCategoryRequest
25017
25112
  * @param runtime - runtime options for this request RuntimeOptions
@@ -25061,11 +25156,9 @@ class Client extends openapi_core_1.default {
25061
25156
  * Changes the type of a snapshot. You can call this operation to convert a standard snapshot into an archive snapshot.
25062
25157
  *
25063
25158
  * @remarks
25064
- * Archive snapshots cannot be restored to standard snapshots.
25159
+ * Archived snapshots cannot be restored to standard snapshots.
25065
25160
  * * You can archive only standard snapshots that have been retained for at least 14 days.
25066
- * * You cannot archive encrypted snapshots.
25067
25161
  * * 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
25162
  *
25070
25163
  * @param request - ModifySnapshotCategoryRequest
25071
25164
  * @returns ModifySnapshotCategoryResponse
@@ -28954,12 +29047,17 @@ class Client extends openapi_core_1.default {
28954
29047
  * * The port forwarding feature supports only TCP port forwarding. UDP port forwarding is not supported.
28955
29048
  * * If you want to permanently close a session and invalidate the WebSocket URL, call the EndTerminalSession operation.
28956
29049
  *
28957
- * @param request - StartTerminalSessionRequest
29050
+ * @param tmpReq - StartTerminalSessionRequest
28958
29051
  * @param runtime - runtime options for this request RuntimeOptions
28959
29052
  * @returns StartTerminalSessionResponse
28960
29053
  */
28961
- async startTerminalSessionWithOptions(request, runtime) {
28962
- request.validate();
29054
+ async startTerminalSessionWithOptions(tmpReq, runtime) {
29055
+ tmpReq.validate();
29056
+ let request = new $_model.StartTerminalSessionShrinkRequest({});
29057
+ openapi_core_2.OpenApiUtil.convert(tmpReq, request);
29058
+ if (!$dara.isNull(tmpReq.encryptionOptions)) {
29059
+ request.encryptionOptionsShrink = openapi_core_2.OpenApiUtil.arrayToStringWithSpecifiedStyle(tmpReq.encryptionOptions, "EncryptionOptions", "json");
29060
+ }
28963
29061
  let query = {};
28964
29062
  if (!$dara.isNull(request.commandLine)) {
28965
29063
  query["CommandLine"] = request.commandLine;
@@ -28967,6 +29065,9 @@ class Client extends openapi_core_1.default {
28967
29065
  if (!$dara.isNull(request.connectionType)) {
28968
29066
  query["ConnectionType"] = request.connectionType;
28969
29067
  }
29068
+ if (!$dara.isNull(request.encryptionOptionsShrink)) {
29069
+ query["EncryptionOptions"] = request.encryptionOptionsShrink;
29070
+ }
28970
29071
  if (!$dara.isNull(request.instanceId)) {
28971
29072
  query["InstanceId"] = request.instanceId;
28972
29073
  }