/* * 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.Dayu.V20180709.Models { using Newtonsoft.Json; using System.Collections.Generic; using TencentCloud.Common; public class DDosPolicy : AbstractModel { /// /// 策略绑定的资源 /// [JsonProperty("Resources")] public ResourceIp[] Resources{ get; set; } /// /// 禁用协议 /// [JsonProperty("DropOptions")] public DDoSPolicyDropOption DropOptions{ get; set; } /// /// 禁用端口 /// [JsonProperty("PortLimits")] public DDoSPolicyPortLimit[] PortLimits{ get; set; } /// /// 报文过滤 /// [JsonProperty("PacketFilters")] public DDoSPolicyPacketFilter[] PacketFilters{ get; set; } /// /// 黑白IP名单 /// [JsonProperty("IpBlackWhiteLists")] public IpBlackWhite[] IpBlackWhiteLists{ get; set; } /// /// 策略ID /// [JsonProperty("PolicyId")] public string PolicyId{ get; set; } /// /// 策略名称 /// [JsonProperty("PolicyName")] public string PolicyName{ get; set; } /// /// 策略创建时间 /// [JsonProperty("CreateTime")] public string CreateTime{ get; set; } /// /// 水印策略参数,最多只有一个,当没有水印策略时数组为空 /// [JsonProperty("WaterPrint")] public WaterPrintPolicy[] WaterPrint{ get; set; } /// /// 水印密钥,最多只有2个,当没有水印策略时数组为空 /// [JsonProperty("WaterKey")] public WaterPrintKey[] WaterKey{ get; set; } /// /// 策略绑定的资源实例 /// 注意:此字段可能返回 null,表示取不到有效值。 /// [JsonProperty("BoundResources")] public string[] BoundResources{ get; set; } /// /// 策略所属的策略场景 /// 注意:此字段可能返回 null,表示取不到有效值。 /// [JsonProperty("SceneId")] public string SceneId{ get; set; } /// /// For internal usage only. DO NOT USE IT. /// internal override void ToMap(Dictionary map, string prefix) { this.SetParamArrayObj(map, prefix + "Resources.", this.Resources); this.SetParamObj(map, prefix + "DropOptions.", this.DropOptions); this.SetParamArrayObj(map, prefix + "PortLimits.", this.PortLimits); this.SetParamArrayObj(map, prefix + "PacketFilters.", this.PacketFilters); this.SetParamArrayObj(map, prefix + "IpBlackWhiteLists.", this.IpBlackWhiteLists); this.SetParamSimple(map, prefix + "PolicyId", this.PolicyId); this.SetParamSimple(map, prefix + "PolicyName", this.PolicyName); this.SetParamSimple(map, prefix + "CreateTime", this.CreateTime); this.SetParamArrayObj(map, prefix + "WaterPrint.", this.WaterPrint); this.SetParamArrayObj(map, prefix + "WaterKey.", this.WaterKey); this.SetParamArraySimple(map, prefix + "BoundResources.", this.BoundResources); this.SetParamSimple(map, prefix + "SceneId", this.SceneId); } } }