Files
g.hnyhua.cn/TencentCloud/Dayu/V20180709/Models/ModifyDDoSSwitchRequest.cs

115 lines
4.8 KiB
C#
Raw Permalink Normal View History

/*
* 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 ModifyDDoSSwitchRequest : AbstractModel
{
/// <summary>
/// 大禹子产品代号basic表示基础防护
/// </summary>
[JsonProperty("Business")]
public string Business{ get; set; }
/// <summary>
/// =get表示读取DDoS防护状态=set表示修改DDoS防护状态
/// </summary>
[JsonProperty("Method")]
public string Method{ get; set; }
/// <summary>
/// 基础防护的IP只有当Business为基础防护时才需要填写此字段
/// </summary>
[JsonProperty("Ip")]
public string Ip{ get; set; }
/// <summary>
/// 只有当Business为基础防护时才需要填写此字段IP所属的产品类型取值[publicCVM产品bm黑石产品eni弹性网卡vpngwVPN网关 natgwNAT网关wafWeb应用安全产品fpc金融产品gaapGAAP产品, other(托管IP)]
/// </summary>
[JsonProperty("BizType")]
public string BizType{ get; set; }
/// <summary>
/// 只有当Business为基础防护时才需要填写此字段IP所属的产品子类取值[cvmCVMlb负载均衡器eni弹性网卡vpngwVPNnatgwNATwafWAFfpc金融gaapGAAPother托管IPeip黑石弹性IP]
/// </summary>
[JsonProperty("DeviceType")]
public string DeviceType{ get; set; }
/// <summary>
/// 只有当Business为基础防护时才需要填写此字段IP所属的资源实例ID当绑定新IP时必须填写此字段例如是弹性网卡的IP则InstanceId填写弹性网卡的ID(eni-*);
/// </summary>
[JsonProperty("InstanceId")]
public string InstanceId{ get; set; }
/// <summary>
/// 只有当Business为基础防护时才需要填写此字段表示IP所属的地域取值
/// "bj": 华北地区(北京)
/// "cd": 西南地区(成都)
/// "cq": 西南地区(重庆)
/// "gz": 华南地区(广州)
/// "gzopen": 华南地区(广州Open)
/// "hk": 中国香港
/// "kr": 东南亚地区(首尔)
/// "sh": 华东地区(上海)
/// "shjr": 华东地区(上海金融)
/// "szjr": 华南地区(深圳金融)
/// "sg": 东南亚地区(新加坡)
/// "th": 东南亚地区(泰国)
/// "de": 欧洲地区(德国)
/// "usw": 美国西部(硅谷)
/// "ca": 北美地区(多伦多)
/// "jp": 日本
/// "hzec": 杭州
/// "in": 印度
/// "use": 美东地区(弗吉尼亚)
/// "ru": 俄罗斯
/// "tpe": 中国台湾
/// "nj": 南京
/// </summary>
[JsonProperty("IPRegion")]
public string IPRegion{ get; set; }
/// <summary>
/// 可选字段,防护状态值,取值[0关闭1开启]当Method为get时可以不填写此字段
/// </summary>
[JsonProperty("Status")]
public ulong? Status{ get; set; }
/// <summary>
/// For internal usage only. DO NOT USE IT.
/// </summary>
internal override void ToMap(Dictionary<string, string> map, string prefix)
{
this.SetParamSimple(map, prefix + "Business", this.Business);
this.SetParamSimple(map, prefix + "Method", this.Method);
this.SetParamSimple(map, prefix + "Ip", this.Ip);
this.SetParamSimple(map, prefix + "BizType", this.BizType);
this.SetParamSimple(map, prefix + "DeviceType", this.DeviceType);
this.SetParamSimple(map, prefix + "InstanceId", this.InstanceId);
this.SetParamSimple(map, prefix + "IPRegion", this.IPRegion);
this.SetParamSimple(map, prefix + "Status", this.Status);
}
}
}