@alicloud/cloudapi20160714 3.6.2 → 4.0.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 +115 -1
- package/dist/client.js +3032 -2811
- package/dist/client.js.map +1 -1
- package/package.json +4 -4
- package/src/client.ts +255 -3
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@alicloud/cloudapi20160714",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "4.0.1",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "dist/client.js",
|
|
6
6
|
"scripts": {
|
|
@@ -12,11 +12,11 @@
|
|
|
12
12
|
"author": "Alibaba Cloud SDK",
|
|
13
13
|
"license": "Apache-2.0",
|
|
14
14
|
"devDependencies": {
|
|
15
|
-
"@types/node": "^
|
|
15
|
+
"@types/node": "^16.0.0",
|
|
16
16
|
"nyc": "^15.0.0",
|
|
17
17
|
"source-map-support": "^0.5.16",
|
|
18
|
-
"ts-node": "^
|
|
19
|
-
"typescript": "^
|
|
18
|
+
"ts-node": "^10.0.0",
|
|
19
|
+
"typescript": "^5"
|
|
20
20
|
},
|
|
21
21
|
"dependencies": {
|
|
22
22
|
"@alicloud/tea-typescript": "^1.7.1",
|
package/src/client.ts
CHANGED
|
@@ -616,15 +616,18 @@ export class CreateAccessControlListRequest extends $tea.Model {
|
|
|
616
616
|
}
|
|
617
617
|
|
|
618
618
|
export class CreateAccessControlListResponseBody extends $tea.Model {
|
|
619
|
+
aclId?: string;
|
|
619
620
|
requestId?: string;
|
|
620
621
|
static names(): { [key: string]: string } {
|
|
621
622
|
return {
|
|
623
|
+
aclId: 'AclId',
|
|
622
624
|
requestId: 'RequestId',
|
|
623
625
|
};
|
|
624
626
|
}
|
|
625
627
|
|
|
626
628
|
static types(): { [key: string]: any } {
|
|
627
629
|
return {
|
|
630
|
+
aclId: 'string',
|
|
628
631
|
requestId: 'string',
|
|
629
632
|
};
|
|
630
633
|
}
|
|
@@ -3817,14 +3820,14 @@ export class DescribeAccessControlListAttributeResponseBody extends $tea.Model {
|
|
|
3817
3820
|
aclEntrys?: DescribeAccessControlListAttributeResponseBodyAclEntrys;
|
|
3818
3821
|
aclId?: string;
|
|
3819
3822
|
aclName?: string;
|
|
3820
|
-
|
|
3823
|
+
addressIPVersion?: string;
|
|
3821
3824
|
requestId?: string;
|
|
3822
3825
|
static names(): { [key: string]: string } {
|
|
3823
3826
|
return {
|
|
3824
3827
|
aclEntrys: 'AclEntrys',
|
|
3825
3828
|
aclId: 'AclId',
|
|
3826
3829
|
aclName: 'AclName',
|
|
3827
|
-
|
|
3830
|
+
addressIPVersion: 'AddressIPVersion',
|
|
3828
3831
|
requestId: 'RequestId',
|
|
3829
3832
|
};
|
|
3830
3833
|
}
|
|
@@ -3834,7 +3837,7 @@ export class DescribeAccessControlListAttributeResponseBody extends $tea.Model {
|
|
|
3834
3837
|
aclEntrys: DescribeAccessControlListAttributeResponseBodyAclEntrys,
|
|
3835
3838
|
aclId: 'string',
|
|
3836
3839
|
aclName: 'string',
|
|
3837
|
-
|
|
3840
|
+
addressIPVersion: 'string',
|
|
3838
3841
|
requestId: 'string',
|
|
3839
3842
|
};
|
|
3840
3843
|
}
|
|
@@ -6176,6 +6179,90 @@ export class DescribeApisByTrafficControlResponse extends $tea.Model {
|
|
|
6176
6179
|
}
|
|
6177
6180
|
}
|
|
6178
6181
|
|
|
6182
|
+
export class DescribeApisByVpcAccessRequest extends $tea.Model {
|
|
6183
|
+
pageNumber?: number;
|
|
6184
|
+
pageSize?: number;
|
|
6185
|
+
securityToken?: string;
|
|
6186
|
+
vpcName?: string;
|
|
6187
|
+
static names(): { [key: string]: string } {
|
|
6188
|
+
return {
|
|
6189
|
+
pageNumber: 'PageNumber',
|
|
6190
|
+
pageSize: 'PageSize',
|
|
6191
|
+
securityToken: 'SecurityToken',
|
|
6192
|
+
vpcName: 'VpcName',
|
|
6193
|
+
};
|
|
6194
|
+
}
|
|
6195
|
+
|
|
6196
|
+
static types(): { [key: string]: any } {
|
|
6197
|
+
return {
|
|
6198
|
+
pageNumber: 'number',
|
|
6199
|
+
pageSize: 'number',
|
|
6200
|
+
securityToken: 'string',
|
|
6201
|
+
vpcName: 'string',
|
|
6202
|
+
};
|
|
6203
|
+
}
|
|
6204
|
+
|
|
6205
|
+
constructor(map?: { [key: string]: any }) {
|
|
6206
|
+
super(map);
|
|
6207
|
+
}
|
|
6208
|
+
}
|
|
6209
|
+
|
|
6210
|
+
export class DescribeApisByVpcAccessResponseBody extends $tea.Model {
|
|
6211
|
+
apiVpcAccessInfos?: DescribeApisByVpcAccessResponseBodyApiVpcAccessInfos;
|
|
6212
|
+
pageNumber?: number;
|
|
6213
|
+
pageSize?: number;
|
|
6214
|
+
requestId?: string;
|
|
6215
|
+
totalCount?: number;
|
|
6216
|
+
static names(): { [key: string]: string } {
|
|
6217
|
+
return {
|
|
6218
|
+
apiVpcAccessInfos: 'ApiVpcAccessInfos',
|
|
6219
|
+
pageNumber: 'PageNumber',
|
|
6220
|
+
pageSize: 'PageSize',
|
|
6221
|
+
requestId: 'RequestId',
|
|
6222
|
+
totalCount: 'TotalCount',
|
|
6223
|
+
};
|
|
6224
|
+
}
|
|
6225
|
+
|
|
6226
|
+
static types(): { [key: string]: any } {
|
|
6227
|
+
return {
|
|
6228
|
+
apiVpcAccessInfos: DescribeApisByVpcAccessResponseBodyApiVpcAccessInfos,
|
|
6229
|
+
pageNumber: 'number',
|
|
6230
|
+
pageSize: 'number',
|
|
6231
|
+
requestId: 'string',
|
|
6232
|
+
totalCount: 'number',
|
|
6233
|
+
};
|
|
6234
|
+
}
|
|
6235
|
+
|
|
6236
|
+
constructor(map?: { [key: string]: any }) {
|
|
6237
|
+
super(map);
|
|
6238
|
+
}
|
|
6239
|
+
}
|
|
6240
|
+
|
|
6241
|
+
export class DescribeApisByVpcAccessResponse extends $tea.Model {
|
|
6242
|
+
headers?: { [key: string]: string };
|
|
6243
|
+
statusCode?: number;
|
|
6244
|
+
body?: DescribeApisByVpcAccessResponseBody;
|
|
6245
|
+
static names(): { [key: string]: string } {
|
|
6246
|
+
return {
|
|
6247
|
+
headers: 'headers',
|
|
6248
|
+
statusCode: 'statusCode',
|
|
6249
|
+
body: 'body',
|
|
6250
|
+
};
|
|
6251
|
+
}
|
|
6252
|
+
|
|
6253
|
+
static types(): { [key: string]: any } {
|
|
6254
|
+
return {
|
|
6255
|
+
headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
|
|
6256
|
+
statusCode: 'number',
|
|
6257
|
+
body: DescribeApisByVpcAccessResponseBody,
|
|
6258
|
+
};
|
|
6259
|
+
}
|
|
6260
|
+
|
|
6261
|
+
constructor(map?: { [key: string]: any }) {
|
|
6262
|
+
super(map);
|
|
6263
|
+
}
|
|
6264
|
+
}
|
|
6265
|
+
|
|
6179
6266
|
export class DescribeApisWithStageNameIntegratedByAppRequest extends $tea.Model {
|
|
6180
6267
|
apiName?: string;
|
|
6181
6268
|
apiUid?: string;
|
|
@@ -19937,6 +20024,83 @@ export class DescribeApisByTrafficControlResponseBodyApiInfos extends $tea.Model
|
|
|
19937
20024
|
}
|
|
19938
20025
|
}
|
|
19939
20026
|
|
|
20027
|
+
export class DescribeApisByVpcAccessResponseBodyApiVpcAccessInfosApiVpcAccessInfo extends $tea.Model {
|
|
20028
|
+
apiId?: string;
|
|
20029
|
+
apiName?: string;
|
|
20030
|
+
description?: string;
|
|
20031
|
+
groupId?: string;
|
|
20032
|
+
groupName?: string;
|
|
20033
|
+
instanceId?: string;
|
|
20034
|
+
method?: string;
|
|
20035
|
+
path?: string;
|
|
20036
|
+
port?: number;
|
|
20037
|
+
regionId?: string;
|
|
20038
|
+
stageId?: string;
|
|
20039
|
+
stageName?: string;
|
|
20040
|
+
vpcId?: string;
|
|
20041
|
+
vpcName?: string;
|
|
20042
|
+
static names(): { [key: string]: string } {
|
|
20043
|
+
return {
|
|
20044
|
+
apiId: 'ApiId',
|
|
20045
|
+
apiName: 'ApiName',
|
|
20046
|
+
description: 'Description',
|
|
20047
|
+
groupId: 'GroupId',
|
|
20048
|
+
groupName: 'GroupName',
|
|
20049
|
+
instanceId: 'InstanceId',
|
|
20050
|
+
method: 'Method',
|
|
20051
|
+
path: 'Path',
|
|
20052
|
+
port: 'Port',
|
|
20053
|
+
regionId: 'RegionId',
|
|
20054
|
+
stageId: 'StageId',
|
|
20055
|
+
stageName: 'StageName',
|
|
20056
|
+
vpcId: 'VpcId',
|
|
20057
|
+
vpcName: 'VpcName',
|
|
20058
|
+
};
|
|
20059
|
+
}
|
|
20060
|
+
|
|
20061
|
+
static types(): { [key: string]: any } {
|
|
20062
|
+
return {
|
|
20063
|
+
apiId: 'string',
|
|
20064
|
+
apiName: 'string',
|
|
20065
|
+
description: 'string',
|
|
20066
|
+
groupId: 'string',
|
|
20067
|
+
groupName: 'string',
|
|
20068
|
+
instanceId: 'string',
|
|
20069
|
+
method: 'string',
|
|
20070
|
+
path: 'string',
|
|
20071
|
+
port: 'number',
|
|
20072
|
+
regionId: 'string',
|
|
20073
|
+
stageId: 'string',
|
|
20074
|
+
stageName: 'string',
|
|
20075
|
+
vpcId: 'string',
|
|
20076
|
+
vpcName: 'string',
|
|
20077
|
+
};
|
|
20078
|
+
}
|
|
20079
|
+
|
|
20080
|
+
constructor(map?: { [key: string]: any }) {
|
|
20081
|
+
super(map);
|
|
20082
|
+
}
|
|
20083
|
+
}
|
|
20084
|
+
|
|
20085
|
+
export class DescribeApisByVpcAccessResponseBodyApiVpcAccessInfos extends $tea.Model {
|
|
20086
|
+
apiVpcAccessInfo?: DescribeApisByVpcAccessResponseBodyApiVpcAccessInfosApiVpcAccessInfo[];
|
|
20087
|
+
static names(): { [key: string]: string } {
|
|
20088
|
+
return {
|
|
20089
|
+
apiVpcAccessInfo: 'ApiVpcAccessInfo',
|
|
20090
|
+
};
|
|
20091
|
+
}
|
|
20092
|
+
|
|
20093
|
+
static types(): { [key: string]: any } {
|
|
20094
|
+
return {
|
|
20095
|
+
apiVpcAccessInfo: { 'type': 'array', 'itemType': DescribeApisByVpcAccessResponseBodyApiVpcAccessInfosApiVpcAccessInfo },
|
|
20096
|
+
};
|
|
20097
|
+
}
|
|
20098
|
+
|
|
20099
|
+
constructor(map?: { [key: string]: any }) {
|
|
20100
|
+
super(map);
|
|
20101
|
+
}
|
|
20102
|
+
}
|
|
20103
|
+
|
|
19940
20104
|
export class DescribeApisWithStageNameIntegratedByAppResponseBodyAppApiRelationInfosAppApiRelationInfo extends $tea.Model {
|
|
19941
20105
|
apiId?: string;
|
|
19942
20106
|
apiName?: string;
|
|
@@ -20315,6 +20479,7 @@ export class DescribeAuthorizedApisResponseBodyAuthorizedApis extends $tea.Model
|
|
|
20315
20479
|
}
|
|
20316
20480
|
|
|
20317
20481
|
export class DescribeAuthorizedAppsResponseBodyAuthorizedAppsAuthorizedApp extends $tea.Model {
|
|
20482
|
+
appDescription?: string;
|
|
20318
20483
|
appId?: number;
|
|
20319
20484
|
appName?: string;
|
|
20320
20485
|
authVaildTime?: string;
|
|
@@ -20326,6 +20491,7 @@ export class DescribeAuthorizedAppsResponseBodyAuthorizedAppsAuthorizedApp exten
|
|
|
20326
20491
|
stageName?: string;
|
|
20327
20492
|
static names(): { [key: string]: string } {
|
|
20328
20493
|
return {
|
|
20494
|
+
appDescription: 'AppDescription',
|
|
20329
20495
|
appId: 'AppId',
|
|
20330
20496
|
appName: 'AppName',
|
|
20331
20497
|
authVaildTime: 'AuthVaildTime',
|
|
@@ -20340,6 +20506,7 @@ export class DescribeAuthorizedAppsResponseBodyAuthorizedAppsAuthorizedApp exten
|
|
|
20340
20506
|
|
|
20341
20507
|
static types(): { [key: string]: any } {
|
|
20342
20508
|
return {
|
|
20509
|
+
appDescription: 'string',
|
|
20343
20510
|
appId: 'number',
|
|
20344
20511
|
appName: 'string',
|
|
20345
20512
|
authVaildTime: 'string',
|
|
@@ -22691,6 +22858,47 @@ export class DescribeInstancesResponseBodyInstancesInstanceAttributePrivateDnsLi
|
|
|
22691
22858
|
}
|
|
22692
22859
|
}
|
|
22693
22860
|
|
|
22861
|
+
export class DescribeInstancesResponseBodyInstancesInstanceAttributeTagsTagInfo extends $tea.Model {
|
|
22862
|
+
key?: string;
|
|
22863
|
+
value?: string;
|
|
22864
|
+
static names(): { [key: string]: string } {
|
|
22865
|
+
return {
|
|
22866
|
+
key: 'Key',
|
|
22867
|
+
value: 'Value',
|
|
22868
|
+
};
|
|
22869
|
+
}
|
|
22870
|
+
|
|
22871
|
+
static types(): { [key: string]: any } {
|
|
22872
|
+
return {
|
|
22873
|
+
key: 'string',
|
|
22874
|
+
value: 'string',
|
|
22875
|
+
};
|
|
22876
|
+
}
|
|
22877
|
+
|
|
22878
|
+
constructor(map?: { [key: string]: any }) {
|
|
22879
|
+
super(map);
|
|
22880
|
+
}
|
|
22881
|
+
}
|
|
22882
|
+
|
|
22883
|
+
export class DescribeInstancesResponseBodyInstancesInstanceAttributeTags extends $tea.Model {
|
|
22884
|
+
tagInfo?: DescribeInstancesResponseBodyInstancesInstanceAttributeTagsTagInfo[];
|
|
22885
|
+
static names(): { [key: string]: string } {
|
|
22886
|
+
return {
|
|
22887
|
+
tagInfo: 'TagInfo',
|
|
22888
|
+
};
|
|
22889
|
+
}
|
|
22890
|
+
|
|
22891
|
+
static types(): { [key: string]: any } {
|
|
22892
|
+
return {
|
|
22893
|
+
tagInfo: { 'type': 'array', 'itemType': DescribeInstancesResponseBodyInstancesInstanceAttributeTagsTagInfo },
|
|
22894
|
+
};
|
|
22895
|
+
}
|
|
22896
|
+
|
|
22897
|
+
constructor(map?: { [key: string]: any }) {
|
|
22898
|
+
super(map);
|
|
22899
|
+
}
|
|
22900
|
+
}
|
|
22901
|
+
|
|
22694
22902
|
export class DescribeInstancesResponseBodyInstancesInstanceAttribute extends $tea.Model {
|
|
22695
22903
|
aclId?: string;
|
|
22696
22904
|
aclName?: string;
|
|
@@ -22726,6 +22934,7 @@ export class DescribeInstancesResponseBodyInstancesInstanceAttribute extends $te
|
|
|
22726
22934
|
regionId?: string;
|
|
22727
22935
|
status?: string;
|
|
22728
22936
|
supportIpv6?: boolean;
|
|
22937
|
+
tags?: DescribeInstancesResponseBodyInstancesInstanceAttributeTags;
|
|
22729
22938
|
userVpcId?: string;
|
|
22730
22939
|
userVswitchId?: string;
|
|
22731
22940
|
vpcEgressAddress?: string;
|
|
@@ -22770,6 +22979,7 @@ export class DescribeInstancesResponseBodyInstancesInstanceAttribute extends $te
|
|
|
22770
22979
|
regionId: 'RegionId',
|
|
22771
22980
|
status: 'Status',
|
|
22772
22981
|
supportIpv6: 'SupportIpv6',
|
|
22982
|
+
tags: 'Tags',
|
|
22773
22983
|
userVpcId: 'UserVpcId',
|
|
22774
22984
|
userVswitchId: 'UserVswitchId',
|
|
22775
22985
|
vpcEgressAddress: 'VpcEgressAddress',
|
|
@@ -22817,6 +23027,7 @@ export class DescribeInstancesResponseBodyInstancesInstanceAttribute extends $te
|
|
|
22817
23027
|
regionId: 'string',
|
|
22818
23028
|
status: 'string',
|
|
22819
23029
|
supportIpv6: 'boolean',
|
|
23030
|
+
tags: DescribeInstancesResponseBodyInstancesInstanceAttributeTags,
|
|
22820
23031
|
userVpcId: 'string',
|
|
22821
23032
|
userVswitchId: 'string',
|
|
22822
23033
|
vpcEgressAddress: 'string',
|
|
@@ -29366,6 +29577,47 @@ export default class Client extends OpenApi {
|
|
|
29366
29577
|
return await this.describeApisByTrafficControlWithOptions(request, runtime);
|
|
29367
29578
|
}
|
|
29368
29579
|
|
|
29580
|
+
async describeApisByVpcAccessWithOptions(request: DescribeApisByVpcAccessRequest, runtime: $Util.RuntimeOptions): Promise<DescribeApisByVpcAccessResponse> {
|
|
29581
|
+
Util.validateModel(request);
|
|
29582
|
+
let query = { };
|
|
29583
|
+
if (!Util.isUnset(request.pageNumber)) {
|
|
29584
|
+
query["PageNumber"] = request.pageNumber;
|
|
29585
|
+
}
|
|
29586
|
+
|
|
29587
|
+
if (!Util.isUnset(request.pageSize)) {
|
|
29588
|
+
query["PageSize"] = request.pageSize;
|
|
29589
|
+
}
|
|
29590
|
+
|
|
29591
|
+
if (!Util.isUnset(request.securityToken)) {
|
|
29592
|
+
query["SecurityToken"] = request.securityToken;
|
|
29593
|
+
}
|
|
29594
|
+
|
|
29595
|
+
if (!Util.isUnset(request.vpcName)) {
|
|
29596
|
+
query["VpcName"] = request.vpcName;
|
|
29597
|
+
}
|
|
29598
|
+
|
|
29599
|
+
let req = new $OpenApi.OpenApiRequest({
|
|
29600
|
+
query: OpenApiUtil.query(query),
|
|
29601
|
+
});
|
|
29602
|
+
let params = new $OpenApi.Params({
|
|
29603
|
+
action: "DescribeApisByVpcAccess",
|
|
29604
|
+
version: "2016-07-14",
|
|
29605
|
+
protocol: "HTTPS",
|
|
29606
|
+
pathname: "/",
|
|
29607
|
+
method: "POST",
|
|
29608
|
+
authType: "AK",
|
|
29609
|
+
style: "RPC",
|
|
29610
|
+
reqBodyType: "formData",
|
|
29611
|
+
bodyType: "json",
|
|
29612
|
+
});
|
|
29613
|
+
return $tea.cast<DescribeApisByVpcAccessResponse>(await this.callApi(params, req, runtime), new DescribeApisByVpcAccessResponse({}));
|
|
29614
|
+
}
|
|
29615
|
+
|
|
29616
|
+
async describeApisByVpcAccess(request: DescribeApisByVpcAccessRequest): Promise<DescribeApisByVpcAccessResponse> {
|
|
29617
|
+
let runtime = new $Util.RuntimeOptions({ });
|
|
29618
|
+
return await this.describeApisByVpcAccessWithOptions(request, runtime);
|
|
29619
|
+
}
|
|
29620
|
+
|
|
29369
29621
|
async describeApisWithStageNameIntegratedByAppWithOptions(request: DescribeApisWithStageNameIntegratedByAppRequest, runtime: $Util.RuntimeOptions): Promise<DescribeApisWithStageNameIntegratedByAppResponse> {
|
|
29370
29622
|
Util.validateModel(request);
|
|
29371
29623
|
let query = { };
|