@alicloud/cloudapi20160714 2.1.4 → 2.1.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 +76 -0
- package/dist/client.js +251 -0
- package/dist/client.js.map +1 -1
- package/package.json +1 -1
- package/src/client.ts +334 -0
package/dist/client.d.ts
CHANGED
|
@@ -4729,6 +4729,80 @@ export declare class ModifyApiResponse extends $tea.Model {
|
|
|
4729
4729
|
[key: string]: any;
|
|
4730
4730
|
});
|
|
4731
4731
|
}
|
|
4732
|
+
export declare class ModifyApiConfigurationRequest extends $tea.Model {
|
|
4733
|
+
allowSignatureMethod?: string;
|
|
4734
|
+
apiId?: string;
|
|
4735
|
+
apiName?: string;
|
|
4736
|
+
appCodeAuthType?: string;
|
|
4737
|
+
authType?: string;
|
|
4738
|
+
backendName?: string;
|
|
4739
|
+
bodyFormat?: string;
|
|
4740
|
+
bodyModel?: string;
|
|
4741
|
+
contentTypeCategory?: string;
|
|
4742
|
+
contentTypeValue?: string;
|
|
4743
|
+
description?: string;
|
|
4744
|
+
disableInternet?: boolean;
|
|
4745
|
+
errorCodeSamples?: string;
|
|
4746
|
+
failResultSample?: string;
|
|
4747
|
+
forceNonceCheck?: boolean;
|
|
4748
|
+
functionComputeConfig?: string;
|
|
4749
|
+
httpConfig?: string;
|
|
4750
|
+
mockConfig?: string;
|
|
4751
|
+
modelName?: string;
|
|
4752
|
+
ossConfig?: string;
|
|
4753
|
+
postBodyDescription?: string;
|
|
4754
|
+
requestHttpMethod?: string;
|
|
4755
|
+
requestMode?: string;
|
|
4756
|
+
requestParameters?: string;
|
|
4757
|
+
requestPath?: string;
|
|
4758
|
+
requestProtocol?: string;
|
|
4759
|
+
resultSample?: string;
|
|
4760
|
+
resultType?: string;
|
|
4761
|
+
securityToken?: string;
|
|
4762
|
+
serviceParameters?: string;
|
|
4763
|
+
serviceParametersMap?: string;
|
|
4764
|
+
serviceProtocol?: string;
|
|
4765
|
+
serviceTimeout?: number;
|
|
4766
|
+
useBackendService?: boolean;
|
|
4767
|
+
visibility?: string;
|
|
4768
|
+
vpcConfig?: string;
|
|
4769
|
+
static names(): {
|
|
4770
|
+
[key: string]: string;
|
|
4771
|
+
};
|
|
4772
|
+
static types(): {
|
|
4773
|
+
[key: string]: any;
|
|
4774
|
+
};
|
|
4775
|
+
constructor(map?: {
|
|
4776
|
+
[key: string]: any;
|
|
4777
|
+
});
|
|
4778
|
+
}
|
|
4779
|
+
export declare class ModifyApiConfigurationResponseBody extends $tea.Model {
|
|
4780
|
+
requestId?: string;
|
|
4781
|
+
static names(): {
|
|
4782
|
+
[key: string]: string;
|
|
4783
|
+
};
|
|
4784
|
+
static types(): {
|
|
4785
|
+
[key: string]: any;
|
|
4786
|
+
};
|
|
4787
|
+
constructor(map?: {
|
|
4788
|
+
[key: string]: any;
|
|
4789
|
+
});
|
|
4790
|
+
}
|
|
4791
|
+
export declare class ModifyApiConfigurationResponse extends $tea.Model {
|
|
4792
|
+
headers: {
|
|
4793
|
+
[key: string]: string;
|
|
4794
|
+
};
|
|
4795
|
+
body: ModifyApiConfigurationResponseBody;
|
|
4796
|
+
static names(): {
|
|
4797
|
+
[key: string]: string;
|
|
4798
|
+
};
|
|
4799
|
+
static types(): {
|
|
4800
|
+
[key: string]: any;
|
|
4801
|
+
};
|
|
4802
|
+
constructor(map?: {
|
|
4803
|
+
[key: string]: any;
|
|
4804
|
+
});
|
|
4805
|
+
}
|
|
4732
4806
|
export declare class ModifyApiGroupRequest extends $tea.Model {
|
|
4733
4807
|
basePath?: string;
|
|
4734
4808
|
compatibleFlags?: string;
|
|
@@ -10158,6 +10232,8 @@ export default class Client extends OpenApi {
|
|
|
10158
10232
|
listTagResources(request: ListTagResourcesRequest): Promise<ListTagResourcesResponse>;
|
|
10159
10233
|
modifyApiWithOptions(request: ModifyApiRequest, runtime: $Util.RuntimeOptions): Promise<ModifyApiResponse>;
|
|
10160
10234
|
modifyApi(request: ModifyApiRequest): Promise<ModifyApiResponse>;
|
|
10235
|
+
modifyApiConfigurationWithOptions(request: ModifyApiConfigurationRequest, runtime: $Util.RuntimeOptions): Promise<ModifyApiConfigurationResponse>;
|
|
10236
|
+
modifyApiConfiguration(request: ModifyApiConfigurationRequest): Promise<ModifyApiConfigurationResponse>;
|
|
10161
10237
|
modifyApiGroupWithOptions(request: ModifyApiGroupRequest, runtime: $Util.RuntimeOptions): Promise<ModifyApiGroupResponse>;
|
|
10162
10238
|
modifyApiGroup(request: ModifyApiGroupRequest): Promise<ModifyApiGroupResponse>;
|
|
10163
10239
|
modifyApiGroupVpcWhitelistWithOptions(request: ModifyApiGroupVpcWhitelistRequest, runtime: $Util.RuntimeOptions): Promise<ModifyApiGroupVpcWhitelistResponse>;
|
package/dist/client.js
CHANGED
|
@@ -6617,6 +6617,126 @@ class ModifyApiResponse extends $tea.Model {
|
|
|
6617
6617
|
}
|
|
6618
6618
|
}
|
|
6619
6619
|
exports.ModifyApiResponse = ModifyApiResponse;
|
|
6620
|
+
class ModifyApiConfigurationRequest extends $tea.Model {
|
|
6621
|
+
constructor(map) {
|
|
6622
|
+
super(map);
|
|
6623
|
+
}
|
|
6624
|
+
static names() {
|
|
6625
|
+
return {
|
|
6626
|
+
allowSignatureMethod: 'AllowSignatureMethod',
|
|
6627
|
+
apiId: 'ApiId',
|
|
6628
|
+
apiName: 'ApiName',
|
|
6629
|
+
appCodeAuthType: 'AppCodeAuthType',
|
|
6630
|
+
authType: 'AuthType',
|
|
6631
|
+
backendName: 'BackendName',
|
|
6632
|
+
bodyFormat: 'BodyFormat',
|
|
6633
|
+
bodyModel: 'BodyModel',
|
|
6634
|
+
contentTypeCategory: 'ContentTypeCategory',
|
|
6635
|
+
contentTypeValue: 'ContentTypeValue',
|
|
6636
|
+
description: 'Description',
|
|
6637
|
+
disableInternet: 'DisableInternet',
|
|
6638
|
+
errorCodeSamples: 'ErrorCodeSamples',
|
|
6639
|
+
failResultSample: 'FailResultSample',
|
|
6640
|
+
forceNonceCheck: 'ForceNonceCheck',
|
|
6641
|
+
functionComputeConfig: 'FunctionComputeConfig',
|
|
6642
|
+
httpConfig: 'HttpConfig',
|
|
6643
|
+
mockConfig: 'MockConfig',
|
|
6644
|
+
modelName: 'ModelName',
|
|
6645
|
+
ossConfig: 'OssConfig',
|
|
6646
|
+
postBodyDescription: 'PostBodyDescription',
|
|
6647
|
+
requestHttpMethod: 'RequestHttpMethod',
|
|
6648
|
+
requestMode: 'RequestMode',
|
|
6649
|
+
requestParameters: 'RequestParameters',
|
|
6650
|
+
requestPath: 'RequestPath',
|
|
6651
|
+
requestProtocol: 'RequestProtocol',
|
|
6652
|
+
resultSample: 'ResultSample',
|
|
6653
|
+
resultType: 'ResultType',
|
|
6654
|
+
securityToken: 'SecurityToken',
|
|
6655
|
+
serviceParameters: 'ServiceParameters',
|
|
6656
|
+
serviceParametersMap: 'ServiceParametersMap',
|
|
6657
|
+
serviceProtocol: 'ServiceProtocol',
|
|
6658
|
+
serviceTimeout: 'ServiceTimeout',
|
|
6659
|
+
useBackendService: 'UseBackendService',
|
|
6660
|
+
visibility: 'Visibility',
|
|
6661
|
+
vpcConfig: 'VpcConfig',
|
|
6662
|
+
};
|
|
6663
|
+
}
|
|
6664
|
+
static types() {
|
|
6665
|
+
return {
|
|
6666
|
+
allowSignatureMethod: 'string',
|
|
6667
|
+
apiId: 'string',
|
|
6668
|
+
apiName: 'string',
|
|
6669
|
+
appCodeAuthType: 'string',
|
|
6670
|
+
authType: 'string',
|
|
6671
|
+
backendName: 'string',
|
|
6672
|
+
bodyFormat: 'string',
|
|
6673
|
+
bodyModel: 'string',
|
|
6674
|
+
contentTypeCategory: 'string',
|
|
6675
|
+
contentTypeValue: 'string',
|
|
6676
|
+
description: 'string',
|
|
6677
|
+
disableInternet: 'boolean',
|
|
6678
|
+
errorCodeSamples: 'string',
|
|
6679
|
+
failResultSample: 'string',
|
|
6680
|
+
forceNonceCheck: 'boolean',
|
|
6681
|
+
functionComputeConfig: 'string',
|
|
6682
|
+
httpConfig: 'string',
|
|
6683
|
+
mockConfig: 'string',
|
|
6684
|
+
modelName: 'string',
|
|
6685
|
+
ossConfig: 'string',
|
|
6686
|
+
postBodyDescription: 'string',
|
|
6687
|
+
requestHttpMethod: 'string',
|
|
6688
|
+
requestMode: 'string',
|
|
6689
|
+
requestParameters: 'string',
|
|
6690
|
+
requestPath: 'string',
|
|
6691
|
+
requestProtocol: 'string',
|
|
6692
|
+
resultSample: 'string',
|
|
6693
|
+
resultType: 'string',
|
|
6694
|
+
securityToken: 'string',
|
|
6695
|
+
serviceParameters: 'string',
|
|
6696
|
+
serviceParametersMap: 'string',
|
|
6697
|
+
serviceProtocol: 'string',
|
|
6698
|
+
serviceTimeout: 'number',
|
|
6699
|
+
useBackendService: 'boolean',
|
|
6700
|
+
visibility: 'string',
|
|
6701
|
+
vpcConfig: 'string',
|
|
6702
|
+
};
|
|
6703
|
+
}
|
|
6704
|
+
}
|
|
6705
|
+
exports.ModifyApiConfigurationRequest = ModifyApiConfigurationRequest;
|
|
6706
|
+
class ModifyApiConfigurationResponseBody extends $tea.Model {
|
|
6707
|
+
constructor(map) {
|
|
6708
|
+
super(map);
|
|
6709
|
+
}
|
|
6710
|
+
static names() {
|
|
6711
|
+
return {
|
|
6712
|
+
requestId: 'RequestId',
|
|
6713
|
+
};
|
|
6714
|
+
}
|
|
6715
|
+
static types() {
|
|
6716
|
+
return {
|
|
6717
|
+
requestId: 'string',
|
|
6718
|
+
};
|
|
6719
|
+
}
|
|
6720
|
+
}
|
|
6721
|
+
exports.ModifyApiConfigurationResponseBody = ModifyApiConfigurationResponseBody;
|
|
6722
|
+
class ModifyApiConfigurationResponse extends $tea.Model {
|
|
6723
|
+
constructor(map) {
|
|
6724
|
+
super(map);
|
|
6725
|
+
}
|
|
6726
|
+
static names() {
|
|
6727
|
+
return {
|
|
6728
|
+
headers: 'headers',
|
|
6729
|
+
body: 'body',
|
|
6730
|
+
};
|
|
6731
|
+
}
|
|
6732
|
+
static types() {
|
|
6733
|
+
return {
|
|
6734
|
+
headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
|
|
6735
|
+
body: ModifyApiConfigurationResponseBody,
|
|
6736
|
+
};
|
|
6737
|
+
}
|
|
6738
|
+
}
|
|
6739
|
+
exports.ModifyApiConfigurationResponse = ModifyApiConfigurationResponse;
|
|
6620
6740
|
class ModifyApiGroupRequest extends $tea.Model {
|
|
6621
6741
|
constructor(map) {
|
|
6622
6742
|
super(map);
|
|
@@ -17900,6 +18020,137 @@ class Client extends openapi_client_1.default {
|
|
|
17900
18020
|
let runtime = new $Util.RuntimeOptions({});
|
|
17901
18021
|
return await this.modifyApiWithOptions(request, runtime);
|
|
17902
18022
|
}
|
|
18023
|
+
async modifyApiConfigurationWithOptions(request, runtime) {
|
|
18024
|
+
tea_util_1.default.validateModel(request);
|
|
18025
|
+
let query = {};
|
|
18026
|
+
if (!tea_util_1.default.isUnset(request.allowSignatureMethod)) {
|
|
18027
|
+
query["AllowSignatureMethod"] = request.allowSignatureMethod;
|
|
18028
|
+
}
|
|
18029
|
+
if (!tea_util_1.default.isUnset(request.apiId)) {
|
|
18030
|
+
query["ApiId"] = request.apiId;
|
|
18031
|
+
}
|
|
18032
|
+
if (!tea_util_1.default.isUnset(request.apiName)) {
|
|
18033
|
+
query["ApiName"] = request.apiName;
|
|
18034
|
+
}
|
|
18035
|
+
if (!tea_util_1.default.isUnset(request.appCodeAuthType)) {
|
|
18036
|
+
query["AppCodeAuthType"] = request.appCodeAuthType;
|
|
18037
|
+
}
|
|
18038
|
+
if (!tea_util_1.default.isUnset(request.authType)) {
|
|
18039
|
+
query["AuthType"] = request.authType;
|
|
18040
|
+
}
|
|
18041
|
+
if (!tea_util_1.default.isUnset(request.backendName)) {
|
|
18042
|
+
query["BackendName"] = request.backendName;
|
|
18043
|
+
}
|
|
18044
|
+
if (!tea_util_1.default.isUnset(request.bodyFormat)) {
|
|
18045
|
+
query["BodyFormat"] = request.bodyFormat;
|
|
18046
|
+
}
|
|
18047
|
+
if (!tea_util_1.default.isUnset(request.bodyModel)) {
|
|
18048
|
+
query["BodyModel"] = request.bodyModel;
|
|
18049
|
+
}
|
|
18050
|
+
if (!tea_util_1.default.isUnset(request.contentTypeCategory)) {
|
|
18051
|
+
query["ContentTypeCategory"] = request.contentTypeCategory;
|
|
18052
|
+
}
|
|
18053
|
+
if (!tea_util_1.default.isUnset(request.contentTypeValue)) {
|
|
18054
|
+
query["ContentTypeValue"] = request.contentTypeValue;
|
|
18055
|
+
}
|
|
18056
|
+
if (!tea_util_1.default.isUnset(request.description)) {
|
|
18057
|
+
query["Description"] = request.description;
|
|
18058
|
+
}
|
|
18059
|
+
if (!tea_util_1.default.isUnset(request.disableInternet)) {
|
|
18060
|
+
query["DisableInternet"] = request.disableInternet;
|
|
18061
|
+
}
|
|
18062
|
+
if (!tea_util_1.default.isUnset(request.errorCodeSamples)) {
|
|
18063
|
+
query["ErrorCodeSamples"] = request.errorCodeSamples;
|
|
18064
|
+
}
|
|
18065
|
+
if (!tea_util_1.default.isUnset(request.failResultSample)) {
|
|
18066
|
+
query["FailResultSample"] = request.failResultSample;
|
|
18067
|
+
}
|
|
18068
|
+
if (!tea_util_1.default.isUnset(request.forceNonceCheck)) {
|
|
18069
|
+
query["ForceNonceCheck"] = request.forceNonceCheck;
|
|
18070
|
+
}
|
|
18071
|
+
if (!tea_util_1.default.isUnset(request.functionComputeConfig)) {
|
|
18072
|
+
query["FunctionComputeConfig"] = request.functionComputeConfig;
|
|
18073
|
+
}
|
|
18074
|
+
if (!tea_util_1.default.isUnset(request.httpConfig)) {
|
|
18075
|
+
query["HttpConfig"] = request.httpConfig;
|
|
18076
|
+
}
|
|
18077
|
+
if (!tea_util_1.default.isUnset(request.mockConfig)) {
|
|
18078
|
+
query["MockConfig"] = request.mockConfig;
|
|
18079
|
+
}
|
|
18080
|
+
if (!tea_util_1.default.isUnset(request.modelName)) {
|
|
18081
|
+
query["ModelName"] = request.modelName;
|
|
18082
|
+
}
|
|
18083
|
+
if (!tea_util_1.default.isUnset(request.ossConfig)) {
|
|
18084
|
+
query["OssConfig"] = request.ossConfig;
|
|
18085
|
+
}
|
|
18086
|
+
if (!tea_util_1.default.isUnset(request.postBodyDescription)) {
|
|
18087
|
+
query["PostBodyDescription"] = request.postBodyDescription;
|
|
18088
|
+
}
|
|
18089
|
+
if (!tea_util_1.default.isUnset(request.requestHttpMethod)) {
|
|
18090
|
+
query["RequestHttpMethod"] = request.requestHttpMethod;
|
|
18091
|
+
}
|
|
18092
|
+
if (!tea_util_1.default.isUnset(request.requestMode)) {
|
|
18093
|
+
query["RequestMode"] = request.requestMode;
|
|
18094
|
+
}
|
|
18095
|
+
if (!tea_util_1.default.isUnset(request.requestParameters)) {
|
|
18096
|
+
query["RequestParameters"] = request.requestParameters;
|
|
18097
|
+
}
|
|
18098
|
+
if (!tea_util_1.default.isUnset(request.requestPath)) {
|
|
18099
|
+
query["RequestPath"] = request.requestPath;
|
|
18100
|
+
}
|
|
18101
|
+
if (!tea_util_1.default.isUnset(request.requestProtocol)) {
|
|
18102
|
+
query["RequestProtocol"] = request.requestProtocol;
|
|
18103
|
+
}
|
|
18104
|
+
if (!tea_util_1.default.isUnset(request.resultSample)) {
|
|
18105
|
+
query["ResultSample"] = request.resultSample;
|
|
18106
|
+
}
|
|
18107
|
+
if (!tea_util_1.default.isUnset(request.resultType)) {
|
|
18108
|
+
query["ResultType"] = request.resultType;
|
|
18109
|
+
}
|
|
18110
|
+
if (!tea_util_1.default.isUnset(request.securityToken)) {
|
|
18111
|
+
query["SecurityToken"] = request.securityToken;
|
|
18112
|
+
}
|
|
18113
|
+
if (!tea_util_1.default.isUnset(request.serviceParameters)) {
|
|
18114
|
+
query["ServiceParameters"] = request.serviceParameters;
|
|
18115
|
+
}
|
|
18116
|
+
if (!tea_util_1.default.isUnset(request.serviceParametersMap)) {
|
|
18117
|
+
query["ServiceParametersMap"] = request.serviceParametersMap;
|
|
18118
|
+
}
|
|
18119
|
+
if (!tea_util_1.default.isUnset(request.serviceProtocol)) {
|
|
18120
|
+
query["ServiceProtocol"] = request.serviceProtocol;
|
|
18121
|
+
}
|
|
18122
|
+
if (!tea_util_1.default.isUnset(request.serviceTimeout)) {
|
|
18123
|
+
query["ServiceTimeout"] = request.serviceTimeout;
|
|
18124
|
+
}
|
|
18125
|
+
if (!tea_util_1.default.isUnset(request.useBackendService)) {
|
|
18126
|
+
query["UseBackendService"] = request.useBackendService;
|
|
18127
|
+
}
|
|
18128
|
+
if (!tea_util_1.default.isUnset(request.visibility)) {
|
|
18129
|
+
query["Visibility"] = request.visibility;
|
|
18130
|
+
}
|
|
18131
|
+
if (!tea_util_1.default.isUnset(request.vpcConfig)) {
|
|
18132
|
+
query["VpcConfig"] = request.vpcConfig;
|
|
18133
|
+
}
|
|
18134
|
+
let req = new $OpenApi.OpenApiRequest({
|
|
18135
|
+
query: openapi_util_1.default.query(query),
|
|
18136
|
+
});
|
|
18137
|
+
let params = new $OpenApi.Params({
|
|
18138
|
+
action: "ModifyApiConfiguration",
|
|
18139
|
+
version: "2016-07-14",
|
|
18140
|
+
protocol: "HTTPS",
|
|
18141
|
+
pathname: "/",
|
|
18142
|
+
method: "POST",
|
|
18143
|
+
authType: "AK",
|
|
18144
|
+
style: "RPC",
|
|
18145
|
+
reqBodyType: "formData",
|
|
18146
|
+
bodyType: "json",
|
|
18147
|
+
});
|
|
18148
|
+
return $tea.cast(await this.callApi(params, req, runtime), new ModifyApiConfigurationResponse({}));
|
|
18149
|
+
}
|
|
18150
|
+
async modifyApiConfiguration(request) {
|
|
18151
|
+
let runtime = new $Util.RuntimeOptions({});
|
|
18152
|
+
return await this.modifyApiConfigurationWithOptions(request, runtime);
|
|
18153
|
+
}
|
|
17903
18154
|
async modifyApiGroupWithOptions(request, runtime) {
|
|
17904
18155
|
tea_util_1.default.validateModel(request);
|
|
17905
18156
|
let query = {};
|