/*
* 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
{
///
/// 负载均衡实例ID
///
[JsonProperty("LoadBalancerIds")]
public string[] LoadBalancerIds{ get; set; }
///
/// 操作类型,可取:
/// add_customized_field(首次设置header,开启黑名单功能)
/// set_customized_field(修改header)
/// del_customized_field(删除header)
/// add_blocked(添加黑名单)
/// del_blocked(删除黑名单)
/// flush_blocked(清空黑名单)
///
[JsonProperty("Type")]
public string Type{ get; set; }
///
/// 客户端真实IP存放的header字段名
///
[JsonProperty("ClientIPField")]
public string ClientIPField{ get; set; }
///
/// 封禁IP列表,单次操作数组最大长度支持200000
///
[JsonProperty("BlockIPList")]
public string[] BlockIPList{ get; set; }
///
/// 过期时间,单位秒,默认值3600
///
[JsonProperty("ExpireTime")]
public ulong? ExpireTime{ get; set; }
///
/// 添加IP的策略,可取:fifo(如果黑名单容量已满,新加入黑名单的IP采用先进先出策略)
///
[JsonProperty("AddStrategy")]
public string AddStrategy{ get; set; }
///
/// For internal usage only. DO NOT USE IT.
///
internal override void ToMap(Dictionary 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);
}
}
}