models

package
v1.52.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 29, 2021 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type A

type A struct {

	/* 返回的状态码 (Optional) */
	Code int `json:"code"`

	/* 状态码相应的说明/错误说明 (Optional) */
	Message string `json:"message"`
}

type Actionlog

type Actionlog struct {

	/* 操作记录的ID (Optional) */
	Id int `json:"id"`

	/* 用户名 (Optional) */
	UserPin string `json:"userPin"`

	/* 操作的域名 (Optional) */
	Domain string `json:"domain"`

	/* 操作类型:1新增 2修改 3删除 (Optional) */
	Type int `json:"type"`

	/* 操作的详细情况 (Optional) */
	Detail string `json:"detail"`

	/* 操作发生的时间 (Optional) */
	Time int64 `json:"time"`

	/* 操作的结果,成功true, 失败false (Optional) */
	Success bool `json:"success"`

	/* 操作失败的原因 (Optional) */
	FailReason string `json:"failReason"`

	/* 操作者的IP (Optional) */
	ClientIp string `json:"clientIp"`
}

type AddRR

type AddRR struct {

	/* 主机记录  */
	HostRecord string `json:"hostRecord"`

	/* 解析记录的值  */
	HostValue string `json:"hostValue"`

	/* 是否是京东云资源 (Optional) */
	JcloudRes *bool `json:"jcloudRes"`

	/* 优先级,只存在于MX, SRV解析记录类型 (Optional) */
	MxPriority *int `json:"mxPriority"`

	/* 端口,只存在于SRV解析记录类型 (Optional) */
	Port *int `json:"port"`

	/* 解析记录的生存时间,单位:秒  */
	Ttl int `json:"ttl"`

	/* 解析的类型,请参考<a href="https://docs.jdcloud.com/cn/jd-cloud-dns/detailed-interpretation-of-parsed-records">解析记录类型详解</a>  */
	Type string `json:"type"`

	/* 解析记录的权重,目前支持权重的有:A/AAAA/CNAME/JNAME,A/AAAA权重范围:0-100、CNAME/JNAME权重范围:1-100。 (Optional) */
	Weight *int `json:"weight"`

	/* 解析线路的ID,请调用describeViewTree接口获取基础解析线路的ID,使用describeUserView接口获取自定义线路的ID。  */
	ViewValue int `json:"viewValue"`
}

type AddView

type AddView struct {

	/* 主域名  */
	DomainName string `json:"domainName"`

	/* 自定义线路名称, 最多64个字节,允许:数字、字母、下划线,-,中文  */
	ViewName string `json:"viewName"`

	/* 用户输入的此线路的ip段。
	IPv4地址段支持1.2.3.4-5.6.7.8和1.2.3.4/16两种格式。
	IPv6地址段支持CIDR格式,例如:11:22:33:44:55::99/64
	*/
	IpRanges []string `json:"ipRanges"`
}

type AddViewIP

type AddViewIP struct {

	/* 自定义线路ID  */
	ViewId int `json:"viewId"`

	/* 自定义线路名称, 最多64个字节,允许:数字、字母、下划线,-,中文  */
	ViewName string `json:"viewName"`

	/* 此线路需要添加的ip段。
	IPv4地址段支持1.2.3.4-5.6.7.8和1.2.3.4/16两种格式。
	IPv6地址段支持CIDR格式,例如:11:22:33:44:55::99/64
	*/
	IpRanges []string `json:"ipRanges"`
}

type BackupAddressesInfo added in v1.13.0

type BackupAddressesInfo struct {

	/* 地址 (Optional) */
	Address string `json:"address"`

	/* 备用地址1的类型,1为ip 2为域名 (Optional) */
	Type int `json:"type"`

	/* 备用地址1的状态,0正常,1异常 (Optional) */
	Status int `json:"status"`
}

type BatchSetDNS

