@alicloud/cloudapi20160714 4.1.0 → 4.2.1
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 +88 -0
- package/dist/client.js +160 -15
- package/dist/client.js.map +1 -1
- package/package.json +1 -1
- package/src/client.ts +174 -0
package/package.json
CHANGED
package/src/client.ts
CHANGED
|
@@ -6818,6 +6818,75 @@ export class DescribeAppAttributesResponse extends $tea.Model {
|
|
|
6818
6818
|
}
|
|
6819
6819
|
}
|
|
6820
6820
|
|
|
6821
|
+
export class DescribeAppSecuritiesRequest extends $tea.Model {
|
|
6822
|
+
appId?: number;
|
|
6823
|
+
securityToken?: string;
|
|
6824
|
+
static names(): { [key: string]: string } {
|
|
6825
|
+
return {
|
|
6826
|
+
appId: 'AppId',
|
|
6827
|
+
securityToken: 'SecurityToken',
|
|
6828
|
+
};
|
|
6829
|
+
}
|
|
6830
|
+
|
|
6831
|
+
static types(): { [key: string]: any } {
|
|
6832
|
+
return {
|
|
6833
|
+
appId: 'number',
|
|
6834
|
+
securityToken: 'string',
|
|
6835
|
+
};
|
|
6836
|
+
}
|
|
6837
|
+
|
|
6838
|
+
constructor(map?: { [key: string]: any }) {
|
|
6839
|
+
super(map);
|
|
6840
|
+
}
|
|
6841
|
+
}
|
|
6842
|
+
|
|
6843
|
+
export class DescribeAppSecuritiesResponseBody extends $tea.Model {
|
|
6844
|
+
appSecuritys?: DescribeAppSecuritiesResponseBodyAppSecuritys;
|
|
6845
|
+
requestId?: string;
|
|
6846
|
+
static names(): { [key: string]: string } {
|
|
6847
|
+
return {
|
|
6848
|
+
appSecuritys: 'AppSecuritys',
|
|
6849
|
+
requestId: 'RequestId',
|
|
6850
|
+
};
|
|
6851
|
+
}
|
|
6852
|
+
|
|
6853
|
+
static types(): { [key: string]: any } {
|
|
6854
|
+
return {
|
|
6855
|
+
appSecuritys: DescribeAppSecuritiesResponseBodyAppSecuritys,
|
|
6856
|
+
requestId: 'string',
|
|
6857
|
+
};
|
|
6858
|
+
}
|
|
6859
|
+
|
|
6860
|
+
constructor(map?: { [key: string]: any }) {
|
|
6861
|
+
super(map);
|
|
6862
|
+
}
|
|
6863
|
+
}
|
|
6864
|
+
|
|
6865
|
+
export class DescribeAppSecuritiesResponse extends $tea.Model {
|
|
6866
|
+
headers?: { [key: string]: string };
|
|
6867
|
+
statusCode?: number;
|
|
6868
|
+
body?: DescribeAppSecuritiesResponseBody;
|
|
6869
|
+
static names(): { [key: string]: string } {
|
|
6870
|
+
return {
|
|
6871
|
+
headers: 'headers',
|
|
6872
|
+
statusCode: 'statusCode',
|
|
6873
|
+
body: 'body',
|
|
6874
|
+
};
|
|
6875
|
+
}
|
|
6876
|
+
|
|
6877
|
+
static types(): { [key: string]: any } {
|
|
6878
|
+
return {
|
|
6879
|
+
headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
|
|
6880
|
+
statusCode: 'number',
|
|
6881
|
+
body: DescribeAppSecuritiesResponseBody,
|
|
6882
|
+
};
|
|
6883
|
+
}
|
|
6884
|
+
|
|
6885
|
+
constructor(map?: { [key: string]: any }) {
|
|
6886
|
+
super(map);
|
|
6887
|
+
}
|
|
6888
|
+
}
|
|
6889
|
+
|
|
6821
6890
|
export class DescribeAppSecurityRequest extends $tea.Model {
|
|
6822
6891
|
appId?: number;
|
|
6823
6892
|
securityToken?: string;
|
|
@@ -17520,6 +17589,7 @@ export class DescribeApiResponseBodyOpenIdConnectConfig extends $tea.Model {
|
|
|
17520
17589
|
export class DescribeApiResponseBodyRequestConfig extends $tea.Model {
|
|
17521
17590
|
bodyFormat?: string;
|
|
17522
17591
|
bodyModel?: string;
|
|
17592
|
+
escapePathParam?: boolean;
|
|
17523
17593
|
postBodyDescription?: string;
|
|
17524
17594
|
requestHttpMethod?: string;
|
|
17525
17595
|
requestMode?: string;
|
|
@@ -17529,6 +17599,7 @@ export class DescribeApiResponseBodyRequestConfig extends $tea.Model {
|
|
|
17529
17599
|
return {
|
|
17530
17600
|
bodyFormat: 'BodyFormat',
|
|
17531
17601
|
bodyModel: 'BodyModel',
|
|
17602
|
+
escapePathParam: 'EscapePathParam',
|
|
17532
17603
|
postBodyDescription: 'PostBodyDescription',
|
|
17533
17604
|
requestHttpMethod: 'RequestHttpMethod',
|
|
17534
17605
|
requestMode: 'RequestMode',
|
|
@@ -17541,6 +17612,7 @@ export class DescribeApiResponseBodyRequestConfig extends $tea.Model {
|
|
|
17541
17612
|
return {
|
|
17542
17613
|
bodyFormat: 'string',
|
|
17543
17614
|
bodyModel: 'string',
|
|
17615
|
+
escapePathParam: 'boolean',
|
|
17544
17616
|
postBodyDescription: 'string',
|
|
17545
17617
|
requestHttpMethod: 'string',
|
|
17546
17618
|
requestMode: 'string',
|
|
@@ -18109,6 +18181,7 @@ export class DescribeApiDocResponseBodyErrorCodeSamples extends $tea.Model {
|
|
|
18109
18181
|
|
|
18110
18182
|
export class DescribeApiDocResponseBodyRequestConfig extends $tea.Model {
|
|
18111
18183
|
bodyFormat?: string;
|
|
18184
|
+
escapePathParam?: boolean;
|
|
18112
18185
|
postBodyDescription?: string;
|
|
18113
18186
|
requestHttpMethod?: string;
|
|
18114
18187
|
requestMode?: string;
|
|
@@ -18117,6 +18190,7 @@ export class DescribeApiDocResponseBodyRequestConfig extends $tea.Model {
|
|
|
18117
18190
|
static names(): { [key: string]: string } {
|
|
18118
18191
|
return {
|
|
18119
18192
|
bodyFormat: 'BodyFormat',
|
|
18193
|
+
escapePathParam: 'EscapePathParam',
|
|
18120
18194
|
postBodyDescription: 'PostBodyDescription',
|
|
18121
18195
|
requestHttpMethod: 'RequestHttpMethod',
|
|
18122
18196
|
requestMode: 'RequestMode',
|
|
@@ -18128,6 +18202,7 @@ export class DescribeApiDocResponseBodyRequestConfig extends $tea.Model {
|
|
|
18128
18202
|
static types(): { [key: string]: any } {
|
|
18129
18203
|
return {
|
|
18130
18204
|
bodyFormat: 'string',
|
|
18205
|
+
escapePathParam: 'boolean',
|
|
18131
18206
|
postBodyDescription: 'string',
|
|
18132
18207
|
requestHttpMethod: 'string',
|
|
18133
18208
|
requestMode: 'string',
|
|
@@ -18778,6 +18853,7 @@ export class DescribeApiHistoryResponseBodyOpenIdConnectConfig extends $tea.Mode
|
|
|
18778
18853
|
export class DescribeApiHistoryResponseBodyRequestConfig extends $tea.Model {
|
|
18779
18854
|
bodyFormat?: string;
|
|
18780
18855
|
bodyModel?: string;
|
|
18856
|
+
escapePathParam?: boolean;
|
|
18781
18857
|
postBodyDescription?: string;
|
|
18782
18858
|
requestHttpMethod?: string;
|
|
18783
18859
|
requestMode?: string;
|
|
@@ -18787,6 +18863,7 @@ export class DescribeApiHistoryResponseBodyRequestConfig extends $tea.Model {
|
|
|
18787
18863
|
return {
|
|
18788
18864
|
bodyFormat: 'BodyFormat',
|
|
18789
18865
|
bodyModel: 'BodyModel',
|
|
18866
|
+
escapePathParam: 'EscapePathParam',
|
|
18790
18867
|
postBodyDescription: 'PostBodyDescription',
|
|
18791
18868
|
requestHttpMethod: 'RequestHttpMethod',
|
|
18792
18869
|
requestMode: 'RequestMode',
|
|
@@ -18799,6 +18876,7 @@ export class DescribeApiHistoryResponseBodyRequestConfig extends $tea.Model {
|
|
|
18799
18876
|
return {
|
|
18800
18877
|
bodyFormat: 'string',
|
|
18801
18878
|
bodyModel: 'string',
|
|
18879
|
+
escapePathParam: 'boolean',
|
|
18802
18880
|
postBodyDescription: 'string',
|
|
18803
18881
|
requestHttpMethod: 'string',
|
|
18804
18882
|
requestMode: 'string',
|
|
@@ -20561,6 +20639,56 @@ export class DescribeAppAttributesResponseBodyApps extends $tea.Model {
|
|
|
20561
20639
|
}
|
|
20562
20640
|
}
|
|
20563
20641
|
|
|
20642
|
+
export class DescribeAppSecuritiesResponseBodyAppSecuritysAppSecurity extends $tea.Model {
|
|
20643
|
+
appCode?: string;
|
|
20644
|
+
appKey?: string;
|
|
20645
|
+
appSecret?: string;
|
|
20646
|
+
createdTime?: string;
|
|
20647
|
+
modifiedTime?: string;
|
|
20648
|
+
static names(): { [key: string]: string } {
|
|
20649
|
+
return {
|
|
20650
|
+
appCode: 'AppCode',
|
|
20651
|
+
appKey: 'AppKey',
|
|
20652
|
+
appSecret: 'AppSecret',
|
|
20653
|
+
createdTime: 'CreatedTime',
|
|
20654
|
+
modifiedTime: 'ModifiedTime',
|
|
20655
|
+
};
|
|
20656
|
+
}
|
|
20657
|
+
|
|
20658
|
+
static types(): { [key: string]: any } {
|
|
20659
|
+
return {
|
|
20660
|
+
appCode: 'string',
|
|
20661
|
+
appKey: 'string',
|
|
20662
|
+
appSecret: 'string',
|
|
20663
|
+
createdTime: 'string',
|
|
20664
|
+
modifiedTime: 'string',
|
|
20665
|
+
};
|
|
20666
|
+
}
|
|
20667
|
+
|
|
20668
|
+
constructor(map?: { [key: string]: any }) {
|
|
20669
|
+
super(map);
|
|
20670
|
+
}
|
|
20671
|
+
}
|
|
20672
|
+
|
|
20673
|
+
export class DescribeAppSecuritiesResponseBodyAppSecuritys extends $tea.Model {
|
|
20674
|
+
appSecurity?: DescribeAppSecuritiesResponseBodyAppSecuritysAppSecurity[];
|
|
20675
|
+
static names(): { [key: string]: string } {
|
|
20676
|
+
return {
|
|
20677
|
+
appSecurity: 'AppSecurity',
|
|
20678
|
+
};
|
|
20679
|
+
}
|
|
20680
|
+
|
|
20681
|
+
static types(): { [key: string]: any } {
|
|
20682
|
+
return {
|
|
20683
|
+
appSecurity: { 'type': 'array', 'itemType': DescribeAppSecuritiesResponseBodyAppSecuritysAppSecurity },
|
|
20684
|
+
};
|
|
20685
|
+
}
|
|
20686
|
+
|
|
20687
|
+
constructor(map?: { [key: string]: any }) {
|
|
20688
|
+
super(map);
|
|
20689
|
+
}
|
|
20690
|
+
}
|
|
20691
|
+
|
|
20564
20692
|
export class DescribeAppSecurityRequestTag extends $tea.Model {
|
|
20565
20693
|
key?: string;
|
|
20566
20694
|
value?: string;
|
|
@@ -30875,6 +31003,52 @@ export default class Client extends OpenApi {
|
|
|
30875
31003
|
return await this.describeAppAttributesWithOptions(request, runtime);
|
|
30876
31004
|
}
|
|
30877
31005
|
|
|
31006
|
+
/**
|
|
31007
|
+
* @summary 查询APP的密钥信息
|
|
31008
|
+
*
|
|
31009
|
+
* @param request DescribeAppSecuritiesRequest
|
|
31010
|
+
* @param runtime runtime options for this request RuntimeOptions
|
|
31011
|
+
* @return DescribeAppSecuritiesResponse
|
|
31012
|
+
*/
|
|
31013
|
+
async describeAppSecuritiesWithOptions(request: DescribeAppSecuritiesRequest, runtime: $Util.RuntimeOptions): Promise<DescribeAppSecuritiesResponse> {
|
|
31014
|
+
Util.validateModel(request);
|
|
31015
|
+
let query = { };
|
|
31016
|
+
if (!Util.isUnset(request.appId)) {
|
|
31017
|
+
query["AppId"] = request.appId;
|
|
31018
|
+
}
|
|
31019
|
+
|
|
31020
|
+
if (!Util.isUnset(request.securityToken)) {
|
|
31021
|
+
query["SecurityToken"] = request.securityToken;
|
|
31022
|
+
}
|
|
31023
|
+
|
|
31024
|
+
let req = new $OpenApi.OpenApiRequest({
|
|
31025
|
+
query: OpenApiUtil.query(query),
|
|
31026
|
+
});
|
|
31027
|
+
let params = new $OpenApi.Params({
|
|
31028
|
+
action: "DescribeAppSecurities",
|
|
31029
|
+
version: "2016-07-14",
|
|
31030
|
+
protocol: "HTTPS",
|
|
31031
|
+
pathname: "/",
|
|
31032
|
+
method: "POST",
|
|
31033
|
+
authType: "AK",
|
|
31034
|
+
style: "RPC",
|
|
31035
|
+
reqBodyType: "formData",
|
|
31036
|
+
bodyType: "json",
|
|
31037
|
+
});
|
|
31038
|
+
return $tea.cast<DescribeAppSecuritiesResponse>(await this.callApi(params, req, runtime), new DescribeAppSecuritiesResponse({}));
|
|
31039
|
+
}
|
|
31040
|
+
|
|
31041
|
+
/**
|
|
31042
|
+
* @summary 查询APP的密钥信息
|
|
31043
|
+
*
|
|
31044
|
+
* @param request DescribeAppSecuritiesRequest
|
|
31045
|
+
* @return DescribeAppSecuritiesResponse
|
|
31046
|
+
*/
|
|
31047
|
+
async describeAppSecurities(request: DescribeAppSecuritiesRequest): Promise<DescribeAppSecuritiesResponse> {
|
|
31048
|
+
let runtime = new $Util.RuntimeOptions({ });
|
|
31049
|
+
return await this.describeAppSecuritiesWithOptions(request, runtime);
|
|
31050
|
+
}
|
|
31051
|
+
|
|
30878
31052
|
/**
|
|
30879
31053
|
* @summary This key is used for authentication when an API call is made.
|
|
30880
31054
|
*
|