@alicloud/esa20240910 2.37.0 → 2.39.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 +171 -0
- package/dist/client.js +432 -0
- package/dist/client.js.map +1 -1
- package/dist/models/CreateUserWafRulesetRequest.d.ts +62 -0
- package/dist/models/CreateUserWafRulesetRequest.js +80 -0
- package/dist/models/CreateUserWafRulesetRequest.js.map +1 -0
- package/dist/models/CreateUserWafRulesetResponse.d.ts +19 -0
- package/dist/models/CreateUserWafRulesetResponse.js +69 -0
- package/dist/models/CreateUserWafRulesetResponse.js.map +1 -0
- package/dist/models/CreateUserWafRulesetResponseBody.d.ts +24 -0
- package/dist/models/CreateUserWafRulesetResponseBody.js +65 -0
- package/dist/models/CreateUserWafRulesetResponseBody.js.map +1 -0
- package/dist/models/CreateUserWafRulesetShrinkRequest.d.ts +60 -0
- package/dist/models/CreateUserWafRulesetShrinkRequest.js +72 -0
- package/dist/models/CreateUserWafRulesetShrinkRequest.js.map +1 -0
- package/dist/models/DeleteUserWafRulesetRequest.d.ts +29 -0
- package/dist/models/DeleteUserWafRulesetRequest.js +60 -0
- package/dist/models/DeleteUserWafRulesetRequest.js.map +1 -0
- package/dist/models/DeleteUserWafRulesetResponse.d.ts +19 -0
- package/dist/models/DeleteUserWafRulesetResponse.js +69 -0
- package/dist/models/DeleteUserWafRulesetResponse.js.map +1 -0
- package/dist/models/DeleteUserWafRulesetResponseBody.d.ts +18 -0
- package/dist/models/DeleteUserWafRulesetResponseBody.js +58 -0
- package/dist/models/DeleteUserWafRulesetResponseBody.js.map +1 -0
- package/dist/models/GetKvDetailRequest.d.ts +29 -0
- package/dist/models/GetKvDetailRequest.js +60 -0
- package/dist/models/GetKvDetailRequest.js.map +1 -0
- package/dist/models/GetKvDetailResponse.d.ts +19 -0
- package/dist/models/GetKvDetailResponse.js +69 -0
- package/dist/models/GetKvDetailResponse.js.map +1 -0
- package/dist/models/GetKvDetailResponseBody.d.ts +28 -0
- package/dist/models/GetKvDetailResponseBody.js +62 -0
- package/dist/models/GetKvDetailResponseBody.js.map +1 -0
- package/dist/models/GetRoutineAccessTokenRequest.d.ts +21 -0
- package/dist/models/GetRoutineAccessTokenRequest.js +58 -0
- package/dist/models/GetRoutineAccessTokenRequest.js.map +1 -0
- package/dist/models/GetRoutineAccessTokenResponse.d.ts +19 -0
- package/dist/models/GetRoutineAccessTokenResponse.js +69 -0
- package/dist/models/GetRoutineAccessTokenResponse.js.map +1 -0
- package/dist/models/GetRoutineAccessTokenResponseBody.d.ts +23 -0
- package/dist/models/GetRoutineAccessTokenResponseBody.js +60 -0
- package/dist/models/GetRoutineAccessTokenResponseBody.js.map +1 -0
- package/dist/models/GetUserWafRulesetRequest.d.ts +29 -0
- package/dist/models/GetUserWafRulesetRequest.js +60 -0
- package/dist/models/GetUserWafRulesetRequest.js.map +1 -0
- package/dist/models/GetUserWafRulesetResponse.d.ts +19 -0
- package/dist/models/GetUserWafRulesetResponse.js +69 -0
- package/dist/models/GetUserWafRulesetResponse.js.map +1 -0
- package/dist/models/GetUserWafRulesetResponseBody.d.ts +165 -0
- package/dist/models/GetUserWafRulesetResponseBody.js +163 -0
- package/dist/models/GetUserWafRulesetResponseBody.js.map +1 -0
- package/dist/models/ListUserWafRulesetsRequest.d.ts +64 -0
- package/dist/models/ListUserWafRulesetsRequest.js +92 -0
- package/dist/models/ListUserWafRulesetsRequest.js.map +1 -0
- package/dist/models/ListUserWafRulesetsResponse.d.ts +19 -0
- package/dist/models/ListUserWafRulesetsResponse.js +69 -0
- package/dist/models/ListUserWafRulesetsResponse.js.map +1 -0
- package/dist/models/ListUserWafRulesetsResponseBody.d.ts +84 -0
- package/dist/models/ListUserWafRulesetsResponseBody.js +100 -0
- package/dist/models/ListUserWafRulesetsResponseBody.js.map +1 -0
- package/dist/models/ListUserWafRulesetsShrinkRequest.d.ts +41 -0
- package/dist/models/ListUserWafRulesetsShrinkRequest.js +66 -0
- package/dist/models/ListUserWafRulesetsShrinkRequest.js.map +1 -0
- package/dist/models/UpdateUserWafRulesetRequest.d.ts +68 -0
- package/dist/models/UpdateUserWafRulesetRequest.js +82 -0
- package/dist/models/UpdateUserWafRulesetRequest.js.map +1 -0
- package/dist/models/UpdateUserWafRulesetResponse.d.ts +19 -0
- package/dist/models/UpdateUserWafRulesetResponse.js +69 -0
- package/dist/models/UpdateUserWafRulesetResponse.js.map +1 -0
- package/dist/models/UpdateUserWafRulesetResponseBody.d.ts +18 -0
- package/dist/models/UpdateUserWafRulesetResponseBody.js +58 -0
- package/dist/models/UpdateUserWafRulesetResponseBody.js.map +1 -0
- package/dist/models/UpdateUserWafRulesetShrinkRequest.d.ts +66 -0
- package/dist/models/UpdateUserWafRulesetShrinkRequest.js +74 -0
- package/dist/models/UpdateUserWafRulesetShrinkRequest.js.map +1 -0
- package/dist/models/model.d.ts +28 -0
- package/dist/models/model.js +83 -27
- package/dist/models/model.js.map +1 -1
- package/package.json +1 -1
- package/src/client.ts +480 -0
- package/src/models/CreateUserWafRulesetRequest.ts +95 -0
- package/src/models/CreateUserWafRulesetResponse.ts +40 -0
- package/src/models/CreateUserWafRulesetResponseBody.ts +44 -0
- package/src/models/CreateUserWafRulesetShrinkRequest.ts +87 -0
- package/src/models/DeleteUserWafRulesetRequest.ts +44 -0
- package/src/models/DeleteUserWafRulesetResponse.ts +40 -0
- package/src/models/DeleteUserWafRulesetResponseBody.ts +31 -0
- package/src/models/GetKvDetailRequest.ts +44 -0
- package/src/models/GetKvDetailResponse.ts +40 -0
- package/src/models/GetKvDetailResponseBody.ts +45 -0
- package/src/models/GetRoutineAccessTokenRequest.ts +34 -0
- package/src/models/GetRoutineAccessTokenResponse.ts +40 -0
- package/src/models/GetRoutineAccessTokenResponseBody.ts +38 -0
- package/src/models/GetUserWafRulesetRequest.ts +44 -0
- package/src/models/GetUserWafRulesetResponse.ts +40 -0
- package/src/models/GetUserWafRulesetResponseBody.ts +263 -0
- package/src/models/ListUserWafRulesetsRequest.ts +102 -0
- package/src/models/ListUserWafRulesetsResponse.ts +40 -0
- package/src/models/ListUserWafRulesetsResponseBody.ts +130 -0
- package/src/models/ListUserWafRulesetsShrinkRequest.ts +62 -0
- package/src/models/UpdateUserWafRulesetRequest.ts +103 -0
- package/src/models/UpdateUserWafRulesetResponse.ts +40 -0
- package/src/models/UpdateUserWafRulesetResponseBody.ts +31 -0
- package/src/models/UpdateUserWafRulesetShrinkRequest.ts +95 -0
- package/src/models/model.ts +28 -0
package/src/client.ts
CHANGED
|
@@ -4287,6 +4287,110 @@ export default class Client extends OpenApi {
|
|
|
4287
4287
|
return await this.createUserDeliveryTaskWithOptions(request, runtime);
|
|
4288
4288
|
}
|
|
4289
4289
|
|
|
4290
|
+
/**
|
|
4291
|
+
* 用于创建实例级别的Web应用防火墙规则集,支持多种类型的防护规则。
|
|
4292
|
+
*
|
|
4293
|
+
* @remarks
|
|
4294
|
+
* ## 请求说明
|
|
4295
|
+
* - 本API允许用户为指定实例创建新的WAF(Web Application Firewall)规则集。
|
|
4296
|
+
* - `InstanceId` 是必需参数,指定了要为其创建规则集的具体实例。
|
|
4297
|
+
* - `Phase` 参数定义了规则集的应用阶段,例如自定义规则、频次控制等。
|
|
4298
|
+
* - `Name` 和 `Expression` 是必填项,分别代表规则集的名字和具体的匹配表达式。
|
|
4299
|
+
* - 可选参数 `Description` 提供了对规则集功能或用途的文字描述。
|
|
4300
|
+
* - `Status` 控制着规则集是否立即生效 (`on`) 或者处于关闭状态 (`off`)。
|
|
4301
|
+
* - 通过 `Rules` 参数可以进一步配置更详细的规则列表,每个规则都包含名称、位置、表达式及动作等属性。
|
|
4302
|
+
* - 成功响应将返回新创建规则集的唯一标识符 `Id` 以及所有关联规则的ID列表 `RuleIds`。
|
|
4303
|
+
*
|
|
4304
|
+
* @param tmpReq - CreateUserWafRulesetRequest
|
|
4305
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
4306
|
+
* @returns CreateUserWafRulesetResponse
|
|
4307
|
+
*/
|
|
4308
|
+
async createUserWafRulesetWithOptions(tmpReq: $_model.CreateUserWafRulesetRequest, runtime: $dara.RuntimeOptions): Promise<$_model.CreateUserWafRulesetResponse> {
|
|
4309
|
+
tmpReq.validate();
|
|
4310
|
+
let request = new $_model.CreateUserWafRulesetShrinkRequest({ });
|
|
4311
|
+
OpenApiUtil.convert(tmpReq, request);
|
|
4312
|
+
if (!$dara.isNull(tmpReq.rules)) {
|
|
4313
|
+
request.rulesShrink = OpenApiUtil.arrayToStringWithSpecifiedStyle(tmpReq.rules, "Rules", "json");
|
|
4314
|
+
}
|
|
4315
|
+
|
|
4316
|
+
if (!$dara.isNull(tmpReq.shared)) {
|
|
4317
|
+
request.sharedShrink = OpenApiUtil.arrayToStringWithSpecifiedStyle(tmpReq.shared, "Shared", "json");
|
|
4318
|
+
}
|
|
4319
|
+
|
|
4320
|
+
let query = { };
|
|
4321
|
+
if (!$dara.isNull(request.instanceId)) {
|
|
4322
|
+
query["InstanceId"] = request.instanceId;
|
|
4323
|
+
}
|
|
4324
|
+
|
|
4325
|
+
let body : {[key: string ]: any} = { };
|
|
4326
|
+
if (!$dara.isNull(request.description)) {
|
|
4327
|
+
body["Description"] = request.description;
|
|
4328
|
+
}
|
|
4329
|
+
|
|
4330
|
+
if (!$dara.isNull(request.expression)) {
|
|
4331
|
+
body["Expression"] = request.expression;
|
|
4332
|
+
}
|
|
4333
|
+
|
|
4334
|
+
if (!$dara.isNull(request.name)) {
|
|
4335
|
+
body["Name"] = request.name;
|
|
4336
|
+
}
|
|
4337
|
+
|
|
4338
|
+
if (!$dara.isNull(request.phase)) {
|
|
4339
|
+
body["Phase"] = request.phase;
|
|
4340
|
+
}
|
|
4341
|
+
|
|
4342
|
+
if (!$dara.isNull(request.rulesShrink)) {
|
|
4343
|
+
body["Rules"] = request.rulesShrink;
|
|
4344
|
+
}
|
|
4345
|
+
|
|
4346
|
+
if (!$dara.isNull(request.sharedShrink)) {
|
|
4347
|
+
body["Shared"] = request.sharedShrink;
|
|
4348
|
+
}
|
|
4349
|
+
|
|
4350
|
+
if (!$dara.isNull(request.status)) {
|
|
4351
|
+
body["Status"] = request.status;
|
|
4352
|
+
}
|
|
4353
|
+
|
|
4354
|
+
let req = new $OpenApiUtil.OpenApiRequest({
|
|
4355
|
+
query: OpenApiUtil.query(query),
|
|
4356
|
+
body: OpenApiUtil.parseToMap(body),
|
|
4357
|
+
});
|
|
4358
|
+
let params = new $OpenApiUtil.Params({
|
|
4359
|
+
action: "CreateUserWafRuleset",
|
|
4360
|
+
version: "2024-09-10",
|
|
4361
|
+
protocol: "HTTPS",
|
|
4362
|
+
pathname: "/",
|
|
4363
|
+
method: "POST",
|
|
4364
|
+
authType: "AK",
|
|
4365
|
+
style: "RPC",
|
|
4366
|
+
reqBodyType: "formData",
|
|
4367
|
+
bodyType: "json",
|
|
4368
|
+
});
|
|
4369
|
+
return $dara.cast<$_model.CreateUserWafRulesetResponse>(await this.callApi(params, req, runtime), new $_model.CreateUserWafRulesetResponse({}));
|
|
4370
|
+
}
|
|
4371
|
+
|
|
4372
|
+
/**
|
|
4373
|
+
* 用于创建实例级别的Web应用防火墙规则集,支持多种类型的防护规则。
|
|
4374
|
+
*
|
|
4375
|
+
* @remarks
|
|
4376
|
+
* ## 请求说明
|
|
4377
|
+
* - 本API允许用户为指定实例创建新的WAF(Web Application Firewall)规则集。
|
|
4378
|
+
* - `InstanceId` 是必需参数,指定了要为其创建规则集的具体实例。
|
|
4379
|
+
* - `Phase` 参数定义了规则集的应用阶段,例如自定义规则、频次控制等。
|
|
4380
|
+
* - `Name` 和 `Expression` 是必填项,分别代表规则集的名字和具体的匹配表达式。
|
|
4381
|
+
* - 可选参数 `Description` 提供了对规则集功能或用途的文字描述。
|
|
4382
|
+
* - `Status` 控制着规则集是否立即生效 (`on`) 或者处于关闭状态 (`off`)。
|
|
4383
|
+
* - 通过 `Rules` 参数可以进一步配置更详细的规则列表,每个规则都包含名称、位置、表达式及动作等属性。
|
|
4384
|
+
* - 成功响应将返回新创建规则集的唯一标识符 `Id` 以及所有关联规则的ID列表 `RuleIds`。
|
|
4385
|
+
*
|
|
4386
|
+
* @param request - CreateUserWafRulesetRequest
|
|
4387
|
+
* @returns CreateUserWafRulesetResponse
|
|
4388
|
+
*/
|
|
4389
|
+
async createUserWafRuleset(request: $_model.CreateUserWafRulesetRequest): Promise<$_model.CreateUserWafRulesetResponse> {
|
|
4390
|
+
let runtime = new $dara.RuntimeOptions({ });
|
|
4391
|
+
return await this.createUserWafRulesetWithOptions(request, runtime);
|
|
4392
|
+
}
|
|
4393
|
+
|
|
4290
4394
|
/**
|
|
4291
4395
|
* Add video processing configurations for a website.
|
|
4292
4396
|
*
|
|
@@ -6799,6 +6903,76 @@ export default class Client extends OpenApi {
|
|
|
6799
6903
|
return await this.deleteUserDeliveryTaskWithOptions(request, runtime);
|
|
6800
6904
|
}
|
|
6801
6905
|
|
|
6906
|
+
/**
|
|
6907
|
+
* 用于删除实例级别的Web应用防火墙规则集。
|
|
6908
|
+
*
|
|
6909
|
+
* @remarks
|
|
6910
|
+
* ## 请求说明
|
|
6911
|
+
* - 本API允许用户为指定实例创建新的WAF(Web Application Firewall)规则集。
|
|
6912
|
+
* - `InstanceId` 是必需参数,指定了要为其创建规则集的具体实例。
|
|
6913
|
+
* - `Phase` 参数定义了规则集的应用阶段,例如自定义规则、频次控制等。
|
|
6914
|
+
* - `Name` 和 `Expression` 是必填项,分别代表规则集的名字和具体的匹配表达式。
|
|
6915
|
+
* - 可选参数 `Description` 提供了对规则集功能或用途的文字描述。
|
|
6916
|
+
* - `Status` 控制着规则集是否立即生效 (`on`) 或者处于关闭状态 (`off`)。
|
|
6917
|
+
* - 通过 `Rules` 参数可以进一步配置更详细的规则列表,每个规则都包含名称、位置、表达式及动作等属性。
|
|
6918
|
+
* - 成功响应将返回新创建规则集的唯一标识符 `Id` 以及所有关联规则的ID列表 `RuleIds`。
|
|
6919
|
+
*
|
|
6920
|
+
* @param request - DeleteUserWafRulesetRequest
|
|
6921
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
6922
|
+
* @returns DeleteUserWafRulesetResponse
|
|
6923
|
+
*/
|
|
6924
|
+
async deleteUserWafRulesetWithOptions(request: $_model.DeleteUserWafRulesetRequest, runtime: $dara.RuntimeOptions): Promise<$_model.DeleteUserWafRulesetResponse> {
|
|
6925
|
+
request.validate();
|
|
6926
|
+
let query = { };
|
|
6927
|
+
if (!$dara.isNull(request.instanceId)) {
|
|
6928
|
+
query["InstanceId"] = request.instanceId;
|
|
6929
|
+
}
|
|
6930
|
+
|
|
6931
|
+
let body : {[key: string ]: any} = { };
|
|
6932
|
+
if (!$dara.isNull(request.id)) {
|
|
6933
|
+
body["Id"] = request.id;
|
|
6934
|
+
}
|
|
6935
|
+
|
|
6936
|
+
let req = new $OpenApiUtil.OpenApiRequest({
|
|
6937
|
+
query: OpenApiUtil.query(query),
|
|
6938
|
+
body: OpenApiUtil.parseToMap(body),
|
|
6939
|
+
});
|
|
6940
|
+
let params = new $OpenApiUtil.Params({
|
|
6941
|
+
action: "DeleteUserWafRuleset",
|
|
6942
|
+
version: "2024-09-10",
|
|
6943
|
+
protocol: "HTTPS",
|
|
6944
|
+
pathname: "/",
|
|
6945
|
+
method: "POST",
|
|
6946
|
+
authType: "AK",
|
|
6947
|
+
style: "RPC",
|
|
6948
|
+
reqBodyType: "formData",
|
|
6949
|
+
bodyType: "json",
|
|
6950
|
+
});
|
|
6951
|
+
return $dara.cast<$_model.DeleteUserWafRulesetResponse>(await this.callApi(params, req, runtime), new $_model.DeleteUserWafRulesetResponse({}));
|
|
6952
|
+
}
|
|
6953
|
+
|
|
6954
|
+
/**
|
|
6955
|
+
* 用于删除实例级别的Web应用防火墙规则集。
|
|
6956
|
+
*
|
|
6957
|
+
* @remarks
|
|
6958
|
+
* ## 请求说明
|
|
6959
|
+
* - 本API允许用户为指定实例创建新的WAF(Web Application Firewall)规则集。
|
|
6960
|
+
* - `InstanceId` 是必需参数,指定了要为其创建规则集的具体实例。
|
|
6961
|
+
* - `Phase` 参数定义了规则集的应用阶段,例如自定义规则、频次控制等。
|
|
6962
|
+
* - `Name` 和 `Expression` 是必填项,分别代表规则集的名字和具体的匹配表达式。
|
|
6963
|
+
* - 可选参数 `Description` 提供了对规则集功能或用途的文字描述。
|
|
6964
|
+
* - `Status` 控制着规则集是否立即生效 (`on`) 或者处于关闭状态 (`off`)。
|
|
6965
|
+
* - 通过 `Rules` 参数可以进一步配置更详细的规则列表,每个规则都包含名称、位置、表达式及动作等属性。
|
|
6966
|
+
* - 成功响应将返回新创建规则集的唯一标识符 `Id` 以及所有关联规则的ID列表 `RuleIds`。
|
|
6967
|
+
*
|
|
6968
|
+
* @param request - DeleteUserWafRulesetRequest
|
|
6969
|
+
* @returns DeleteUserWafRulesetResponse
|
|
6970
|
+
*/
|
|
6971
|
+
async deleteUserWafRuleset(request: $_model.DeleteUserWafRulesetRequest): Promise<$_model.DeleteUserWafRulesetResponse> {
|
|
6972
|
+
let runtime = new $dara.RuntimeOptions({ });
|
|
6973
|
+
return await this.deleteUserWafRulesetWithOptions(request, runtime);
|
|
6974
|
+
}
|
|
6975
|
+
|
|
6802
6976
|
/**
|
|
6803
6977
|
* Deletes a video processing configuration.
|
|
6804
6978
|
*
|
|
@@ -9403,6 +9577,52 @@ export default class Client extends OpenApi {
|
|
|
9403
9577
|
return await this.getKvAccountWithOptions(runtime);
|
|
9404
9578
|
}
|
|
9405
9579
|
|
|
9580
|
+
/**
|
|
9581
|
+
* 查询Key-Value对的某个Key的详情
|
|
9582
|
+
*
|
|
9583
|
+
* @param request - GetKvDetailRequest
|
|
9584
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
9585
|
+
* @returns GetKvDetailResponse
|
|
9586
|
+
*/
|
|
9587
|
+
async getKvDetailWithOptions(request: $_model.GetKvDetailRequest, runtime: $dara.RuntimeOptions): Promise<$_model.GetKvDetailResponse> {
|
|
9588
|
+
request.validate();
|
|
9589
|
+
let query = { };
|
|
9590
|
+
if (!$dara.isNull(request.key)) {
|
|
9591
|
+
query["Key"] = request.key;
|
|
9592
|
+
}
|
|
9593
|
+
|
|
9594
|
+
if (!$dara.isNull(request.namespace)) {
|
|
9595
|
+
query["Namespace"] = request.namespace;
|
|
9596
|
+
}
|
|
9597
|
+
|
|
9598
|
+
let req = new $OpenApiUtil.OpenApiRequest({
|
|
9599
|
+
query: OpenApiUtil.query(query),
|
|
9600
|
+
});
|
|
9601
|
+
let params = new $OpenApiUtil.Params({
|
|
9602
|
+
action: "GetKvDetail",
|
|
9603
|
+
version: "2024-09-10",
|
|
9604
|
+
protocol: "HTTPS",
|
|
9605
|
+
pathname: "/",
|
|
9606
|
+
method: "POST",
|
|
9607
|
+
authType: "AK",
|
|
9608
|
+
style: "RPC",
|
|
9609
|
+
reqBodyType: "formData",
|
|
9610
|
+
bodyType: "json",
|
|
9611
|
+
});
|
|
9612
|
+
return $dara.cast<$_model.GetKvDetailResponse>(await this.callApi(params, req, runtime), new $_model.GetKvDetailResponse({}));
|
|
9613
|
+
}
|
|
9614
|
+
|
|
9615
|
+
/**
|
|
9616
|
+
* 查询Key-Value对的某个Key的详情
|
|
9617
|
+
*
|
|
9618
|
+
* @param request - GetKvDetailRequest
|
|
9619
|
+
* @returns GetKvDetailResponse
|
|
9620
|
+
*/
|
|
9621
|
+
async getKvDetail(request: $_model.GetKvDetailRequest): Promise<$_model.GetKvDetailResponse> {
|
|
9622
|
+
let runtime = new $dara.RuntimeOptions({ });
|
|
9623
|
+
return await this.getKvDetailWithOptions(request, runtime);
|
|
9624
|
+
}
|
|
9625
|
+
|
|
9406
9626
|
/**
|
|
9407
9627
|
* Queries the information about a namespace in your Alibaba Cloud account.
|
|
9408
9628
|
*
|
|
@@ -10105,6 +10325,48 @@ export default class Client extends OpenApi {
|
|
|
10105
10325
|
return await this.getRoutineWithOptions(request, runtime);
|
|
10106
10326
|
}
|
|
10107
10327
|
|
|
10328
|
+
/**
|
|
10329
|
+
* 查询Routine默认访问记录访问鉴权token
|
|
10330
|
+
*
|
|
10331
|
+
* @param request - GetRoutineAccessTokenRequest
|
|
10332
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
10333
|
+
* @returns GetRoutineAccessTokenResponse
|
|
10334
|
+
*/
|
|
10335
|
+
async getRoutineAccessTokenWithOptions(request: $_model.GetRoutineAccessTokenRequest, runtime: $dara.RuntimeOptions): Promise<$_model.GetRoutineAccessTokenResponse> {
|
|
10336
|
+
request.validate();
|
|
10337
|
+
let body : {[key: string ]: any} = { };
|
|
10338
|
+
if (!$dara.isNull(request.name)) {
|
|
10339
|
+
body["Name"] = request.name;
|
|
10340
|
+
}
|
|
10341
|
+
|
|
10342
|
+
let req = new $OpenApiUtil.OpenApiRequest({
|
|
10343
|
+
body: OpenApiUtil.parseToMap(body),
|
|
10344
|
+
});
|
|
10345
|
+
let params = new $OpenApiUtil.Params({
|
|
10346
|
+
action: "GetRoutineAccessToken",
|
|
10347
|
+
version: "2024-09-10",
|
|
10348
|
+
protocol: "HTTPS",
|
|
10349
|
+
pathname: "/",
|
|
10350
|
+
method: "POST",
|
|
10351
|
+
authType: "AK",
|
|
10352
|
+
style: "RPC",
|
|
10353
|
+
reqBodyType: "formData",
|
|
10354
|
+
bodyType: "json",
|
|
10355
|
+
});
|
|
10356
|
+
return $dara.cast<$_model.GetRoutineAccessTokenResponse>(await this.callApi(params, req, runtime), new $_model.GetRoutineAccessTokenResponse({}));
|
|
10357
|
+
}
|
|
10358
|
+
|
|
10359
|
+
/**
|
|
10360
|
+
* 查询Routine默认访问记录访问鉴权token
|
|
10361
|
+
*
|
|
10362
|
+
* @param request - GetRoutineAccessTokenRequest
|
|
10363
|
+
* @returns GetRoutineAccessTokenResponse
|
|
10364
|
+
*/
|
|
10365
|
+
async getRoutineAccessToken(request: $_model.GetRoutineAccessTokenRequest): Promise<$_model.GetRoutineAccessTokenResponse> {
|
|
10366
|
+
let runtime = new $dara.RuntimeOptions({ });
|
|
10367
|
+
return await this.getRoutineAccessTokenWithOptions(request, runtime);
|
|
10368
|
+
}
|
|
10369
|
+
|
|
10108
10370
|
/**
|
|
10109
10371
|
* Queries information about a code version of a routine.
|
|
10110
10372
|
*
|
|
@@ -10979,6 +11241,52 @@ export default class Client extends OpenApi {
|
|
|
10979
11241
|
return await this.getUserLogDeliveryQuotaWithOptions(request, runtime);
|
|
10980
11242
|
}
|
|
10981
11243
|
|
|
11244
|
+
/**
|
|
11245
|
+
* 用于获取实例级别的Web应用防火墙规则集详情
|
|
11246
|
+
*
|
|
11247
|
+
* @param request - GetUserWafRulesetRequest
|
|
11248
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
11249
|
+
* @returns GetUserWafRulesetResponse
|
|
11250
|
+
*/
|
|
11251
|
+
async getUserWafRulesetWithOptions(request: $_model.GetUserWafRulesetRequest, runtime: $dara.RuntimeOptions): Promise<$_model.GetUserWafRulesetResponse> {
|
|
11252
|
+
request.validate();
|
|
11253
|
+
let query = { };
|
|
11254
|
+
if (!$dara.isNull(request.id)) {
|
|
11255
|
+
query["Id"] = request.id;
|
|
11256
|
+
}
|
|
11257
|
+
|
|
11258
|
+
if (!$dara.isNull(request.instanceId)) {
|
|
11259
|
+
query["InstanceId"] = request.instanceId;
|
|
11260
|
+
}
|
|
11261
|
+
|
|
11262
|
+
let req = new $OpenApiUtil.OpenApiRequest({
|
|
11263
|
+
query: OpenApiUtil.query(query),
|
|
11264
|
+
});
|
|
11265
|
+
let params = new $OpenApiUtil.Params({
|
|
11266
|
+
action: "GetUserWafRuleset",
|
|
11267
|
+
version: "2024-09-10",
|
|
11268
|
+
protocol: "HTTPS",
|
|
11269
|
+
pathname: "/",
|
|
11270
|
+
method: "POST",
|
|
11271
|
+
authType: "AK",
|
|
11272
|
+
style: "RPC",
|
|
11273
|
+
reqBodyType: "formData",
|
|
11274
|
+
bodyType: "json",
|
|
11275
|
+
});
|
|
11276
|
+
return $dara.cast<$_model.GetUserWafRulesetResponse>(await this.callApi(params, req, runtime), new $_model.GetUserWafRulesetResponse({}));
|
|
11277
|
+
}
|
|
11278
|
+
|
|
11279
|
+
/**
|
|
11280
|
+
* 用于获取实例级别的Web应用防火墙规则集详情
|
|
11281
|
+
*
|
|
11282
|
+
* @param request - GetUserWafRulesetRequest
|
|
11283
|
+
* @returns GetUserWafRulesetResponse
|
|
11284
|
+
*/
|
|
11285
|
+
async getUserWafRuleset(request: $_model.GetUserWafRulesetRequest): Promise<$_model.GetUserWafRulesetResponse> {
|
|
11286
|
+
let runtime = new $dara.RuntimeOptions({ });
|
|
11287
|
+
return await this.getUserWafRulesetWithOptions(request, runtime);
|
|
11288
|
+
}
|
|
11289
|
+
|
|
10982
11290
|
/**
|
|
10983
11291
|
* Queries the video processing configuration details of a site.
|
|
10984
11292
|
*
|
|
@@ -13631,6 +13939,70 @@ export default class Client extends OpenApi {
|
|
|
13631
13939
|
return await this.listUserRoutinesWithOptions(request, runtime);
|
|
13632
13940
|
}
|
|
13633
13941
|
|
|
13942
|
+
/**
|
|
13943
|
+
* 用于列举实例级别的Web应用防火墙规则集。
|
|
13944
|
+
*
|
|
13945
|
+
* @param tmpReq - ListUserWafRulesetsRequest
|
|
13946
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
13947
|
+
* @returns ListUserWafRulesetsResponse
|
|
13948
|
+
*/
|
|
13949
|
+
async listUserWafRulesetsWithOptions(tmpReq: $_model.ListUserWafRulesetsRequest, runtime: $dara.RuntimeOptions): Promise<$_model.ListUserWafRulesetsResponse> {
|
|
13950
|
+
tmpReq.validate();
|
|
13951
|
+
let request = new $_model.ListUserWafRulesetsShrinkRequest({ });
|
|
13952
|
+
OpenApiUtil.convert(tmpReq, request);
|
|
13953
|
+
if (!$dara.isNull(tmpReq.queryArgs)) {
|
|
13954
|
+
request.queryArgsShrink = OpenApiUtil.arrayToStringWithSpecifiedStyle(tmpReq.queryArgs, "QueryArgs", "json");
|
|
13955
|
+
}
|
|
13956
|
+
|
|
13957
|
+
let query = { };
|
|
13958
|
+
if (!$dara.isNull(request.instanceId)) {
|
|
13959
|
+
query["InstanceId"] = request.instanceId;
|
|
13960
|
+
}
|
|
13961
|
+
|
|
13962
|
+
if (!$dara.isNull(request.pageNumber)) {
|
|
13963
|
+
query["PageNumber"] = request.pageNumber;
|
|
13964
|
+
}
|
|
13965
|
+
|
|
13966
|
+
if (!$dara.isNull(request.pageSize)) {
|
|
13967
|
+
query["PageSize"] = request.pageSize;
|
|
13968
|
+
}
|
|
13969
|
+
|
|
13970
|
+
if (!$dara.isNull(request.phase)) {
|
|
13971
|
+
query["Phase"] = request.phase;
|
|
13972
|
+
}
|
|
13973
|
+
|
|
13974
|
+
if (!$dara.isNull(request.queryArgsShrink)) {
|
|
13975
|
+
query["QueryArgs"] = request.queryArgsShrink;
|
|
13976
|
+
}
|
|
13977
|
+
|
|
13978
|
+
let req = new $OpenApiUtil.OpenApiRequest({
|
|
13979
|
+
query: OpenApiUtil.query(query),
|
|
13980
|
+
});
|
|
13981
|
+
let params = new $OpenApiUtil.Params({
|
|
13982
|
+
action: "ListUserWafRulesets",
|
|
13983
|
+
version: "2024-09-10",
|
|
13984
|
+
protocol: "HTTPS",
|
|
13985
|
+
pathname: "/",
|
|
13986
|
+
method: "POST",
|
|
13987
|
+
authType: "AK",
|
|
13988
|
+
style: "RPC",
|
|
13989
|
+
reqBodyType: "formData",
|
|
13990
|
+
bodyType: "json",
|
|
13991
|
+
});
|
|
13992
|
+
return $dara.cast<$_model.ListUserWafRulesetsResponse>(await this.callApi(params, req, runtime), new $_model.ListUserWafRulesetsResponse({}));
|
|
13993
|
+
}
|
|
13994
|
+
|
|
13995
|
+
/**
|
|
13996
|
+
* 用于列举实例级别的Web应用防火墙规则集。
|
|
13997
|
+
*
|
|
13998
|
+
* @param request - ListUserWafRulesetsRequest
|
|
13999
|
+
* @returns ListUserWafRulesetsResponse
|
|
14000
|
+
*/
|
|
14001
|
+
async listUserWafRulesets(request: $_model.ListUserWafRulesetsRequest): Promise<$_model.ListUserWafRulesetsResponse> {
|
|
14002
|
+
let runtime = new $dara.RuntimeOptions({ });
|
|
14003
|
+
return await this.listUserWafRulesetsWithOptions(request, runtime);
|
|
14004
|
+
}
|
|
14005
|
+
|
|
13634
14006
|
/**
|
|
13635
14007
|
* Queries the video processing configurations of a site.
|
|
13636
14008
|
*
|
|
@@ -18897,6 +19269,114 @@ export default class Client extends OpenApi {
|
|
|
18897
19269
|
return await this.updateUserDeliveryTaskStatusWithOptions(request, runtime);
|
|
18898
19270
|
}
|
|
18899
19271
|
|
|
19272
|
+
/**
|
|
19273
|
+
* 用于更新实例级别的Web应用防火墙规则集,支持多种类型的防护规则。
|
|
19274
|
+
*
|
|
19275
|
+
* @remarks
|
|
19276
|
+
* ## 请求说明
|
|
19277
|
+
* - 本API允许用户为指定实例创建新的WAF(Web Application Firewall)规则集。
|
|
19278
|
+
* - `InstanceId` 是必需参数,指定了要为其创建规则集的具体实例。
|
|
19279
|
+
* - `Phase` 参数定义了规则集的应用阶段,例如自定义规则、频次控制等。
|
|
19280
|
+
* - `Name` 和 `Expression` 是必填项,分别代表规则集的名字和具体的匹配表达式。
|
|
19281
|
+
* - 可选参数 `Description` 提供了对规则集功能或用途的文字描述。
|
|
19282
|
+
* - `Status` 控制着规则集是否立即生效 (`on`) 或者处于关闭状态 (`off`)。
|
|
19283
|
+
* - 通过 `Rules` 参数可以进一步配置更详细的规则列表,每个规则都包含名称、位置、表达式及动作等属性。
|
|
19284
|
+
* - 成功响应将返回新创建规则集的唯一标识符 `Id` 以及所有关联规则的ID列表 `RuleIds`。
|
|
19285
|
+
*
|
|
19286
|
+
* @param tmpReq - UpdateUserWafRulesetRequest
|
|
19287
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
19288
|
+
* @returns UpdateUserWafRulesetResponse
|
|
19289
|
+
*/
|
|
19290
|
+
async updateUserWafRulesetWithOptions(tmpReq: $_model.UpdateUserWafRulesetRequest, runtime: $dara.RuntimeOptions): Promise<$_model.UpdateUserWafRulesetResponse> {
|
|
19291
|
+
tmpReq.validate();
|
|
19292
|
+
let request = new $_model.UpdateUserWafRulesetShrinkRequest({ });
|
|
19293
|
+
OpenApiUtil.convert(tmpReq, request);
|
|
19294
|
+
if (!$dara.isNull(tmpReq.rules)) {
|
|
19295
|
+
request.rulesShrink = OpenApiUtil.arrayToStringWithSpecifiedStyle(tmpReq.rules, "Rules", "json");
|
|
19296
|
+
}
|
|
19297
|
+
|
|
19298
|
+
if (!$dara.isNull(tmpReq.shared)) {
|
|
19299
|
+
request.sharedShrink = OpenApiUtil.arrayToStringWithSpecifiedStyle(tmpReq.shared, "Shared", "json");
|
|
19300
|
+
}
|
|
19301
|
+
|
|
19302
|
+
let query = { };
|
|
19303
|
+
if (!$dara.isNull(request.instanceId)) {
|
|
19304
|
+
query["InstanceId"] = request.instanceId;
|
|
19305
|
+
}
|
|
19306
|
+
|
|
19307
|
+
let body : {[key: string ]: any} = { };
|
|
19308
|
+
if (!$dara.isNull(request.description)) {
|
|
19309
|
+
body["Description"] = request.description;
|
|
19310
|
+
}
|
|
19311
|
+
|
|
19312
|
+
if (!$dara.isNull(request.expression)) {
|
|
19313
|
+
body["Expression"] = request.expression;
|
|
19314
|
+
}
|
|
19315
|
+
|
|
19316
|
+
if (!$dara.isNull(request.id)) {
|
|
19317
|
+
body["Id"] = request.id;
|
|
19318
|
+
}
|
|
19319
|
+
|
|
19320
|
+
if (!$dara.isNull(request.name)) {
|
|
19321
|
+
body["Name"] = request.name;
|
|
19322
|
+
}
|
|
19323
|
+
|
|
19324
|
+
if (!$dara.isNull(request.position)) {
|
|
19325
|
+
body["Position"] = request.position;
|
|
19326
|
+
}
|
|
19327
|
+
|
|
19328
|
+
if (!$dara.isNull(request.rulesShrink)) {
|
|
19329
|
+
body["Rules"] = request.rulesShrink;
|
|
19330
|
+
}
|
|
19331
|
+
|
|
19332
|
+
if (!$dara.isNull(request.sharedShrink)) {
|
|
19333
|
+
body["Shared"] = request.sharedShrink;
|
|
19334
|
+
}
|
|
19335
|
+
|
|
19336
|
+
if (!$dara.isNull(request.status)) {
|
|
19337
|
+
body["Status"] = request.status;
|
|
19338
|
+
}
|
|
19339
|
+
|
|
19340
|
+
let req = new $OpenApiUtil.OpenApiRequest({
|
|
19341
|
+
query: OpenApiUtil.query(query),
|
|
19342
|
+
body: OpenApiUtil.parseToMap(body),
|
|
19343
|
+
});
|
|
19344
|
+
let params = new $OpenApiUtil.Params({
|
|
19345
|
+
action: "UpdateUserWafRuleset",
|
|
19346
|
+
version: "2024-09-10",
|
|
19347
|
+
protocol: "HTTPS",
|
|
19348
|
+
pathname: "/",
|
|
19349
|
+
method: "POST",
|
|
19350
|
+
authType: "AK",
|
|
19351
|
+
style: "RPC",
|
|
19352
|
+
reqBodyType: "formData",
|
|
19353
|
+
bodyType: "json",
|
|
19354
|
+
});
|
|
19355
|
+
return $dara.cast<$_model.UpdateUserWafRulesetResponse>(await this.callApi(params, req, runtime), new $_model.UpdateUserWafRulesetResponse({}));
|
|
19356
|
+
}
|
|
19357
|
+
|
|
19358
|
+
/**
|
|
19359
|
+
* 用于更新实例级别的Web应用防火墙规则集,支持多种类型的防护规则。
|
|
19360
|
+
*
|
|
19361
|
+
* @remarks
|
|
19362
|
+
* ## 请求说明
|
|
19363
|
+
* - 本API允许用户为指定实例创建新的WAF(Web Application Firewall)规则集。
|
|
19364
|
+
* - `InstanceId` 是必需参数,指定了要为其创建规则集的具体实例。
|
|
19365
|
+
* - `Phase` 参数定义了规则集的应用阶段,例如自定义规则、频次控制等。
|
|
19366
|
+
* - `Name` 和 `Expression` 是必填项,分别代表规则集的名字和具体的匹配表达式。
|
|
19367
|
+
* - 可选参数 `Description` 提供了对规则集功能或用途的文字描述。
|
|
19368
|
+
* - `Status` 控制着规则集是否立即生效 (`on`) 或者处于关闭状态 (`off`)。
|
|
19369
|
+
* - 通过 `Rules` 参数可以进一步配置更详细的规则列表,每个规则都包含名称、位置、表达式及动作等属性。
|
|
19370
|
+
* - 成功响应将返回新创建规则集的唯一标识符 `Id` 以及所有关联规则的ID列表 `RuleIds`。
|
|
19371
|
+
*
|
|
19372
|
+
* @param request - UpdateUserWafRulesetRequest
|
|
19373
|
+
* @returns UpdateUserWafRulesetResponse
|
|
19374
|
+
*/
|
|
19375
|
+
async updateUserWafRuleset(request: $_model.UpdateUserWafRulesetRequest): Promise<$_model.UpdateUserWafRulesetResponse> {
|
|
19376
|
+
let runtime = new $dara.RuntimeOptions({ });
|
|
19377
|
+
return await this.updateUserWafRulesetWithOptions(request, runtime);
|
|
19378
|
+
}
|
|
19379
|
+
|
|
18900
19380
|
/**
|
|
18901
19381
|
* Modifies the video processing configuration of the site.
|
|
18902
19382
|
*
|
|
@@ -0,0 +1,95 @@
|
|
|
1
|
+
// This file is auto-generated, don't edit it
|
|
2
|
+
import * as $dara from '@darabonba/typescript';
|
|
3
|
+
import { WafRuleConfig } from "./WafRuleConfig";
|
|
4
|
+
import { WafBatchRuleShared } from "./WafBatchRuleShared";
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
export class CreateUserWafRulesetRequest extends $dara.Model {
|
|
8
|
+
/**
|
|
9
|
+
* @example
|
|
10
|
+
* this is a test ruleset.
|
|
11
|
+
*/
|
|
12
|
+
description?: string;
|
|
13
|
+
/**
|
|
14
|
+
* @remarks
|
|
15
|
+
* This parameter is required.
|
|
16
|
+
*
|
|
17
|
+
* @example
|
|
18
|
+
* ip.src == 1.1.1.1
|
|
19
|
+
*/
|
|
20
|
+
expression?: string;
|
|
21
|
+
/**
|
|
22
|
+
* @remarks
|
|
23
|
+
* This parameter is required.
|
|
24
|
+
*
|
|
25
|
+
* @example
|
|
26
|
+
* esa-site-ads11w
|
|
27
|
+
*/
|
|
28
|
+
instanceId?: string;
|
|
29
|
+
/**
|
|
30
|
+
* @remarks
|
|
31
|
+
* This parameter is required.
|
|
32
|
+
*
|
|
33
|
+
* @example
|
|
34
|
+
* example
|
|
35
|
+
*/
|
|
36
|
+
name?: string;
|
|
37
|
+
/**
|
|
38
|
+
* @remarks
|
|
39
|
+
* This parameter is required.
|
|
40
|
+
*
|
|
41
|
+
* @example
|
|
42
|
+
* http_custom
|
|
43
|
+
*/
|
|
44
|
+
phase?: string;
|
|
45
|
+
rules?: WafRuleConfig[];
|
|
46
|
+
shared?: WafBatchRuleShared;
|
|
47
|
+
/**
|
|
48
|
+
* @remarks
|
|
49
|
+
* This parameter is required.
|
|
50
|
+
*
|
|
51
|
+
* @example
|
|
52
|
+
* on
|
|
53
|
+
*/
|
|
54
|
+
status?: string;
|
|
55
|
+
static names(): { [key: string]: string } {
|
|
56
|
+
return {
|
|
57
|
+
description: 'Description',
|
|
58
|
+
expression: 'Expression',
|
|
59
|
+
instanceId: 'InstanceId',
|
|
60
|
+
name: 'Name',
|
|
61
|
+
phase: 'Phase',
|
|
62
|
+
rules: 'Rules',
|
|
63
|
+
shared: 'Shared',
|
|
64
|
+
status: 'Status',
|
|
65
|
+
};
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
static types(): { [key: string]: any } {
|
|
69
|
+
return {
|
|
70
|
+
description: 'string',
|
|
71
|
+
expression: 'string',
|
|
72
|
+
instanceId: 'string',
|
|
73
|
+
name: 'string',
|
|
74
|
+
phase: 'string',
|
|
75
|
+
rules: { 'type': 'array', 'itemType': WafRuleConfig },
|
|
76
|
+
shared: WafBatchRuleShared,
|
|
77
|
+
status: 'string',
|
|
78
|
+
};
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
validate() {
|
|
82
|
+
if(Array.isArray(this.rules)) {
|
|
83
|
+
$dara.Model.validateArray(this.rules);
|
|
84
|
+
}
|
|
85
|
+
if(this.shared && typeof (this.shared as any).validate === 'function') {
|
|
86
|
+
(this.shared as any).validate();
|
|
87
|
+
}
|
|
88
|
+
super.validate();
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
constructor(map?: { [key: string]: any }) {
|
|
92
|
+
super(map);
|
|
93
|
+
}
|
|
94
|
+
}
|
|
95
|
+
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
// This file is auto-generated, don't edit it
|
|
2
|
+
import * as $dara from '@darabonba/typescript';
|
|
3
|
+
import { CreateUserWafRulesetResponseBody } from "./CreateUserWafRulesetResponseBody";
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
export class CreateUserWafRulesetResponse extends $dara.Model {
|
|
7
|
+
headers?: { [key: string]: string };
|
|
8
|
+
statusCode?: number;
|
|
9
|
+
body?: CreateUserWafRulesetResponseBody;
|
|
10
|
+
static names(): { [key: string]: string } {
|
|
11
|
+
return {
|
|
12
|
+
headers: 'headers',
|
|
13
|
+
statusCode: 'statusCode',
|
|
14
|
+
body: 'body',
|
|
15
|
+
};
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
static types(): { [key: string]: any } {
|
|
19
|
+
return {
|
|
20
|
+
headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
|
|
21
|
+
statusCode: 'number',
|
|
22
|
+
body: CreateUserWafRulesetResponseBody,
|
|
23
|
+
};
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
validate() {
|
|
27
|
+
if(this.headers) {
|
|
28
|
+
$dara.Model.validateMap(this.headers);
|
|
29
|
+
}
|
|
30
|
+
if(this.body && typeof (this.body as any).validate === 'function') {
|
|
31
|
+
(this.body as any).validate();
|
|
32
|
+
}
|
|
33
|
+
super.validate();
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
constructor(map?: { [key: string]: any }) {
|
|
37
|
+
super(map);
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
|