type BatchSetDNS struct {

	/* 主机记录  */
	HostRecord string `json:"hostRecord"`

	/* 解析记录的值  */
	HostValue string `json:"hostValue"`

	/* 解析记录的ID, 如果是新增请填0,如果是更新,请使用describeResourceRecord接口查询解析记录ID。  */
	Id int `json:"id"`

	/* 是否是京东云资源 (Optional) */
	JcloudRes *bool `json:"jcloudRes"`

	/* 优先级,只存在于MX, SRV解析记录类型 (Optional) */
	MxPriority *int `json:"mxPriority"`

	/* 端口,只存在于SRV解析记录类型 (Optional) */
	Port *int `json:"port"`

	/* 解析记录的生存时间,单位:秒  */
	Ttl int `json:"ttl"`

	/* 解析的类型,请参考<a href="https://docs.jdcloud.com/cn/jd-cloud-dns/detailed-interpretation-of-parsed-records">解析记录类型详解</a>  */
	Type string `json:"type"`

	/* 解析记录的权重,目前支持权重的有:A/AAAA/CNAME/JNAME,A/AAAA权重范围:0-100、CNAME/JNAME权重范围:1-100。 (Optional) */
	Weight *int `json:"weight"`

	/* 解析线路的ID,请调用describeViewTree接口获取基础解析线路的ID,使用describeUserView接口获取自定义线路的ID。  */
	ViewValue int `json:"viewValue"`
}

type DelView

type DelView struct {

	/* 主域名  */
	DomainName string `json:"domainName"`

	/* 自定义线路名称, 最多64个字节,允许:数字、字母、下划线,-,中文  */
	ViewName string `json:"viewName"`

	/* 自定义线路ID  */
	ViewId int `json:"viewId"`
}

type DelViewIP

type DelViewIP struct {

	/* 自定义线路ID  */
	ViewId int `json:"viewId"`

	/* 自定义线路名称, 最多64个字节,允许:数字、字母、下划线,-,中文  */
	ViewName string `json:"viewName"`

	/* 此线路需要删除的ip段。
	IPv4地址段支持1.2.3.4-5.6.7.8和1.2.3.4/16两种格式。
	IPv6地址段支持CIDR格式,例如:11:22:33:44:55::99/64
	*/
	IpRanges []string `json:"ipRanges"`
}

type DomainAdded

type DomainAdded struct {

	/* 域名的唯一ID (Optional) */
	Id int `json:"id"`

	/* 域名字符串 (Optional) */
	DomainName string `json:"domainName"`

	/* 创建时间,格式Unix timestamp,时间单位:毫秒 (Optional) */
	CreateTime int64 `json:"createTime"`

	/* 过期时间,格式Unix timestamp,时间单位:毫秒 (Optional) */
	ExpirationDate int64 `json:"expirationDate"`

	/* 套餐类型,免费:0 企业版:1 企业高级版:2 (Optional) */
	PackId int `json:"packId"`
}

type DomainInfo

type DomainInfo struct {

	/* 域名的唯一ID (Optional) */
	Id int `json:"id"`

	/* 域名字符串 (Optional) */
	DomainName string `json:"domainName"`

	/* 创建时间,格式Unix timestamp,时间单位:毫秒 (Optional) */
	CreateTime int64 `json:"createTime"`

	/* 过期时间,格式Unix timestamp,时间单位:毫秒 (Optional) */
	ExpirationDate int64 `json:"expirationDate"`

	/* 套餐类型,免费:0 企业版:1 企业高级版:2 (Optional) */
	PackId int `json:"packId"`

	/* 套餐的名字 (Optional) */
	PackName string `json:"packName"`

	/* 解析的状态, 暂无解析:1,正常解析:2, 部分解析:3, 暂停解析:4 NS未修改:5,域名探测错误:7,域名未注册:8,注册局暂停解析:9 (Optional) */
	ResolvingStatus string `json:"resolvingStatus"`

	/* 创建者 (Optional) */
	Creator string `json:"creator"`

	/* 是否是京东云资源 (Optional) */
	JcloudNs bool `json:"jcloudNs"`

	/* 域名的锁定状态,0:未锁定, 1:已锁定 (Optional) */
	LockStatus int `json:"lockStatus"`

	/* 主域名当前的Nameserver列表 (Optional) */
	ProbeNsList []string `json:"probeNsList"`

	/* 主域名应该设置的Nameserver列表 (Optional) */
	DefNsList []string `json:"defNsList"`
}

type Getlb

