@alicloud/ecs20140526 4.4.2 → 4.4.3
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 +38 -0
- package/dist/client.js +92 -11
- package/dist/client.js.map +1 -1
- package/package.json +1 -1
- package/src/client.ts +108 -0
package/package.json
CHANGED
package/src/client.ts
CHANGED
|
@@ -7819,6 +7819,7 @@ export class CreateImageComponentRequest extends $tea.Model {
|
|
|
7819
7819
|
* Build
|
|
7820
7820
|
*/
|
|
7821
7821
|
componentType?: string;
|
|
7822
|
+
componentVersion?: string;
|
|
7822
7823
|
/**
|
|
7823
7824
|
* @remarks
|
|
7824
7825
|
* The content of the image component. The content consists of up to 127 commands.
|
|
@@ -7886,6 +7887,7 @@ export class CreateImageComponentRequest extends $tea.Model {
|
|
|
7886
7887
|
return {
|
|
7887
7888
|
clientToken: 'ClientToken',
|
|
7888
7889
|
componentType: 'ComponentType',
|
|
7890
|
+
componentVersion: 'ComponentVersion',
|
|
7889
7891
|
content: 'Content',
|
|
7890
7892
|
description: 'Description',
|
|
7891
7893
|
name: 'Name',
|
|
@@ -7904,6 +7906,7 @@ export class CreateImageComponentRequest extends $tea.Model {
|
|
|
7904
7906
|
return {
|
|
7905
7907
|
clientToken: 'string',
|
|
7906
7908
|
componentType: 'string',
|
|
7909
|
+
componentVersion: 'string',
|
|
7907
7910
|
content: 'string',
|
|
7908
7911
|
description: 'string',
|
|
7909
7912
|
name: 'string',
|
|
@@ -8058,6 +8061,7 @@ export class CreateImagePipelineRequest extends $tea.Model {
|
|
|
8058
8061
|
* This is description.
|
|
8059
8062
|
*/
|
|
8060
8063
|
description?: string;
|
|
8064
|
+
imageFamily?: string;
|
|
8061
8065
|
/**
|
|
8062
8066
|
* @remarks
|
|
8063
8067
|
* The prefix of the image name. The prefix must be 2 to 64 characters in length. It must start with a letter and cannot start with `http://` or `https://`. It can contain letters, digits, colons (:), underscores (_), periods (.), and hyphens (-).
|
|
@@ -8110,6 +8114,7 @@ export class CreateImagePipelineRequest extends $tea.Model {
|
|
|
8110
8114
|
* cn-hangzhou
|
|
8111
8115
|
*/
|
|
8112
8116
|
regionId?: string;
|
|
8117
|
+
repairMode?: string;
|
|
8113
8118
|
/**
|
|
8114
8119
|
* @remarks
|
|
8115
8120
|
* The ID of the resource group.
|
|
@@ -8135,6 +8140,7 @@ export class CreateImagePipelineRequest extends $tea.Model {
|
|
|
8135
8140
|
* The tags to add to the template.
|
|
8136
8141
|
*/
|
|
8137
8142
|
tag?: CreateImagePipelineRequestTag[];
|
|
8143
|
+
testContent?: string;
|
|
8138
8144
|
/**
|
|
8139
8145
|
* @remarks
|
|
8140
8146
|
* The IDs of regions to which you want to distribute the image that is created based on the image template. You can specify up to 20 region IDs.
|
|
@@ -8164,6 +8170,7 @@ export class CreateImagePipelineRequest extends $tea.Model {
|
|
|
8164
8170
|
clientToken: 'ClientToken',
|
|
8165
8171
|
deleteInstanceOnFailure: 'DeleteInstanceOnFailure',
|
|
8166
8172
|
description: 'Description',
|
|
8173
|
+
imageFamily: 'ImageFamily',
|
|
8167
8174
|
imageName: 'ImageName',
|
|
8168
8175
|
instanceType: 'InstanceType',
|
|
8169
8176
|
internetMaxBandwidthOut: 'InternetMaxBandwidthOut',
|
|
@@ -8171,11 +8178,13 @@ export class CreateImagePipelineRequest extends $tea.Model {
|
|
|
8171
8178
|
ownerAccount: 'OwnerAccount',
|
|
8172
8179
|
ownerId: 'OwnerId',
|
|
8173
8180
|
regionId: 'RegionId',
|
|
8181
|
+
repairMode: 'RepairMode',
|
|
8174
8182
|
resourceGroupId: 'ResourceGroupId',
|
|
8175
8183
|
resourceOwnerAccount: 'ResourceOwnerAccount',
|
|
8176
8184
|
resourceOwnerId: 'ResourceOwnerId',
|
|
8177
8185
|
systemDiskSize: 'SystemDiskSize',
|
|
8178
8186
|
tag: 'Tag',
|
|
8187
|
+
testContent: 'TestContent',
|
|
8179
8188
|
toRegionId: 'ToRegionId',
|
|
8180
8189
|
vSwitchId: 'VSwitchId',
|
|
8181
8190
|
};
|
|
@@ -8190,6 +8199,7 @@ export class CreateImagePipelineRequest extends $tea.Model {
|
|
|
8190
8199
|
clientToken: 'string',
|
|
8191
8200
|
deleteInstanceOnFailure: 'boolean',
|
|
8192
8201
|
description: 'string',
|
|
8202
|
+
imageFamily: 'string',
|
|
8193
8203
|
imageName: 'string',
|
|
8194
8204
|
instanceType: 'string',
|
|
8195
8205
|
internetMaxBandwidthOut: 'number',
|
|
@@ -8197,11 +8207,13 @@ export class CreateImagePipelineRequest extends $tea.Model {
|
|
|
8197
8207
|
ownerAccount: 'string',
|
|
8198
8208
|
ownerId: 'number',
|
|
8199
8209
|
regionId: 'string',
|
|
8210
|
+
repairMode: 'string',
|
|
8200
8211
|
resourceGroupId: 'string',
|
|
8201
8212
|
resourceOwnerAccount: 'string',
|
|
8202
8213
|
resourceOwnerId: 'number',
|
|
8203
8214
|
systemDiskSize: 'number',
|
|
8204
8215
|
tag: { 'type': 'array', 'itemType': CreateImagePipelineRequestTag },
|
|
8216
|
+
testContent: 'string',
|
|
8205
8217
|
toRegionId: { 'type': 'array', 'itemType': 'string' },
|
|
8206
8218
|
vSwitchId: 'string',
|
|
8207
8219
|
};
|
|
@@ -24658,6 +24670,8 @@ export class DescribeHpcClustersResponse extends $tea.Model {
|
|
|
24658
24670
|
}
|
|
24659
24671
|
|
|
24660
24672
|
export class DescribeImageComponentsRequest extends $tea.Model {
|
|
24673
|
+
componentType?: string;
|
|
24674
|
+
componentVersion?: string;
|
|
24661
24675
|
/**
|
|
24662
24676
|
* @remarks
|
|
24663
24677
|
* The IDs of image components. Valid values of N: 1 to 20.
|
|
@@ -24727,6 +24741,7 @@ export class DescribeImageComponentsRequest extends $tea.Model {
|
|
|
24727
24741
|
resourceGroupId?: string;
|
|
24728
24742
|
resourceOwnerAccount?: string;
|
|
24729
24743
|
resourceOwnerId?: number;
|
|
24744
|
+
systemType?: string;
|
|
24730
24745
|
/**
|
|
24731
24746
|
* @remarks
|
|
24732
24747
|
* The tags of the image component.
|
|
@@ -24734,6 +24749,8 @@ export class DescribeImageComponentsRequest extends $tea.Model {
|
|
|
24734
24749
|
tag?: DescribeImageComponentsRequestTag[];
|
|
24735
24750
|
static names(): { [key: string]: string } {
|
|
24736
24751
|
return {
|
|
24752
|
+
componentType: 'ComponentType',
|
|
24753
|
+
componentVersion: 'ComponentVersion',
|
|
24737
24754
|
imageComponentId: 'ImageComponentId',
|
|
24738
24755
|
maxResults: 'MaxResults',
|
|
24739
24756
|
name: 'Name',
|
|
@@ -24745,12 +24762,15 @@ export class DescribeImageComponentsRequest extends $tea.Model {
|
|
|
24745
24762
|
resourceGroupId: 'ResourceGroupId',
|
|
24746
24763
|
resourceOwnerAccount: 'ResourceOwnerAccount',
|
|
24747
24764
|
resourceOwnerId: 'ResourceOwnerId',
|
|
24765
|
+
systemType: 'SystemType',
|
|
24748
24766
|
tag: 'Tag',
|
|
24749
24767
|
};
|
|
24750
24768
|
}
|
|
24751
24769
|
|
|
24752
24770
|
static types(): { [key: string]: any } {
|
|
24753
24771
|
return {
|
|
24772
|
+
componentType: 'string',
|
|
24773
|
+
componentVersion: 'string',
|
|
24754
24774
|
imageComponentId: { 'type': 'array', 'itemType': 'string' },
|
|
24755
24775
|
maxResults: 'number',
|
|
24756
24776
|
name: 'string',
|
|
@@ -24762,6 +24782,7 @@ export class DescribeImageComponentsRequest extends $tea.Model {
|
|
|
24762
24782
|
resourceGroupId: 'string',
|
|
24763
24783
|
resourceOwnerAccount: 'string',
|
|
24764
24784
|
resourceOwnerId: 'number',
|
|
24785
|
+
systemType: 'string',
|
|
24765
24786
|
tag: { 'type': 'array', 'itemType': DescribeImageComponentsRequestTag },
|
|
24766
24787
|
};
|
|
24767
24788
|
}
|
|
@@ -77625,6 +77646,50 @@ export class DescribeImageComponentsRequestTag extends $tea.Model {
|
|
|
77625
77646
|
}
|
|
77626
77647
|
}
|
|
77627
77648
|
|
|
77649
|
+
export class DescribeImageComponentsResponseBodyImageComponentImageComponentSetParametersParameter extends $tea.Model {
|
|
77650
|
+
defaultValue?: string;
|
|
77651
|
+
name?: string;
|
|
77652
|
+
type?: string;
|
|
77653
|
+
static names(): { [key: string]: string } {
|
|
77654
|
+
return {
|
|
77655
|
+
defaultValue: 'DefaultValue',
|
|
77656
|
+
name: 'Name',
|
|
77657
|
+
type: 'Type',
|
|
77658
|
+
};
|
|
77659
|
+
}
|
|
77660
|
+
|
|
77661
|
+
static types(): { [key: string]: any } {
|
|
77662
|
+
return {
|
|
77663
|
+
defaultValue: 'string',
|
|
77664
|
+
name: 'string',
|
|
77665
|
+
type: 'string',
|
|
77666
|
+
};
|
|
77667
|
+
}
|
|
77668
|
+
|
|
77669
|
+
constructor(map?: { [key: string]: any }) {
|
|
77670
|
+
super(map);
|
|
77671
|
+
}
|
|
77672
|
+
}
|
|
77673
|
+
|
|
77674
|
+
export class DescribeImageComponentsResponseBodyImageComponentImageComponentSetParameters extends $tea.Model {
|
|
77675
|
+
parameter?: DescribeImageComponentsResponseBodyImageComponentImageComponentSetParametersParameter[];
|
|
77676
|
+
static names(): { [key: string]: string } {
|
|
77677
|
+
return {
|
|
77678
|
+
parameter: 'Parameter',
|
|
77679
|
+
};
|
|
77680
|
+
}
|
|
77681
|
+
|
|
77682
|
+
static types(): { [key: string]: any } {
|
|
77683
|
+
return {
|
|
77684
|
+
parameter: { 'type': 'array', 'itemType': DescribeImageComponentsResponseBodyImageComponentImageComponentSetParametersParameter },
|
|
77685
|
+
};
|
|
77686
|
+
}
|
|
77687
|
+
|
|
77688
|
+
constructor(map?: { [key: string]: any }) {
|
|
77689
|
+
super(map);
|
|
77690
|
+
}
|
|
77691
|
+
}
|
|
77692
|
+
|
|
77628
77693
|
export class DescribeImageComponentsResponseBodyImageComponentImageComponentSetTagsTag extends $tea.Model {
|
|
77629
77694
|
/**
|
|
77630
77695
|
* @remarks
|
|
@@ -77689,6 +77754,7 @@ export class DescribeImageComponentsResponseBodyImageComponentImageComponentSet
|
|
|
77689
77754
|
* Build
|
|
77690
77755
|
*/
|
|
77691
77756
|
componentType?: string;
|
|
77757
|
+
componentVersion?: string;
|
|
77692
77758
|
/**
|
|
77693
77759
|
* @remarks
|
|
77694
77760
|
* The content of the image component.
|
|
@@ -77740,6 +77806,7 @@ export class DescribeImageComponentsResponseBodyImageComponentImageComponentSet
|
|
|
77740
77806
|
* SELF
|
|
77741
77807
|
*/
|
|
77742
77808
|
owner?: string;
|
|
77809
|
+
parameters?: DescribeImageComponentsResponseBodyImageComponentImageComponentSetParameters;
|
|
77743
77810
|
/**
|
|
77744
77811
|
* @remarks
|
|
77745
77812
|
* The ID of the resource group to which the image component belongs.
|
|
@@ -77764,12 +77831,14 @@ export class DescribeImageComponentsResponseBodyImageComponentImageComponentSet
|
|
|
77764
77831
|
static names(): { [key: string]: string } {
|
|
77765
77832
|
return {
|
|
77766
77833
|
componentType: 'ComponentType',
|
|
77834
|
+
componentVersion: 'ComponentVersion',
|
|
77767
77835
|
content: 'Content',
|
|
77768
77836
|
creationTime: 'CreationTime',
|
|
77769
77837
|
description: 'Description',
|
|
77770
77838
|
imageComponentId: 'ImageComponentId',
|
|
77771
77839
|
name: 'Name',
|
|
77772
77840
|
owner: 'Owner',
|
|
77841
|
+
parameters: 'Parameters',
|
|
77773
77842
|
resourceGroupId: 'ResourceGroupId',
|
|
77774
77843
|
systemType: 'SystemType',
|
|
77775
77844
|
tags: 'Tags',
|
|
@@ -77779,12 +77848,14 @@ export class DescribeImageComponentsResponseBodyImageComponentImageComponentSet
|
|
|
77779
77848
|
static types(): { [key: string]: any } {
|
|
77780
77849
|
return {
|
|
77781
77850
|
componentType: 'string',
|
|
77851
|
+
componentVersion: 'string',
|
|
77782
77852
|
content: 'string',
|
|
77783
77853
|
creationTime: 'string',
|
|
77784
77854
|
description: 'string',
|
|
77785
77855
|
imageComponentId: 'string',
|
|
77786
77856
|
name: 'string',
|
|
77787
77857
|
owner: 'string',
|
|
77858
|
+
parameters: DescribeImageComponentsResponseBodyImageComponentImageComponentSetParameters,
|
|
77788
77859
|
resourceGroupId: 'string',
|
|
77789
77860
|
systemType: 'string',
|
|
77790
77861
|
tags: DescribeImageComponentsResponseBodyImageComponentImageComponentSetTags,
|
|
@@ -78646,6 +78717,7 @@ export class DescribeImagePipelinesResponseBodyImagePipelineImagePipelineSet ext
|
|
|
78646
78717
|
* This is description.
|
|
78647
78718
|
*/
|
|
78648
78719
|
description?: string;
|
|
78720
|
+
imageFamily?: string;
|
|
78649
78721
|
/**
|
|
78650
78722
|
* @remarks
|
|
78651
78723
|
* The name prefix of the image to be created based on the image template.
|
|
@@ -78686,6 +78758,7 @@ export class DescribeImagePipelinesResponseBodyImagePipelineImagePipelineSet ext
|
|
|
78686
78758
|
* testImagePipeline
|
|
78687
78759
|
*/
|
|
78688
78760
|
name?: string;
|
|
78761
|
+
repairMode?: string;
|
|
78689
78762
|
/**
|
|
78690
78763
|
* @remarks
|
|
78691
78764
|
* The ID of the resource group.
|
|
@@ -78707,6 +78780,7 @@ export class DescribeImagePipelinesResponseBodyImagePipelineImagePipelineSet ext
|
|
|
78707
78780
|
* The tags of the image template.
|
|
78708
78781
|
*/
|
|
78709
78782
|
tags?: DescribeImagePipelinesResponseBodyImagePipelineImagePipelineSetTags;
|
|
78783
|
+
testContent?: string;
|
|
78710
78784
|
/**
|
|
78711
78785
|
* @remarks
|
|
78712
78786
|
* The IDs of regions to which to distribute the image that will be created based on the image template.
|
|
@@ -78729,14 +78803,17 @@ export class DescribeImagePipelinesResponseBodyImagePipelineImagePipelineSet ext
|
|
|
78729
78803
|
creationTime: 'CreationTime',
|
|
78730
78804
|
deleteInstanceOnFailure: 'DeleteInstanceOnFailure',
|
|
78731
78805
|
description: 'Description',
|
|
78806
|
+
imageFamily: 'ImageFamily',
|
|
78732
78807
|
imageName: 'ImageName',
|
|
78733
78808
|
imagePipelineId: 'ImagePipelineId',
|
|
78734
78809
|
instanceType: 'InstanceType',
|
|
78735
78810
|
internetMaxBandwidthOut: 'InternetMaxBandwidthOut',
|
|
78736
78811
|
name: 'Name',
|
|
78812
|
+
repairMode: 'RepairMode',
|
|
78737
78813
|
resourceGroupId: 'ResourceGroupId',
|
|
78738
78814
|
systemDiskSize: 'SystemDiskSize',
|
|
78739
78815
|
tags: 'Tags',
|
|
78816
|
+
testContent: 'TestContent',
|
|
78740
78817
|
toRegionIds: 'ToRegionIds',
|
|
78741
78818
|
vSwitchId: 'VSwitchId',
|
|
78742
78819
|
};
|
|
@@ -78751,14 +78828,17 @@ export class DescribeImagePipelinesResponseBodyImagePipelineImagePipelineSet ext
|
|
|
78751
78828
|
creationTime: 'string',
|
|
78752
78829
|
deleteInstanceOnFailure: 'boolean',
|
|
78753
78830
|
description: 'string',
|
|
78831
|
+
imageFamily: 'string',
|
|
78754
78832
|
imageName: 'string',
|
|
78755
78833
|
imagePipelineId: 'string',
|
|
78756
78834
|
instanceType: 'string',
|
|
78757
78835
|
internetMaxBandwidthOut: 'number',
|
|
78758
78836
|
name: 'string',
|
|
78837
|
+
repairMode: 'string',
|
|
78759
78838
|
resourceGroupId: 'string',
|
|
78760
78839
|
systemDiskSize: 'number',
|
|
78761
78840
|
tags: DescribeImagePipelinesResponseBodyImagePipelineImagePipelineSetTags,
|
|
78841
|
+
testContent: 'string',
|
|
78762
78842
|
toRegionIds: DescribeImagePipelinesResponseBodyImagePipelineImagePipelineSetToRegionIds,
|
|
78763
78843
|
vSwitchId: 'string',
|
|
78764
78844
|
};
|
|
@@ -106395,6 +106475,10 @@ export default class Client extends OpenApi {
|
|
|
106395
106475
|
query["ComponentType"] = request.componentType;
|
|
106396
106476
|
}
|
|
106397
106477
|
|
|
106478
|
+
if (!Util.isUnset(request.componentVersion)) {
|
|
106479
|
+
query["ComponentVersion"] = request.componentVersion;
|
|
106480
|
+
}
|
|
106481
|
+
|
|
106398
106482
|
if (!Util.isUnset(request.content)) {
|
|
106399
106483
|
query["Content"] = request.content;
|
|
106400
106484
|
}
|
|
@@ -106532,6 +106616,10 @@ export default class Client extends OpenApi {
|
|
|
106532
106616
|
query["Description"] = request.description;
|
|
106533
106617
|
}
|
|
106534
106618
|
|
|
106619
|
+
if (!Util.isUnset(request.imageFamily)) {
|
|
106620
|
+
query["ImageFamily"] = request.imageFamily;
|
|
106621
|
+
}
|
|
106622
|
+
|
|
106535
106623
|
if (!Util.isUnset(request.imageName)) {
|
|
106536
106624
|
query["ImageName"] = request.imageName;
|
|
106537
106625
|
}
|
|
@@ -106564,6 +106652,10 @@ export default class Client extends OpenApi {
|
|
|
106564
106652
|
query["RegionId"] = request.regionId;
|
|
106565
106653
|
}
|
|
106566
106654
|
|
|
106655
|
+
if (!Util.isUnset(request.repairMode)) {
|
|
106656
|
+
query["RepairMode"] = request.repairMode;
|
|
106657
|
+
}
|
|
106658
|
+
|
|
106567
106659
|
if (!Util.isUnset(request.resourceGroupId)) {
|
|
106568
106660
|
query["ResourceGroupId"] = request.resourceGroupId;
|
|
106569
106661
|
}
|
|
@@ -106588,6 +106680,10 @@ export default class Client extends OpenApi {
|
|
|
106588
106680
|
query["Tag"] = request.tag;
|
|
106589
106681
|
}
|
|
106590
106682
|
|
|
106683
|
+
if (!Util.isUnset(request.testContent)) {
|
|
106684
|
+
query["TestContent"] = request.testContent;
|
|
106685
|
+
}
|
|
106686
|
+
|
|
106591
106687
|
if (!Util.isUnset(request.toRegionId)) {
|
|
106592
106688
|
query["ToRegionId"] = request.toRegionId;
|
|
106593
106689
|
}
|
|
@@ -115456,6 +115552,14 @@ export default class Client extends OpenApi {
|
|
|
115456
115552
|
async describeImageComponentsWithOptions(request: DescribeImageComponentsRequest, runtime: $Util.RuntimeOptions): Promise<DescribeImageComponentsResponse> {
|
|
115457
115553
|
Util.validateModel(request);
|
|
115458
115554
|
let query = { };
|
|
115555
|
+
if (!Util.isUnset(request.componentType)) {
|
|
115556
|
+
query["ComponentType"] = request.componentType;
|
|
115557
|
+
}
|
|
115558
|
+
|
|
115559
|
+
if (!Util.isUnset(request.componentVersion)) {
|
|
115560
|
+
query["ComponentVersion"] = request.componentVersion;
|
|
115561
|
+
}
|
|
115562
|
+
|
|
115459
115563
|
if (!Util.isUnset(request.imageComponentId)) {
|
|
115460
115564
|
query["ImageComponentId"] = request.imageComponentId;
|
|
115461
115565
|
}
|
|
@@ -115508,6 +115612,10 @@ export default class Client extends OpenApi {
|
|
|
115508
115612
|
query["ResourceOwnerId"] = request.resourceOwnerId;
|
|
115509
115613
|
}
|
|
115510
115614
|
|
|
115615
|
+
if (!Util.isUnset(request.systemType)) {
|
|
115616
|
+
query["SystemType"] = request.systemType;
|
|
115617
|
+
}
|
|
115618
|
+
|
|
115511
115619
|
if (!Util.isUnset(request.tag)) {
|
|
115512
115620
|
query["Tag"] = request.tag;
|
|
115513
115621
|
}
|