@alicloud/cloudapi20160714 3.2.1 → 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 +113 -0
- package/dist/client.js.map +1 -1
- package/package.json +1 -1
- package/src/client.ts +141 -0
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;
|
|
@@ -31982,6 +32066,63 @@ export default class Client extends OpenApi {
|
|
|
31982
32066
|
return await this.modifyApiGroupWithOptions(request, runtime);
|
|
31983
32067
|
}
|
|
31984
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
|
+
|
|
31985
32126
|
async modifyApiGroupVpcWhitelistWithOptions(request: ModifyApiGroupVpcWhitelistRequest, runtime: $Util.RuntimeOptions): Promise<ModifyApiGroupVpcWhitelistResponse> {
|
|
31986
32127
|
Util.validateModel(request);
|
|
31987
32128
|
let query = { };
|