type Getlb struct {

	/* 负载均衡的解析记录的列表中解析记录是否是相同的权重
	true: 均等负载
	false: 按权重分配负载
	 (Optional) */
	Balance bool `json:"balance"`

	/* 主机记录 (Optional) */
	Record string `json:"record"`

	/* 解析的类型 (Optional) */
	Type string `json:"type"`

	/* 解析线路的名称 (Optional) */
	ViewName string `json:"viewName"`

	/* 解析线路的ID (Optional) */
	ViewValue int `json:"viewValue"`

	/* 负载均衡的解析记录的列表 (Optional) */
	Items []HostRRlb `json:"items"`
}

type HostRRlb

type HostRRlb struct {

	/* 解析记录的值 (Optional) */
	HostValue string `json:"hostValue"`

	/* 解析记录的ID (Optional) */
	Id int `json:"id"`

	/* 解析记录的权重 (Optional) */
	Weight int `json:"weight"`

	/* 此条记录在总均衡中的比率的100倍 (Optional) */
	Rate float64 `json:"rate"`
}

type HttpHeader added in v1.13.0

type HttpHeader struct {

	/* 头域名称  */
	Name string `json:"name"`

	/* 头域阈值  */
	Value string `json:"value"`
}

type HttpResponseCodeRange added in v1.13.0

type HttpResponseCodeRange struct {

	/* 起始响应码  */
	Start int `json:"start"`

	/* 终止响应码  */
	End int `json:"end"`
}

type ImportDNS

type ImportDNS struct {

	/* 主机记录  */
	HostRecord string `json:"hostRecord"`

	/* 解析记录的值  */
	HostValue string `json:"hostValue"`

	/* 解析记录的ID (Optional) */
	Id int `json:"id"`

	/* 是否是京东云资源 (Optional) */
	JcloudRes bool `json:"jcloudRes"`

	/* 优先级,只存在于MX, SRV解析记录类型 (Optional) */
	MxPriority int `json:"mxPriority"`

	/* 端口,只存在于SRV解析记录类型 (Optional) */
	Port int `json:"port"`

	/* 解析记录的生存时间,单位:秒  */
	Ttl int `json:"ttl"`

	/* 解析的类型,请参考<a href="https://docs.jdcloud.com/cn/jd-cloud-dns/detailed-interpretation-of-parsed-records">解析记录类型详解</a>  */
	Type string `json:"type"`

	/* 解析记录的权重,目前支持权重的有:A/AAAA/CNAME/JNAME,A/AAAA权重范围:0-100、CNAME/JNAME权重范围:1-100。 (Optional) */
	Weight int `json:"weight"`

	/* 解析线路的ID,请调用describeViewTree接口获取基础解析线路的ID,使用describeUserView接口获取自定义线路的ID。  */
	ViewValue int `json:"viewValue"`
}

type Jdvpc

type Jdvpc struct {

	/* 京东云IP (Optional) */
	Ip string `json:"ip"`

	/* 是否绑定 (Optional) */
	Binded bool `json:"binded"`
}

type Monitor

