@alicloud/cloudapi20160714 2.2.1 → 2.2.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 +51 -0
- package/dist/client.js +120 -0
- package/dist/client.js.map +1 -1
- package/package.json +2 -2
- package/src/client.ts +151 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@alicloud/cloudapi20160714",
|
|
3
|
-
"version": "2.2.
|
|
3
|
+
"version": "2.2.3",
|
|
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;
|
|
@@ -14052,6 +14139,7 @@ export class DescribeApiGroupResponseBodyCustomDomainsDomainItem extends $tea.Mo
|
|
|
14052
14139
|
domainName?: string;
|
|
14053
14140
|
domainRemark?: string;
|
|
14054
14141
|
domainWebSocketStatus?: string;
|
|
14142
|
+
isHttpRedirectToHttps?: boolean;
|
|
14055
14143
|
wildcardDomainPatterns?: string;
|
|
14056
14144
|
static names(): { [key: string]: string } {
|
|
14057
14145
|
return {
|
|
@@ -14065,6 +14153,7 @@ export class DescribeApiGroupResponseBodyCustomDomainsDomainItem extends $tea.Mo
|
|
|
14065
14153
|
domainName: 'DomainName',
|
|
14066
14154
|
domainRemark: 'DomainRemark',
|
|
14067
14155
|
domainWebSocketStatus: 'DomainWebSocketStatus',
|
|
14156
|
+
isHttpRedirectToHttps: 'IsHttpRedirectToHttps',
|
|
14068
14157
|
wildcardDomainPatterns: 'WildcardDomainPatterns',
|
|
14069
14158
|
};
|
|
14070
14159
|
}
|
|
@@ -14081,6 +14170,7 @@ export class DescribeApiGroupResponseBodyCustomDomainsDomainItem extends $tea.Mo
|
|
|
14081
14170
|
domainName: 'string',
|
|
14082
14171
|
domainRemark: 'string',
|
|
14083
14172
|
domainWebSocketStatus: 'string',
|
|
14173
|
+
isHttpRedirectToHttps: 'boolean',
|
|
14084
14174
|
wildcardDomainPatterns: 'string',
|
|
14085
14175
|
};
|
|
14086
14176
|
}
|
|
@@ -19943,10 +20033,22 @@ export default class Client extends OpenApi {
|
|
|
19943
20033
|
async createAppWithOptions(request: CreateAppRequest, runtime: $Util.RuntimeOptions): Promise<CreateAppResponse> {
|
|
19944
20034
|
Util.validateModel(request);
|
|
19945
20035
|
let query = { };
|
|
20036
|
+
if (!Util.isUnset(request.appCode)) {
|
|
20037
|
+
query["AppCode"] = request.appCode;
|
|
20038
|
+
}
|
|
20039
|
+
|
|
20040
|
+
if (!Util.isUnset(request.appKey)) {
|
|
20041
|
+
query["AppKey"] = request.appKey;
|
|
20042
|
+
}
|
|
20043
|
+
|
|
19946
20044
|
if (!Util.isUnset(request.appName)) {
|
|
19947
20045
|
query["AppName"] = request.appName;
|
|
19948
20046
|
}
|
|
19949
20047
|
|
|
20048
|
+
if (!Util.isUnset(request.appSecret)) {
|
|
20049
|
+
query["AppSecret"] = request.appSecret;
|
|
20050
|
+
}
|
|
20051
|
+
|
|
19950
20052
|
if (!Util.isUnset(request.description)) {
|
|
19951
20053
|
query["Description"] = request.description;
|
|
19952
20054
|
}
|
|
@@ -24639,6 +24741,10 @@ export default class Client extends OpenApi {
|
|
|
24639
24741
|
query["InstanceSpec"] = request.instanceSpec;
|
|
24640
24742
|
}
|
|
24641
24743
|
|
|
24744
|
+
if (!Util.isUnset(request.modifyAction)) {
|
|
24745
|
+
query["ModifyAction"] = request.modifyAction;
|
|
24746
|
+
}
|
|
24747
|
+
|
|
24642
24748
|
if (!Util.isUnset(request.token)) {
|
|
24643
24749
|
query["Token"] = request.token;
|
|
24644
24750
|
}
|
|
@@ -25446,6 +25552,10 @@ export default class Client extends OpenApi {
|
|
|
25446
25552
|
query["AppCode"] = request.appCode;
|
|
25447
25553
|
}
|
|
25448
25554
|
|
|
25555
|
+
if (!Util.isUnset(request.newAppCode)) {
|
|
25556
|
+
query["NewAppCode"] = request.newAppCode;
|
|
25557
|
+
}
|
|
25558
|
+
|
|
25449
25559
|
if (!Util.isUnset(request.securityToken)) {
|
|
25450
25560
|
query["SecurityToken"] = request.securityToken;
|
|
25451
25561
|
}
|
|
@@ -25479,6 +25589,10 @@ export default class Client extends OpenApi {
|
|
|
25479
25589
|
query["AppKey"] = request.appKey;
|
|
25480
25590
|
}
|
|
25481
25591
|
|
|
25592
|
+
if (!Util.isUnset(request.newAppSecret)) {
|
|
25593
|
+
query["NewAppSecret"] = request.newAppSecret;
|
|
25594
|
+
}
|
|
25595
|
+
|
|
25482
25596
|
if (!Util.isUnset(request.securityToken)) {
|
|
25483
25597
|
query["SecurityToken"] = request.securityToken;
|
|
25484
25598
|
}
|
|
@@ -25616,6 +25730,43 @@ export default class Client extends OpenApi {
|
|
|
25616
25730
|
return await this.sdkGenerateByGroupWithOptions(request, runtime);
|
|
25617
25731
|
}
|
|
25618
25732
|
|
|
25733
|
+
async setAccessControlListAttributeWithOptions(request: SetAccessControlListAttributeRequest, runtime: $Util.RuntimeOptions): Promise<SetAccessControlListAttributeResponse> {
|
|
25734
|
+
Util.validateModel(request);
|
|
25735
|
+
let query = { };
|
|
25736
|
+
if (!Util.isUnset(request.aclId)) {
|
|
25737
|
+
query["AclId"] = request.aclId;
|
|
25738
|
+
}
|
|
25739
|
+
|
|
25740
|
+
if (!Util.isUnset(request.aclName)) {
|
|
25741
|
+
query["AclName"] = request.aclName;
|
|
25742
|
+
}
|
|
25743
|
+
|
|
25744
|
+
if (!Util.isUnset(request.securityToken)) {
|
|
25745
|
+
query["SecurityToken"] = request.securityToken;
|
|
25746
|
+
}
|
|
25747
|
+
|
|
25748
|
+
let req = new $OpenApi.OpenApiRequest({
|
|
25749
|
+
query: OpenApiUtil.query(query),
|
|
25750
|
+
});
|
|
25751
|
+
let params = new $OpenApi.Params({
|
|
25752
|
+
action: "SetAccessControlListAttribute",
|
|
25753
|
+
version: "2016-07-14",
|
|
25754
|
+
protocol: "HTTPS",
|
|
25755
|
+
pathname: "/",
|
|
25756
|
+
method: "POST",
|
|
25757
|
+
authType: "AK",
|
|
25758
|
+
style: "RPC",
|
|
25759
|
+
reqBodyType: "formData",
|
|
25760
|
+
bodyType: "json",
|
|
25761
|
+
});
|
|
25762
|
+
return $tea.cast<SetAccessControlListAttributeResponse>(await this.callApi(params, req, runtime), new SetAccessControlListAttributeResponse({}));
|
|
25763
|
+
}
|
|
25764
|
+
|
|
25765
|
+
async setAccessControlListAttribute(request: SetAccessControlListAttributeRequest): Promise<SetAccessControlListAttributeResponse> {
|
|
25766
|
+
let runtime = new $Util.RuntimeOptions({ });
|
|
25767
|
+
return await this.setAccessControlListAttributeWithOptions(request, runtime);
|
|
25768
|
+
}
|
|
25769
|
+
|
|
25619
25770
|
async setApisAuthoritiesWithOptions(request: SetApisAuthoritiesRequest, runtime: $Util.RuntimeOptions): Promise<SetApisAuthoritiesResponse> {
|
|
25620
25771
|
Util.validateModel(request);
|
|
25621
25772
|
let query = { };
|