DomainNewSource

data class DomainNewSource(val content: String? = null, val port: Int? = null, val priority: Int? = null, val type: String? = null, val weight: Int? = null)

Constructors

Link copied to clipboard
constructor(content: String? = null, port: Int? = null, priority: Int? = null, type: String? = null, weight: Int? = null)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
val content: String? = null

The address of source. Valid values can be ip or doaminName. Each item's content can not be repeated.

Link copied to clipboard
val port: Int? = null

The port of source. Valid values are 443 and 80. Default value is 80.

Link copied to clipboard
val priority: Int? = null

Priority of the source. Valid values are 0 and 100. Default value is 20.

Link copied to clipboard
val type: String? = null

The type of the source. Valid values are ipaddr, domain and oss.

Link copied to clipboard
val weight: Int? = null

Weight of the source. Valid values are from 0 to 100. Default value is 10, but if type is ipaddr, the value can only be 10.