@alicloud/cloudapi20160714 3.2.1 → 3.4.0
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 +95 -0
- package/dist/client.js +211 -0
- package/dist/client.js.map +1 -1
- package/package.json +1 -1
- package/src/client.ts +261 -0
package/dist/client.d.ts
CHANGED
|
@@ -6747,6 +6747,53 @@ export declare class ModifyApiGroupResponse extends $tea.Model {
|
|
|
6747
6747
|
[key: string]: any;
|
|
6748
6748
|
});
|
|
6749
6749
|
}
|
|
6750
|
+
export declare class ModifyApiGroupNetworkPolicyRequest extends $tea.Model {
|
|
6751
|
+
groupId?: string;
|
|
6752
|
+
httpsPolicy?: string;
|
|
6753
|
+
innerDomainEnable?: boolean;
|
|
6754
|
+
internetEnable?: boolean;
|
|
6755
|
+
internetIPV6Enable?: boolean;
|
|
6756
|
+
securityToken?: string;
|
|
6757
|
+
vpcIntranetEnable?: boolean;
|
|
6758
|
+
vpcSlbIntranetEnable?: boolean;
|
|
6759
|
+
static names(): {
|
|
6760
|
+
[key: string]: string;
|
|
6761
|
+
};
|
|
6762
|
+
static types(): {
|
|
6763
|
+
[key: string]: any;
|
|
6764
|
+
};
|
|
6765
|
+
constructor(map?: {
|
|
6766
|
+
[key: string]: any;
|
|
6767
|
+
});
|
|
6768
|
+
}
|
|
6769
|
+
export declare class ModifyApiGroupNetworkPolicyResponseBody extends $tea.Model {
|
|
6770
|
+
requestId?: string;
|
|
6771
|
+
static names(): {
|
|
6772
|
+
[key: string]: string;
|
|
6773
|
+
};
|
|
6774
|
+
static types(): {
|
|
6775
|
+
[key: string]: any;
|
|
6776
|
+
};
|
|
6777
|
+
constructor(map?: {
|
|
6778
|
+
[key: string]: any;
|
|
6779
|
+
});
|
|
6780
|
+
}
|
|
6781
|
+
export declare class ModifyApiGroupNetworkPolicyResponse extends $tea.Model {
|
|
6782
|
+
headers: {
|
|
6783
|
+
[key: string]: string;
|
|
6784
|
+
};
|
|
6785
|
+
statusCode: number;
|
|
6786
|
+
body: ModifyApiGroupNetworkPolicyResponseBody;
|
|
6787
|
+
static names(): {
|
|
6788
|
+
[key: string]: string;
|
|
6789
|
+
};
|
|
6790
|
+
static types(): {
|
|
6791
|
+
[key: string]: any;
|
|
6792
|
+
};
|
|
6793
|
+
constructor(map?: {
|
|
6794
|
+
[key: string]: any;
|
|
6795
|
+
});
|
|
6796
|
+
}
|
|
6750
6797
|
export declare class ModifyApiGroupVpcWhitelistRequest extends $tea.Model {
|
|
6751
6798
|
groupId?: string;
|
|
6752
6799
|
securityToken?: string;
|
|
@@ -8385,6 +8432,50 @@ export declare class SetApisAuthoritiesResponse extends $tea.Model {
|
|
|
8385
8432
|
[key: string]: any;
|
|
8386
8433
|
});
|
|
8387
8434
|
}
|
|
8435
|
+
export declare class SetAppsAuthToApiProductRequest extends $tea.Model {
|
|
8436
|
+
apiProductId?: string;
|
|
8437
|
+
appIds?: number[];
|
|
8438
|
+
authValidTime?: string;
|
|
8439
|
+
description?: string;
|
|
8440
|
+
securityToken?: string;
|
|
8441
|
+
static names(): {
|
|
8442
|
+
[key: string]: string;
|
|
8443
|
+
};
|
|
8444
|
+
static types(): {
|
|
8445
|
+
[key: string]: any;
|
|
8446
|
+
};
|
|
8447
|
+
constructor(map?: {
|
|
8448
|
+
[key: string]: any;
|
|
8449
|
+
});
|
|
8450
|
+
}
|
|
8451
|
+
export declare class SetAppsAuthToApiProductResponseBody extends $tea.Model {
|
|
8452
|
+
requestId?: string;
|
|
8453
|
+
static names(): {
|
|
8454
|
+
[key: string]: string;
|
|
8455
|
+
};
|
|
8456
|
+
static types(): {
|
|
8457
|
+
[key: string]: any;
|
|
8458
|
+
};
|
|
8459
|
+
constructor(map?: {
|
|
8460
|
+
[key: string]: any;
|
|
8461
|
+
});
|
|
8462
|
+
}
|
|
8463
|
+
export declare class SetAppsAuthToApiProductResponse extends $tea.Model {
|
|
8464
|
+
headers: {
|
|
8465
|
+
[key: string]: string;
|
|
8466
|
+
};
|
|
8467
|
+
statusCode: number;
|
|
8468
|
+
body: SetAppsAuthToApiProductResponseBody;
|
|
8469
|
+
static names(): {
|
|
8470
|
+
[key: string]: string;
|
|
8471
|
+
};
|
|
8472
|
+
static types(): {
|
|
8473
|
+
[key: string]: any;
|
|
8474
|
+
};
|
|
8475
|
+
constructor(map?: {
|
|
8476
|
+
[key: string]: any;
|
|
8477
|
+
});
|
|
8478
|
+
}
|
|
8388
8479
|
export declare class SetAppsAuthoritiesRequest extends $tea.Model {
|
|
8389
8480
|
apiId?: string;
|
|
8390
8481
|
appIds?: string;
|
|
@@ -14867,6 +14958,8 @@ export default class Client extends OpenApi {
|
|
|
14867
14958
|
* @return ModifyApiGroupResponse
|
|
14868
14959
|
*/
|
|
14869
14960
|
modifyApiGroup(request: ModifyApiGroupRequest): Promise<ModifyApiGroupResponse>;
|
|
14961
|
+
modifyApiGroupNetworkPolicyWithOptions(request: ModifyApiGroupNetworkPolicyRequest, runtime: $Util.RuntimeOptions): Promise<ModifyApiGroupNetworkPolicyResponse>;
|
|
14962
|
+
modifyApiGroupNetworkPolicy(request: ModifyApiGroupNetworkPolicyRequest): Promise<ModifyApiGroupNetworkPolicyResponse>;
|
|
14870
14963
|
modifyApiGroupVpcWhitelistWithOptions(request: ModifyApiGroupVpcWhitelistRequest, runtime: $Util.RuntimeOptions): Promise<ModifyApiGroupVpcWhitelistResponse>;
|
|
14871
14964
|
modifyApiGroupVpcWhitelist(request: ModifyApiGroupVpcWhitelistRequest): Promise<ModifyApiGroupVpcWhitelistResponse>;
|
|
14872
14965
|
/**
|
|
@@ -15199,6 +15292,8 @@ export default class Client extends OpenApi {
|
|
|
15199
15292
|
* @return SetApisAuthoritiesResponse
|
|
15200
15293
|
*/
|
|
15201
15294
|
setApisAuthorities(request: SetApisAuthoritiesRequest): Promise<SetApisAuthoritiesResponse>;
|
|
15295
|
+
setAppsAuthToApiProductWithOptions(request: SetAppsAuthToApiProductRequest, runtime: $Util.RuntimeOptions): Promise<SetAppsAuthToApiProductResponse>;
|
|
15296
|
+
setAppsAuthToApiProduct(request: SetAppsAuthToApiProductRequest): Promise<SetAppsAuthToApiProductResponse>;
|
|
15202
15297
|
/**
|
|
15203
15298
|
* * This operation is intended for API providers and callers.
|
|
15204
15299
|
* * API providers can authorize any apps to call their APIs.
|
package/dist/client.js
CHANGED
|
@@ -9505,6 +9505,72 @@ class ModifyApiGroupResponse extends $tea.Model {
|
|
|
9505
9505
|
}
|
|
9506
9506
|
}
|
|
9507
9507
|
exports.ModifyApiGroupResponse = ModifyApiGroupResponse;
|
|
9508
|
+
class ModifyApiGroupNetworkPolicyRequest extends $tea.Model {
|
|
9509
|
+
constructor(map) {
|
|
9510
|
+
super(map);
|
|
9511
|
+
}
|
|
9512
|
+
static names() {
|
|
9513
|
+
return {
|
|
9514
|
+
groupId: 'GroupId',
|
|
9515
|
+
httpsPolicy: 'HttpsPolicy',
|
|
9516
|
+
innerDomainEnable: 'InnerDomainEnable',
|
|
9517
|
+
internetEnable: 'InternetEnable',
|
|
9518
|
+
internetIPV6Enable: 'InternetIPV6Enable',
|
|
9519
|
+
securityToken: 'SecurityToken',
|
|
9520
|
+
vpcIntranetEnable: 'VpcIntranetEnable',
|
|
9521
|
+
vpcSlbIntranetEnable: 'VpcSlbIntranetEnable',
|
|
9522
|
+
};
|
|
9523
|
+
}
|
|
9524
|
+
static types() {
|
|
9525
|
+
return {
|
|
9526
|
+
groupId: 'string',
|
|
9527
|
+
httpsPolicy: 'string',
|
|
9528
|
+
innerDomainEnable: 'boolean',
|
|
9529
|
+
internetEnable: 'boolean',
|
|
9530
|
+
internetIPV6Enable: 'boolean',
|
|
9531
|
+
securityToken: 'string',
|
|
9532
|
+
vpcIntranetEnable: 'boolean',
|
|
9533
|
+
vpcSlbIntranetEnable: 'boolean',
|
|
9534
|
+
};
|
|
9535
|
+
}
|
|
9536
|
+
}
|
|
9537
|
+
exports.ModifyApiGroupNetworkPolicyRequest = ModifyApiGroupNetworkPolicyRequest;
|
|
9538
|
+
class ModifyApiGroupNetworkPolicyResponseBody extends $tea.Model {
|
|
9539
|
+
constructor(map) {
|
|
9540
|
+
super(map);
|
|
9541
|
+
}
|
|
9542
|
+
static names() {
|
|
9543
|
+
return {
|
|
9544
|
+
requestId: 'RequestId',
|
|
9545
|
+
};
|
|
9546
|
+
}
|
|
9547
|
+
static types() {
|
|
9548
|
+
return {
|
|
9549
|
+
requestId: 'string',
|
|
9550
|
+
};
|
|
9551
|
+
}
|
|
9552
|
+
}
|
|
9553
|
+
exports.ModifyApiGroupNetworkPolicyResponseBody = ModifyApiGroupNetworkPolicyResponseBody;
|
|
9554
|
+
class ModifyApiGroupNetworkPolicyResponse extends $tea.Model {
|
|
9555
|
+
constructor(map) {
|
|
9556
|
+
super(map);
|
|
9557
|
+
}
|
|
9558
|
+
static names() {
|
|
9559
|
+
return {
|
|
9560
|
+
headers: 'headers',
|
|
9561
|
+
statusCode: 'statusCode',
|
|
9562
|
+
body: 'body',
|
|
9563
|
+
};
|
|
9564
|
+
}
|
|
9565
|
+
static types() {
|
|
9566
|
+
return {
|
|
9567
|
+
headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
|
|
9568
|
+
statusCode: 'number',
|
|
9569
|
+
body: ModifyApiGroupNetworkPolicyResponseBody,
|
|
9570
|
+
};
|
|
9571
|
+
}
|
|
9572
|
+
}
|
|
9573
|
+
exports.ModifyApiGroupNetworkPolicyResponse = ModifyApiGroupNetworkPolicyResponse;
|
|
9508
9574
|
class ModifyApiGroupVpcWhitelistRequest extends $tea.Model {
|
|
9509
9575
|
constructor(map) {
|
|
9510
9576
|
super(map);
|
|
@@ -11737,6 +11803,66 @@ class SetApisAuthoritiesResponse extends $tea.Model {
|
|
|
11737
11803
|
}
|
|
11738
11804
|
}
|
|
11739
11805
|
exports.SetApisAuthoritiesResponse = SetApisAuthoritiesResponse;
|
|
11806
|
+
class SetAppsAuthToApiProductRequest extends $tea.Model {
|
|
11807
|
+
constructor(map) {
|
|
11808
|
+
super(map);
|
|
11809
|
+
}
|
|
11810
|
+
static names() {
|
|
11811
|
+
return {
|
|
11812
|
+
apiProductId: 'ApiProductId',
|
|
11813
|
+
appIds: 'AppIds',
|
|
11814
|
+
authValidTime: 'AuthValidTime',
|
|
11815
|
+
description: 'Description',
|
|
11816
|
+
securityToken: 'SecurityToken',
|
|
11817
|
+
};
|
|
11818
|
+
}
|
|
11819
|
+
static types() {
|
|
11820
|
+
return {
|
|
11821
|
+
apiProductId: 'string',
|
|
11822
|
+
appIds: { 'type': 'array', 'itemType': 'number' },
|
|
11823
|
+
authValidTime: 'string',
|
|
11824
|
+
description: 'string',
|
|
11825
|
+
securityToken: 'string',
|
|
11826
|
+
};
|
|
11827
|
+
}
|
|
11828
|
+
}
|
|
11829
|
+
exports.SetAppsAuthToApiProductRequest = SetAppsAuthToApiProductRequest;
|
|
11830
|
+
class SetAppsAuthToApiProductResponseBody extends $tea.Model {
|
|
11831
|
+
constructor(map) {
|
|
11832
|
+
super(map);
|
|
11833
|
+
}
|
|
11834
|
+
static names() {
|
|
11835
|
+
return {
|
|
11836
|
+
requestId: 'RequestId',
|
|
11837
|
+
};
|
|
11838
|
+
}
|
|
11839
|
+
static types() {
|
|
11840
|
+
return {
|
|
11841
|
+
requestId: 'string',
|
|
11842
|
+
};
|
|
11843
|
+
}
|
|
11844
|
+
}
|
|
11845
|
+
exports.SetAppsAuthToApiProductResponseBody = SetAppsAuthToApiProductResponseBody;
|
|
11846
|
+
class SetAppsAuthToApiProductResponse extends $tea.Model {
|
|
11847
|
+
constructor(map) {
|
|
11848
|
+
super(map);
|
|
11849
|
+
}
|
|
11850
|
+
static names() {
|
|
11851
|
+
return {
|
|
11852
|
+
headers: 'headers',
|
|
11853
|
+
statusCode: 'statusCode',
|
|
11854
|
+
body: 'body',
|
|
11855
|
+
};
|
|
11856
|
+
}
|
|
11857
|
+
static types() {
|
|
11858
|
+
return {
|
|
11859
|
+
headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
|
|
11860
|
+
statusCode: 'number',
|
|
11861
|
+
body: SetAppsAuthToApiProductResponseBody,
|
|
11862
|
+
};
|
|
11863
|
+
}
|
|
11864
|
+
}
|
|
11865
|
+
exports.SetAppsAuthToApiProductResponse = SetAppsAuthToApiProductResponse;
|
|
11740
11866
|
class SetAppsAuthoritiesRequest extends $tea.Model {
|
|
11741
11867
|
constructor(map) {
|
|
11742
11868
|
super(map);
|
|
@@ -25809,6 +25935,53 @@ class Client extends openapi_client_1.default {
|
|
|
25809
25935
|
let runtime = new $Util.RuntimeOptions({});
|
|
25810
25936
|
return await this.modifyApiGroupWithOptions(request, runtime);
|
|
25811
25937
|
}
|
|
25938
|
+
async modifyApiGroupNetworkPolicyWithOptions(request, runtime) {
|
|
25939
|
+
tea_util_1.default.validateModel(request);
|
|
25940
|
+
let query = {};
|
|
25941
|
+
if (!tea_util_1.default.isUnset(request.groupId)) {
|
|
25942
|
+
query["GroupId"] = request.groupId;
|
|
25943
|
+
}
|
|
25944
|
+
if (!tea_util_1.default.isUnset(request.httpsPolicy)) {
|
|
25945
|
+
query["HttpsPolicy"] = request.httpsPolicy;
|
|
25946
|
+
}
|
|
25947
|
+
if (!tea_util_1.default.isUnset(request.innerDomainEnable)) {
|
|
25948
|
+
query["InnerDomainEnable"] = request.innerDomainEnable;
|
|
25949
|
+
}
|
|
25950
|
+
if (!tea_util_1.default.isUnset(request.internetEnable)) {
|
|
25951
|
+
query["InternetEnable"] = request.internetEnable;
|
|
25952
|
+
}
|
|
25953
|
+
if (!tea_util_1.default.isUnset(request.internetIPV6Enable)) {
|
|
25954
|
+
query["InternetIPV6Enable"] = request.internetIPV6Enable;
|
|
25955
|
+
}
|
|
25956
|
+
if (!tea_util_1.default.isUnset(request.securityToken)) {
|
|
25957
|
+
query["SecurityToken"] = request.securityToken;
|
|
25958
|
+
}
|
|
25959
|
+
if (!tea_util_1.default.isUnset(request.vpcIntranetEnable)) {
|
|
25960
|
+
query["VpcIntranetEnable"] = request.vpcIntranetEnable;
|
|
25961
|
+
}
|
|
25962
|
+
if (!tea_util_1.default.isUnset(request.vpcSlbIntranetEnable)) {
|
|
25963
|
+
query["VpcSlbIntranetEnable"] = request.vpcSlbIntranetEnable;
|
|
25964
|
+
}
|
|
25965
|
+
let req = new $OpenApi.OpenApiRequest({
|
|
25966
|
+
query: openapi_util_1.default.query(query),
|
|
25967
|
+
});
|
|
25968
|
+
let params = new $OpenApi.Params({
|
|
25969
|
+
action: "ModifyApiGroupNetworkPolicy",
|
|
25970
|
+
version: "2016-07-14",
|
|
25971
|
+
protocol: "HTTPS",
|
|
25972
|
+
pathname: "/",
|
|
25973
|
+
method: "POST",
|
|
25974
|
+
authType: "AK",
|
|
25975
|
+
style: "RPC",
|
|
25976
|
+
reqBodyType: "formData",
|
|
25977
|
+
bodyType: "json",
|
|
25978
|
+
});
|
|
25979
|
+
return $tea.cast(await this.callApi(params, req, runtime), new ModifyApiGroupNetworkPolicyResponse({}));
|
|
25980
|
+
}
|
|
25981
|
+
async modifyApiGroupNetworkPolicy(request) {
|
|
25982
|
+
let runtime = new $Util.RuntimeOptions({});
|
|
25983
|
+
return await this.modifyApiGroupNetworkPolicyWithOptions(request, runtime);
|
|
25984
|
+
}
|
|
25812
25985
|
async modifyApiGroupVpcWhitelistWithOptions(request, runtime) {
|
|
25813
25986
|
tea_util_1.default.validateModel(request);
|
|
25814
25987
|
let query = {};
|
|
@@ -27419,6 +27592,44 @@ class Client extends openapi_client_1.default {
|
|
|
27419
27592
|
let runtime = new $Util.RuntimeOptions({});
|
|
27420
27593
|
return await this.setApisAuthoritiesWithOptions(request, runtime);
|
|
27421
27594
|
}
|
|
27595
|
+
async setAppsAuthToApiProductWithOptions(request, runtime) {
|
|
27596
|
+
tea_util_1.default.validateModel(request);
|
|
27597
|
+
let query = {};
|
|
27598
|
+
if (!tea_util_1.default.isUnset(request.apiProductId)) {
|
|
27599
|
+
query["ApiProductId"] = request.apiProductId;
|
|
27600
|
+
}
|
|
27601
|
+
if (!tea_util_1.default.isUnset(request.appIds)) {
|
|
27602
|
+
query["AppIds"] = request.appIds;
|
|
27603
|
+
}
|
|
27604
|
+
if (!tea_util_1.default.isUnset(request.authValidTime)) {
|
|
27605
|
+
query["AuthValidTime"] = request.authValidTime;
|
|
27606
|
+
}
|
|
27607
|
+
if (!tea_util_1.default.isUnset(request.description)) {
|
|
27608
|
+
query["Description"] = request.description;
|
|
27609
|
+
}
|
|
27610
|
+
if (!tea_util_1.default.isUnset(request.securityToken)) {
|
|
27611
|
+
query["SecurityToken"] = request.securityToken;
|
|
27612
|
+
}
|
|
27613
|
+
let req = new $OpenApi.OpenApiRequest({
|
|
27614
|
+
query: openapi_util_1.default.query(query),
|
|
27615
|
+
});
|
|
27616
|
+
let params = new $OpenApi.Params({
|
|
27617
|
+
action: "SetAppsAuthToApiProduct",
|
|
27618
|
+
version: "2016-07-14",
|
|
27619
|
+
protocol: "HTTPS",
|
|
27620
|
+
pathname: "/",
|
|
27621
|
+
method: "POST",
|
|
27622
|
+
authType: "AK",
|
|
27623
|
+
style: "RPC",
|
|
27624
|
+
reqBodyType: "formData",
|
|
27625
|
+
bodyType: "json",
|
|
27626
|
+
});
|
|
27627
|
+
return $tea.cast(await this.callApi(params, req, runtime), new SetAppsAuthToApiProductResponse({}));
|
|
27628
|
+
}
|
|
27629
|
+
async setAppsAuthToApiProduct(request) {
|
|
27630
|
+
let runtime = new $Util.RuntimeOptions({});
|
|
27631
|
+
return await this.setAppsAuthToApiProductWithOptions(request, runtime);
|
|
27632
|
+
}
|
|
27422
27633
|
/**
|
|
27423
27634
|
* * This operation is intended for API providers and callers.
|
|
27424
27635
|
* * API providers can authorize any apps to call their APIs.
|