Files
g.hnyhua.cn/TencentCloud/Clb/V20180317/Models/ModifyBlockIPListRequest.cs
2026-02-07 15:48:27 +08:00

85 lines
3.0 KiB
C#
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
/*
* Copyright (c) 2018 THL A29 Limited, a Tencent company. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
namespace TencentCloud.Clb.V20180317.Models
{
using Newtonsoft.Json;
using System.Collections.Generic;
using TencentCloud.Common;
public class ModifyBlockIPListRequest : AbstractModel
{
/// <summary>
/// 负载均衡实例ID
/// </summary>
[JsonProperty("LoadBalancerIds")]
public string[] LoadBalancerIds{ get; set; }
/// <summary>
/// 操作类型,可取:
/// <li> add_customized_field首次设置header开启黑名单功能</li>
/// <li> set_customized_field修改header</li>
/// <li> del_customized_field删除header</li>
/// <li> add_blocked添加黑名单</li>
/// <li> del_blocked删除黑名单</li>
/// <li> flush_blocked清空黑名单</li>
/// </summary>
[JsonProperty("Type")]
public string Type{ get; set; }
/// <summary>
/// 客户端真实IP存放的header字段名
/// </summary>
[JsonProperty("ClientIPField")]
public string ClientIPField{ get; set; }
/// <summary>
/// 封禁IP列表单次操作数组最大长度支持200000
/// </summary>
[JsonProperty("BlockIPList")]
public string[] BlockIPList{ get; set; }
/// <summary>
/// 过期时间单位秒默认值3600
/// </summary>
[JsonProperty("ExpireTime")]
public ulong? ExpireTime{ get; set; }
/// <summary>
/// 添加IP的策略可取fifo如果黑名单容量已满新加入黑名单的IP采用先进先出策略
/// </summary>
[JsonProperty("AddStrategy")]
public string AddStrategy{ get; set; }
/// <summary>
/// For internal usage only. DO NOT USE IT.
/// </summary>
internal override void ToMap(Dictionary<string, string> map, string prefix)
{
this.SetParamArraySimple(map, prefix + "LoadBalancerIds.", this.LoadBalancerIds);
this.SetParamSimple(map, prefix + "Type", this.Type);
this.SetParamSimple(map, prefix + "ClientIPField", this.ClientIPField);
this.SetParamArraySimple(map, prefix + "BlockIPList.", this.BlockIPList);
this.SetParamSimple(map, prefix + "ExpireTime", this.ExpireTime);
this.SetParamSimple(map, prefix + "AddStrategy", this.AddStrategy);
}
}
}