@alicloud/esa20240910 2.37.0 → 2.38.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 +156 -0
- package/dist/client.js +390 -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/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 +25 -0
- package/dist/models/model.js +77 -27
- package/dist/models/model.js.map +1 -1
- package/package.json +1 -1
- package/src/client.ts +434 -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/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 +25 -0
package/dist/client.d.ts
CHANGED
|
@@ -1100,6 +1100,43 @@ export default class Client extends OpenApi {
|
|
|
1100
1100
|
* @returns CreateUserDeliveryTaskResponse
|
|
1101
1101
|
*/
|
|
1102
1102
|
createUserDeliveryTask(request: $_model.CreateUserDeliveryTaskRequest): Promise<$_model.CreateUserDeliveryTaskResponse>;
|
|
1103
|
+
/**
|
|
1104
|
+
* 用于创建实例级别的Web应用防火墙规则集,支持多种类型的防护规则。
|
|
1105
|
+
*
|
|
1106
|
+
* @remarks
|
|
1107
|
+
* ## 请求说明
|
|
1108
|
+
* - 本API允许用户为指定实例创建新的WAF(Web Application Firewall)规则集。
|
|
1109
|
+
* - `InstanceId` 是必需参数,指定了要为其创建规则集的具体实例。
|
|
1110
|
+
* - `Phase` 参数定义了规则集的应用阶段,例如自定义规则、频次控制等。
|
|
1111
|
+
* - `Name` 和 `Expression` 是必填项,分别代表规则集的名字和具体的匹配表达式。
|
|
1112
|
+
* - 可选参数 `Description` 提供了对规则集功能或用途的文字描述。
|
|
1113
|
+
* - `Status` 控制着规则集是否立即生效 (`on`) 或者处于关闭状态 (`off`)。
|
|
1114
|
+
* - 通过 `Rules` 参数可以进一步配置更详细的规则列表,每个规则都包含名称、位置、表达式及动作等属性。
|
|
1115
|
+
* - 成功响应将返回新创建规则集的唯一标识符 `Id` 以及所有关联规则的ID列表 `RuleIds`。
|
|
1116
|
+
*
|
|
1117
|
+
* @param tmpReq - CreateUserWafRulesetRequest
|
|
1118
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
1119
|
+
* @returns CreateUserWafRulesetResponse
|
|
1120
|
+
*/
|
|
1121
|
+
createUserWafRulesetWithOptions(tmpReq: $_model.CreateUserWafRulesetRequest, runtime: $dara.RuntimeOptions): Promise<$_model.CreateUserWafRulesetResponse>;
|
|
1122
|
+
/**
|
|
1123
|
+
* 用于创建实例级别的Web应用防火墙规则集,支持多种类型的防护规则。
|
|
1124
|
+
*
|
|
1125
|
+
* @remarks
|
|
1126
|
+
* ## 请求说明
|
|
1127
|
+
* - 本API允许用户为指定实例创建新的WAF(Web Application Firewall)规则集。
|
|
1128
|
+
* - `InstanceId` 是必需参数,指定了要为其创建规则集的具体实例。
|
|
1129
|
+
* - `Phase` 参数定义了规则集的应用阶段,例如自定义规则、频次控制等。
|
|
1130
|
+
* - `Name` 和 `Expression` 是必填项,分别代表规则集的名字和具体的匹配表达式。
|
|
1131
|
+
* - 可选参数 `Description` 提供了对规则集功能或用途的文字描述。
|
|
1132
|
+
* - `Status` 控制着规则集是否立即生效 (`on`) 或者处于关闭状态 (`off`)。
|
|
1133
|
+
* - 通过 `Rules` 参数可以进一步配置更详细的规则列表,每个规则都包含名称、位置、表达式及动作等属性。
|
|
1134
|
+
* - 成功响应将返回新创建规则集的唯一标识符 `Id` 以及所有关联规则的ID列表 `RuleIds`。
|
|
1135
|
+
*
|
|
1136
|
+
* @param request - CreateUserWafRulesetRequest
|
|
1137
|
+
* @returns CreateUserWafRulesetResponse
|
|
1138
|
+
*/
|
|
1139
|
+
createUserWafRuleset(request: $_model.CreateUserWafRulesetRequest): Promise<$_model.CreateUserWafRulesetResponse>;
|
|
1103
1140
|
/**
|
|
1104
1141
|
* Add video processing configurations for a website.
|
|
1105
1142
|
*
|
|
@@ -1889,6 +1926,43 @@ export default class Client extends OpenApi {
|
|
|
1889
1926
|
* @returns DeleteUserDeliveryTaskResponse
|
|
1890
1927
|
*/
|
|
1891
1928
|
deleteUserDeliveryTask(request: $_model.DeleteUserDeliveryTaskRequest): Promise<$_model.DeleteUserDeliveryTaskResponse>;
|
|
1929
|
+
/**
|
|
1930
|
+
* 用于删除实例级别的Web应用防火墙规则集。
|
|
1931
|
+
*
|
|
1932
|
+
* @remarks
|
|
1933
|
+
* ## 请求说明
|
|
1934
|
+
* - 本API允许用户为指定实例创建新的WAF(Web Application Firewall)规则集。
|
|
1935
|
+
* - `InstanceId` 是必需参数,指定了要为其创建规则集的具体实例。
|
|
1936
|
+
* - `Phase` 参数定义了规则集的应用阶段,例如自定义规则、频次控制等。
|
|
1937
|
+
* - `Name` 和 `Expression` 是必填项,分别代表规则集的名字和具体的匹配表达式。
|
|
1938
|
+
* - 可选参数 `Description` 提供了对规则集功能或用途的文字描述。
|
|
1939
|
+
* - `Status` 控制着规则集是否立即生效 (`on`) 或者处于关闭状态 (`off`)。
|
|
1940
|
+
* - 通过 `Rules` 参数可以进一步配置更详细的规则列表,每个规则都包含名称、位置、表达式及动作等属性。
|
|
1941
|
+
* - 成功响应将返回新创建规则集的唯一标识符 `Id` 以及所有关联规则的ID列表 `RuleIds`。
|
|
1942
|
+
*
|
|
1943
|
+
* @param request - DeleteUserWafRulesetRequest
|
|
1944
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
1945
|
+
* @returns DeleteUserWafRulesetResponse
|
|
1946
|
+
*/
|
|
1947
|
+
deleteUserWafRulesetWithOptions(request: $_model.DeleteUserWafRulesetRequest, runtime: $dara.RuntimeOptions): Promise<$_model.DeleteUserWafRulesetResponse>;
|
|
1948
|
+
/**
|
|
1949
|
+
* 用于删除实例级别的Web应用防火墙规则集。
|
|
1950
|
+
*
|
|
1951
|
+
* @remarks
|
|
1952
|
+
* ## 请求说明
|
|
1953
|
+
* - 本API允许用户为指定实例创建新的WAF(Web Application Firewall)规则集。
|
|
1954
|
+
* - `InstanceId` 是必需参数,指定了要为其创建规则集的具体实例。
|
|
1955
|
+
* - `Phase` 参数定义了规则集的应用阶段,例如自定义规则、频次控制等。
|
|
1956
|
+
* - `Name` 和 `Expression` 是必填项,分别代表规则集的名字和具体的匹配表达式。
|
|
1957
|
+
* - 可选参数 `Description` 提供了对规则集功能或用途的文字描述。
|
|
1958
|
+
* - `Status` 控制着规则集是否立即生效 (`on`) 或者处于关闭状态 (`off`)。
|
|
1959
|
+
* - 通过 `Rules` 参数可以进一步配置更详细的规则列表,每个规则都包含名称、位置、表达式及动作等属性。
|
|
1960
|
+
* - 成功响应将返回新创建规则集的唯一标识符 `Id` 以及所有关联规则的ID列表 `RuleIds`。
|
|
1961
|
+
*
|
|
1962
|
+
* @param request - DeleteUserWafRulesetRequest
|
|
1963
|
+
* @returns DeleteUserWafRulesetResponse
|
|
1964
|
+
*/
|
|
1965
|
+
deleteUserWafRuleset(request: $_model.DeleteUserWafRulesetRequest): Promise<$_model.DeleteUserWafRulesetResponse>;
|
|
1892
1966
|
/**
|
|
1893
1967
|
* Deletes a video processing configuration.
|
|
1894
1968
|
*
|
|
@@ -3109,6 +3183,21 @@ export default class Client extends OpenApi {
|
|
|
3109
3183
|
* @returns GetRoutineResponse
|
|
3110
3184
|
*/
|
|
3111
3185
|
getRoutine(request: $_model.GetRoutineRequest): Promise<$_model.GetRoutineResponse>;
|
|
3186
|
+
/**
|
|
3187
|
+
* 查询Routine默认访问记录访问鉴权token
|
|
3188
|
+
*
|
|
3189
|
+
* @param request - GetRoutineAccessTokenRequest
|
|
3190
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
3191
|
+
* @returns GetRoutineAccessTokenResponse
|
|
3192
|
+
*/
|
|
3193
|
+
getRoutineAccessTokenWithOptions(request: $_model.GetRoutineAccessTokenRequest, runtime: $dara.RuntimeOptions): Promise<$_model.GetRoutineAccessTokenResponse>;
|
|
3194
|
+
/**
|
|
3195
|
+
* 查询Routine默认访问记录访问鉴权token
|
|
3196
|
+
*
|
|
3197
|
+
* @param request - GetRoutineAccessTokenRequest
|
|
3198
|
+
* @returns GetRoutineAccessTokenResponse
|
|
3199
|
+
*/
|
|
3200
|
+
getRoutineAccessToken(request: $_model.GetRoutineAccessTokenRequest): Promise<$_model.GetRoutineAccessTokenResponse>;
|
|
3112
3201
|
/**
|
|
3113
3202
|
* Queries information about a code version of a routine.
|
|
3114
3203
|
*
|
|
@@ -3472,6 +3561,21 @@ export default class Client extends OpenApi {
|
|
|
3472
3561
|
* @returns GetUserLogDeliveryQuotaResponse
|
|
3473
3562
|
*/
|
|
3474
3563
|
getUserLogDeliveryQuota(request: $_model.GetUserLogDeliveryQuotaRequest): Promise<$_model.GetUserLogDeliveryQuotaResponse>;
|
|
3564
|
+
/**
|
|
3565
|
+
* 用于获取实例级别的Web应用防火墙规则集详情
|
|
3566
|
+
*
|
|
3567
|
+
* @param request - GetUserWafRulesetRequest
|
|
3568
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
3569
|
+
* @returns GetUserWafRulesetResponse
|
|
3570
|
+
*/
|
|
3571
|
+
getUserWafRulesetWithOptions(request: $_model.GetUserWafRulesetRequest, runtime: $dara.RuntimeOptions): Promise<$_model.GetUserWafRulesetResponse>;
|
|
3572
|
+
/**
|
|
3573
|
+
* 用于获取实例级别的Web应用防火墙规则集详情
|
|
3574
|
+
*
|
|
3575
|
+
* @param request - GetUserWafRulesetRequest
|
|
3576
|
+
* @returns GetUserWafRulesetResponse
|
|
3577
|
+
*/
|
|
3578
|
+
getUserWafRuleset(request: $_model.GetUserWafRulesetRequest): Promise<$_model.GetUserWafRulesetResponse>;
|
|
3475
3579
|
/**
|
|
3476
3580
|
* Queries the video processing configuration details of a site.
|
|
3477
3581
|
*
|
|
@@ -4456,6 +4560,21 @@ export default class Client extends OpenApi {
|
|
|
4456
4560
|
* @returns ListUserRoutinesResponse
|
|
4457
4561
|
*/
|
|
4458
4562
|
listUserRoutines(request: $_model.ListUserRoutinesRequest): Promise<$_model.ListUserRoutinesResponse>;
|
|
4563
|
+
/**
|
|
4564
|
+
* 用于列举实例级别的Web应用防火墙规则集。
|
|
4565
|
+
*
|
|
4566
|
+
* @param tmpReq - ListUserWafRulesetsRequest
|
|
4567
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
4568
|
+
* @returns ListUserWafRulesetsResponse
|
|
4569
|
+
*/
|
|
4570
|
+
listUserWafRulesetsWithOptions(tmpReq: $_model.ListUserWafRulesetsRequest, runtime: $dara.RuntimeOptions): Promise<$_model.ListUserWafRulesetsResponse>;
|
|
4571
|
+
/**
|
|
4572
|
+
* 用于列举实例级别的Web应用防火墙规则集。
|
|
4573
|
+
*
|
|
4574
|
+
* @param request - ListUserWafRulesetsRequest
|
|
4575
|
+
* @returns ListUserWafRulesetsResponse
|
|
4576
|
+
*/
|
|
4577
|
+
listUserWafRulesets(request: $_model.ListUserWafRulesetsRequest): Promise<$_model.ListUserWafRulesetsResponse>;
|
|
4459
4578
|
/**
|
|
4460
4579
|
* Queries the video processing configurations of a site.
|
|
4461
4580
|
*
|
|
@@ -5831,6 +5950,43 @@ export default class Client extends OpenApi {
|
|
|
5831
5950
|
* @returns UpdateUserDeliveryTaskStatusResponse
|
|
5832
5951
|
*/
|
|
5833
5952
|
updateUserDeliveryTaskStatus(request: $_model.UpdateUserDeliveryTaskStatusRequest): Promise<$_model.UpdateUserDeliveryTaskStatusResponse>;
|
|
5953
|
+
/**
|
|
5954
|
+
* 用于更新实例级别的Web应用防火墙规则集,支持多种类型的防护规则。
|
|
5955
|
+
*
|
|
5956
|
+
* @remarks
|
|
5957
|
+
* ## 请求说明
|
|
5958
|
+
* - 本API允许用户为指定实例创建新的WAF(Web Application Firewall)规则集。
|
|
5959
|
+
* - `InstanceId` 是必需参数,指定了要为其创建规则集的具体实例。
|
|
5960
|
+
* - `Phase` 参数定义了规则集的应用阶段,例如自定义规则、频次控制等。
|
|
5961
|
+
* - `Name` 和 `Expression` 是必填项,分别代表规则集的名字和具体的匹配表达式。
|
|
5962
|
+
* - 可选参数 `Description` 提供了对规则集功能或用途的文字描述。
|
|
5963
|
+
* - `Status` 控制着规则集是否立即生效 (`on`) 或者处于关闭状态 (`off`)。
|
|
5964
|
+
* - 通过 `Rules` 参数可以进一步配置更详细的规则列表,每个规则都包含名称、位置、表达式及动作等属性。
|
|
5965
|
+
* - 成功响应将返回新创建规则集的唯一标识符 `Id` 以及所有关联规则的ID列表 `RuleIds`。
|
|
5966
|
+
*
|
|
5967
|
+
* @param tmpReq - UpdateUserWafRulesetRequest
|
|
5968
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
5969
|
+
* @returns UpdateUserWafRulesetResponse
|
|
5970
|
+
*/
|
|
5971
|
+
updateUserWafRulesetWithOptions(tmpReq: $_model.UpdateUserWafRulesetRequest, runtime: $dara.RuntimeOptions): Promise<$_model.UpdateUserWafRulesetResponse>;
|
|
5972
|
+
/**
|
|
5973
|
+
* 用于更新实例级别的Web应用防火墙规则集,支持多种类型的防护规则。
|
|
5974
|
+
*
|
|
5975
|
+
* @remarks
|
|
5976
|
+
* ## 请求说明
|
|
5977
|
+
* - 本API允许用户为指定实例创建新的WAF(Web Application Firewall)规则集。
|
|
5978
|
+
* - `InstanceId` 是必需参数,指定了要为其创建规则集的具体实例。
|
|
5979
|
+
* - `Phase` 参数定义了规则集的应用阶段,例如自定义规则、频次控制等。
|
|
5980
|
+
* - `Name` 和 `Expression` 是必填项,分别代表规则集的名字和具体的匹配表达式。
|
|
5981
|
+
* - 可选参数 `Description` 提供了对规则集功能或用途的文字描述。
|
|
5982
|
+
* - `Status` 控制着规则集是否立即生效 (`on`) 或者处于关闭状态 (`off`)。
|
|
5983
|
+
* - 通过 `Rules` 参数可以进一步配置更详细的规则列表,每个规则都包含名称、位置、表达式及动作等属性。
|
|
5984
|
+
* - 成功响应将返回新创建规则集的唯一标识符 `Id` 以及所有关联规则的ID列表 `RuleIds`。
|
|
5985
|
+
*
|
|
5986
|
+
* @param request - UpdateUserWafRulesetRequest
|
|
5987
|
+
* @returns UpdateUserWafRulesetResponse
|
|
5988
|
+
*/
|
|
5989
|
+
updateUserWafRuleset(request: $_model.UpdateUserWafRulesetRequest): Promise<$_model.UpdateUserWafRulesetResponse>;
|
|
5834
5990
|
/**
|
|
5835
5991
|
* Modifies the video processing configuration of the site.
|
|
5836
5992
|
*
|
package/dist/client.js
CHANGED
|
@@ -3797,6 +3797,98 @@ class Client extends openapi_core_1.default {
|
|
|
3797
3797
|
let runtime = new $dara.RuntimeOptions({});
|
|
3798
3798
|
return await this.createUserDeliveryTaskWithOptions(request, runtime);
|
|
3799
3799
|
}
|
|
3800
|
+
/**
|
|
3801
|
+
* 用于创建实例级别的Web应用防火墙规则集,支持多种类型的防护规则。
|
|
3802
|
+
*
|
|
3803
|
+
* @remarks
|
|
3804
|
+
* ## 请求说明
|
|
3805
|
+
* - 本API允许用户为指定实例创建新的WAF(Web Application Firewall)规则集。
|
|
3806
|
+
* - `InstanceId` 是必需参数,指定了要为其创建规则集的具体实例。
|
|
3807
|
+
* - `Phase` 参数定义了规则集的应用阶段,例如自定义规则、频次控制等。
|
|
3808
|
+
* - `Name` 和 `Expression` 是必填项,分别代表规则集的名字和具体的匹配表达式。
|
|
3809
|
+
* - 可选参数 `Description` 提供了对规则集功能或用途的文字描述。
|
|
3810
|
+
* - `Status` 控制着规则集是否立即生效 (`on`) 或者处于关闭状态 (`off`)。
|
|
3811
|
+
* - 通过 `Rules` 参数可以进一步配置更详细的规则列表,每个规则都包含名称、位置、表达式及动作等属性。
|
|
3812
|
+
* - 成功响应将返回新创建规则集的唯一标识符 `Id` 以及所有关联规则的ID列表 `RuleIds`。
|
|
3813
|
+
*
|
|
3814
|
+
* @param tmpReq - CreateUserWafRulesetRequest
|
|
3815
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
3816
|
+
* @returns CreateUserWafRulesetResponse
|
|
3817
|
+
*/
|
|
3818
|
+
async createUserWafRulesetWithOptions(tmpReq, runtime) {
|
|
3819
|
+
tmpReq.validate();
|
|
3820
|
+
let request = new $_model.CreateUserWafRulesetShrinkRequest({});
|
|
3821
|
+
openapi_core_2.OpenApiUtil.convert(tmpReq, request);
|
|
3822
|
+
if (!$dara.isNull(tmpReq.rules)) {
|
|
3823
|
+
request.rulesShrink = openapi_core_2.OpenApiUtil.arrayToStringWithSpecifiedStyle(tmpReq.rules, "Rules", "json");
|
|
3824
|
+
}
|
|
3825
|
+
if (!$dara.isNull(tmpReq.shared)) {
|
|
3826
|
+
request.sharedShrink = openapi_core_2.OpenApiUtil.arrayToStringWithSpecifiedStyle(tmpReq.shared, "Shared", "json");
|
|
3827
|
+
}
|
|
3828
|
+
let query = {};
|
|
3829
|
+
if (!$dara.isNull(request.instanceId)) {
|
|
3830
|
+
query["InstanceId"] = request.instanceId;
|
|
3831
|
+
}
|
|
3832
|
+
let body = {};
|
|
3833
|
+
if (!$dara.isNull(request.description)) {
|
|
3834
|
+
body["Description"] = request.description;
|
|
3835
|
+
}
|
|
3836
|
+
if (!$dara.isNull(request.expression)) {
|
|
3837
|
+
body["Expression"] = request.expression;
|
|
3838
|
+
}
|
|
3839
|
+
if (!$dara.isNull(request.name)) {
|
|
3840
|
+
body["Name"] = request.name;
|
|
3841
|
+
}
|
|
3842
|
+
if (!$dara.isNull(request.phase)) {
|
|
3843
|
+
body["Phase"] = request.phase;
|
|
3844
|
+
}
|
|
3845
|
+
if (!$dara.isNull(request.rulesShrink)) {
|
|
3846
|
+
body["Rules"] = request.rulesShrink;
|
|
3847
|
+
}
|
|
3848
|
+
if (!$dara.isNull(request.sharedShrink)) {
|
|
3849
|
+
body["Shared"] = request.sharedShrink;
|
|
3850
|
+
}
|
|
3851
|
+
if (!$dara.isNull(request.status)) {
|
|
3852
|
+
body["Status"] = request.status;
|
|
3853
|
+
}
|
|
3854
|
+
let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({
|
|
3855
|
+
query: openapi_core_2.OpenApiUtil.query(query),
|
|
3856
|
+
body: openapi_core_2.OpenApiUtil.parseToMap(body),
|
|
3857
|
+
});
|
|
3858
|
+
let params = new openapi_core_2.$OpenApiUtil.Params({
|
|
3859
|
+
action: "CreateUserWafRuleset",
|
|
3860
|
+
version: "2024-09-10",
|
|
3861
|
+
protocol: "HTTPS",
|
|
3862
|
+
pathname: "/",
|
|
3863
|
+
method: "POST",
|
|
3864
|
+
authType: "AK",
|
|
3865
|
+
style: "RPC",
|
|
3866
|
+
reqBodyType: "formData",
|
|
3867
|
+
bodyType: "json",
|
|
3868
|
+
});
|
|
3869
|
+
return $dara.cast(await this.callApi(params, req, runtime), new $_model.CreateUserWafRulesetResponse({}));
|
|
3870
|
+
}
|
|
3871
|
+
/**
|
|
3872
|
+
* 用于创建实例级别的Web应用防火墙规则集,支持多种类型的防护规则。
|
|
3873
|
+
*
|
|
3874
|
+
* @remarks
|
|
3875
|
+
* ## 请求说明
|
|
3876
|
+
* - 本API允许用户为指定实例创建新的WAF(Web Application Firewall)规则集。
|
|
3877
|
+
* - `InstanceId` 是必需参数,指定了要为其创建规则集的具体实例。
|
|
3878
|
+
* - `Phase` 参数定义了规则集的应用阶段,例如自定义规则、频次控制等。
|
|
3879
|
+
* - `Name` 和 `Expression` 是必填项,分别代表规则集的名字和具体的匹配表达式。
|
|
3880
|
+
* - 可选参数 `Description` 提供了对规则集功能或用途的文字描述。
|
|
3881
|
+
* - `Status` 控制着规则集是否立即生效 (`on`) 或者处于关闭状态 (`off`)。
|
|
3882
|
+
* - 通过 `Rules` 参数可以进一步配置更详细的规则列表,每个规则都包含名称、位置、表达式及动作等属性。
|
|
3883
|
+
* - 成功响应将返回新创建规则集的唯一标识符 `Id` 以及所有关联规则的ID列表 `RuleIds`。
|
|
3884
|
+
*
|
|
3885
|
+
* @param request - CreateUserWafRulesetRequest
|
|
3886
|
+
* @returns CreateUserWafRulesetResponse
|
|
3887
|
+
*/
|
|
3888
|
+
async createUserWafRuleset(request) {
|
|
3889
|
+
let runtime = new $dara.RuntimeOptions({});
|
|
3890
|
+
return await this.createUserWafRulesetWithOptions(request, runtime);
|
|
3891
|
+
}
|
|
3800
3892
|
/**
|
|
3801
3893
|
* Add video processing configurations for a website.
|
|
3802
3894
|
*
|
|
@@ -6072,6 +6164,72 @@ class Client extends openapi_core_1.default {
|
|
|
6072
6164
|
let runtime = new $dara.RuntimeOptions({});
|
|
6073
6165
|
return await this.deleteUserDeliveryTaskWithOptions(request, runtime);
|
|
6074
6166
|
}
|
|
6167
|
+
/**
|
|
6168
|
+
* 用于删除实例级别的Web应用防火墙规则集。
|
|
6169
|
+
*
|
|
6170
|
+
* @remarks
|
|
6171
|
+
* ## 请求说明
|
|
6172
|
+
* - 本API允许用户为指定实例创建新的WAF(Web Application Firewall)规则集。
|
|
6173
|
+
* - `InstanceId` 是必需参数,指定了要为其创建规则集的具体实例。
|
|
6174
|
+
* - `Phase` 参数定义了规则集的应用阶段,例如自定义规则、频次控制等。
|
|
6175
|
+
* - `Name` 和 `Expression` 是必填项,分别代表规则集的名字和具体的匹配表达式。
|
|
6176
|
+
* - 可选参数 `Description` 提供了对规则集功能或用途的文字描述。
|
|
6177
|
+
* - `Status` 控制着规则集是否立即生效 (`on`) 或者处于关闭状态 (`off`)。
|
|
6178
|
+
* - 通过 `Rules` 参数可以进一步配置更详细的规则列表,每个规则都包含名称、位置、表达式及动作等属性。
|
|
6179
|
+
* - 成功响应将返回新创建规则集的唯一标识符 `Id` 以及所有关联规则的ID列表 `RuleIds`。
|
|
6180
|
+
*
|
|
6181
|
+
* @param request - DeleteUserWafRulesetRequest
|
|
6182
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
6183
|
+
* @returns DeleteUserWafRulesetResponse
|
|
6184
|
+
*/
|
|
6185
|
+
async deleteUserWafRulesetWithOptions(request, runtime) {
|
|
6186
|
+
request.validate();
|
|
6187
|
+
let query = {};
|
|
6188
|
+
if (!$dara.isNull(request.instanceId)) {
|
|
6189
|
+
query["InstanceId"] = request.instanceId;
|
|
6190
|
+
}
|
|
6191
|
+
let body = {};
|
|
6192
|
+
if (!$dara.isNull(request.id)) {
|
|
6193
|
+
body["Id"] = request.id;
|
|
6194
|
+
}
|
|
6195
|
+
let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({
|
|
6196
|
+
query: openapi_core_2.OpenApiUtil.query(query),
|
|
6197
|
+
body: openapi_core_2.OpenApiUtil.parseToMap(body),
|
|
6198
|
+
});
|
|
6199
|
+
let params = new openapi_core_2.$OpenApiUtil.Params({
|
|
6200
|
+
action: "DeleteUserWafRuleset",
|
|
6201
|
+
version: "2024-09-10",
|
|
6202
|
+
protocol: "HTTPS",
|
|
6203
|
+
pathname: "/",
|
|
6204
|
+
method: "POST",
|
|
6205
|
+
authType: "AK",
|
|
6206
|
+
style: "RPC",
|
|
6207
|
+
reqBodyType: "formData",
|
|
6208
|
+
bodyType: "json",
|
|
6209
|
+
});
|
|
6210
|
+
return $dara.cast(await this.callApi(params, req, runtime), new $_model.DeleteUserWafRulesetResponse({}));
|
|
6211
|
+
}
|
|
6212
|
+
/**
|
|
6213
|
+
* 用于删除实例级别的Web应用防火墙规则集。
|
|
6214
|
+
*
|
|
6215
|
+
* @remarks
|
|
6216
|
+
* ## 请求说明
|
|
6217
|
+
* - 本API允许用户为指定实例创建新的WAF(Web Application Firewall)规则集。
|
|
6218
|
+
* - `InstanceId` 是必需参数,指定了要为其创建规则集的具体实例。
|
|
6219
|
+
* - `Phase` 参数定义了规则集的应用阶段,例如自定义规则、频次控制等。
|
|
6220
|
+
* - `Name` 和 `Expression` 是必填项,分别代表规则集的名字和具体的匹配表达式。
|
|
6221
|
+
* - 可选参数 `Description` 提供了对规则集功能或用途的文字描述。
|
|
6222
|
+
* - `Status` 控制着规则集是否立即生效 (`on`) 或者处于关闭状态 (`off`)。
|
|
6223
|
+
* - 通过 `Rules` 参数可以进一步配置更详细的规则列表,每个规则都包含名称、位置、表达式及动作等属性。
|
|
6224
|
+
* - 成功响应将返回新创建规则集的唯一标识符 `Id` 以及所有关联规则的ID列表 `RuleIds`。
|
|
6225
|
+
*
|
|
6226
|
+
* @param request - DeleteUserWafRulesetRequest
|
|
6227
|
+
* @returns DeleteUserWafRulesetResponse
|
|
6228
|
+
*/
|
|
6229
|
+
async deleteUserWafRuleset(request) {
|
|
6230
|
+
let runtime = new $dara.RuntimeOptions({});
|
|
6231
|
+
return await this.deleteUserWafRulesetWithOptions(request, runtime);
|
|
6232
|
+
}
|
|
6075
6233
|
/**
|
|
6076
6234
|
* Deletes a video processing configuration.
|
|
6077
6235
|
*
|
|
@@ -9149,6 +9307,45 @@ class Client extends openapi_core_1.default {
|
|
|
9149
9307
|
let runtime = new $dara.RuntimeOptions({});
|
|
9150
9308
|
return await this.getRoutineWithOptions(request, runtime);
|
|
9151
9309
|
}
|
|
9310
|
+
/**
|
|
9311
|
+
* 查询Routine默认访问记录访问鉴权token
|
|
9312
|
+
*
|
|
9313
|
+
* @param request - GetRoutineAccessTokenRequest
|
|
9314
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
9315
|
+
* @returns GetRoutineAccessTokenResponse
|
|
9316
|
+
*/
|
|
9317
|
+
async getRoutineAccessTokenWithOptions(request, runtime) {
|
|
9318
|
+
request.validate();
|
|
9319
|
+
let body = {};
|
|
9320
|
+
if (!$dara.isNull(request.name)) {
|
|
9321
|
+
body["Name"] = request.name;
|
|
9322
|
+
}
|
|
9323
|
+
let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({
|
|
9324
|
+
body: openapi_core_2.OpenApiUtil.parseToMap(body),
|
|
9325
|
+
});
|
|
9326
|
+
let params = new openapi_core_2.$OpenApiUtil.Params({
|
|
9327
|
+
action: "GetRoutineAccessToken",
|
|
9328
|
+
version: "2024-09-10",
|
|
9329
|
+
protocol: "HTTPS",
|
|
9330
|
+
pathname: "/",
|
|
9331
|
+
method: "POST",
|
|
9332
|
+
authType: "AK",
|
|
9333
|
+
style: "RPC",
|
|
9334
|
+
reqBodyType: "formData",
|
|
9335
|
+
bodyType: "json",
|
|
9336
|
+
});
|
|
9337
|
+
return $dara.cast(await this.callApi(params, req, runtime), new $_model.GetRoutineAccessTokenResponse({}));
|
|
9338
|
+
}
|
|
9339
|
+
/**
|
|
9340
|
+
* 查询Routine默认访问记录访问鉴权token
|
|
9341
|
+
*
|
|
9342
|
+
* @param request - GetRoutineAccessTokenRequest
|
|
9343
|
+
* @returns GetRoutineAccessTokenResponse
|
|
9344
|
+
*/
|
|
9345
|
+
async getRoutineAccessToken(request) {
|
|
9346
|
+
let runtime = new $dara.RuntimeOptions({});
|
|
9347
|
+
return await this.getRoutineAccessTokenWithOptions(request, runtime);
|
|
9348
|
+
}
|
|
9152
9349
|
/**
|
|
9153
9350
|
* Queries information about a code version of a routine.
|
|
9154
9351
|
*
|
|
@@ -9972,6 +10169,48 @@ class Client extends openapi_core_1.default {
|
|
|
9972
10169
|
let runtime = new $dara.RuntimeOptions({});
|
|
9973
10170
|
return await this.getUserLogDeliveryQuotaWithOptions(request, runtime);
|
|
9974
10171
|
}
|
|
10172
|
+
/**
|
|
10173
|
+
* 用于获取实例级别的Web应用防火墙规则集详情
|
|
10174
|
+
*
|
|
10175
|
+
* @param request - GetUserWafRulesetRequest
|
|
10176
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
10177
|
+
* @returns GetUserWafRulesetResponse
|
|
10178
|
+
*/
|
|
10179
|
+
async getUserWafRulesetWithOptions(request, runtime) {
|
|
10180
|
+
request.validate();
|
|
10181
|
+
let query = {};
|
|
10182
|
+
if (!$dara.isNull(request.id)) {
|
|
10183
|
+
query["Id"] = request.id;
|
|
10184
|
+
}
|
|
10185
|
+
if (!$dara.isNull(request.instanceId)) {
|
|
10186
|
+
query["InstanceId"] = request.instanceId;
|
|
10187
|
+
}
|
|
10188
|
+
let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({
|
|
10189
|
+
query: openapi_core_2.OpenApiUtil.query(query),
|
|
10190
|
+
});
|
|
10191
|
+
let params = new openapi_core_2.$OpenApiUtil.Params({
|
|
10192
|
+
action: "GetUserWafRuleset",
|
|
10193
|
+
version: "2024-09-10",
|
|
10194
|
+
protocol: "HTTPS",
|
|
10195
|
+
pathname: "/",
|
|
10196
|
+
method: "POST",
|
|
10197
|
+
authType: "AK",
|
|
10198
|
+
style: "RPC",
|
|
10199
|
+
reqBodyType: "formData",
|
|
10200
|
+
bodyType: "json",
|
|
10201
|
+
});
|
|
10202
|
+
return $dara.cast(await this.callApi(params, req, runtime), new $_model.GetUserWafRulesetResponse({}));
|
|
10203
|
+
}
|
|
10204
|
+
/**
|
|
10205
|
+
* 用于获取实例级别的Web应用防火墙规则集详情
|
|
10206
|
+
*
|
|
10207
|
+
* @param request - GetUserWafRulesetRequest
|
|
10208
|
+
* @returns GetUserWafRulesetResponse
|
|
10209
|
+
*/
|
|
10210
|
+
async getUserWafRuleset(request) {
|
|
10211
|
+
let runtime = new $dara.RuntimeOptions({});
|
|
10212
|
+
return await this.getUserWafRulesetWithOptions(request, runtime);
|
|
10213
|
+
}
|
|
9975
10214
|
/**
|
|
9976
10215
|
* Queries the video processing configuration details of a site.
|
|
9977
10216
|
*
|
|
@@ -12438,6 +12677,62 @@ class Client extends openapi_core_1.default {
|
|
|
12438
12677
|
let runtime = new $dara.RuntimeOptions({});
|
|
12439
12678
|
return await this.listUserRoutinesWithOptions(request, runtime);
|
|
12440
12679
|
}
|
|
12680
|
+
/**
|
|
12681
|
+
* 用于列举实例级别的Web应用防火墙规则集。
|
|
12682
|
+
*
|
|
12683
|
+
* @param tmpReq - ListUserWafRulesetsRequest
|
|
12684
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
12685
|
+
* @returns ListUserWafRulesetsResponse
|
|
12686
|
+
*/
|
|
12687
|
+
async listUserWafRulesetsWithOptions(tmpReq, runtime) {
|
|
12688
|
+
tmpReq.validate();
|
|
12689
|
+
let request = new $_model.ListUserWafRulesetsShrinkRequest({});
|
|
12690
|
+
openapi_core_2.OpenApiUtil.convert(tmpReq, request);
|
|
12691
|
+
if (!$dara.isNull(tmpReq.queryArgs)) {
|
|
12692
|
+
request.queryArgsShrink = openapi_core_2.OpenApiUtil.arrayToStringWithSpecifiedStyle(tmpReq.queryArgs, "QueryArgs", "json");
|
|
12693
|
+
}
|
|
12694
|
+
let query = {};
|
|
12695
|
+
if (!$dara.isNull(request.instanceId)) {
|
|
12696
|
+
query["InstanceId"] = request.instanceId;
|
|
12697
|
+
}
|
|
12698
|
+
if (!$dara.isNull(request.pageNumber)) {
|
|
12699
|
+
query["PageNumber"] = request.pageNumber;
|
|
12700
|
+
}
|
|
12701
|
+
if (!$dara.isNull(request.pageSize)) {
|
|
12702
|
+
query["PageSize"] = request.pageSize;
|
|
12703
|
+
}
|
|
12704
|
+
if (!$dara.isNull(request.phase)) {
|
|
12705
|
+
query["Phase"] = request.phase;
|
|
12706
|
+
}
|
|
12707
|
+
if (!$dara.isNull(request.queryArgsShrink)) {
|
|
12708
|
+
query["QueryArgs"] = request.queryArgsShrink;
|
|
12709
|
+
}
|
|
12710
|
+
let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({
|
|
12711
|
+
query: openapi_core_2.OpenApiUtil.query(query),
|
|
12712
|
+
});
|
|
12713
|
+
let params = new openapi_core_2.$OpenApiUtil.Params({
|
|
12714
|
+
action: "ListUserWafRulesets",
|
|
12715
|
+
version: "2024-09-10",
|
|
12716
|
+
protocol: "HTTPS",
|
|
12717
|
+
pathname: "/",
|
|
12718
|
+
method: "POST",
|
|
12719
|
+
authType: "AK",
|
|
12720
|
+
style: "RPC",
|
|
12721
|
+
reqBodyType: "formData",
|
|
12722
|
+
bodyType: "json",
|
|
12723
|
+
});
|
|
12724
|
+
return $dara.cast(await this.callApi(params, req, runtime), new $_model.ListUserWafRulesetsResponse({}));
|
|
12725
|
+
}
|
|
12726
|
+
/**
|
|
12727
|
+
* 用于列举实例级别的Web应用防火墙规则集。
|
|
12728
|
+
*
|
|
12729
|
+
* @param request - ListUserWafRulesetsRequest
|
|
12730
|
+
* @returns ListUserWafRulesetsResponse
|
|
12731
|
+
*/
|
|
12732
|
+
async listUserWafRulesets(request) {
|
|
12733
|
+
let runtime = new $dara.RuntimeOptions({});
|
|
12734
|
+
return await this.listUserWafRulesetsWithOptions(request, runtime);
|
|
12735
|
+
}
|
|
12441
12736
|
/**
|
|
12442
12737
|
* Queries the video processing configurations of a site.
|
|
12443
12738
|
*
|
|
@@ -17068,6 +17363,101 @@ class Client extends openapi_core_1.default {
|
|
|
17068
17363
|
let runtime = new $dara.RuntimeOptions({});
|
|
17069
17364
|
return await this.updateUserDeliveryTaskStatusWithOptions(request, runtime);
|
|
17070
17365
|
}
|
|
17366
|
+
/**
|
|
17367
|
+
* 用于更新实例级别的Web应用防火墙规则集,支持多种类型的防护规则。
|
|
17368
|
+
*
|
|
17369
|
+
* @remarks
|
|
17370
|
+
* ## 请求说明
|
|
17371
|
+
* - 本API允许用户为指定实例创建新的WAF(Web Application Firewall)规则集。
|
|
17372
|
+
* - `InstanceId` 是必需参数,指定了要为其创建规则集的具体实例。
|
|
17373
|
+
* - `Phase` 参数定义了规则集的应用阶段,例如自定义规则、频次控制等。
|
|
17374
|
+
* - `Name` 和 `Expression` 是必填项,分别代表规则集的名字和具体的匹配表达式。
|
|
17375
|
+
* - 可选参数 `Description` 提供了对规则集功能或用途的文字描述。
|
|
17376
|
+
* - `Status` 控制着规则集是否立即生效 (`on`) 或者处于关闭状态 (`off`)。
|
|
17377
|
+
* - 通过 `Rules` 参数可以进一步配置更详细的规则列表,每个规则都包含名称、位置、表达式及动作等属性。
|
|
17378
|
+
* - 成功响应将返回新创建规则集的唯一标识符 `Id` 以及所有关联规则的ID列表 `RuleIds`。
|
|
17379
|
+
*
|
|
17380
|
+
* @param tmpReq - UpdateUserWafRulesetRequest
|
|
17381
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
17382
|
+
* @returns UpdateUserWafRulesetResponse
|
|
17383
|
+
*/
|
|
17384
|
+
async updateUserWafRulesetWithOptions(tmpReq, runtime) {
|
|
17385
|
+
tmpReq.validate();
|
|
17386
|
+
let request = new $_model.UpdateUserWafRulesetShrinkRequest({});
|
|
17387
|
+
openapi_core_2.OpenApiUtil.convert(tmpReq, request);
|
|
17388
|
+
if (!$dara.isNull(tmpReq.rules)) {
|
|
17389
|
+
request.rulesShrink = openapi_core_2.OpenApiUtil.arrayToStringWithSpecifiedStyle(tmpReq.rules, "Rules", "json");
|
|
17390
|
+
}
|
|
17391
|
+
if (!$dara.isNull(tmpReq.shared)) {
|
|
17392
|
+
request.sharedShrink = openapi_core_2.OpenApiUtil.arrayToStringWithSpecifiedStyle(tmpReq.shared, "Shared", "json");
|
|
17393
|
+
}
|
|
17394
|
+
let query = {};
|
|
17395
|
+
if (!$dara.isNull(request.instanceId)) {
|
|
17396
|
+
query["InstanceId"] = request.instanceId;
|
|
17397
|
+
}
|
|
17398
|
+
let body = {};
|
|
17399
|
+
if (!$dara.isNull(request.description)) {
|
|
17400
|
+
body["Description"] = request.description;
|
|
17401
|
+
}
|
|
17402
|
+
if (!$dara.isNull(request.expression)) {
|
|
17403
|
+
body["Expression"] = request.expression;
|
|
17404
|
+
}
|
|
17405
|
+
if (!$dara.isNull(request.id)) {
|
|
17406
|
+
body["Id"] = request.id;
|
|
17407
|
+
}
|
|
17408
|
+
if (!$dara.isNull(request.name)) {
|
|
17409
|
+
body["Name"] = request.name;
|
|
17410
|
+
}
|
|
17411
|
+
if (!$dara.isNull(request.position)) {
|
|
17412
|
+
body["Position"] = request.position;
|
|
17413
|
+
}
|
|
17414
|
+
if (!$dara.isNull(request.rulesShrink)) {
|
|
17415
|
+
body["Rules"] = request.rulesShrink;
|
|
17416
|
+
}
|
|
17417
|
+
if (!$dara.isNull(request.sharedShrink)) {
|
|
17418
|
+
body["Shared"] = request.sharedShrink;
|
|
17419
|
+
}
|
|
17420
|
+
if (!$dara.isNull(request.status)) {
|
|
17421
|
+
body["Status"] = request.status;
|
|
17422
|
+
}
|
|
17423
|
+
let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({
|
|
17424
|
+
query: openapi_core_2.OpenApiUtil.query(query),
|
|
17425
|
+
body: openapi_core_2.OpenApiUtil.parseToMap(body),
|
|
17426
|
+
});
|
|
17427
|
+
let params = new openapi_core_2.$OpenApiUtil.Params({
|
|
17428
|
+
action: "UpdateUserWafRuleset",
|
|
17429
|
+
version: "2024-09-10",
|
|
17430
|
+
protocol: "HTTPS",
|
|
17431
|
+
pathname: "/",
|
|
17432
|
+
method: "POST",
|
|
17433
|
+
authType: "AK",
|
|
17434
|
+
style: "RPC",
|
|
17435
|
+
reqBodyType: "formData",
|
|
17436
|
+
bodyType: "json",
|
|
17437
|
+
});
|
|
17438
|
+
return $dara.cast(await this.callApi(params, req, runtime), new $_model.UpdateUserWafRulesetResponse({}));
|
|
17439
|
+
}
|
|
17440
|
+
/**
|
|
17441
|
+
* 用于更新实例级别的Web应用防火墙规则集,支持多种类型的防护规则。
|
|
17442
|
+
*
|
|
17443
|
+
* @remarks
|
|
17444
|
+
* ## 请求说明
|
|
17445
|
+
* - 本API允许用户为指定实例创建新的WAF(Web Application Firewall)规则集。
|
|
17446
|
+
* - `InstanceId` 是必需参数,指定了要为其创建规则集的具体实例。
|
|
17447
|
+
* - `Phase` 参数定义了规则集的应用阶段,例如自定义规则、频次控制等。
|
|
17448
|
+
* - `Name` 和 `Expression` 是必填项,分别代表规则集的名字和具体的匹配表达式。
|
|
17449
|
+
* - 可选参数 `Description` 提供了对规则集功能或用途的文字描述。
|
|
17450
|
+
* - `Status` 控制着规则集是否立即生效 (`on`) 或者处于关闭状态 (`off`)。
|
|
17451
|
+
* - 通过 `Rules` 参数可以进一步配置更详细的规则列表,每个规则都包含名称、位置、表达式及动作等属性。
|
|
17452
|
+
* - 成功响应将返回新创建规则集的唯一标识符 `Id` 以及所有关联规则的ID列表 `RuleIds`。
|
|
17453
|
+
*
|
|
17454
|
+
* @param request - UpdateUserWafRulesetRequest
|
|
17455
|
+
* @returns UpdateUserWafRulesetResponse
|
|
17456
|
+
*/
|
|
17457
|
+
async updateUserWafRuleset(request) {
|
|
17458
|
+
let runtime = new $dara.RuntimeOptions({});
|
|
17459
|
+
return await this.updateUserWafRulesetWithOptions(request, runtime);
|
|
17460
|
+
}
|
|
17071
17461
|
/**
|
|
17072
17462
|
* Modifies the video processing configuration of the site.
|
|
17073
17463
|
*
|