@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/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;
|
|
@@ -7112,6 +7160,7 @@ export declare class BatchAbolishApisRequestApi extends $tea.Model {
|
|
|
7112
7160
|
apiUid?: string;
|
|
7113
7161
|
groupId?: string;
|
|
7114
7162
|
stageId?: string;
|
|
7163
|
+
stageName?: string;
|
|
7115
7164
|
static names(): {
|
|
7116
7165
|
[key: string]: string;
|
|
7117
7166
|
};
|
|
@@ -7885,6 +7934,7 @@ export declare class DescribeApiGroupResponseBodyCustomDomainsDomainItem extends
|
|
|
7885
7934
|
domainName?: string;
|
|
7886
7935
|
domainRemark?: string;
|
|
7887
7936
|
domainWebSocketStatus?: string;
|
|
7937
|
+
isHttpRedirectToHttps?: boolean;
|
|
7888
7938
|
wildcardDomainPatterns?: string;
|
|
7889
7939
|
static names(): {
|
|
7890
7940
|
[key: string]: string;
|
|
@@ -11027,6 +11077,8 @@ export default class Client extends OpenApi {
|
|
|
11027
11077
|
sdkGenerateByAppForRegion(request: SdkGenerateByAppForRegionRequest): Promise<SdkGenerateByAppForRegionResponse>;
|
|
11028
11078
|
sdkGenerateByGroupWithOptions(request: SdkGenerateByGroupRequest, runtime: $Util.RuntimeOptions): Promise<SdkGenerateByGroupResponse>;
|
|
11029
11079
|
sdkGenerateByGroup(request: SdkGenerateByGroupRequest): Promise<SdkGenerateByGroupResponse>;
|
|
11080
|
+
setAccessControlListAttributeWithOptions(request: SetAccessControlListAttributeRequest, runtime: $Util.RuntimeOptions): Promise<SetAccessControlListAttributeResponse>;
|
|
11081
|
+
setAccessControlListAttribute(request: SetAccessControlListAttributeRequest): Promise<SetAccessControlListAttributeResponse>;
|
|
11030
11082
|
setApisAuthoritiesWithOptions(request: SetApisAuthoritiesRequest, runtime: $Util.RuntimeOptions): Promise<SetApisAuthoritiesResponse>;
|
|
11031
11083
|
setApisAuthorities(request: SetApisAuthoritiesRequest): Promise<SetApisAuthoritiesResponse>;
|
|
11032
11084
|
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);
|
|
@@ -9964,6 +10032,7 @@ class BatchAbolishApisRequestApi extends $tea.Model {
|
|
|
9964
10032
|
apiUid: 'ApiUid',
|
|
9965
10033
|
groupId: 'GroupId',
|
|
9966
10034
|
stageId: 'StageId',
|
|
10035
|
+
stageName: 'StageName',
|
|
9967
10036
|
};
|
|
9968
10037
|
}
|
|
9969
10038
|
static types() {
|
|
@@ -9971,6 +10040,7 @@ class BatchAbolishApisRequestApi extends $tea.Model {
|
|
|
9971
10040
|
apiUid: 'string',
|
|
9972
10041
|
groupId: 'string',
|
|
9973
10042
|
stageId: 'string',
|
|
10043
|
+
stageName: 'string',
|
|
9974
10044
|
};
|
|
9975
10045
|
}
|
|
9976
10046
|
}
|
|
@@ -11087,6 +11157,7 @@ class DescribeApiGroupResponseBodyCustomDomainsDomainItem extends $tea.Model {
|
|
|
11087
11157
|
domainName: 'DomainName',
|
|
11088
11158
|
domainRemark: 'DomainRemark',
|
|
11089
11159
|
domainWebSocketStatus: 'DomainWebSocketStatus',
|
|
11160
|
+
isHttpRedirectToHttps: 'IsHttpRedirectToHttps',
|
|
11090
11161
|
wildcardDomainPatterns: 'WildcardDomainPatterns',
|
|
11091
11162
|
};
|
|
11092
11163
|
}
|
|
@@ -11102,6 +11173,7 @@ class DescribeApiGroupResponseBodyCustomDomainsDomainItem extends $tea.Model {
|
|
|
11102
11173
|
domainName: 'string',
|
|
11103
11174
|
domainRemark: 'string',
|
|
11104
11175
|
domainWebSocketStatus: 'string',
|
|
11176
|
+
isHttpRedirectToHttps: 'boolean',
|
|
11105
11177
|
wildcardDomainPatterns: 'string',
|
|
11106
11178
|
};
|
|
11107
11179
|
}
|
|
@@ -15759,9 +15831,18 @@ class Client extends openapi_client_1.default {
|
|
|
15759
15831
|
async createAppWithOptions(request, runtime) {
|
|
15760
15832
|
tea_util_1.default.validateModel(request);
|
|
15761
15833
|
let query = {};
|
|
15834
|
+
if (!tea_util_1.default.isUnset(request.appCode)) {
|
|
15835
|
+
query["AppCode"] = request.appCode;
|
|
15836
|
+
}
|
|
15837
|
+
if (!tea_util_1.default.isUnset(request.appKey)) {
|
|
15838
|
+
query["AppKey"] = request.appKey;
|
|
15839
|
+
}
|
|
15762
15840
|
if (!tea_util_1.default.isUnset(request.appName)) {
|
|
15763
15841
|
query["AppName"] = request.appName;
|
|
15764
15842
|
}
|
|
15843
|
+
if (!tea_util_1.default.isUnset(request.appSecret)) {
|
|
15844
|
+
query["AppSecret"] = request.appSecret;
|
|
15845
|
+
}
|
|
15765
15846
|
if (!tea_util_1.default.isUnset(request.description)) {
|
|
15766
15847
|
query["Description"] = request.description;
|
|
15767
15848
|
}
|
|
@@ -19725,6 +19806,9 @@ class Client extends openapi_client_1.default {
|
|
|
19725
19806
|
if (!tea_util_1.default.isUnset(request.instanceSpec)) {
|
|
19726
19807
|
query["InstanceSpec"] = request.instanceSpec;
|
|
19727
19808
|
}
|
|
19809
|
+
if (!tea_util_1.default.isUnset(request.modifyAction)) {
|
|
19810
|
+
query["ModifyAction"] = request.modifyAction;
|
|
19811
|
+
}
|
|
19728
19812
|
if (!tea_util_1.default.isUnset(request.token)) {
|
|
19729
19813
|
query["Token"] = request.token;
|
|
19730
19814
|
}
|
|
@@ -20410,6 +20494,9 @@ class Client extends openapi_client_1.default {
|
|
|
20410
20494
|
if (!tea_util_1.default.isUnset(request.appCode)) {
|
|
20411
20495
|
query["AppCode"] = request.appCode;
|
|
20412
20496
|
}
|
|
20497
|
+
if (!tea_util_1.default.isUnset(request.newAppCode)) {
|
|
20498
|
+
query["NewAppCode"] = request.newAppCode;
|
|
20499
|
+
}
|
|
20413
20500
|
if (!tea_util_1.default.isUnset(request.securityToken)) {
|
|
20414
20501
|
query["SecurityToken"] = request.securityToken;
|
|
20415
20502
|
}
|
|
@@ -20439,6 +20526,9 @@ class Client extends openapi_client_1.default {
|
|
|
20439
20526
|
if (!tea_util_1.default.isUnset(request.appKey)) {
|
|
20440
20527
|
query["AppKey"] = request.appKey;
|
|
20441
20528
|
}
|
|
20529
|
+
if (!tea_util_1.default.isUnset(request.newAppSecret)) {
|
|
20530
|
+
query["NewAppSecret"] = request.newAppSecret;
|
|
20531
|
+
}
|
|
20442
20532
|
if (!tea_util_1.default.isUnset(request.securityToken)) {
|
|
20443
20533
|
query["SecurityToken"] = request.securityToken;
|
|
20444
20534
|
}
|
|
@@ -20558,6 +20648,38 @@ class Client extends openapi_client_1.default {
|
|
|
20558
20648
|
let runtime = new $Util.RuntimeOptions({});
|
|
20559
20649
|
return await this.sdkGenerateByGroupWithOptions(request, runtime);
|
|
20560
20650
|
}
|
|
20651
|
+
async setAccessControlListAttributeWithOptions(request, runtime) {
|
|
20652
|
+
tea_util_1.default.validateModel(request);
|
|
20653
|
+
let query = {};
|
|
20654
|
+
if (!tea_util_1.default.isUnset(request.aclId)) {
|
|
20655
|
+
query["AclId"] = request.aclId;
|
|
20656
|
+
}
|
|
20657
|
+
if (!tea_util_1.default.isUnset(request.aclName)) {
|
|
20658
|
+
query["AclName"] = request.aclName;
|
|
20659
|
+
}
|
|
20660
|
+
if (!tea_util_1.default.isUnset(request.securityToken)) {
|
|
20661
|
+
query["SecurityToken"] = request.securityToken;
|
|
20662
|
+
}
|
|
20663
|
+
let req = new $OpenApi.OpenApiRequest({
|
|
20664
|
+
query: openapi_util_1.default.query(query),
|
|
20665
|
+
});
|
|
20666
|
+
let params = new $OpenApi.Params({
|
|
20667
|
+
action: "SetAccessControlListAttribute",
|
|
20668
|
+
version: "2016-07-14",
|
|
20669
|
+
protocol: "HTTPS",
|
|
20670
|
+
pathname: "/",
|
|
20671
|
+
method: "POST",
|
|
20672
|
+
authType: "AK",
|
|
20673
|
+
style: "RPC",
|
|
20674
|
+
reqBodyType: "formData",
|
|
20675
|
+
bodyType: "json",
|
|
20676
|
+
});
|
|
20677
|
+
return $tea.cast(await this.callApi(params, req, runtime), new SetAccessControlListAttributeResponse({}));
|
|
20678
|
+
}
|
|
20679
|
+
async setAccessControlListAttribute(request) {
|
|
20680
|
+
let runtime = new $Util.RuntimeOptions({});
|
|
20681
|
+
return await this.setAccessControlListAttributeWithOptions(request, runtime);
|
|
20682
|
+
}
|
|
20561
20683
|
async setApisAuthoritiesWithOptions(request, runtime) {
|
|
20562
20684
|
tea_util_1.default.validateModel(request);
|
|
20563
20685
|
let query = {};
|