type Monitor struct {

	/* 连续几次触发报警 (Optional) */
	AlarmLimit int `json:"alarmLimit"`

	/* 现在是否可以恢复 (Optional) */
	CanRecover bool `json:"canRecover"`

	/* 现在是否可以切换 (Optional) */
	CanSwitch bool `json:"canSwitch"`

	/* 机房探测点的集合 (Optional) */
	Clusters string `json:"clusters"`

	/* 主域名 (Optional) */
	DomainName string `json:"domainName"`

	/* 主机状态,0正常,1异常 (Optional) */
	HostStatus int `json:"hostStatus"`

	/* 监控对象 (Optional) */
	HostValue string `json:"hostValue"`

	/* 监控项ID (Optional) */
	Id int `json:"id"`

	/* 备用地址1 (Optional) */
	IpBackup01 string `json:"ipBackup01"`

	/* 备用地址1的状态,0正常,1异常 (Optional) */
	IpBackup01Status int `json:"ipBackup01Status"`

	/* 备用地址1的类型,1为ip 2为域名 (Optional) */
	IpBackup01Type int `json:"ipBackup01Type"`

	/* 备用地址2 (Optional) */
	IpBackup02 string `json:"ipBackup02"`

	/* 备用地址2的状态,0正常,1异常 (Optional) */
	IpBackup02Status int `json:"ipBackup02Status"`

	/* 备用地址1的类型,1为ip 2为域名 (Optional) */
	IpBackup02Type int `json:"ipBackup02Type"`

	/* 手动切换的地址 (Optional) */
	ManualBackup string `json:"manualBackup"`

	/* 手动切换的地址的状态,0正常,1异常 (Optional) */
	ManualBackupStatus int `json:"manualBackupStatus"`

	/* 手动切换的地址的类型,1为ip 2为域名 (Optional) */
	ManualBackupType int `json:"manualBackupType"`

	/* 监控状况 开启监控 2,暂停监控 4 (Optional) */
	MonitorEnable int `json:"monitorEnable"`

	/* 监控频率,单位秒 (Optional) */
	MonitorFreq int `json:"monitorFreq"`

	/* 监控端口 (Optional) */
	MonitorPort int `json:"monitorPort"`

	/* 不做任何修改0,强制暂停解析记录1,自动切换到备用地址2 (Optional) */
	MonitorRule int `json:"monitorRule"`

	/* 监控路径 (Optional) */
	MonitorUri string `json:"monitorUri"`

	/* 邮箱地址 (Optional) */
	NotifyEmail string `json:"notifyEmail"`

	/* 不发送邮件0, 发送邮件1 (Optional) */
	NotifyEmailEnable int `json:"notifyEmailEnable"`

	/* 不发送通知栏 0, 发送通知栏 1 (Optional) */
	NotifyMsgBarEnable int `json:"notifyMsgBarEnable"`

	/* 手机号码 (Optional) */
	NotifySms string `json:"notifySms"`

	/* 不发送短信 0, 发送短信 1 (Optional) */
	NotifySmsEnable int `json:"notifySmsEnable"`

	/* http协议:0,https协议:1 (Optional) */
	Protocol int `json:"protocol"`

	/* 自动恢复:0 手动恢复:1 (Optional) */
	StopRecoverRule int `json:"stopRecoverRule"`

	/* 子域名 (Optional) */
	SubDomainName string `json:"subDomainName"`

	/* 自动恢复至主host:0 手动恢复至主host:1 (Optional) */
	SwitchRecoverRule int `json:"switchRecoverRule"`

	/* 1为A记录,2为CNAME (Optional) */
	Type int `json:"type"`

	/* 使用记录,host_value 0,ip_backup_01 1,ip_backup_02 2,cname_backup 3 (Optional) */
	UsedType int `json:"usedType"`

	/* 备用地址及其状态列表 (Optional) */
	BackupAddressList []BackupAddressesInfo `json:"backupAddressList"`

	/* 探测请求携带自定义头域及其域值列表 (Optional) */
	RequestHeaders []HttpHeader `json:"requestHeaders"`

	/* 探测响应Body体中包含的字符串 (Optional) */
	ResponseBodyMatch string `json:"responseBodyMatch"`

	/* 探测响应码范围列表 (Optional) */
	ResponseCodeRanges []HttpResponseCodeRange `json:"responseCodeRanges"`

	/* 正在使用的有效解析地址 (Optional) */
	EffectAddr string `json:"effectAddr"`
}

type MonitorAlarmInfo

type MonitorAlarmInfo struct {

	/* 域名ID (Optional) */
	DomainId int `json:"domainId"`

	/* 子域名 (Optional) */
	SubDomainName string `json:"subDomainName"`

	/* 故障IP/域名 (Optional) */
	Host string `json:"host"`

	/* null (Optional) */
	Id int `json:"id"`

	/* 故障开始时间,格式Unix timestamp,时间单位:毫秒 (Optional) */
	StartTime int64 `json:"startTime"`

	/* 故障结束时间,格式Unix timestamp,时间单位:毫秒 (Optional) */
	EndTime int64 `json:"endTime"`
}

type NS

type NS struct {

	/* 京东NS服务器:0,非京东服务器:1 (Optional) */
	Tag int `json:"tag"`

	/* NS记录的值 (Optional) */
	Server string `json:"server"`
}

