@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/package.json
CHANGED
package/src/client.ts
CHANGED
|
@@ -12097,6 +12097,90 @@ export class ModifyApiGroupResponse extends $tea.Model {
|
|
|
12097
12097
|
}
|
|
12098
12098
|
}
|
|
12099
12099
|
|
|
12100
|
+
export class ModifyApiGroupNetworkPolicyRequest extends $tea.Model {
|
|
12101
|
+
groupId?: string;
|
|
12102
|
+
httpsPolicy?: string;
|
|
12103
|
+
innerDomainEnable?: boolean;
|
|
12104
|
+
internetEnable?: boolean;
|
|
12105
|
+
internetIPV6Enable?: boolean;
|
|
12106
|
+
securityToken?: string;
|
|
12107
|
+
vpcIntranetEnable?: boolean;
|
|
12108
|
+
vpcSlbIntranetEnable?: boolean;
|
|
12109
|
+
static names(): { [key: string]: string } {
|
|
12110
|
+
return {
|
|
12111
|
+
groupId: 'GroupId',
|
|
12112
|
+
httpsPolicy: 'HttpsPolicy',
|
|
12113
|
+
innerDomainEnable: 'InnerDomainEnable',
|
|
12114
|
+
internetEnable: 'InternetEnable',
|
|
12115
|
+
internetIPV6Enable: 'InternetIPV6Enable',
|
|
12116
|
+
securityToken: 'SecurityToken',
|
|
12117
|
+
vpcIntranetEnable: 'VpcIntranetEnable',
|
|
12118
|
+
vpcSlbIntranetEnable: 'VpcSlbIntranetEnable',
|
|
12119
|
+
};
|
|
12120
|
+
}
|
|
12121
|
+
|
|
12122
|
+
static types(): { [key: string]: any } {
|
|
12123
|
+
return {
|
|
12124
|
+
groupId: 'string',
|
|
12125
|
+
httpsPolicy: 'string',
|
|
12126
|
+
innerDomainEnable: 'boolean',
|
|
12127
|
+
internetEnable: 'boolean',
|
|
12128
|
+
internetIPV6Enable: 'boolean',
|
|
12129
|
+
securityToken: 'string',
|
|
12130
|
+
vpcIntranetEnable: 'boolean',
|
|
12131
|
+
vpcSlbIntranetEnable: 'boolean',
|
|
12132
|
+
};
|
|
12133
|
+
}
|
|
12134
|
+
|
|
12135
|
+
constructor(map?: { [key: string]: any }) {
|
|
12136
|
+
super(map);
|
|
12137
|
+
}
|
|
12138
|
+
}
|
|
12139
|
+
|
|
12140
|
+
export class ModifyApiGroupNetworkPolicyResponseBody extends $tea.Model {
|
|
12141
|
+
requestId?: string;
|
|
12142
|
+
static names(): { [key: string]: string } {
|
|
12143
|
+
return {
|
|
12144
|
+
requestId: 'RequestId',
|
|
12145
|
+
};
|
|
12146
|
+
}
|
|
12147
|
+
|
|
12148
|
+
static types(): { [key: string]: any } {
|
|
12149
|
+
return {
|
|
12150
|
+
requestId: 'string',
|
|
12151
|
+
};
|
|
12152
|
+
}
|
|
12153
|
+
|
|
12154
|
+
constructor(map?: { [key: string]: any }) {
|
|
12155
|
+
super(map);
|
|
12156
|
+
}
|
|
12157
|
+
}
|
|
12158
|
+
|
|
12159
|
+
export class ModifyApiGroupNetworkPolicyResponse extends $tea.Model {
|
|
12160
|
+
headers: { [key: string]: string };
|
|
12161
|
+
statusCode: number;
|
|
12162
|
+
body: ModifyApiGroupNetworkPolicyResponseBody;
|
|
12163
|
+
static names(): { [key: string]: string } {
|
|
12164
|
+
return {
|
|
12165
|
+
headers: 'headers',
|
|
12166
|
+
statusCode: 'statusCode',
|
|
12167
|
+
body: 'body',
|
|
12168
|
+
};
|
|
12169
|
+
}
|
|
12170
|
+
|
|
12171
|
+
static types(): { [key: string]: any } {
|
|
12172
|
+
return {
|
|
12173
|
+
headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
|
|
12174
|
+
statusCode: 'number',
|
|
12175
|
+
body: ModifyApiGroupNetworkPolicyResponseBody,
|
|
12176
|
+
};
|
|
12177
|
+
}
|
|
12178
|
+
|
|
12179
|
+
constructor(map?: { [key: string]: any }) {
|
|
12180
|
+
super(map);
|
|
12181
|
+
}
|
|
12182
|
+
}
|
|
12183
|
+
|
|
12100
12184
|
export class ModifyApiGroupVpcWhitelistRequest extends $tea.Model {
|
|
12101
12185
|
groupId?: string;
|
|
12102
12186
|
securityToken?: string;
|
|
@@ -24430,28 +24514,66 @@ export default class Client extends OpenApi {
|
|
|
24430
24514
|
this._endpointMap = {
|
|
24431
24515
|
'cn-qingdao': "apigateway.cn-qingdao.aliyuncs.com",
|
|
24432
24516
|
'cn-beijing': "apigateway.cn-beijing.aliyuncs.com",
|
|
24433
|
-
'cn-chengdu': "apigateway.cn-chengdu.aliyuncs.com",
|
|
24434
24517
|
'cn-zhangjiakou': "apigateway.cn-zhangjiakou.aliyuncs.com",
|
|
24435
24518
|
'cn-huhehaote': "apigateway.cn-huhehaote.aliyuncs.com",
|
|
24519
|
+
'cn-wulanchabu': "apigateway.cn-wulanchabu.aliyuncs.com",
|
|
24436
24520
|
'cn-hangzhou': "apigateway.cn-hangzhou.aliyuncs.com",
|
|
24437
24521
|
'cn-shanghai': "apigateway.cn-shanghai.aliyuncs.com",
|
|
24438
24522
|
'cn-shenzhen': "apigateway.cn-shenzhen.aliyuncs.com",
|
|
24523
|
+
'cn-heyuan': "apigateway.cn-heyuan.aliyuncs.com",
|
|
24524
|
+
'cn-guangzhou': "apigateway.cn-guangzhou.aliyuncs.com",
|
|
24525
|
+
'cn-chengdu': "apigateway.cn-chengdu.aliyuncs.com",
|
|
24439
24526
|
'cn-hongkong': "apigateway.cn-hongkong.aliyuncs.com",
|
|
24527
|
+
'ap-northeast-1': "apigateway.ap-northeast-1.aliyuncs.com",
|
|
24440
24528
|
'ap-southeast-1': "apigateway.ap-southeast-1.aliyuncs.com",
|
|
24441
24529
|
'ap-southeast-2': "apigateway.ap-southeast-2.aliyuncs.com",
|
|
24442
24530
|
'ap-southeast-3': "apigateway.ap-southeast-3.aliyuncs.com",
|
|
24443
24531
|
'ap-southeast-5': "apigateway.ap-southeast-5.aliyuncs.com",
|
|
24444
|
-
'ap-
|
|
24445
|
-
'
|
|
24446
|
-
'us-west-1': "apigateway.us-west-1.aliyuncs.com",
|
|
24532
|
+
'ap-southeast-6': "apigateway.ap-southeast-6.aliyuncs.com",
|
|
24533
|
+
'ap-southeast-7': "apigateway.ap-southeast-7.aliyuncs.com",
|
|
24447
24534
|
'us-east-1': "apigateway.us-east-1.aliyuncs.com",
|
|
24535
|
+
'us-west-1': "apigateway.us-west-1.aliyuncs.com",
|
|
24536
|
+
'eu-west-1': "apigateway.eu-west-1.aliyuncs.com",
|
|
24448
24537
|
'eu-central-1': "apigateway.eu-central-1.aliyuncs.com",
|
|
24449
|
-
'me-east-1': "apigateway.me-east-1.aliyuncs.com",
|
|
24450
24538
|
'ap-south-1': "apigateway.ap-south-1.aliyuncs.com",
|
|
24539
|
+
'me-east-1': "apigateway.me-east-1.aliyuncs.com",
|
|
24540
|
+
'me-central-1': "apigateway.me-central-1.aliyuncs.com",
|
|
24541
|
+
'cn-hangzhou-finance': "apigateway.cn-hangzhou-finance.aliyuncs.com",
|
|
24542
|
+
'cn-shanghai-finance-1': "apigateway.cn-shanghai-finance-1.aliyuncs.com",
|
|
24543
|
+
'cn-shenzhen-finance-1': "apigateway.cn-shenzhen-finance-1.aliyuncs.com",
|
|
24451
24544
|
'cn-north-2-gov-1': "apigateway.cn-north-2-gov-1.aliyuncs.com",
|
|
24452
|
-
'
|
|
24453
|
-
'cn-
|
|
24454
|
-
'cn-
|
|
24545
|
+
'ap-northeast-2-pop': "apigateway.aliyuncs.com",
|
|
24546
|
+
'cn-beijing-finance-1': "apigateway.cn-beijing-finance-1.aliyuncs.com",
|
|
24547
|
+
'cn-beijing-finance-pop': "apigateway.aliyuncs.com",
|
|
24548
|
+
'cn-beijing-gov-1': "apigateway.aliyuncs.com",
|
|
24549
|
+
'cn-beijing-nu16-b01': "apigateway.aliyuncs.com",
|
|
24550
|
+
'cn-edge-1': "apigateway.aliyuncs.com",
|
|
24551
|
+
'cn-fujian': "apigateway.aliyuncs.com",
|
|
24552
|
+
'cn-haidian-cm12-c01': "apigateway.aliyuncs.com",
|
|
24553
|
+
'cn-hangzhou-bj-b01': "apigateway.aliyuncs.com",
|
|
24554
|
+
'cn-hangzhou-internal-prod-1': "apigateway.aliyuncs.com",
|
|
24555
|
+
'cn-hangzhou-internal-test-1': "apigateway.aliyuncs.com",
|
|
24556
|
+
'cn-hangzhou-internal-test-2': "apigateway.aliyuncs.com",
|
|
24557
|
+
'cn-hangzhou-internal-test-3': "apigateway.aliyuncs.com",
|
|
24558
|
+
'cn-hangzhou-test-306': "apigateway.aliyuncs.com",
|
|
24559
|
+
'cn-hongkong-finance-pop': "apigateway.aliyuncs.com",
|
|
24560
|
+
'cn-huhehaote-nebula-1': "apigateway.aliyuncs.com",
|
|
24561
|
+
'cn-qingdao-nebula': "apigateway.aliyuncs.com",
|
|
24562
|
+
'cn-shanghai-et15-b01': "apigateway.aliyuncs.com",
|
|
24563
|
+
'cn-shanghai-et2-b01': "apigateway.aliyuncs.com",
|
|
24564
|
+
'cn-shanghai-inner': "apigateway.cn-shanghai-inner.aliyuncs.com",
|
|
24565
|
+
'cn-shanghai-internal-test-1': "apigateway.aliyuncs.com",
|
|
24566
|
+
'cn-shenzhen-inner': "apigateway.aliyuncs.com",
|
|
24567
|
+
'cn-shenzhen-st4-d01': "apigateway.aliyuncs.com",
|
|
24568
|
+
'cn-shenzhen-su18-b01': "apigateway.aliyuncs.com",
|
|
24569
|
+
'cn-wuhan': "apigateway.aliyuncs.com",
|
|
24570
|
+
'cn-yushanfang': "apigateway.aliyuncs.com",
|
|
24571
|
+
'cn-zhangbei': "apigateway.aliyuncs.com",
|
|
24572
|
+
'cn-zhangbei-na61-b01': "apigateway.aliyuncs.com",
|
|
24573
|
+
'cn-zhangjiakou-na62-a01': "apigateway.aliyuncs.com",
|
|
24574
|
+
'cn-zhengzhou-nebula-1': "apigateway.aliyuncs.com",
|
|
24575
|
+
'eu-west-1-oxs': "apigateway.aliyuncs.com",
|
|
24576
|
+
'rus-west-1-pop': "apigateway.aliyuncs.com",
|
|
24455
24577
|
};
|
|
24456
24578
|
this.checkConfig(config);
|
|
24457
24579
|
this._endpoint = this.getEndpoint("cloudapi", this._regionId, this._endpointRule, this._network, this._suffix, this._endpointMap, this._endpoint);
|
|
@@ -31944,6 +32066,63 @@ export default class Client extends OpenApi {
|
|
|
31944
32066
|
return await this.modifyApiGroupWithOptions(request, runtime);
|
|
31945
32067
|
}
|
|
31946
32068
|
|
|
32069
|
+
async modifyApiGroupNetworkPolicyWithOptions(request: ModifyApiGroupNetworkPolicyRequest, runtime: $Util.RuntimeOptions): Promise<ModifyApiGroupNetworkPolicyResponse> {
|
|
32070
|
+
Util.validateModel(request);
|
|
32071
|
+
let query = { };
|
|
32072
|
+
if (!Util.isUnset(request.groupId)) {
|
|
32073
|
+
query["GroupId"] = request.groupId;
|
|
32074
|
+
}
|
|
32075
|
+
|
|
32076
|
+
if (!Util.isUnset(request.httpsPolicy)) {
|
|
32077
|
+
query["HttpsPolicy"] = request.httpsPolicy;
|
|
32078
|
+
}
|
|
32079
|
+
|
|
32080
|
+
if (!Util.isUnset(request.innerDomainEnable)) {
|
|
32081
|
+
query["InnerDomainEnable"] = request.innerDomainEnable;
|
|
32082
|
+
}
|
|
32083
|
+
|
|
32084
|
+
if (!Util.isUnset(request.internetEnable)) {
|
|
32085
|
+
query["InternetEnable"] = request.internetEnable;
|
|
32086
|
+
}
|
|
32087
|
+
|
|
32088
|
+
if (!Util.isUnset(request.internetIPV6Enable)) {
|
|
32089
|
+
query["InternetIPV6Enable"] = request.internetIPV6Enable;
|
|
32090
|
+
}
|
|
32091
|
+
|
|
32092
|
+
if (!Util.isUnset(request.securityToken)) {
|
|
32093
|
+
query["SecurityToken"] = request.securityToken;
|
|
32094
|
+
}
|
|
32095
|
+
|
|
32096
|
+
if (!Util.isUnset(request.vpcIntranetEnable)) {
|
|
32097
|
+
query["VpcIntranetEnable"] = request.vpcIntranetEnable;
|
|
32098
|
+
}
|
|
32099
|
+
|
|
32100
|
+
if (!Util.isUnset(request.vpcSlbIntranetEnable)) {
|
|
32101
|
+
query["VpcSlbIntranetEnable"] = request.vpcSlbIntranetEnable;
|
|
32102
|
+
}
|
|
32103
|
+
|
|
32104
|
+
let req = new $OpenApi.OpenApiRequest({
|
|
32105
|
+
query: OpenApiUtil.query(query),
|
|
32106
|
+
});
|
|
32107
|
+
let params = new $OpenApi.Params({
|
|
32108
|
+
action: "ModifyApiGroupNetworkPolicy",
|
|
32109
|
+
version: "2016-07-14",
|
|
32110
|
+
protocol: "HTTPS",
|
|
32111
|
+
pathname: "/",
|
|
32112
|
+
method: "POST",
|
|
32113
|
+
authType: "AK",
|
|
32114
|
+
style: "RPC",
|
|
32115
|
+
reqBodyType: "formData",
|
|
32116
|
+
bodyType: "json",
|
|
32117
|
+
});
|
|
32118
|
+
return $tea.cast<ModifyApiGroupNetworkPolicyResponse>(await this.callApi(params, req, runtime), new ModifyApiGroupNetworkPolicyResponse({}));
|
|
32119
|
+
}
|
|
32120
|
+
|
|
32121
|
+
async modifyApiGroupNetworkPolicy(request: ModifyApiGroupNetworkPolicyRequest): Promise<ModifyApiGroupNetworkPolicyResponse> {
|
|
32122
|
+
let runtime = new $Util.RuntimeOptions({ });
|
|
32123
|
+
return await this.modifyApiGroupNetworkPolicyWithOptions(request, runtime);
|
|
32124
|
+
}
|
|
32125
|
+
|
|
31947
32126
|
async modifyApiGroupVpcWhitelistWithOptions(request: ModifyApiGroupVpcWhitelistRequest, runtime: $Util.RuntimeOptions): Promise<ModifyApiGroupVpcWhitelistResponse> {
|
|
31948
32127
|
Util.validateModel(request);
|
|
31949
32128
|
let query = { };
|