@alicloud/ecs20140526 7.7.6 → 7.8.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 +47 -2
- package/dist/client.js +227 -2
- package/dist/client.js.map +1 -1
- package/dist/models/CreateVscRequest.d.ts +86 -0
- package/dist/models/CreateVscRequest.js +106 -0
- package/dist/models/CreateVscRequest.js.map +1 -0
- package/dist/models/CreateVscResponse.d.ts +19 -0
- package/dist/models/CreateVscResponse.js +69 -0
- package/dist/models/CreateVscResponse.js.map +1 -0
- package/dist/models/CreateVscResponseBody.d.ts +23 -0
- package/dist/models/CreateVscResponseBody.js +60 -0
- package/dist/models/CreateVscResponseBody.js.map +1 -0
- package/dist/models/DeleteVscRequest.d.ts +43 -0
- package/dist/models/DeleteVscRequest.js +72 -0
- package/dist/models/DeleteVscRequest.js.map +1 -0
- package/dist/models/DeleteVscResponse.d.ts +19 -0
- package/dist/models/DeleteVscResponse.js +69 -0
- package/dist/models/DeleteVscResponse.js.map +1 -0
- package/dist/models/DeleteVscResponseBody.d.ts +21 -0
- package/dist/models/DeleteVscResponseBody.js +58 -0
- package/dist/models/DeleteVscResponseBody.js.map +1 -0
- package/dist/models/DescribeInstanceModificationPriceRequest.d.ts +43 -12
- package/dist/models/DescribeInstanceModificationPriceRequest.js +18 -0
- package/dist/models/DescribeInstanceModificationPriceRequest.js.map +1 -1
- package/dist/models/DescribeInstanceModificationPriceResponseBody.d.ts +46 -0
- package/dist/models/DescribeInstanceModificationPriceResponseBody.js +53 -1
- package/dist/models/DescribeInstanceModificationPriceResponseBody.js.map +1 -1
- package/dist/models/DescribeVscsRequest.d.ts +74 -0
- package/dist/models/DescribeVscsRequest.js +107 -0
- package/dist/models/DescribeVscsRequest.js.map +1 -0
- package/dist/models/DescribeVscsResponse.d.ts +19 -0
- package/dist/models/DescribeVscsResponse.js +69 -0
- package/dist/models/DescribeVscsResponse.js.map +1 -0
- package/dist/models/DescribeVscsResponseBody.d.ts +104 -0
- package/dist/models/DescribeVscsResponseBody.js +122 -0
- package/dist/models/DescribeVscsResponseBody.js.map +1 -0
- package/dist/models/ModifyInstanceAttributeRequest.d.ts +5 -0
- package/dist/models/ModifyInstanceAttributeRequest.js +2 -0
- package/dist/models/ModifyInstanceAttributeRequest.js.map +1 -1
- package/dist/models/RunInstancesRequest.d.ts +5 -0
- package/dist/models/RunInstancesRequest.js +2 -0
- package/dist/models/RunInstancesRequest.js.map +1 -1
- package/dist/models/model.d.ts +15 -0
- package/dist/models/model.js +75 -44
- package/dist/models/model.js.map +1 -1
- package/package.json +1 -1
- package/src/client.ts +272 -2
- package/src/models/CreateVscRequest.ts +138 -0
- package/src/models/CreateVscResponse.ts +40 -0
- package/src/models/CreateVscResponseBody.ts +38 -0
- package/src/models/DeleteVscRequest.ts +70 -0
- package/src/models/DeleteVscResponse.ts +40 -0
- package/src/models/DeleteVscResponseBody.ts +34 -0
- package/src/models/DescribeInstanceModificationPriceRequest.ts +61 -12
- package/src/models/DescribeInstanceModificationPriceResponseBody.ts +80 -0
- package/src/models/DescribeVscsRequest.ts +127 -0
- package/src/models/DescribeVscsResponse.ts +40 -0
- package/src/models/DescribeVscsResponseBody.ts +163 -0
- package/src/models/ModifyInstanceAttributeRequest.ts +7 -0
- package/src/models/RunInstancesRequest.ts +7 -0
- package/src/models/model.ts +15 -0
package/src/client.ts
CHANGED
|
@@ -7817,6 +7817,96 @@ export default class Client extends OpenApi {
|
|
|
7817
7817
|
return await this.createVpcWithOptions(request, runtime);
|
|
7818
7818
|
}
|
|
7819
7819
|
|
|
7820
|
+
/**
|
|
7821
|
+
* Create a virtual storage channel for an ECS instance
|
|
7822
|
+
*
|
|
7823
|
+
* @param request - CreateVscRequest
|
|
7824
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
7825
|
+
* @returns CreateVscResponse
|
|
7826
|
+
*/
|
|
7827
|
+
async createVscWithOptions(request: $_model.CreateVscRequest, runtime: $dara.RuntimeOptions): Promise<$_model.CreateVscResponse> {
|
|
7828
|
+
request.validate();
|
|
7829
|
+
let query = { };
|
|
7830
|
+
if (!$dara.isNull(request.clientToken)) {
|
|
7831
|
+
query["ClientToken"] = request.clientToken;
|
|
7832
|
+
}
|
|
7833
|
+
|
|
7834
|
+
if (!$dara.isNull(request.description)) {
|
|
7835
|
+
query["Description"] = request.description;
|
|
7836
|
+
}
|
|
7837
|
+
|
|
7838
|
+
if (!$dara.isNull(request.dryRun)) {
|
|
7839
|
+
query["DryRun"] = request.dryRun;
|
|
7840
|
+
}
|
|
7841
|
+
|
|
7842
|
+
if (!$dara.isNull(request.instanceId)) {
|
|
7843
|
+
query["InstanceId"] = request.instanceId;
|
|
7844
|
+
}
|
|
7845
|
+
|
|
7846
|
+
if (!$dara.isNull(request.ownerAccount)) {
|
|
7847
|
+
query["OwnerAccount"] = request.ownerAccount;
|
|
7848
|
+
}
|
|
7849
|
+
|
|
7850
|
+
if (!$dara.isNull(request.ownerId)) {
|
|
7851
|
+
query["OwnerId"] = request.ownerId;
|
|
7852
|
+
}
|
|
7853
|
+
|
|
7854
|
+
if (!$dara.isNull(request.regionId)) {
|
|
7855
|
+
query["RegionId"] = request.regionId;
|
|
7856
|
+
}
|
|
7857
|
+
|
|
7858
|
+
if (!$dara.isNull(request.resourceGroupId)) {
|
|
7859
|
+
query["ResourceGroupId"] = request.resourceGroupId;
|
|
7860
|
+
}
|
|
7861
|
+
|
|
7862
|
+
if (!$dara.isNull(request.resourceOwnerAccount)) {
|
|
7863
|
+
query["ResourceOwnerAccount"] = request.resourceOwnerAccount;
|
|
7864
|
+
}
|
|
7865
|
+
|
|
7866
|
+
if (!$dara.isNull(request.resourceOwnerId)) {
|
|
7867
|
+
query["ResourceOwnerId"] = request.resourceOwnerId;
|
|
7868
|
+
}
|
|
7869
|
+
|
|
7870
|
+
if (!$dara.isNull(request.tag)) {
|
|
7871
|
+
query["Tag"] = request.tag;
|
|
7872
|
+
}
|
|
7873
|
+
|
|
7874
|
+
if (!$dara.isNull(request.vscName)) {
|
|
7875
|
+
query["VscName"] = request.vscName;
|
|
7876
|
+
}
|
|
7877
|
+
|
|
7878
|
+
if (!$dara.isNull(request.vscType)) {
|
|
7879
|
+
query["VscType"] = request.vscType;
|
|
7880
|
+
}
|
|
7881
|
+
|
|
7882
|
+
let req = new $OpenApiUtil.OpenApiRequest({
|
|
7883
|
+
query: OpenApiUtil.query(query),
|
|
7884
|
+
});
|
|
7885
|
+
let params = new $OpenApiUtil.Params({
|
|
7886
|
+
action: "CreateVsc",
|
|
7887
|
+
version: "2014-05-26",
|
|
7888
|
+
protocol: "HTTPS",
|
|
7889
|
+
pathname: "/",
|
|
7890
|
+
method: "POST",
|
|
7891
|
+
authType: "AK",
|
|
7892
|
+
style: "RPC",
|
|
7893
|
+
reqBodyType: "formData",
|
|
7894
|
+
bodyType: "json",
|
|
7895
|
+
});
|
|
7896
|
+
return $dara.cast<$_model.CreateVscResponse>(await this.callApi(params, req, runtime), new $_model.CreateVscResponse({}));
|
|
7897
|
+
}
|
|
7898
|
+
|
|
7899
|
+
/**
|
|
7900
|
+
* Create a virtual storage channel for an ECS instance
|
|
7901
|
+
*
|
|
7902
|
+
* @param request - CreateVscRequest
|
|
7903
|
+
* @returns CreateVscResponse
|
|
7904
|
+
*/
|
|
7905
|
+
async createVsc(request: $_model.CreateVscRequest): Promise<$_model.CreateVscResponse> {
|
|
7906
|
+
let runtime = new $dara.RuntimeOptions({ });
|
|
7907
|
+
return await this.createVscWithOptions(request, runtime);
|
|
7908
|
+
}
|
|
7909
|
+
|
|
7820
7910
|
/**
|
|
7821
7911
|
* DeactivateRouterInterface
|
|
7822
7912
|
*
|
|
@@ -10498,6 +10588,76 @@ export default class Client extends OpenApi {
|
|
|
10498
10588
|
return await this.deleteVpcWithOptions(request, runtime);
|
|
10499
10589
|
}
|
|
10500
10590
|
|
|
10591
|
+
/**
|
|
10592
|
+
* Delete a Virtual Storage Channel (VSC)
|
|
10593
|
+
*
|
|
10594
|
+
* @param request - DeleteVscRequest
|
|
10595
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
10596
|
+
* @returns DeleteVscResponse
|
|
10597
|
+
*/
|
|
10598
|
+
async deleteVscWithOptions(request: $_model.DeleteVscRequest, runtime: $dara.RuntimeOptions): Promise<$_model.DeleteVscResponse> {
|
|
10599
|
+
request.validate();
|
|
10600
|
+
let query = { };
|
|
10601
|
+
if (!$dara.isNull(request.clientToken)) {
|
|
10602
|
+
query["ClientToken"] = request.clientToken;
|
|
10603
|
+
}
|
|
10604
|
+
|
|
10605
|
+
if (!$dara.isNull(request.dryRun)) {
|
|
10606
|
+
query["DryRun"] = request.dryRun;
|
|
10607
|
+
}
|
|
10608
|
+
|
|
10609
|
+
if (!$dara.isNull(request.ownerAccount)) {
|
|
10610
|
+
query["OwnerAccount"] = request.ownerAccount;
|
|
10611
|
+
}
|
|
10612
|
+
|
|
10613
|
+
if (!$dara.isNull(request.ownerId)) {
|
|
10614
|
+
query["OwnerId"] = request.ownerId;
|
|
10615
|
+
}
|
|
10616
|
+
|
|
10617
|
+
if (!$dara.isNull(request.regionId)) {
|
|
10618
|
+
query["RegionId"] = request.regionId;
|
|
10619
|
+
}
|
|
10620
|
+
|
|
10621
|
+
if (!$dara.isNull(request.resourceOwnerAccount)) {
|
|
10622
|
+
query["ResourceOwnerAccount"] = request.resourceOwnerAccount;
|
|
10623
|
+
}
|
|
10624
|
+
|
|
10625
|
+
if (!$dara.isNull(request.resourceOwnerId)) {
|
|
10626
|
+
query["ResourceOwnerId"] = request.resourceOwnerId;
|
|
10627
|
+
}
|
|
10628
|
+
|
|
10629
|
+
if (!$dara.isNull(request.vscId)) {
|
|
10630
|
+
query["VscId"] = request.vscId;
|
|
10631
|
+
}
|
|
10632
|
+
|
|
10633
|
+
let req = new $OpenApiUtil.OpenApiRequest({
|
|
10634
|
+
query: OpenApiUtil.query(query),
|
|
10635
|
+
});
|
|
10636
|
+
let params = new $OpenApiUtil.Params({
|
|
10637
|
+
action: "DeleteVsc",
|
|
10638
|
+
version: "2014-05-26",
|
|
10639
|
+
protocol: "HTTPS",
|
|
10640
|
+
pathname: "/",
|
|
10641
|
+
method: "POST",
|
|
10642
|
+
authType: "AK",
|
|
10643
|
+
style: "RPC",
|
|
10644
|
+
reqBodyType: "formData",
|
|
10645
|
+
bodyType: "json",
|
|
10646
|
+
});
|
|
10647
|
+
return $dara.cast<$_model.DeleteVscResponse>(await this.callApi(params, req, runtime), new $_model.DeleteVscResponse({}));
|
|
10648
|
+
}
|
|
10649
|
+
|
|
10650
|
+
/**
|
|
10651
|
+
* Delete a Virtual Storage Channel (VSC)
|
|
10652
|
+
*
|
|
10653
|
+
* @param request - DeleteVscRequest
|
|
10654
|
+
* @returns DeleteVscResponse
|
|
10655
|
+
*/
|
|
10656
|
+
async deleteVsc(request: $_model.DeleteVscRequest): Promise<$_model.DeleteVscResponse> {
|
|
10657
|
+
let runtime = new $dara.RuntimeOptions({ });
|
|
10658
|
+
return await this.deleteVscWithOptions(request, runtime);
|
|
10659
|
+
}
|
|
10660
|
+
|
|
10501
10661
|
/**
|
|
10502
10662
|
* Deregisters a managed instance. After you deregister the managed instance, you can no longer use Cloud Assistant to send commands or files to the instance.
|
|
10503
10663
|
*
|
|
@@ -15211,7 +15371,7 @@ export default class Client extends OpenApi {
|
|
|
15211
15371
|
}
|
|
15212
15372
|
|
|
15213
15373
|
/**
|
|
15214
|
-
* Queries the pricing
|
|
15374
|
+
* Queries the pricing info about the target instance types and newly added subscription data disks when you upgrade unexpired subscription ECS instances.
|
|
15215
15375
|
*
|
|
15216
15376
|
* @remarks
|
|
15217
15377
|
* Pricing information can be queried for unexpired subscription ECS instances only when you upgrade their configurations. The pricing information cannot be queried when the instance configurations are downgraded.
|
|
@@ -15229,6 +15389,18 @@ export default class Client extends OpenApi {
|
|
|
15229
15389
|
query["DataDisk"] = request.dataDisk;
|
|
15230
15390
|
}
|
|
15231
15391
|
|
|
15392
|
+
if (!$dara.isNull(request.endTime)) {
|
|
15393
|
+
query["EndTime"] = request.endTime;
|
|
15394
|
+
}
|
|
15395
|
+
|
|
15396
|
+
if (!$dara.isNull(request.ISP)) {
|
|
15397
|
+
query["ISP"] = request.ISP;
|
|
15398
|
+
}
|
|
15399
|
+
|
|
15400
|
+
if (!$dara.isNull(request.imageId)) {
|
|
15401
|
+
query["ImageId"] = request.imageId;
|
|
15402
|
+
}
|
|
15403
|
+
|
|
15232
15404
|
if (!$dara.isNull(request.instanceId)) {
|
|
15233
15405
|
query["InstanceId"] = request.instanceId;
|
|
15234
15406
|
}
|
|
@@ -15237,6 +15409,14 @@ export default class Client extends OpenApi {
|
|
|
15237
15409
|
query["InstanceType"] = request.instanceType;
|
|
15238
15410
|
}
|
|
15239
15411
|
|
|
15412
|
+
if (!$dara.isNull(request.internetChargeType)) {
|
|
15413
|
+
query["InternetChargeType"] = request.internetChargeType;
|
|
15414
|
+
}
|
|
15415
|
+
|
|
15416
|
+
if (!$dara.isNull(request.internetMaxBandwidthOut)) {
|
|
15417
|
+
query["InternetMaxBandwidthOut"] = request.internetMaxBandwidthOut;
|
|
15418
|
+
}
|
|
15419
|
+
|
|
15240
15420
|
if (!$dara.isNull(request.ownerAccount)) {
|
|
15241
15421
|
query["OwnerAccount"] = request.ownerAccount;
|
|
15242
15422
|
}
|
|
@@ -15257,6 +15437,10 @@ export default class Client extends OpenApi {
|
|
|
15257
15437
|
query["ResourceOwnerId"] = request.resourceOwnerId;
|
|
15258
15438
|
}
|
|
15259
15439
|
|
|
15440
|
+
if (!$dara.isNull(request.startTime)) {
|
|
15441
|
+
query["StartTime"] = request.startTime;
|
|
15442
|
+
}
|
|
15443
|
+
|
|
15260
15444
|
if (!$dara.isNull(request.systemDisk)) {
|
|
15261
15445
|
query["SystemDisk"] = request.systemDisk;
|
|
15262
15446
|
}
|
|
@@ -15279,7 +15463,7 @@ export default class Client extends OpenApi {
|
|
|
15279
15463
|
}
|
|
15280
15464
|
|
|
15281
15465
|
/**
|
|
15282
|
-
* Queries the pricing
|
|
15466
|
+
* Queries the pricing info about the target instance types and newly added subscription data disks when you upgrade unexpired subscription ECS instances.
|
|
15283
15467
|
*
|
|
15284
15468
|
* @remarks
|
|
15285
15469
|
* Pricing information can be queried for unexpired subscription ECS instances only when you upgrade their configurations. The pricing information cannot be queried when the instance configurations are downgraded.
|
|
@@ -21746,6 +21930,92 @@ export default class Client extends OpenApi {
|
|
|
21746
21930
|
return await this.describeVpcsWithOptions(request, runtime);
|
|
21747
21931
|
}
|
|
21748
21932
|
|
|
21933
|
+
/**
|
|
21934
|
+
* Query virtual storage channels (VSC). Support filtering by VscId, instance, Status, and label.
|
|
21935
|
+
*
|
|
21936
|
+
* @param request - DescribeVscsRequest
|
|
21937
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
21938
|
+
* @returns DescribeVscsResponse
|
|
21939
|
+
*/
|
|
21940
|
+
async describeVscsWithOptions(request: $_model.DescribeVscsRequest, runtime: $dara.RuntimeOptions): Promise<$_model.DescribeVscsResponse> {
|
|
21941
|
+
request.validate();
|
|
21942
|
+
let query = { };
|
|
21943
|
+
if (!$dara.isNull(request.instanceId)) {
|
|
21944
|
+
query["InstanceId"] = request.instanceId;
|
|
21945
|
+
}
|
|
21946
|
+
|
|
21947
|
+
if (!$dara.isNull(request.maxResults)) {
|
|
21948
|
+
query["MaxResults"] = request.maxResults;
|
|
21949
|
+
}
|
|
21950
|
+
|
|
21951
|
+
if (!$dara.isNull(request.nextToken)) {
|
|
21952
|
+
query["NextToken"] = request.nextToken;
|
|
21953
|
+
}
|
|
21954
|
+
|
|
21955
|
+
if (!$dara.isNull(request.ownerAccount)) {
|
|
21956
|
+
query["OwnerAccount"] = request.ownerAccount;
|
|
21957
|
+
}
|
|
21958
|
+
|
|
21959
|
+
if (!$dara.isNull(request.ownerId)) {
|
|
21960
|
+
query["OwnerId"] = request.ownerId;
|
|
21961
|
+
}
|
|
21962
|
+
|
|
21963
|
+
if (!$dara.isNull(request.regionId)) {
|
|
21964
|
+
query["RegionId"] = request.regionId;
|
|
21965
|
+
}
|
|
21966
|
+
|
|
21967
|
+
if (!$dara.isNull(request.resourceGroupId)) {
|
|
21968
|
+
query["ResourceGroupId"] = request.resourceGroupId;
|
|
21969
|
+
}
|
|
21970
|
+
|
|
21971
|
+
if (!$dara.isNull(request.resourceOwnerAccount)) {
|
|
21972
|
+
query["ResourceOwnerAccount"] = request.resourceOwnerAccount;
|
|
21973
|
+
}
|
|
21974
|
+
|
|
21975
|
+
if (!$dara.isNull(request.resourceOwnerId)) {
|
|
21976
|
+
query["ResourceOwnerId"] = request.resourceOwnerId;
|
|
21977
|
+
}
|
|
21978
|
+
|
|
21979
|
+
if (!$dara.isNull(request.status)) {
|
|
21980
|
+
query["Status"] = request.status;
|
|
21981
|
+
}
|
|
21982
|
+
|
|
21983
|
+
if (!$dara.isNull(request.tag)) {
|
|
21984
|
+
query["Tag"] = request.tag;
|
|
21985
|
+
}
|
|
21986
|
+
|
|
21987
|
+
if (!$dara.isNull(request.vscIds)) {
|
|
21988
|
+
query["VscIds"] = request.vscIds;
|
|
21989
|
+
}
|
|
21990
|
+
|
|
21991
|
+
let req = new $OpenApiUtil.OpenApiRequest({
|
|
21992
|
+
query: OpenApiUtil.query(query),
|
|
21993
|
+
});
|
|
21994
|
+
let params = new $OpenApiUtil.Params({
|
|
21995
|
+
action: "DescribeVscs",
|
|
21996
|
+
version: "2014-05-26",
|
|
21997
|
+
protocol: "HTTPS",
|
|
21998
|
+
pathname: "/",
|
|
21999
|
+
method: "POST",
|
|
22000
|
+
authType: "AK",
|
|
22001
|
+
style: "RPC",
|
|
22002
|
+
reqBodyType: "formData",
|
|
22003
|
+
bodyType: "json",
|
|
22004
|
+
});
|
|
22005
|
+
return $dara.cast<$_model.DescribeVscsResponse>(await this.callApi(params, req, runtime), new $_model.DescribeVscsResponse({}));
|
|
22006
|
+
}
|
|
22007
|
+
|
|
22008
|
+
/**
|
|
22009
|
+
* Query virtual storage channels (VSC). Support filtering by VscId, instance, Status, and label.
|
|
22010
|
+
*
|
|
22011
|
+
* @param request - DescribeVscsRequest
|
|
22012
|
+
* @returns DescribeVscsResponse
|
|
22013
|
+
*/
|
|
22014
|
+
async describeVscs(request: $_model.DescribeVscsRequest): Promise<$_model.DescribeVscsResponse> {
|
|
22015
|
+
let runtime = new $dara.RuntimeOptions({ });
|
|
22016
|
+
return await this.describeVscsWithOptions(request, runtime);
|
|
22017
|
+
}
|
|
22018
|
+
|
|
21749
22019
|
/**
|
|
21750
22020
|
* Queries Alibaba Cloud regions. You can specify parameters, such as InstanceChargeType and ResourceType, in the request.
|
|
21751
22021
|
*
|
|
@@ -0,0 +1,138 @@
|
|
|
1
|
+
// This file is auto-generated, don't edit it
|
|
2
|
+
import * as $dara from '@darabonba/typescript';
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
export class CreateVscRequestTag extends $dara.Model {
|
|
6
|
+
/**
|
|
7
|
+
* @example
|
|
8
|
+
* TestKey
|
|
9
|
+
*/
|
|
10
|
+
key?: string;
|
|
11
|
+
/**
|
|
12
|
+
* @example
|
|
13
|
+
* TestValue
|
|
14
|
+
*/
|
|
15
|
+
value?: string;
|
|
16
|
+
static names(): { [key: string]: string } {
|
|
17
|
+
return {
|
|
18
|
+
key: 'Key',
|
|
19
|
+
value: 'Value',
|
|
20
|
+
};
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
static types(): { [key: string]: any } {
|
|
24
|
+
return {
|
|
25
|
+
key: 'string',
|
|
26
|
+
value: 'string',
|
|
27
|
+
};
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
validate() {
|
|
31
|
+
super.validate();
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
constructor(map?: { [key: string]: any }) {
|
|
35
|
+
super(map);
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
export class CreateVscRequest extends $dara.Model {
|
|
40
|
+
/**
|
|
41
|
+
* @example
|
|
42
|
+
* 123e4567-e89b-12d3-a456-426655440000
|
|
43
|
+
*/
|
|
44
|
+
clientToken?: string;
|
|
45
|
+
/**
|
|
46
|
+
* @example
|
|
47
|
+
* 设备的描述
|
|
48
|
+
*/
|
|
49
|
+
description?: string;
|
|
50
|
+
/**
|
|
51
|
+
* @example
|
|
52
|
+
* false
|
|
53
|
+
*/
|
|
54
|
+
dryRun?: boolean;
|
|
55
|
+
/**
|
|
56
|
+
* @remarks
|
|
57
|
+
* This parameter is required.
|
|
58
|
+
*
|
|
59
|
+
* @example
|
|
60
|
+
* i-bp**c262
|
|
61
|
+
*/
|
|
62
|
+
instanceId?: string;
|
|
63
|
+
ownerAccount?: string;
|
|
64
|
+
ownerId?: number;
|
|
65
|
+
/**
|
|
66
|
+
* @remarks
|
|
67
|
+
* This parameter is required.
|
|
68
|
+
*
|
|
69
|
+
* @example
|
|
70
|
+
* cn-hangzhou
|
|
71
|
+
*/
|
|
72
|
+
regionId?: string;
|
|
73
|
+
/**
|
|
74
|
+
* @example
|
|
75
|
+
* rg-bp67acfmxazb4p****
|
|
76
|
+
*/
|
|
77
|
+
resourceGroupId?: string;
|
|
78
|
+
resourceOwnerAccount?: string;
|
|
79
|
+
resourceOwnerId?: number;
|
|
80
|
+
tag?: CreateVscRequestTag[];
|
|
81
|
+
/**
|
|
82
|
+
* @example
|
|
83
|
+
* 设备1
|
|
84
|
+
*/
|
|
85
|
+
vscName?: string;
|
|
86
|
+
/**
|
|
87
|
+
* @example
|
|
88
|
+
* Primary
|
|
89
|
+
*/
|
|
90
|
+
vscType?: string;
|
|
91
|
+
static names(): { [key: string]: string } {
|
|
92
|
+
return {
|
|
93
|
+
clientToken: 'ClientToken',
|
|
94
|
+
description: 'Description',
|
|
95
|
+
dryRun: 'DryRun',
|
|
96
|
+
instanceId: 'InstanceId',
|
|
97
|
+
ownerAccount: 'OwnerAccount',
|
|
98
|
+
ownerId: 'OwnerId',
|
|
99
|
+
regionId: 'RegionId',
|
|
100
|
+
resourceGroupId: 'ResourceGroupId',
|
|
101
|
+
resourceOwnerAccount: 'ResourceOwnerAccount',
|
|
102
|
+
resourceOwnerId: 'ResourceOwnerId',
|
|
103
|
+
tag: 'Tag',
|
|
104
|
+
vscName: 'VscName',
|
|
105
|
+
vscType: 'VscType',
|
|
106
|
+
};
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
static types(): { [key: string]: any } {
|
|
110
|
+
return {
|
|
111
|
+
clientToken: 'string',
|
|
112
|
+
description: 'string',
|
|
113
|
+
dryRun: 'boolean',
|
|
114
|
+
instanceId: 'string',
|
|
115
|
+
ownerAccount: 'string',
|
|
116
|
+
ownerId: 'number',
|
|
117
|
+
regionId: 'string',
|
|
118
|
+
resourceGroupId: 'string',
|
|
119
|
+
resourceOwnerAccount: 'string',
|
|
120
|
+
resourceOwnerId: 'number',
|
|
121
|
+
tag: { 'type': 'array', 'itemType': CreateVscRequestTag },
|
|
122
|
+
vscName: 'string',
|
|
123
|
+
vscType: 'string',
|
|
124
|
+
};
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
validate() {
|
|
128
|
+
if(Array.isArray(this.tag)) {
|
|
129
|
+
$dara.Model.validateArray(this.tag);
|
|
130
|
+
}
|
|
131
|
+
super.validate();
|
|
132
|
+
}
|
|
133
|
+
|
|
134
|
+
constructor(map?: { [key: string]: any }) {
|
|
135
|
+
super(map);
|
|
136
|
+
}
|
|
137
|
+
}
|
|
138
|
+
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
// This file is auto-generated, don't edit it
|
|
2
|
+
import * as $dara from '@darabonba/typescript';
|
|
3
|
+
import { CreateVscResponseBody } from "./CreateVscResponseBody";
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
export class CreateVscResponse extends $dara.Model {
|
|
7
|
+
headers?: { [key: string]: string };
|
|
8
|
+
statusCode?: number;
|
|
9
|
+
body?: CreateVscResponseBody;
|
|
10
|
+
static names(): { [key: string]: string } {
|
|
11
|
+
return {
|
|
12
|
+
headers: 'headers',
|
|
13
|
+
statusCode: 'statusCode',
|
|
14
|
+
body: 'body',
|
|
15
|
+
};
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
static types(): { [key: string]: any } {
|
|
19
|
+
return {
|
|
20
|
+
headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
|
|
21
|
+
statusCode: 'number',
|
|
22
|
+
body: CreateVscResponseBody,
|
|
23
|
+
};
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
validate() {
|
|
27
|
+
if(this.headers) {
|
|
28
|
+
$dara.Model.validateMap(this.headers);
|
|
29
|
+
}
|
|
30
|
+
if(this.body && typeof (this.body as any).validate === 'function') {
|
|
31
|
+
(this.body as any).validate();
|
|
32
|
+
}
|
|
33
|
+
super.validate();
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
constructor(map?: { [key: string]: any }) {
|
|
37
|
+
super(map);
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
// This file is auto-generated, don't edit it
|
|
2
|
+
import * as $dara from '@darabonba/typescript';
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
export class CreateVscResponseBody extends $dara.Model {
|
|
6
|
+
/**
|
|
7
|
+
* @example
|
|
8
|
+
* DD38F-12VBW2-**EKX
|
|
9
|
+
*/
|
|
10
|
+
requestId?: string;
|
|
11
|
+
/**
|
|
12
|
+
* @example
|
|
13
|
+
* vsc-b*d31dq
|
|
14
|
+
*/
|
|
15
|
+
vscId?: string;
|
|
16
|
+
static names(): { [key: string]: string } {
|
|
17
|
+
return {
|
|
18
|
+
requestId: 'RequestId',
|
|
19
|
+
vscId: 'VscId',
|
|
20
|
+
};
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
static types(): { [key: string]: any } {
|
|
24
|
+
return {
|
|
25
|
+
requestId: 'string',
|
|
26
|
+
vscId: 'string',
|
|
27
|
+
};
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
validate() {
|
|
31
|
+
super.validate();
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
constructor(map?: { [key: string]: any }) {
|
|
35
|
+
super(map);
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
// This file is auto-generated, don't edit it
|
|
2
|
+
import * as $dara from '@darabonba/typescript';
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
export class DeleteVscRequest extends $dara.Model {
|
|
6
|
+
/**
|
|
7
|
+
* @example
|
|
8
|
+
* 123e4567-e89b-1**3-a456-426655440000
|
|
9
|
+
*/
|
|
10
|
+
clientToken?: string;
|
|
11
|
+
/**
|
|
12
|
+
* @example
|
|
13
|
+
* false
|
|
14
|
+
*/
|
|
15
|
+
dryRun?: boolean;
|
|
16
|
+
ownerAccount?: string;
|
|
17
|
+
ownerId?: number;
|
|
18
|
+
/**
|
|
19
|
+
* @remarks
|
|
20
|
+
* This parameter is required.
|
|
21
|
+
*
|
|
22
|
+
* @example
|
|
23
|
+
* cn-hangzhou
|
|
24
|
+
*/
|
|
25
|
+
regionId?: string;
|
|
26
|
+
resourceOwnerAccount?: string;
|
|
27
|
+
resourceOwnerId?: number;
|
|
28
|
+
/**
|
|
29
|
+
* @remarks
|
|
30
|
+
* This parameter is required.
|
|
31
|
+
*
|
|
32
|
+
* @example
|
|
33
|
+
* vsc-bp1j8y**etwq1ow3jal
|
|
34
|
+
*/
|
|
35
|
+
vscId?: string;
|
|
36
|
+
static names(): { [key: string]: string } {
|
|
37
|
+
return {
|
|
38
|
+
clientToken: 'ClientToken',
|
|
39
|
+
dryRun: 'DryRun',
|
|
40
|
+
ownerAccount: 'OwnerAccount',
|
|
41
|
+
ownerId: 'OwnerId',
|
|
42
|
+
regionId: 'RegionId',
|
|
43
|
+
resourceOwnerAccount: 'ResourceOwnerAccount',
|
|
44
|
+
resourceOwnerId: 'ResourceOwnerId',
|
|
45
|
+
vscId: 'VscId',
|
|
46
|
+
};
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
static types(): { [key: string]: any } {
|
|
50
|
+
return {
|
|
51
|
+
clientToken: 'string',
|
|
52
|
+
dryRun: 'boolean',
|
|
53
|
+
ownerAccount: 'string',
|
|
54
|
+
ownerId: 'number',
|
|
55
|
+
regionId: 'string',
|
|
56
|
+
resourceOwnerAccount: 'string',
|
|
57
|
+
resourceOwnerId: 'number',
|
|
58
|
+
vscId: 'string',
|
|
59
|
+
};
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
validate() {
|
|
63
|
+
super.validate();
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
constructor(map?: { [key: string]: any }) {
|
|
67
|
+
super(map);
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
// This file is auto-generated, don't edit it
|
|
2
|
+
import * as $dara from '@darabonba/typescript';
|
|
3
|
+
import { DeleteVscResponseBody } from "./DeleteVscResponseBody";
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
export class DeleteVscResponse extends $dara.Model {
|
|
7
|
+
headers?: { [key: string]: string };
|
|
8
|
+
statusCode?: number;
|
|
9
|
+
body?: DeleteVscResponseBody;
|
|
10
|
+
static names(): { [key: string]: string } {
|
|
11
|
+
return {
|
|
12
|
+
headers: 'headers',
|
|
13
|
+
statusCode: 'statusCode',
|
|
14
|
+
body: 'body',
|
|
15
|
+
};
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
static types(): { [key: string]: any } {
|
|
19
|
+
return {
|
|
20
|
+
headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
|
|
21
|
+
statusCode: 'number',
|
|
22
|
+
body: DeleteVscResponseBody,
|
|
23
|
+
};
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
validate() {
|
|
27
|
+
if(this.headers) {
|
|
28
|
+
$dara.Model.validateMap(this.headers);
|
|
29
|
+
}
|
|
30
|
+
if(this.body && typeof (this.body as any).validate === 'function') {
|
|
31
|
+
(this.body as any).validate();
|
|
32
|
+
}
|
|
33
|
+
super.validate();
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
constructor(map?: { [key: string]: any }) {
|
|
37
|
+
super(map);
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
// This file is auto-generated, don't edit it
|
|
2
|
+
import * as $dara from '@darabonba/typescript';
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
export class DeleteVscResponseBody extends $dara.Model {
|
|
6
|
+
/**
|
|
7
|
+
* @remarks
|
|
8
|
+
* Id of the request
|
|
9
|
+
*
|
|
10
|
+
* @example
|
|
11
|
+
* 745CEC9F-0DD7-4451-9FE7-8B752F39****
|
|
12
|
+
*/
|
|
13
|
+
requestId?: string;
|
|
14
|
+
static names(): { [key: string]: string } {
|
|
15
|
+
return {
|
|
16
|
+
requestId: 'RequestId',
|
|
17
|
+
};
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
static types(): { [key: string]: any } {
|
|
21
|
+
return {
|
|
22
|
+
requestId: 'string',
|
|
23
|
+
};
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
validate() {
|
|
27
|
+
super.validate();
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
constructor(map?: { [key: string]: any }) {
|
|
31
|
+
super(map);
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
|