@alicloud/cloudapi20160714 3.2.0 → 3.3.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 +49 -0
- package/dist/client.js +159 -8
- package/dist/client.js.map +1 -1
- package/package.json +1 -1
- package/src/client.ts +187 -8
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;
|
|
@@ -14867,6 +14914,8 @@ export default class Client extends OpenApi {
|
|
|
14867
14914
|
* @return ModifyApiGroupResponse
|
|
14868
14915
|
*/
|
|
14869
14916
|
modifyApiGroup(request: ModifyApiGroupRequest): Promise<ModifyApiGroupResponse>;
|
|
14917
|
+
modifyApiGroupNetworkPolicyWithOptions(request: ModifyApiGroupNetworkPolicyRequest, runtime: $Util.RuntimeOptions): Promise<ModifyApiGroupNetworkPolicyResponse>;
|
|
14918
|
+
modifyApiGroupNetworkPolicy(request: ModifyApiGroupNetworkPolicyRequest): Promise<ModifyApiGroupNetworkPolicyResponse>;
|
|
14870
14919
|
modifyApiGroupVpcWhitelistWithOptions(request: ModifyApiGroupVpcWhitelistRequest, runtime: $Util.RuntimeOptions): Promise<ModifyApiGroupVpcWhitelistResponse>;
|
|
14871
14920
|
modifyApiGroupVpcWhitelist(request: ModifyApiGroupVpcWhitelistRequest): Promise<ModifyApiGroupVpcWhitelistResponse>;
|
|
14872
14921
|
/**
|
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);
|
|
@@ -19278,28 +19344,66 @@ class Client extends openapi_client_1.default {
|
|
|
19278
19344
|
this._endpointMap = {
|
|
19279
19345
|
'cn-qingdao': "apigateway.cn-qingdao.aliyuncs.com",
|
|
19280
19346
|
'cn-beijing': "apigateway.cn-beijing.aliyuncs.com",
|
|
19281
|
-
'cn-chengdu': "apigateway.cn-chengdu.aliyuncs.com",
|
|
19282
19347
|
'cn-zhangjiakou': "apigateway.cn-zhangjiakou.aliyuncs.com",
|
|
19283
19348
|
'cn-huhehaote': "apigateway.cn-huhehaote.aliyuncs.com",
|
|
19349
|
+
'cn-wulanchabu': "apigateway.cn-wulanchabu.aliyuncs.com",
|
|
19284
19350
|
'cn-hangzhou': "apigateway.cn-hangzhou.aliyuncs.com",
|
|
19285
19351
|
'cn-shanghai': "apigateway.cn-shanghai.aliyuncs.com",
|
|
19286
19352
|
'cn-shenzhen': "apigateway.cn-shenzhen.aliyuncs.com",
|
|
19353
|
+
'cn-heyuan': "apigateway.cn-heyuan.aliyuncs.com",
|
|
19354
|
+
'cn-guangzhou': "apigateway.cn-guangzhou.aliyuncs.com",
|
|
19355
|
+
'cn-chengdu': "apigateway.cn-chengdu.aliyuncs.com",
|
|
19287
19356
|
'cn-hongkong': "apigateway.cn-hongkong.aliyuncs.com",
|
|
19357
|
+
'ap-northeast-1': "apigateway.ap-northeast-1.aliyuncs.com",
|
|
19288
19358
|
'ap-southeast-1': "apigateway.ap-southeast-1.aliyuncs.com",
|
|
19289
19359
|
'ap-southeast-2': "apigateway.ap-southeast-2.aliyuncs.com",
|
|
19290
19360
|
'ap-southeast-3': "apigateway.ap-southeast-3.aliyuncs.com",
|
|
19291
19361
|
'ap-southeast-5': "apigateway.ap-southeast-5.aliyuncs.com",
|
|
19292
|
-
'ap-
|
|
19293
|
-
'
|
|
19294
|
-
'us-west-1': "apigateway.us-west-1.aliyuncs.com",
|
|
19362
|
+
'ap-southeast-6': "apigateway.ap-southeast-6.aliyuncs.com",
|
|
19363
|
+
'ap-southeast-7': "apigateway.ap-southeast-7.aliyuncs.com",
|
|
19295
19364
|
'us-east-1': "apigateway.us-east-1.aliyuncs.com",
|
|
19365
|
+
'us-west-1': "apigateway.us-west-1.aliyuncs.com",
|
|
19366
|
+
'eu-west-1': "apigateway.eu-west-1.aliyuncs.com",
|
|
19296
19367
|
'eu-central-1': "apigateway.eu-central-1.aliyuncs.com",
|
|
19297
|
-
'me-east-1': "apigateway.me-east-1.aliyuncs.com",
|
|
19298
19368
|
'ap-south-1': "apigateway.ap-south-1.aliyuncs.com",
|
|
19369
|
+
'me-east-1': "apigateway.me-east-1.aliyuncs.com",
|
|
19370
|
+
'me-central-1': "apigateway.me-central-1.aliyuncs.com",
|
|
19371
|
+
'cn-hangzhou-finance': "apigateway.cn-hangzhou-finance.aliyuncs.com",
|
|
19372
|
+
'cn-shanghai-finance-1': "apigateway.cn-shanghai-finance-1.aliyuncs.com",
|
|
19373
|
+
'cn-shenzhen-finance-1': "apigateway.cn-shenzhen-finance-1.aliyuncs.com",
|
|
19299
19374
|
'cn-north-2-gov-1': "apigateway.cn-north-2-gov-1.aliyuncs.com",
|
|
19300
|
-
'
|
|
19301
|
-
'cn-
|
|
19302
|
-
'cn-
|
|
19375
|
+
'ap-northeast-2-pop': "apigateway.aliyuncs.com",
|
|
19376
|
+
'cn-beijing-finance-1': "apigateway.cn-beijing-finance-1.aliyuncs.com",
|
|
19377
|
+
'cn-beijing-finance-pop': "apigateway.aliyuncs.com",
|
|
19378
|
+
'cn-beijing-gov-1': "apigateway.aliyuncs.com",
|
|
19379
|
+
'cn-beijing-nu16-b01': "apigateway.aliyuncs.com",
|
|
19380
|
+
'cn-edge-1': "apigateway.aliyuncs.com",
|
|
19381
|
+
'cn-fujian': "apigateway.aliyuncs.com",
|
|
19382
|
+
'cn-haidian-cm12-c01': "apigateway.aliyuncs.com",
|
|
19383
|
+
'cn-hangzhou-bj-b01': "apigateway.aliyuncs.com",
|
|
19384
|
+
'cn-hangzhou-internal-prod-1': "apigateway.aliyuncs.com",
|
|
19385
|
+
'cn-hangzhou-internal-test-1': "apigateway.aliyuncs.com",
|
|
19386
|
+
'cn-hangzhou-internal-test-2': "apigateway.aliyuncs.com",
|
|
19387
|
+
'cn-hangzhou-internal-test-3': "apigateway.aliyuncs.com",
|
|
19388
|
+
'cn-hangzhou-test-306': "apigateway.aliyuncs.com",
|
|
19389
|
+
'cn-hongkong-finance-pop': "apigateway.aliyuncs.com",
|
|
19390
|
+
'cn-huhehaote-nebula-1': "apigateway.aliyuncs.com",
|
|
19391
|
+
'cn-qingdao-nebula': "apigateway.aliyuncs.com",
|
|
19392
|
+
'cn-shanghai-et15-b01': "apigateway.aliyuncs.com",
|
|
19393
|
+
'cn-shanghai-et2-b01': "apigateway.aliyuncs.com",
|
|
19394
|
+
'cn-shanghai-inner': "apigateway.cn-shanghai-inner.aliyuncs.com",
|
|
19395
|
+
'cn-shanghai-internal-test-1': "apigateway.aliyuncs.com",
|
|
19396
|
+
'cn-shenzhen-inner': "apigateway.aliyuncs.com",
|
|
19397
|
+
'cn-shenzhen-st4-d01': "apigateway.aliyuncs.com",
|
|
19398
|
+
'cn-shenzhen-su18-b01': "apigateway.aliyuncs.com",
|
|
19399
|
+
'cn-wuhan': "apigateway.aliyuncs.com",
|
|
19400
|
+
'cn-yushanfang': "apigateway.aliyuncs.com",
|
|
19401
|
+
'cn-zhangbei': "apigateway.aliyuncs.com",
|
|
19402
|
+
'cn-zhangbei-na61-b01': "apigateway.aliyuncs.com",
|
|
19403
|
+
'cn-zhangjiakou-na62-a01': "apigateway.aliyuncs.com",
|
|
19404
|
+
'cn-zhengzhou-nebula-1': "apigateway.aliyuncs.com",
|
|
19405
|
+
'eu-west-1-oxs': "apigateway.aliyuncs.com",
|
|
19406
|
+
'rus-west-1-pop': "apigateway.aliyuncs.com",
|
|
19303
19407
|
};
|
|
19304
19408
|
this.checkConfig(config);
|
|
19305
19409
|
this._endpoint = this.getEndpoint("cloudapi", this._regionId, this._endpointRule, this._network, this._suffix, this._endpointMap, this._endpoint);
|
|
@@ -25771,6 +25875,53 @@ class Client extends openapi_client_1.default {
|
|
|
25771
25875
|
let runtime = new $Util.RuntimeOptions({});
|
|
25772
25876
|
return await this.modifyApiGroupWithOptions(request, runtime);
|
|
25773
25877
|
}
|
|
25878
|
+
async modifyApiGroupNetworkPolicyWithOptions(request, runtime) {
|
|
25879
|
+
tea_util_1.default.validateModel(request);
|
|
25880
|
+
let query = {};
|
|
25881
|
+
if (!tea_util_1.default.isUnset(request.groupId)) {
|
|
25882
|
+
query["GroupId"] = request.groupId;
|
|
25883
|
+
}
|
|
25884
|
+
if (!tea_util_1.default.isUnset(request.httpsPolicy)) {
|
|
25885
|
+
query["HttpsPolicy"] = request.httpsPolicy;
|
|
25886
|
+
}
|
|
25887
|
+
if (!tea_util_1.default.isUnset(request.innerDomainEnable)) {
|
|
25888
|
+
query["InnerDomainEnable"] = request.innerDomainEnable;
|
|
25889
|
+
}
|
|
25890
|
+
if (!tea_util_1.default.isUnset(request.internetEnable)) {
|
|
25891
|
+
query["InternetEnable"] = request.internetEnable;
|
|
25892
|
+
}
|
|
25893
|
+
if (!tea_util_1.default.isUnset(request.internetIPV6Enable)) {
|
|
25894
|
+
query["InternetIPV6Enable"] = request.internetIPV6Enable;
|
|
25895
|
+
}
|
|
25896
|
+
if (!tea_util_1.default.isUnset(request.securityToken)) {
|
|
25897
|
+
query["SecurityToken"] = request.securityToken;
|
|
25898
|
+
}
|
|
25899
|
+
if (!tea_util_1.default.isUnset(request.vpcIntranetEnable)) {
|
|
25900
|
+
query["VpcIntranetEnable"] = request.vpcIntranetEnable;
|
|
25901
|
+
}
|
|
25902
|
+
if (!tea_util_1.default.isUnset(request.vpcSlbIntranetEnable)) {
|
|
25903
|
+
query["VpcSlbIntranetEnable"] = request.vpcSlbIntranetEnable;
|
|
25904
|
+
}
|
|
25905
|
+
let req = new $OpenApi.OpenApiRequest({
|
|
25906
|
+
query: openapi_util_1.default.query(query),
|
|
25907
|
+
});
|
|
25908
|
+
let params = new $OpenApi.Params({
|
|
25909
|
+
action: "ModifyApiGroupNetworkPolicy",
|
|
25910
|
+
version: "2016-07-14",
|
|
25911
|
+
protocol: "HTTPS",
|
|
25912
|
+
pathname: "/",
|
|
25913
|
+
method: "POST",
|
|
25914
|
+
authType: "AK",
|
|
25915
|
+
style: "RPC",
|
|
25916
|
+
reqBodyType: "formData",
|
|
25917
|
+
bodyType: "json",
|
|
25918
|
+
});
|
|
25919
|
+
return $tea.cast(await this.callApi(params, req, runtime), new ModifyApiGroupNetworkPolicyResponse({}));
|
|
25920
|
+
}
|
|
25921
|
+
async modifyApiGroupNetworkPolicy(request) {
|
|
25922
|
+
let runtime = new $Util.RuntimeOptions({});
|
|
25923
|
+
return await this.modifyApiGroupNetworkPolicyWithOptions(request, runtime);
|
|
25924
|
+
}
|
|
25774
25925
|
async modifyApiGroupVpcWhitelistWithOptions(request, runtime) {
|
|
25775
25926
|
tea_util_1.default.validateModel(request);
|
|
25776
25927
|
let query = {};
|