type Notice

type Notice struct {

	/* 信息ID (Optional) */
	Id int `json:"id"`

	/* 信息的标题 (Optional) */
	Title string `json:"title"`

	/* 信息的详细URL (Optional) */
	Url string `json:"url"`
}

type RR

type RR struct {

	/* 域名解析的唯一ID (Optional) */
	Id int `json:"id"`

	/* 主机记录 (Optional) */
	HostRecord string `json:"hostRecord"`

	/* 解析记录的值 (Optional) */
	HostValue string `json:"hostValue"`

	/* 是否是京东云资源 (Optional) */
	JcloudRes bool `json:"jcloudRes"`

	/* 优先级,只存在于MX, SRV解析记录类型 (Optional) */
	MxPriority int `json:"mxPriority"`

	/* 端口,只存在于SRV解析记录类型 (Optional) */
	Port int `json:"port"`

	/* 解析记录的生存时间,单位:秒 (Optional) */
	Ttl int `json:"ttl"`

	/* 解析记录的类型,有A, AAAA, CNAME, JNAME, TXT, MX, CAA, NS, SRV, IMPLICIT_URL,EXPLICIT_URL几种记录类型 (Optional) */
	Type string `json:"type"`

	/* 解析记录的权重 (Optional) */
	Weight int `json:"weight"`

	/* 解析线路的ID (Optional) */
	ViewValue []int `json:"viewValue"`
}

type RRInfo

type RRInfo struct {

	/* 创建者 (Optional) */
	Creator string `json:"creator"`

	/* 线路名称 (Optional) */
	ViewName string `json:"viewName"`

	/* 域名解析的唯一ID (Optional) */
	Id int `json:"id"`

	/* 主机记录 (Optional) */
	HostRecord string `json:"hostRecord"`

	/* 解析记录的值 (Optional) */
	HostValue string `json:"hostValue"`

	/* 是否是京东云资源 (Optional) */
	JcloudRes bool `json:"jcloudRes"`

	/* 优先级,只存在于MX, SRV解析记录类型 (Optional) */
	MxPriority int `json:"mxPriority"`

	/* 端口,只存在于SRV解析记录类型 (Optional) */
	Port int `json:"port"`

	/* 解析记录的生存时间,单位:秒 (Optional) */
	Ttl int `json:"ttl"`

	/* 解析记录的类型,请参考<a href="https://docs.jdcloud.com/cn/jd-cloud-dns/detailed-interpretation-of-parsed-records">解析记录类型详解</a> (Optional) */
	Type string `json:"type"`

	/* 解析记录的权重 (Optional) */
	Weight int `json:"weight"`

	/* 解析线路的ID (Optional) */
	ViewValue []int `json:"viewValue"`

	/* 解析记录的状态,正常解析:2,暂停解析:4 (Optional) */
	ResolvingStatus string `json:"resolvingStatus"`

	/* 解析记录更新的时间 (Optional) */
	UpdateTime int64 `json:"updateTime"`
}

type Records added in v1.13.0

type Records struct {

	/* 解析记录值  */
	Record string `json:"record"`

	/* 权重,A/AAAA权重范围:0-100、CNAME/JNAME权重范围:1-100。 (Optional) */
	Weight int `json:"weight"`

	/* 这条解析记录的TTL (Optional) */
	Ttl int `json:"ttl"`

	/* 优先级,只存在于MX类型的解析记录 (Optional) */
	Prior int `json:"prior"`

	/* 端口,只存在于SRV类型解析记录 (Optional) */
	Port int `json:"port"`
}

type RecordsReqs added in v1.13.0

type RecordsReqs struct {

	/* 解析记录的结构  */
	Records []Records `json:"records"`

	/* 解析记录所在的解析线路,请调用describeViewTree接口获取。如果不传是默认线路。 (Optional) */
	Views []string `json:"views"`

	/* 解析记录的类型,支持A,CNAME,AAAA,JNAME  */
	Type string `json:"type"`
}

type ResourceInfo

