@alicloud/cloudapi20160714 2.2.0 → 2.2.4
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 +125 -0
- package/dist/client.js.map +1 -1
- package/package.json +2 -2
- package/src/client.ts +158 -0
package/dist/client.d.ts
CHANGED
|
@@ -516,7 +516,10 @@ export declare class CreateApiStageVariableResponse extends $tea.Model {
|
|
|
516
516
|
});
|
|
517
517
|
}
|
|
518
518
|
export declare class CreateAppRequest extends $tea.Model {
|
|
519
|
+
appCode?: string;
|
|
520
|
+
appKey?: string;
|
|
519
521
|
appName?: string;
|
|
522
|
+
appSecret?: string;
|
|
520
523
|
description?: string;
|
|
521
524
|
securityToken?: string;
|
|
522
525
|
source?: string;
|
|
@@ -5493,6 +5496,7 @@ export declare class ModifyInstanceSpecRequest extends $tea.Model {
|
|
|
5493
5496
|
autoPay?: boolean;
|
|
5494
5497
|
instanceId?: string;
|
|
5495
5498
|
instanceSpec?: string;
|
|
5499
|
+
modifyAction?: string;
|
|
5496
5500
|
token?: string;
|
|
5497
5501
|
static names(): {
|
|
5498
5502
|
[key: string]: string;
|
|
@@ -6312,6 +6316,7 @@ export declare class RemoveVpcAccessAndAbolishApisResponse extends $tea.Model {
|
|
|
6312
6316
|
}
|
|
6313
6317
|
export declare class ResetAppCodeRequest extends $tea.Model {
|
|
6314
6318
|
appCode?: string;
|
|
6319
|
+
newAppCode?: string;
|
|
6315
6320
|
securityToken?: string;
|
|
6316
6321
|
static names(): {
|
|
6317
6322
|
[key: string]: string;
|
|
@@ -6353,6 +6358,7 @@ export declare class ResetAppCodeResponse extends $tea.Model {
|
|
|
6353
6358
|
}
|
|
6354
6359
|
export declare class ResetAppSecretRequest extends $tea.Model {
|
|
6355
6360
|
appKey?: string;
|
|
6361
|
+
newAppSecret?: string;
|
|
6356
6362
|
securityToken?: string;
|
|
6357
6363
|
static names(): {
|
|
6358
6364
|
[key: string]: string;
|
|
@@ -6521,6 +6527,48 @@ export declare class SdkGenerateByGroupResponse extends $tea.Model {
|
|
|
6521
6527
|
[key: string]: any;
|
|
6522
6528
|
});
|
|
6523
6529
|
}
|
|
6530
|
+
export declare class SetAccessControlListAttributeRequest extends $tea.Model {
|
|
6531
|
+
aclId?: string;
|
|
6532
|
+
aclName?: string;
|
|
6533
|
+
securityToken?: string;
|
|
6534
|
+
static names(): {
|
|
6535
|
+
[key: string]: string;
|
|
6536
|
+
};
|
|
6537
|
+
static types(): {
|
|
6538
|
+
[key: string]: any;
|
|
6539
|
+
};
|
|
6540
|
+
constructor(map?: {
|
|
6541
|
+
[key: string]: any;
|
|
6542
|
+
});
|
|
6543
|
+
}
|
|
6544
|
+
export declare class SetAccessControlListAttributeResponseBody extends $tea.Model {
|
|
6545
|
+
requestId?: string;
|
|
6546
|
+
static names(): {
|
|
6547
|
+
[key: string]: string;
|
|
6548
|
+
};
|
|
6549
|
+
static types(): {
|
|
6550
|
+
[key: string]: any;
|
|
6551
|
+
};
|
|
6552
|
+
constructor(map?: {
|
|
6553
|
+
[key: string]: any;
|
|
6554
|
+
});
|
|
6555
|
+
}
|
|
6556
|
+
export declare class SetAccessControlListAttributeResponse extends $tea.Model {
|
|
6557
|
+
headers: {
|
|
6558
|
+
[key: string]: string;
|
|
6559
|
+
};
|
|
6560
|
+
statusCode: number;
|
|
6561
|
+
body: SetAccessControlListAttributeResponseBody;
|
|
6562
|
+
static names(): {
|
|
6563
|
+
[key: string]: string;
|
|
6564
|
+
};
|
|
6565
|
+
static types(): {
|
|
6566
|
+
[key: string]: any;
|
|
6567
|
+
};
|
|
6568
|
+
constructor(map?: {
|
|
6569
|
+
[key: string]: any;
|
|
6570
|
+
});
|
|
6571
|
+
}
|
|
6524
6572
|
export declare class SetApisAuthoritiesRequest extends $tea.Model {
|
|
6525
6573
|
apiIds?: string;
|
|
6526
6574
|
appId?: number;
|
|
@@ -6619,6 +6667,7 @@ export declare class SetDomainRequest extends $tea.Model {
|
|
|
6619
6667
|
domainName?: string;
|
|
6620
6668
|
groupId?: string;
|
|
6621
6669
|
isForce?: boolean;
|
|
6670
|
+
isHttpRedirectToHttps?: boolean;
|
|
6622
6671
|
static names(): {
|
|
6623
6672
|
[key: string]: string;
|
|
6624
6673
|
};
|
|
@@ -7884,6 +7933,7 @@ export declare class DescribeApiGroupResponseBodyCustomDomainsDomainItem extends
|
|
|
7884
7933
|
domainName?: string;
|
|
7885
7934
|
domainRemark?: string;
|
|
7886
7935
|
domainWebSocketStatus?: string;
|
|
7936
|
+
isHttpRedirectToHttps?: boolean;
|
|
7887
7937
|
wildcardDomainPatterns?: string;
|
|
7888
7938
|
static names(): {
|
|
7889
7939
|
[key: string]: string;
|
|
@@ -11026,6 +11076,8 @@ export default class Client extends OpenApi {
|
|
|
11026
11076
|
sdkGenerateByAppForRegion(request: SdkGenerateByAppForRegionRequest): Promise<SdkGenerateByAppForRegionResponse>;
|
|
11027
11077
|
sdkGenerateByGroupWithOptions(request: SdkGenerateByGroupRequest, runtime: $Util.RuntimeOptions): Promise<SdkGenerateByGroupResponse>;
|
|
11028
11078
|
sdkGenerateByGroup(request: SdkGenerateByGroupRequest): Promise<SdkGenerateByGroupResponse>;
|
|
11079
|
+
setAccessControlListAttributeWithOptions(request: SetAccessControlListAttributeRequest, runtime: $Util.RuntimeOptions): Promise<SetAccessControlListAttributeResponse>;
|
|
11080
|
+
setAccessControlListAttribute(request: SetAccessControlListAttributeRequest): Promise<SetAccessControlListAttributeResponse>;
|
|
11029
11081
|
setApisAuthoritiesWithOptions(request: SetApisAuthoritiesRequest, runtime: $Util.RuntimeOptions): Promise<SetApisAuthoritiesResponse>;
|
|
11030
11082
|
setApisAuthorities(request: SetApisAuthoritiesRequest): Promise<SetApisAuthoritiesResponse>;
|
|
11031
11083
|
setAppsAuthoritiesWithOptions(request: SetAppsAuthoritiesRequest, runtime: $Util.RuntimeOptions): Promise<SetAppsAuthoritiesResponse>;
|
package/dist/client.js
CHANGED
|
@@ -739,7 +739,10 @@ class CreateAppRequest extends $tea.Model {
|
|
|
739
739
|
}
|
|
740
740
|
static names() {
|
|
741
741
|
return {
|
|
742
|
+
appCode: 'AppCode',
|
|
743
|
+
appKey: 'AppKey',
|
|
742
744
|
appName: 'AppName',
|
|
745
|
+
appSecret: 'AppSecret',
|
|
743
746
|
description: 'Description',
|
|
744
747
|
securityToken: 'SecurityToken',
|
|
745
748
|
source: 'Source',
|
|
@@ -748,7 +751,10 @@ class CreateAppRequest extends $tea.Model {
|
|
|
748
751
|
}
|
|
749
752
|
static types() {
|
|
750
753
|
return {
|
|
754
|
+
appCode: 'string',
|
|
755
|
+
appKey: 'string',
|
|
751
756
|
appName: 'string',
|
|
757
|
+
appSecret: 'string',
|
|
752
758
|
description: 'string',
|
|
753
759
|
securityToken: 'string',
|
|
754
760
|
source: 'string',
|
|
@@ -7754,6 +7760,7 @@ class ModifyInstanceSpecRequest extends $tea.Model {
|
|
|
7754
7760
|
autoPay: 'AutoPay',
|
|
7755
7761
|
instanceId: 'InstanceId',
|
|
7756
7762
|
instanceSpec: 'InstanceSpec',
|
|
7763
|
+
modifyAction: 'ModifyAction',
|
|
7757
7764
|
token: 'Token',
|
|
7758
7765
|
};
|
|
7759
7766
|
}
|
|
@@ -7762,6 +7769,7 @@ class ModifyInstanceSpecRequest extends $tea.Model {
|
|
|
7762
7769
|
autoPay: 'boolean',
|
|
7763
7770
|
instanceId: 'string',
|
|
7764
7771
|
instanceSpec: 'string',
|
|
7772
|
+
modifyAction: 'string',
|
|
7765
7773
|
token: 'string',
|
|
7766
7774
|
};
|
|
7767
7775
|
}
|
|
@@ -8870,12 +8878,14 @@ class ResetAppCodeRequest extends $tea.Model {
|
|
|
8870
8878
|
static names() {
|
|
8871
8879
|
return {
|
|
8872
8880
|
appCode: 'AppCode',
|
|
8881
|
+
newAppCode: 'NewAppCode',
|
|
8873
8882
|
securityToken: 'SecurityToken',
|
|
8874
8883
|
};
|
|
8875
8884
|
}
|
|
8876
8885
|
static types() {
|
|
8877
8886
|
return {
|
|
8878
8887
|
appCode: 'string',
|
|
8888
|
+
newAppCode: 'string',
|
|
8879
8889
|
securityToken: 'string',
|
|
8880
8890
|
};
|
|
8881
8891
|
}
|
|
@@ -8924,12 +8934,14 @@ class ResetAppSecretRequest extends $tea.Model {
|
|
|
8924
8934
|
static names() {
|
|
8925
8935
|
return {
|
|
8926
8936
|
appKey: 'AppKey',
|
|
8937
|
+
newAppSecret: 'NewAppSecret',
|
|
8927
8938
|
securityToken: 'SecurityToken',
|
|
8928
8939
|
};
|
|
8929
8940
|
}
|
|
8930
8941
|
static types() {
|
|
8931
8942
|
return {
|
|
8932
8943
|
appKey: 'string',
|
|
8944
|
+
newAppSecret: 'string',
|
|
8933
8945
|
securityToken: 'string',
|
|
8934
8946
|
};
|
|
8935
8947
|
}
|
|
@@ -9145,6 +9157,62 @@ class SdkGenerateByGroupResponse extends $tea.Model {
|
|
|
9145
9157
|
}
|
|
9146
9158
|
}
|
|
9147
9159
|
exports.SdkGenerateByGroupResponse = SdkGenerateByGroupResponse;
|
|
9160
|
+
class SetAccessControlListAttributeRequest extends $tea.Model {
|
|
9161
|
+
constructor(map) {
|
|
9162
|
+
super(map);
|
|
9163
|
+
}
|
|
9164
|
+
static names() {
|
|
9165
|
+
return {
|
|
9166
|
+
aclId: 'AclId',
|
|
9167
|
+
aclName: 'AclName',
|
|
9168
|
+
securityToken: 'SecurityToken',
|
|
9169
|
+
};
|
|
9170
|
+
}
|
|
9171
|
+
static types() {
|
|
9172
|
+
return {
|
|
9173
|
+
aclId: 'string',
|
|
9174
|
+
aclName: 'string',
|
|
9175
|
+
securityToken: 'string',
|
|
9176
|
+
};
|
|
9177
|
+
}
|
|
9178
|
+
}
|
|
9179
|
+
exports.SetAccessControlListAttributeRequest = SetAccessControlListAttributeRequest;
|
|
9180
|
+
class SetAccessControlListAttributeResponseBody extends $tea.Model {
|
|
9181
|
+
constructor(map) {
|
|
9182
|
+
super(map);
|
|
9183
|
+
}
|
|
9184
|
+
static names() {
|
|
9185
|
+
return {
|
|
9186
|
+
requestId: 'RequestId',
|
|
9187
|
+
};
|
|
9188
|
+
}
|
|
9189
|
+
static types() {
|
|
9190
|
+
return {
|
|
9191
|
+
requestId: 'string',
|
|
9192
|
+
};
|
|
9193
|
+
}
|
|
9194
|
+
}
|
|
9195
|
+
exports.SetAccessControlListAttributeResponseBody = SetAccessControlListAttributeResponseBody;
|
|
9196
|
+
class SetAccessControlListAttributeResponse extends $tea.Model {
|
|
9197
|
+
constructor(map) {
|
|
9198
|
+
super(map);
|
|
9199
|
+
}
|
|
9200
|
+
static names() {
|
|
9201
|
+
return {
|
|
9202
|
+
headers: 'headers',
|
|
9203
|
+
statusCode: 'statusCode',
|
|
9204
|
+
body: 'body',
|
|
9205
|
+
};
|
|
9206
|
+
}
|
|
9207
|
+
static types() {
|
|
9208
|
+
return {
|
|
9209
|
+
headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
|
|
9210
|
+
statusCode: 'number',
|
|
9211
|
+
body: SetAccessControlListAttributeResponseBody,
|
|
9212
|
+
};
|
|
9213
|
+
}
|
|
9214
|
+
}
|
|
9215
|
+
exports.SetAccessControlListAttributeResponse = SetAccessControlListAttributeResponse;
|
|
9148
9216
|
class SetApisAuthoritiesRequest extends $tea.Model {
|
|
9149
9217
|
constructor(map) {
|
|
9150
9218
|
super(map);
|
|
@@ -9284,6 +9352,7 @@ class SetDomainRequest extends $tea.Model {
|
|
|
9284
9352
|
domainName: 'DomainName',
|
|
9285
9353
|
groupId: 'GroupId',
|
|
9286
9354
|
isForce: 'IsForce',
|
|
9355
|
+
isHttpRedirectToHttps: 'IsHttpRedirectToHttps',
|
|
9287
9356
|
};
|
|
9288
9357
|
}
|
|
9289
9358
|
static types() {
|
|
@@ -9293,6 +9362,7 @@ class SetDomainRequest extends $tea.Model {
|
|
|
9293
9362
|
domainName: 'string',
|
|
9294
9363
|
groupId: 'string',
|
|
9295
9364
|
isForce: 'boolean',
|
|
9365
|
+
isHttpRedirectToHttps: 'boolean',
|
|
9296
9366
|
};
|
|
9297
9367
|
}
|
|
9298
9368
|
}
|
|
@@ -11085,6 +11155,7 @@ class DescribeApiGroupResponseBodyCustomDomainsDomainItem extends $tea.Model {
|
|
|
11085
11155
|
domainName: 'DomainName',
|
|
11086
11156
|
domainRemark: 'DomainRemark',
|
|
11087
11157
|
domainWebSocketStatus: 'DomainWebSocketStatus',
|
|
11158
|
+
isHttpRedirectToHttps: 'IsHttpRedirectToHttps',
|
|
11088
11159
|
wildcardDomainPatterns: 'WildcardDomainPatterns',
|
|
11089
11160
|
};
|
|
11090
11161
|
}
|
|
@@ -11100,6 +11171,7 @@ class DescribeApiGroupResponseBodyCustomDomainsDomainItem extends $tea.Model {
|
|
|
11100
11171
|
domainName: 'string',
|
|
11101
11172
|
domainRemark: 'string',
|
|
11102
11173
|
domainWebSocketStatus: 'string',
|
|
11174
|
+
isHttpRedirectToHttps: 'boolean',
|
|
11103
11175
|
wildcardDomainPatterns: 'string',
|
|
11104
11176
|
};
|
|
11105
11177
|
}
|
|
@@ -15757,9 +15829,18 @@ class Client extends openapi_client_1.default {
|
|
|
15757
15829
|
async createAppWithOptions(request, runtime) {
|
|
15758
15830
|
tea_util_1.default.validateModel(request);
|
|
15759
15831
|
let query = {};
|
|
15832
|
+
if (!tea_util_1.default.isUnset(request.appCode)) {
|
|
15833
|
+
query["AppCode"] = request.appCode;
|
|
15834
|
+
}
|
|
15835
|
+
if (!tea_util_1.default.isUnset(request.appKey)) {
|
|
15836
|
+
query["AppKey"] = request.appKey;
|
|
15837
|
+
}
|
|
15760
15838
|
if (!tea_util_1.default.isUnset(request.appName)) {
|
|
15761
15839
|
query["AppName"] = request.appName;
|
|
15762
15840
|
}
|
|
15841
|
+
if (!tea_util_1.default.isUnset(request.appSecret)) {
|
|
15842
|
+
query["AppSecret"] = request.appSecret;
|
|
15843
|
+
}
|
|
15763
15844
|
if (!tea_util_1.default.isUnset(request.description)) {
|
|
15764
15845
|
query["Description"] = request.description;
|
|
15765
15846
|
}
|
|
@@ -19723,6 +19804,9 @@ class Client extends openapi_client_1.default {
|
|
|
19723
19804
|
if (!tea_util_1.default.isUnset(request.instanceSpec)) {
|
|
19724
19805
|
query["InstanceSpec"] = request.instanceSpec;
|
|
19725
19806
|
}
|
|
19807
|
+
if (!tea_util_1.default.isUnset(request.modifyAction)) {
|
|
19808
|
+
query["ModifyAction"] = request.modifyAction;
|
|
19809
|
+
}
|
|
19726
19810
|
if (!tea_util_1.default.isUnset(request.token)) {
|
|
19727
19811
|
query["Token"] = request.token;
|
|
19728
19812
|
}
|
|
@@ -20408,6 +20492,9 @@ class Client extends openapi_client_1.default {
|
|
|
20408
20492
|
if (!tea_util_1.default.isUnset(request.appCode)) {
|
|
20409
20493
|
query["AppCode"] = request.appCode;
|
|
20410
20494
|
}
|
|
20495
|
+
if (!tea_util_1.default.isUnset(request.newAppCode)) {
|
|
20496
|
+
query["NewAppCode"] = request.newAppCode;
|
|
20497
|
+
}
|
|
20411
20498
|
if (!tea_util_1.default.isUnset(request.securityToken)) {
|
|
20412
20499
|
query["SecurityToken"] = request.securityToken;
|
|
20413
20500
|
}
|
|
@@ -20437,6 +20524,9 @@ class Client extends openapi_client_1.default {
|
|
|
20437
20524
|
if (!tea_util_1.default.isUnset(request.appKey)) {
|
|
20438
20525
|
query["AppKey"] = request.appKey;
|
|
20439
20526
|
}
|
|
20527
|
+
if (!tea_util_1.default.isUnset(request.newAppSecret)) {
|
|
20528
|
+
query["NewAppSecret"] = request.newAppSecret;
|
|
20529
|
+
}
|
|
20440
20530
|
if (!tea_util_1.default.isUnset(request.securityToken)) {
|
|
20441
20531
|
query["SecurityToken"] = request.securityToken;
|
|
20442
20532
|
}
|
|
@@ -20556,6 +20646,38 @@ class Client extends openapi_client_1.default {
|
|
|
20556
20646
|
let runtime = new $Util.RuntimeOptions({});
|
|
20557
20647
|
return await this.sdkGenerateByGroupWithOptions(request, runtime);
|
|
20558
20648
|
}
|
|
20649
|
+
async setAccessControlListAttributeWithOptions(request, runtime) {
|
|
20650
|
+
tea_util_1.default.validateModel(request);
|
|
20651
|
+
let query = {};
|
|
20652
|
+
if (!tea_util_1.default.isUnset(request.aclId)) {
|
|
20653
|
+
query["AclId"] = request.aclId;
|
|
20654
|
+
}
|
|
20655
|
+
if (!tea_util_1.default.isUnset(request.aclName)) {
|
|
20656
|
+
query["AclName"] = request.aclName;
|
|
20657
|
+
}
|
|
20658
|
+
if (!tea_util_1.default.isUnset(request.securityToken)) {
|
|
20659
|
+
query["SecurityToken"] = request.securityToken;
|
|
20660
|
+
}
|
|
20661
|
+
let req = new $OpenApi.OpenApiRequest({
|
|
20662
|
+
query: openapi_util_1.default.query(query),
|
|
20663
|
+
});
|
|
20664
|
+
let params = new $OpenApi.Params({
|
|
20665
|
+
action: "SetAccessControlListAttribute",
|
|
20666
|
+
version: "2016-07-14",
|
|
20667
|
+
protocol: "HTTPS",
|
|
20668
|
+
pathname: "/",
|
|
20669
|
+
method: "POST",
|
|
20670
|
+
authType: "AK",
|
|
20671
|
+
style: "RPC",
|
|
20672
|
+
reqBodyType: "formData",
|
|
20673
|
+
bodyType: "json",
|
|
20674
|
+
});
|
|
20675
|
+
return $tea.cast(await this.callApi(params, req, runtime), new SetAccessControlListAttributeResponse({}));
|
|
20676
|
+
}
|
|
20677
|
+
async setAccessControlListAttribute(request) {
|
|
20678
|
+
let runtime = new $Util.RuntimeOptions({});
|
|
20679
|
+
return await this.setAccessControlListAttributeWithOptions(request, runtime);
|
|
20680
|
+
}
|
|
20559
20681
|
async setApisAuthoritiesWithOptions(request, runtime) {
|
|
20560
20682
|
tea_util_1.default.validateModel(request);
|
|
20561
20683
|
let query = {};
|
|
@@ -20662,6 +20784,9 @@ class Client extends openapi_client_1.default {
|
|
|
20662
20784
|
if (!tea_util_1.default.isUnset(request.isForce)) {
|
|
20663
20785
|
query["IsForce"] = request.isForce;
|
|
20664
20786
|
}
|
|
20787
|
+
if (!tea_util_1.default.isUnset(request.isHttpRedirectToHttps)) {
|
|
20788
|
+
query["IsHttpRedirectToHttps"] = request.isHttpRedirectToHttps;
|
|
20789
|
+
}
|
|
20665
20790
|
let req = new $OpenApi.OpenApiRequest({
|
|
20666
20791
|
query: openapi_util_1.default.query(query),
|
|
20667
20792
|
});
|