@alicloud/ecs20140526 7.2.0 → 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.
- package/dist/client.d.ts +2 -2
- package/dist/client.js +17 -3
- package/dist/client.js.map +1 -1
- package/dist/models/CreateLaunchTemplateRequest.d.ts +14 -0
- package/dist/models/CreateLaunchTemplateRequest.js +25 -1
- package/dist/models/CreateLaunchTemplateRequest.js.map +1 -1
- package/dist/models/CreateLaunchTemplateVersionRequest.d.ts +14 -0
- package/dist/models/CreateLaunchTemplateVersionRequest.js +25 -1
- package/dist/models/CreateLaunchTemplateVersionRequest.js.map +1 -1
- package/dist/models/DescribeImagesResponseBody.d.ts +1 -0
- package/dist/models/DescribeImagesResponseBody.js +2 -0
- package/dist/models/DescribeImagesResponseBody.js.map +1 -1
- package/dist/models/DescribeInstanceAttributeResponseBody.d.ts +18 -0
- package/dist/models/DescribeInstanceAttributeResponseBody.js.map +1 -1
- package/dist/models/DescribeInstanceHistoryEventsResponseBody.d.ts +2 -0
- package/dist/models/DescribeInstanceHistoryEventsResponseBody.js +4 -0
- package/dist/models/DescribeInstanceHistoryEventsResponseBody.js.map +1 -1
- package/dist/models/DescribeLaunchTemplateVersionsResponseBody.d.ts +14 -0
- package/dist/models/DescribeLaunchTemplateVersionsResponseBody.js +25 -1
- package/dist/models/DescribeLaunchTemplateVersionsResponseBody.js.map +1 -1
- package/dist/models/StartTerminalSessionRequest.d.ts +16 -0
- package/dist/models/StartTerminalSessionRequest.js +29 -1
- package/dist/models/StartTerminalSessionRequest.js.map +1 -1
- package/dist/models/StartTerminalSessionShrinkRequest.d.ts +85 -0
- package/dist/models/StartTerminalSessionShrinkRequest.js +85 -0
- package/dist/models/StartTerminalSessionShrinkRequest.js.map +1 -0
- package/dist/models/model.d.ts +5 -0
- package/dist/models/model.js +65 -55
- package/dist/models/model.js.map +1 -1
- package/package.json +1 -1
- package/src/client.ts +21 -3
- package/src/models/CreateLaunchTemplateRequest.ts +29 -0
- package/src/models/CreateLaunchTemplateVersionRequest.ts +29 -0
- package/src/models/DescribeImagesResponseBody.ts +3 -0
- package/src/models/DescribeInstanceAttributeResponseBody.ts +18 -0
- package/src/models/DescribeInstanceHistoryEventsResponseBody.ts +6 -0
- package/src/models/DescribeLaunchTemplateVersionsResponseBody.ts +29 -0
- package/src/models/StartTerminalSessionRequest.ts +35 -0
- package/src/models/StartTerminalSessionShrinkRequest.ts +125 -0
- package/src/models/model.ts +5 -0
package/dist/client.d.ts
CHANGED
|
@@ -9356,11 +9356,11 @@ export default class Client extends OpenApi {
|
|
|
9356
9356
|
* * The port forwarding feature supports only TCP port forwarding. UDP port forwarding is not supported.
|
|
9357
9357
|
* * If you want to permanently close a session and invalidate the WebSocket URL, call the EndTerminalSession operation.
|
|
9358
9358
|
*
|
|
9359
|
-
* @param
|
|
9359
|
+
* @param tmpReq - StartTerminalSessionRequest
|
|
9360
9360
|
* @param runtime - runtime options for this request RuntimeOptions
|
|
9361
9361
|
* @returns StartTerminalSessionResponse
|
|
9362
9362
|
*/
|
|
9363
|
-
startTerminalSessionWithOptions(
|
|
9363
|
+
startTerminalSessionWithOptions(tmpReq: $_model.StartTerminalSessionRequest, runtime: $dara.RuntimeOptions): Promise<$_model.StartTerminalSessionResponse>;
|
|
9364
9364
|
/**
|
|
9365
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.
|
|
9366
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
|
}
|
|
@@ -29041,12 +29047,17 @@ class Client extends openapi_core_1.default {
|
|
|
29041
29047
|
* * The port forwarding feature supports only TCP port forwarding. UDP port forwarding is not supported.
|
|
29042
29048
|
* * If you want to permanently close a session and invalidate the WebSocket URL, call the EndTerminalSession operation.
|
|
29043
29049
|
*
|
|
29044
|
-
* @param
|
|
29050
|
+
* @param tmpReq - StartTerminalSessionRequest
|
|
29045
29051
|
* @param runtime - runtime options for this request RuntimeOptions
|
|
29046
29052
|
* @returns StartTerminalSessionResponse
|
|
29047
29053
|
*/
|
|
29048
|
-
async startTerminalSessionWithOptions(
|
|
29049
|
-
|
|
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
|
+
}
|
|
29050
29061
|
let query = {};
|
|
29051
29062
|
if (!$dara.isNull(request.commandLine)) {
|
|
29052
29063
|
query["CommandLine"] = request.commandLine;
|
|
@@ -29054,6 +29065,9 @@ class Client extends openapi_core_1.default {
|
|
|
29054
29065
|
if (!$dara.isNull(request.connectionType)) {
|
|
29055
29066
|
query["ConnectionType"] = request.connectionType;
|
|
29056
29067
|
}
|
|
29068
|
+
if (!$dara.isNull(request.encryptionOptionsShrink)) {
|
|
29069
|
+
query["EncryptionOptions"] = request.encryptionOptionsShrink;
|
|
29070
|
+
}
|
|
29057
29071
|
if (!$dara.isNull(request.instanceId)) {
|
|
29058
29072
|
query["InstanceId"] = request.instanceId;
|
|
29059
29073
|
}
|