type ResourceInfo struct {

	/* 实例id (Optional) */
	ResourceId string `json:"resourceId"`

	/* 实例名称 (Optional) */
	ResourceName string `json:"resourceName"`

	/* 额外描述信息,包括可续费时长,套餐类型 (Optional) */
	Remark string `json:"remark"`
}

type ResourceRecordSetReqs added in v1.13.0

type ResourceRecordSetReqs struct {

	/* 子域名  */
	Domain string `json:"domain"`

	/* 要设置的解析记录数组  */
	Data []RecordsReqs `json:"data"`
}

type ResourceRemarkInfo

type ResourceRemarkInfo struct {

	/* 可续费时长,单位月 (Optional) */
	Duration string `json:"duration"`

	/* 套餐类型 (Optional) */
	PackType string `json:"packType"`
}

type Result

type Result struct {

	/* 返回的状态码 (Optional) */
	Code int `json:"code"`

	/* 状态码相应的说明/错误说明 (Optional) */
	Detail string `json:"detail"`
}

type SetRR

type SetRR struct {

	/* 子域名  */
	Domain string `json:"domain"`

	/* 要设置的解析记录数组  */
	Data []SetRecords `json:"data"`
}

type SetRecords

type SetRecords struct {

	/* 解析记录的值  */
	Records []string `json:"records"`

	/* 解析记录所在的解析线路,请调用describeViewTree接口获取。如果不传是默认线路。 (Optional) */
	Views []string `json:"views"`

	/* 解析记录的类型,支持A, AAAA, CNAME类型  */
	Type string `json:"type"`
}

type Setlb

type Setlb struct {

	/* 解析记录的ID。在getLB接口中获取。  */
	Id int `json:"id"`

	/* 此条解析记录的权重。A,AAAA类型的权重范围为:0-100,CNAME, JNAME类型的权重范围为:1-100。  */
	Weight int `json:"weight"`
}

type SubDomainExist

type SubDomainExist struct {

	/* 子域名 (Optional) */
	Domain string `json:"domain"`

	/* 子域名的存在状态,1:存在,2:不存在,3:zone不存在 (Optional) */
	IsExist int `json:"isExist"`
}

type UpdateMonitor

type UpdateMonitor struct {

	/* 连续几次触发报警  */
	AlarmLimit int `json:"alarmLimit"`

	/* 监控项ID  */
	Id int `json:"id"`

	/* 备用地址1  */
	IpBackup01 string `json:"ipBackup01"`

	/* 备用地址2  */
	IpBackup02 string `json:"ipBackup02"`

	/* 备用地址列表,存在该参数时,可不填写参数备用地址1、备用地址2 (Optional) */
	BackupAddressList []string `json:"backupAddressList"`

	/* 监控状况 开启监控:2,暂停监控:4  */
	MonitorEnable int `json:"monitorEnable"`

	/* 监控频率,单位秒  */
	MonitorFreq int `json:"monitorFreq"`

	/* 监控端口  */
	MonitorPort int `json:"monitorPort"`

	/* 不做任何修改0,强制暂停解析记录1,自动切换到备用地址2  */
	MonitorRule int `json:"monitorRule"`

	/* 监控路径  */
	MonitorUri string `json:"monitorUri"`

	/* 不发送邮件:0, 发送邮件:1  */
	NotifyEmailEnable int `json:"notifyEmailEnable"`

	/* 不发送通知栏:0, 发送通知栏:1  */
	NotifyMsgBarEnable int `json:"notifyMsgBarEnable"`

	/* 不发送短信:0, 发送短信:1 (Optional) */
	NotifySmsEnable *int `json:"notifySmsEnable"`

	/* https 0,https 1  */
	Protocol int `json:"protocol"`

	/* 0自动恢复 1手动恢复  */
	StopRecoverRule int `json:"stopRecoverRule"`

	/* 0自动恢复至主host 1手动恢复至主host  */
	SwitchRecoverRule int `json:"switchRecoverRule"`

	/* 探测请求携带自定义头域及其域值列表 (Optional) */
	RequestHeaders []HttpHeader `json:"requestHeaders"`

	/* 探测响应Body体中包含的字符串 (Optional) */
	ResponseBodyMatch *string `json:"responseBodyMatch"`

	/* 探测响应码范围列表 (Optional) */
	ResponseCodeRanges []HttpResponseCodeRange `json:"responseCodeRanges"`
}

