/* * 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.Cat.V20180409.Models { using Newtonsoft.Json; using System.Collections.Generic; using TencentCloud.Common; public class ModifyTaskExRequest : AbstractModel { /// /// http, https, ping, tcp, ftp, smtp, udp, dns 之一 /// [JsonProperty("CatTypeName")] public string CatTypeName{ get; set; } /// /// 拨测的URL,例如:www.qq.com (URL域名解析需要能解析出具体的IP) /// [JsonProperty("Url")] public string Url{ get; set; } /// /// 拨测周期。取值可为1,5,15,30之一, 单位:分钟。精度不能低于用户等级规定的最小精度 /// [JsonProperty("Period")] public ulong? Period{ get; set; } /// /// 拨测任务名称不能超过32个字符。同一个用户创建的任务名不可重复 /// [JsonProperty("TaskName")] public string TaskName{ get; set; } /// /// 验证成功的拨测任务ID /// [JsonProperty("TaskId")] public ulong? TaskId{ get; set; } /// /// 拨测分组ID,体现本拨测任务要采用哪些运营商作为拨测源。一般可直接填写本用户的默认拨测分组。参见:DescribeAgentGroupList 接口,本参数使用返回结果里的GroupId的值。注意,Type为0时,AgentGroupId为必填 /// [JsonProperty("AgentGroupId")] public ulong? AgentGroupId{ get; set; } /// /// 指定域名(如需要) /// [JsonProperty("Host")] public string Host{ get; set; } /// /// 拨测目标的端口号 /// [JsonProperty("Port")] public ulong? Port{ get; set; } /// /// 是否为Header请求(非0 发起Header 请求。为0,且PostData非空,发起POST请求。为0,PostData为空,发起GET请求) /// [JsonProperty("IsHeader")] public ulong? IsHeader{ get; set; } /// /// URL中含有"https"时有用。缺省为SSLv23。需要为 TLSv1_2, TLSv1_1, TLSv1, SSLv2, SSLv23, SSLv3 之一 /// [JsonProperty("SslVer")] public string SslVer{ get; set; } /// /// POST 请求数据,空字符串表示非POST请求 /// [JsonProperty("PostData")] public string PostData{ get; set; } /// /// 用户Agent信息 /// [JsonProperty("UserAgent")] public string UserAgent{ get; set; } /// /// 要在结果中进行匹配的字符串 /// [JsonProperty("CheckStr")] public string CheckStr{ get; set; } /// /// 1 表示通过检查结果是否包含CheckStr 进行校验 /// [JsonProperty("CheckType")] public ulong? CheckType{ get; set; } /// /// 需要设置的Cookie信息 /// [JsonProperty("Cookie")] public string Cookie{ get; set; } /// /// 登录服务器的账号。如果为空字符串,表示不用校验用户密码。只做简单连接服务器的拨测 /// [JsonProperty("UserName")] public string UserName{ get; set; } /// /// 登录服务器的密码 /// [JsonProperty("PassWord")] public string PassWord{ get; set; } /// /// 缺省为0,0 表示请求为字符串类型, 1表示为二进制类型 /// [JsonProperty("ReqDataType")] public ulong? ReqDataType{ get; set; } /// /// 发起TCP, UDP请求的协议请求数据 /// [JsonProperty("ReqData")] public string ReqData{ get; set; } /// /// 缺省为0。0 表示请求为字符串类型。1表示为二进制类型 /// [JsonProperty("RespDataType")] public string RespDataType{ get; set; } /// /// 预期的UDP请求的回应数据。字符串型,只需要返回的结果里包含本字符串算校验通过。二进制型,则需要严格等于才算通过 /// [JsonProperty("RespData")] public string RespData{ get; set; } /// /// 目的DNS服务器,可以为空字符串 /// [JsonProperty("DnsSvr")] public string DnsSvr{ get; set; } /// /// 需要检验是否在DNS IP列表的IP。可以为空字符串,表示不校验 /// [JsonProperty("DnsCheckIp")] public string DnsCheckIp{ get; set; } /// /// 需要为下列值之一。缺省为A。A, MX, NS, CNAME, TXT, ANY /// [JsonProperty("DnsQueryType")] public string DnsQueryType{ get; set; } /// /// 是否使用安全链接SSL, 0 不使用,1 使用 /// [JsonProperty("UseSecConn")] public ulong? UseSecConn{ get; set; } /// /// FTP登录验证方式, 0 不验证 1 匿名登录 2 需要身份验证 /// [JsonProperty("NeedAuth")] public ulong? NeedAuth{ get; set; } /// /// Type=0 默认 (站点监控) Type=2 可用率监控 /// [JsonProperty("Type")] public ulong? Type{ get; set; } /// /// 跟随跳转次数,取值范围0-5,不传则表示不跟随 /// [JsonProperty("RedirectFollowNum")] public ulong? RedirectFollowNum{ get; set; } /// /// For internal usage only. DO NOT USE IT. /// internal override void ToMap(Dictionary map, string prefix) { this.SetParamSimple(map, prefix + "CatTypeName", this.CatTypeName); this.SetParamSimple(map, prefix + "Url", this.Url); this.SetParamSimple(map, prefix + "Period", this.Period); this.SetParamSimple(map, prefix + "TaskName", this.TaskName); this.SetParamSimple(map, prefix + "TaskId", this.TaskId); this.SetParamSimple(map, prefix + "AgentGroupId", this.AgentGroupId); this.SetParamSimple(map, prefix + "Host", this.Host); this.SetParamSimple(map, prefix + "Port", this.Port); this.SetParamSimple(map, prefix + "IsHeader", this.IsHeader); this.SetParamSimple(map, prefix + "SslVer", this.SslVer); this.SetParamSimple(map, prefix + "PostData", this.PostData); this.SetParamSimple(map, prefix + "UserAgent", this.UserAgent); this.SetParamSimple(map, prefix + "CheckStr", this.CheckStr); this.SetParamSimple(map, prefix + "CheckType", this.CheckType); this.SetParamSimple(map, prefix + "Cookie", this.Cookie); this.SetParamSimple(map, prefix + "UserName", this.UserName); this.SetParamSimple(map, prefix + "PassWord", this.PassWord); this.SetParamSimple(map, prefix + "ReqDataType", this.ReqDataType); this.SetParamSimple(map, prefix + "ReqData", this.ReqData); this.SetParamSimple(map, prefix + "RespDataType", this.RespDataType); this.SetParamSimple(map, prefix + "RespData", this.RespData); this.SetParamSimple(map, prefix + "DnsSvr", this.DnsSvr); this.SetParamSimple(map, prefix + "DnsCheckIp", this.DnsCheckIp); this.SetParamSimple(map, prefix + "DnsQueryType", this.DnsQueryType); this.SetParamSimple(map, prefix + "UseSecConn", this.UseSecConn); this.SetParamSimple(map, prefix + "NeedAuth", this.NeedAuth); this.SetParamSimple(map, prefix + "Type", this.Type); this.SetParamSimple(map, prefix + "RedirectFollowNum", this.RedirectFollowNum); } } }