@alicloud/cloudapi20160714 2.2.1 → 2.2.5
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 +52 -0
- package/dist/client.js +122 -0
- package/dist/client.js.map +1 -1
- package/package.json +2 -2
- package/src/client.ts +154 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@alicloud/cloudapi20160714",
|
|
3
|
-
"version": "2.2.
|
|
3
|
+
"version": "2.2.5",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "dist/client.js",
|
|
6
6
|
"scripts": {
|
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
},
|
|
21
21
|
"dependencies": {
|
|
22
22
|
"@alicloud/tea-typescript": "latest",
|
|
23
|
-
"@alicloud/tea-util": "^1.4.
|
|
23
|
+
"@alicloud/tea-util": "^1.4.4",
|
|
24
24
|
"@alicloud/openapi-client": "^0.4.1",
|
|
25
25
|
"@alicloud/openapi-util": "^0.2.9",
|
|
26
26
|
"@alicloud/endpoint-util": "^0.0.1"
|
package/src/client.ts
CHANGED
|
@@ -915,14 +915,20 @@ export class CreateApiStageVariableResponse extends $tea.Model {
|
|
|
915
915
|
}
|
|
916
916
|
|
|
917
917
|
export class CreateAppRequest extends $tea.Model {
|
|
918
|
+
appCode?: string;
|
|
919
|
+
appKey?: string;
|
|
918
920
|
appName?: string;
|
|
921
|
+
appSecret?: string;
|
|
919
922
|
description?: string;
|
|
920
923
|
securityToken?: string;
|
|
921
924
|
source?: string;
|
|
922
925
|
tag?: CreateAppRequestTag[];
|
|
923
926
|
static names(): { [key: string]: string } {
|
|
924
927
|
return {
|
|
928
|
+
appCode: 'AppCode',
|
|
929
|
+
appKey: 'AppKey',
|
|
925
930
|
appName: 'AppName',
|
|
931
|
+
appSecret: 'AppSecret',
|
|
926
932
|
description: 'Description',
|
|
927
933
|
securityToken: 'SecurityToken',
|
|
928
934
|
source: 'Source',
|
|
@@ -932,7 +938,10 @@ export class CreateAppRequest extends $tea.Model {
|
|
|
932
938
|
|
|
933
939
|
static types(): { [key: string]: any } {
|
|
934
940
|
return {
|
|
941
|
+
appCode: 'string',
|
|
942
|
+
appKey: 'string',
|
|
935
943
|
appName: 'string',
|
|
944
|
+
appSecret: 'string',
|
|
936
945
|
description: 'string',
|
|
937
946
|
securityToken: 'string',
|
|
938
947
|
source: 'string',
|
|
@@ -9866,12 +9875,14 @@ export class ModifyInstanceSpecRequest extends $tea.Model {
|
|
|
9866
9875
|
autoPay?: boolean;
|
|
9867
9876
|
instanceId?: string;
|
|
9868
9877
|
instanceSpec?: string;
|
|
9878
|
+
modifyAction?: string;
|
|
9869
9879
|
token?: string;
|
|
9870
9880
|
static names(): { [key: string]: string } {
|
|
9871
9881
|
return {
|
|
9872
9882
|
autoPay: 'AutoPay',
|
|
9873
9883
|
instanceId: 'InstanceId',
|
|
9874
9884
|
instanceSpec: 'InstanceSpec',
|
|
9885
|
+
modifyAction: 'ModifyAction',
|
|
9875
9886
|
token: 'Token',
|
|
9876
9887
|
};
|
|
9877
9888
|
}
|
|
@@ -9881,6 +9892,7 @@ export class ModifyInstanceSpecRequest extends $tea.Model {
|
|
|
9881
9892
|
autoPay: 'boolean',
|
|
9882
9893
|
instanceId: 'string',
|
|
9883
9894
|
instanceSpec: 'string',
|
|
9895
|
+
modifyAction: 'string',
|
|
9884
9896
|
token: 'string',
|
|
9885
9897
|
};
|
|
9886
9898
|
}
|
|
@@ -11261,10 +11273,12 @@ export class RemoveVpcAccessAndAbolishApisResponse extends $tea.Model {
|
|
|
11261
11273
|
|
|
11262
11274
|
export class ResetAppCodeRequest extends $tea.Model {
|
|
11263
11275
|
appCode?: string;
|
|
11276
|
+
newAppCode?: string;
|
|
11264
11277
|
securityToken?: string;
|
|
11265
11278
|
static names(): { [key: string]: string } {
|
|
11266
11279
|
return {
|
|
11267
11280
|
appCode: 'AppCode',
|
|
11281
|
+
newAppCode: 'NewAppCode',
|
|
11268
11282
|
securityToken: 'SecurityToken',
|
|
11269
11283
|
};
|
|
11270
11284
|
}
|
|
@@ -11272,6 +11286,7 @@ export class ResetAppCodeRequest extends $tea.Model {
|
|
|
11272
11286
|
static types(): { [key: string]: any } {
|
|
11273
11287
|
return {
|
|
11274
11288
|
appCode: 'string',
|
|
11289
|
+
newAppCode: 'string',
|
|
11275
11290
|
securityToken: 'string',
|
|
11276
11291
|
};
|
|
11277
11292
|
}
|
|
@@ -11327,10 +11342,12 @@ export class ResetAppCodeResponse extends $tea.Model {
|
|
|
11327
11342
|
|
|
11328
11343
|
export class ResetAppSecretRequest extends $tea.Model {
|
|
11329
11344
|
appKey?: string;
|
|
11345
|
+
newAppSecret?: string;
|
|
11330
11346
|
securityToken?: string;
|
|
11331
11347
|
static names(): { [key: string]: string } {
|
|
11332
11348
|
return {
|
|
11333
11349
|
appKey: 'AppKey',
|
|
11350
|
+
newAppSecret: 'NewAppSecret',
|
|
11334
11351
|
securityToken: 'SecurityToken',
|
|
11335
11352
|
};
|
|
11336
11353
|
}
|
|
@@ -11338,6 +11355,7 @@ export class ResetAppSecretRequest extends $tea.Model {
|
|
|
11338
11355
|
static types(): { [key: string]: any } {
|
|
11339
11356
|
return {
|
|
11340
11357
|
appKey: 'string',
|
|
11358
|
+
newAppSecret: 'string',
|
|
11341
11359
|
securityToken: 'string',
|
|
11342
11360
|
};
|
|
11343
11361
|
}
|
|
@@ -11607,6 +11625,75 @@ export class SdkGenerateByGroupResponse extends $tea.Model {
|
|
|
11607
11625
|
}
|
|
11608
11626
|
}
|
|
11609
11627
|
|
|
11628
|
+
export class SetAccessControlListAttributeRequest extends $tea.Model {
|
|
11629
|
+
aclId?: string;
|
|
11630
|
+
aclName?: string;
|
|
11631
|
+
securityToken?: string;
|
|
11632
|
+
static names(): { [key: string]: string } {
|
|
11633
|
+
return {
|
|
11634
|
+
aclId: 'AclId',
|
|
11635
|
+
aclName: 'AclName',
|
|
11636
|
+
securityToken: 'SecurityToken',
|
|
11637
|
+
};
|
|
11638
|
+
}
|
|
11639
|
+
|
|
11640
|
+
static types(): { [key: string]: any } {
|
|
11641
|
+
return {
|
|
11642
|
+
aclId: 'string',
|
|
11643
|
+
aclName: 'string',
|
|
11644
|
+
securityToken: 'string',
|
|
11645
|
+
};
|
|
11646
|
+
}
|
|
11647
|
+
|
|
11648
|
+
constructor(map?: { [key: string]: any }) {
|
|
11649
|
+
super(map);
|
|
11650
|
+
}
|
|
11651
|
+
}
|
|
11652
|
+
|
|
11653
|
+
export class SetAccessControlListAttributeResponseBody extends $tea.Model {
|
|
11654
|
+
requestId?: string;
|
|
11655
|
+
static names(): { [key: string]: string } {
|
|
11656
|
+
return {
|
|
11657
|
+
requestId: 'RequestId',
|
|
11658
|
+
};
|
|
11659
|
+
}
|
|
11660
|
+
|
|
11661
|
+
static types(): { [key: string]: any } {
|
|
11662
|
+
return {
|
|
11663
|
+
requestId: 'string',
|
|
11664
|
+
};
|
|
11665
|
+
}
|
|
11666
|
+
|
|
11667
|
+
constructor(map?: { [key: string]: any }) {
|
|
11668
|
+
super(map);
|
|
11669
|
+
}
|
|
11670
|
+
}
|
|
11671
|
+
|
|
11672
|
+
export class SetAccessControlListAttributeResponse extends $tea.Model {
|
|
11673
|
+
headers: { [key: string]: string };
|
|
11674
|
+
statusCode: number;
|
|
11675
|
+
body: SetAccessControlListAttributeResponseBody;
|
|
11676
|
+
static names(): { [key: string]: string } {
|
|
11677
|
+
return {
|
|
11678
|
+
headers: 'headers',
|
|
11679
|
+
statusCode: 'statusCode',
|
|
11680
|
+
body: 'body',
|
|
11681
|
+
};
|
|
11682
|
+
}
|
|
11683
|
+
|
|
11684
|
+
static types(): { [key: string]: any } {
|
|
11685
|
+
return {
|
|
11686
|
+
headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
|
|
11687
|
+
statusCode: 'number',
|
|
11688
|
+
body: SetAccessControlListAttributeResponseBody,
|
|
11689
|
+
};
|
|
11690
|
+
}
|
|
11691
|
+
|
|
11692
|
+
constructor(map?: { [key: string]: any }) {
|
|
11693
|
+
super(map);
|
|
11694
|
+
}
|
|
11695
|
+
}
|
|
11696
|
+
|
|
11610
11697
|
export class SetApisAuthoritiesRequest extends $tea.Model {
|
|
11611
11698
|
apiIds?: string;
|
|
11612
11699
|
appId?: number;
|
|
@@ -12631,11 +12718,13 @@ export class BatchAbolishApisRequestApi extends $tea.Model {
|
|
|
12631
12718
|
apiUid?: string;
|
|
12632
12719
|
groupId?: string;
|
|
12633
12720
|
stageId?: string;
|
|
12721
|
+
stageName?: string;
|
|
12634
12722
|
static names(): { [key: string]: string } {
|
|
12635
12723
|
return {
|
|
12636
12724
|
apiUid: 'ApiUid',
|
|
12637
12725
|
groupId: 'GroupId',
|
|
12638
12726
|
stageId: 'StageId',
|
|
12727
|
+
stageName: 'StageName',
|
|
12639
12728
|
};
|
|
12640
12729
|
}
|
|
12641
12730
|
|
|
@@ -12644,6 +12733,7 @@ export class BatchAbolishApisRequestApi extends $tea.Model {
|
|
|
12644
12733
|
apiUid: 'string',
|
|
12645
12734
|
groupId: 'string',
|
|
12646
12735
|
stageId: 'string',
|
|
12736
|
+
stageName: 'string',
|
|
12647
12737
|
};
|
|
12648
12738
|
}
|
|
12649
12739
|
|
|
@@ -14052,6 +14142,7 @@ export class DescribeApiGroupResponseBodyCustomDomainsDomainItem extends $tea.Mo
|
|
|
14052
14142
|
domainName?: string;
|
|
14053
14143
|
domainRemark?: string;
|
|
14054
14144
|
domainWebSocketStatus?: string;
|
|
14145
|
+
isHttpRedirectToHttps?: boolean;
|
|
14055
14146
|
wildcardDomainPatterns?: string;
|
|
14056
14147
|
static names(): { [key: string]: string } {
|
|
14057
14148
|
return {
|
|
@@ -14065,6 +14156,7 @@ export class DescribeApiGroupResponseBodyCustomDomainsDomainItem extends $tea.Mo
|
|
|
14065
14156
|
domainName: 'DomainName',
|
|
14066
14157
|
domainRemark: 'DomainRemark',
|
|
14067
14158
|
domainWebSocketStatus: 'DomainWebSocketStatus',
|
|
14159
|
+
isHttpRedirectToHttps: 'IsHttpRedirectToHttps',
|
|
14068
14160
|
wildcardDomainPatterns: 'WildcardDomainPatterns',
|
|
14069
14161
|
};
|
|
14070
14162
|
}
|
|
@@ -14081,6 +14173,7 @@ export class DescribeApiGroupResponseBodyCustomDomainsDomainItem extends $tea.Mo
|
|
|
14081
14173
|
domainName: 'string',
|
|
14082
14174
|
domainRemark: 'string',
|
|
14083
14175
|
domainWebSocketStatus: 'string',
|
|
14176
|
+
isHttpRedirectToHttps: 'boolean',
|
|
14084
14177
|
wildcardDomainPatterns: 'string',
|
|
14085
14178
|
};
|
|
14086
14179
|
}
|
|
@@ -19943,10 +20036,22 @@ export default class Client extends OpenApi {
|
|
|
19943
20036
|
async createAppWithOptions(request: CreateAppRequest, runtime: $Util.RuntimeOptions): Promise<CreateAppResponse> {
|
|
19944
20037
|
Util.validateModel(request);
|
|
19945
20038
|
let query = { };
|
|
20039
|
+
if (!Util.isUnset(request.appCode)) {
|
|
20040
|
+
query["AppCode"] = request.appCode;
|
|
20041
|
+
}
|
|
20042
|
+
|
|
20043
|
+
if (!Util.isUnset(request.appKey)) {
|
|
20044
|
+
query["AppKey"] = request.appKey;
|
|
20045
|
+
}
|
|
20046
|
+
|
|
19946
20047
|
if (!Util.isUnset(request.appName)) {
|
|
19947
20048
|
query["AppName"] = request.appName;
|
|
19948
20049
|
}
|
|
19949
20050
|
|
|
20051
|
+
if (!Util.isUnset(request.appSecret)) {
|
|
20052
|
+
query["AppSecret"] = request.appSecret;
|
|
20053
|
+
}
|
|
20054
|
+
|
|
19950
20055
|
if (!Util.isUnset(request.description)) {
|
|
19951
20056
|
query["Description"] = request.description;
|
|
19952
20057
|
}
|
|
@@ -24639,6 +24744,10 @@ export default class Client extends OpenApi {
|
|
|
24639
24744
|
query["InstanceSpec"] = request.instanceSpec;
|
|
24640
24745
|
}
|
|
24641
24746
|
|
|
24747
|
+
if (!Util.isUnset(request.modifyAction)) {
|
|
24748
|
+
query["ModifyAction"] = request.modifyAction;
|
|
24749
|
+
}
|
|
24750
|
+
|
|
24642
24751
|
if (!Util.isUnset(request.token)) {
|
|
24643
24752
|
query["Token"] = request.token;
|
|
24644
24753
|
}
|
|
@@ -25446,6 +25555,10 @@ export default class Client extends OpenApi {
|
|
|
25446
25555
|
query["AppCode"] = request.appCode;
|
|
25447
25556
|
}
|
|
25448
25557
|
|
|
25558
|
+
if (!Util.isUnset(request.newAppCode)) {
|
|
25559
|
+
query["NewAppCode"] = request.newAppCode;
|
|
25560
|
+
}
|
|
25561
|
+
|
|
25449
25562
|
if (!Util.isUnset(request.securityToken)) {
|
|
25450
25563
|
query["SecurityToken"] = request.securityToken;
|
|
25451
25564
|
}
|
|
@@ -25479,6 +25592,10 @@ export default class Client extends OpenApi {
|
|
|
25479
25592
|
query["AppKey"] = request.appKey;
|
|
25480
25593
|
}
|
|
25481
25594
|
|
|
25595
|
+
if (!Util.isUnset(request.newAppSecret)) {
|
|
25596
|
+
query["NewAppSecret"] = request.newAppSecret;
|
|
25597
|
+
}
|
|
25598
|
+
|
|
25482
25599
|
if (!Util.isUnset(request.securityToken)) {
|
|
25483
25600
|
query["SecurityToken"] = request.securityToken;
|
|
25484
25601
|
}
|
|
@@ -25616,6 +25733,43 @@ export default class Client extends OpenApi {
|
|
|
25616
25733
|
return await this.sdkGenerateByGroupWithOptions(request, runtime);
|
|
25617
25734
|
}
|
|
25618
25735
|
|
|
25736
|
+
async setAccessControlListAttributeWithOptions(request: SetAccessControlListAttributeRequest, runtime: $Util.RuntimeOptions): Promise<SetAccessControlListAttributeResponse> {
|
|
25737
|
+
Util.validateModel(request);
|
|
25738
|
+
let query = { };
|
|
25739
|
+
if (!Util.isUnset(request.aclId)) {
|
|
25740
|
+
query["AclId"] = request.aclId;
|
|
25741
|
+
}
|
|
25742
|
+
|
|
25743
|
+
if (!Util.isUnset(request.aclName)) {
|
|
25744
|
+
query["AclName"] = request.aclName;
|
|
25745
|
+
}
|
|
25746
|
+
|
|
25747
|
+
if (!Util.isUnset(request.securityToken)) {
|
|
25748
|
+
query["SecurityToken"] = request.securityToken;
|
|
25749
|
+
}
|
|
25750
|
+
|
|
25751
|
+
let req = new $OpenApi.OpenApiRequest({
|
|
25752
|
+
query: OpenApiUtil.query(query),
|
|
25753
|
+
});
|
|
25754
|
+
let params = new $OpenApi.Params({
|
|
25755
|
+
action: "SetAccessControlListAttribute",
|
|
25756
|
+
version: "2016-07-14",
|
|
25757
|
+
protocol: "HTTPS",
|
|
25758
|
+
pathname: "/",
|
|
25759
|
+
method: "POST",
|
|
25760
|
+
authType: "AK",
|
|
25761
|
+
style: "RPC",
|
|
25762
|
+
reqBodyType: "formData",
|
|
25763
|
+
bodyType: "json",
|
|
25764
|
+
});
|
|
25765
|
+
return $tea.cast<SetAccessControlListAttributeResponse>(await this.callApi(params, req, runtime), new SetAccessControlListAttributeResponse({}));
|
|
25766
|
+
}
|
|
25767
|
+
|
|
25768
|
+
async setAccessControlListAttribute(request: SetAccessControlListAttributeRequest): Promise<SetAccessControlListAttributeResponse> {
|
|
25769
|
+
let runtime = new $Util.RuntimeOptions({ });
|
|
25770
|
+
return await this.setAccessControlListAttributeWithOptions(request, runtime);
|
|
25771
|
+
}
|
|
25772
|
+
|
|
25619
25773
|
async setApisAuthoritiesWithOptions(request: SetApisAuthoritiesRequest, runtime: $Util.RuntimeOptions): Promise<SetApisAuthoritiesResponse> {
|
|
25620
25774
|
Util.validateModel(request);
|
|
25621
25775
|
let query = { };
|