type UpdateRR

type UpdateRR struct {

	/* 主域名  */
	DomainName string `json:"domainName"`

	/* 主机记录  */
	HostRecord string `json:"hostRecord"`

	/* 解析记录的值  */
	HostValue string `json:"hostValue"`

	/* 是否是京东云资源 (Optional) */
	JcloudRes *bool `json:"jcloudRes"`

	/* 优先级,只存在于MX, SRV解析记录类型 (Optional) */
	MxPriority *int `json:"mxPriority"`

	/* 端口,只存在于SRV解析记录类型 (Optional) */
	Port *int `json:"port"`

	/* 解析记录的生存时间,单位:秒  */
	Ttl int `json:"ttl"`

	/* 解析的类型,请参考<a href="https://docs.jdcloud.com/cn/jd-cloud-dns/detailed-interpretation-of-parsed-records">解析记录类型详解</a>  */
	Type string `json:"type"`

	/* 解析记录的权重,目前支持权重的有:A/AAAA/CNAME/JNAME,A/AAAA权重范围:0-100、CNAME/JNAME权重范围:1-100。 (Optional) */
	Weight *int `json:"weight"`

	/* 解析线路的ID,请调用describeViewTree接口获取基础解析线路的ID,使用describeUserView接口获取自定义线路的ID。  */
	ViewValue int `json:"viewValue"`
}

type UserViewInput

type UserViewInput struct {

	/* 自定义线路ID (Optional) */
	ViewId int `json:"viewId"`

	/* 自定义线路名称, 最多64个字节,允许:数字、字母、下划线,-,中文 (Optional) */
	ViewName string `json:"viewName"`

	/* 主域名ID (Optional) */
	DomainId int `json:"domainId"`

	/* 用户输入的IP段,IPV4支持1.1.1.1-2.2.2.2和CIDR格式,IPV6仅支持CIDR格式 (Optional) */
	IpRanges []string `json:"ipRanges"`

	/* 是否删除,0:没有删除,1:已删除 (Optional) */
	IsDelete int `json:"isDelete"`

	/* 创建者 (Optional) */
	Creator string `json:"creator"`

	/* 创建时间,格式Unix timestamp,时间单位:秒 (Optional) */
	CreateTime int `json:"createTime"`

	/* 更新者 (Optional) */
	Updator string `json:"updator"`

	/* 更新时间,格式Unix timestamp,时间单位:秒 (Optional) */
	UpdateTime int `json:"updateTime"`
}

type Userview

type Userview struct {

	/* 自定义线路ID (Optional) */
	ViewId int `json:"viewId"`

	/* 自定义线路名称, 最多64个字节,允许:数字、字母、下划线,-,中文 (Optional) */
	ViewName string `json:"viewName"`

	/* 主域名ID (Optional) */
	DomainId int `json:"domainId"`

	/* 域名 (Optional) */
	DomainName string `json:"domainName"`

	/* 是否删除,0:没有删除,1:已删除 (Optional) */
	IsDelete int `json:"isDelete"`

	/* 创建者 (Optional) */
	Creator string `json:"creator"`

	/* 创建时间,格式Unix timestamp,时间单位:秒 (Optional) */
	CreateTime int `json:"createTime"`

	/* 更新者 (Optional) */
	Updator string `json:"updator"`

	/* 更新时间,格式Unix timestamp,时间单位:秒 (Optional) */
	UpdateTime int `json:"updateTime"`
}

type ViewTree

type ViewTree struct {

	/* 此解析线路是否禁用 (Optional) */
	Disabled bool `json:"disabled"`

	/* 解析线路的描述 (Optional) */
	Label string `json:"label"`

	/* 此数据是否是叶子节点 (Optional) */
	Leaf bool `json:"leaf"`

	/* 解析线路ID (Optional) */
	Value int `json:"value"`

	/* 解析线路的名称,在使用viewName的参数处使用,如果为空表明此解析线路不能直接使用,请使用它的子线路。 (Optional) */
	ViewName string `json:"viewName"`

	/*  (Optional) */
	Children []ViewTree `json:"children"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL