dns

package
v1.0.75 Latest Latest
Warning

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

Go to latest
Published: Oct 22, 2026 License: Apache-2.0 Imports: 10 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	DefaultRegion  string
	ServiceVersion string
	ServiceName    string
	ServiceHost    string
	Timeout        int
	ServiceInfo    *base.ServiceInfo
)

Functions

func NewDefaultServiceInfo

func NewDefaultServiceInfo() *base.Client

Types

type AddressConfig

type AddressConfig struct {
	RecordID *int64 `form:"RecordID" json:"RecordID,omitempty"`
	Disable  *bool  `form:"disable" json:"disable,omitempty"`
	TTL      *int64 `form:"ttl" json:"ttl,omitempty"`
	Weight   *int64 `form:"weight" json:"weight,omitempty"`
}

type BackupInfo

type BackupInfo struct {
	BackupID    *string `form:"BackupID" json:"BackupID,omitempty"`
	BackupTime  *string `form:"BackupTime" json:"BackupTime,omitempty"`
	RecordCount *int64  `form:"RecordCount" json:"RecordCount,omitempty"`
}

type BatchDeleteCustomLineRequest

type BatchDeleteCustomLineRequest struct {
	Lines []string `form:"Lines" json:"Lines,omitempty"`
}

type BatchDeleteCustomLineResponse

type BatchDeleteCustomLineResponse struct {
	TotalCount *int64 `form:"TotalCount" json:"TotalCount,omitempty"`
}

type BytePlusCaller

type BytePlusCaller struct {
	BytePlus *base.Client
	Query    map[string]string
	Headers  map[string]string
}

func NewBytePlusCaller

func NewBytePlusCaller() *BytePlusCaller

func (*BytePlusCaller) AddQuery

func (p *BytePlusCaller) AddQuery(k, v string)

func (*BytePlusCaller) Do

func (c *BytePlusCaller) Do(r *http.Request) (*http.Response, error)

func (*BytePlusCaller) GetServiceInfo

func (p *BytePlusCaller) GetServiceInfo() *base.ServiceInfo

GetServiceInfo interface

func (*BytePlusCaller) SetAccessKey

func (p *BytePlusCaller) SetAccessKey(ak string)

func (*BytePlusCaller) SetHeader

func (p *BytePlusCaller) SetHeader(k, v string)

func (*BytePlusCaller) SetHost

func (p *BytePlusCaller) SetHost(host string)

func (*BytePlusCaller) SetRegion

func (p *BytePlusCaller) SetRegion(region string)

func (*BytePlusCaller) SetSchema

func (p *BytePlusCaller) SetSchema(schema string)

func (*BytePlusCaller) SetSecretKey

func (p *BytePlusCaller) SetSecretKey(sk string)

func (*BytePlusCaller) SetService

func (p *BytePlusCaller) SetService(service string)

type Caller

type Caller interface {
	Do(*http.Request) (*http.Response, error)
}

type CheckRetrieveZoneRequest

type CheckRetrieveZoneRequest struct {
	ZoneName *string `form:"ZoneName" json:"ZoneName,omitempty"`
}

type CheckRetrieveZoneResponse

type CheckRetrieveZoneResponse struct {
	Success *string `form:"Success" json:"Success,omitempty"`
}

type Client

type Client struct {
	// contains filtered or unexported fields
}

func InitDNSBytePlusClient

func InitDNSBytePlusClient() *Client

func NewClient

func NewClient(c *BytePlusCaller) *Client

func (*Client) BatchDeleteCustomLine

func (c *Client) BatchDeleteCustomLine(ctx context.Context, data *BatchDeleteCustomLineRequest) (*BatchDeleteCustomLineResponse, error)

func (*Client) CheckRetrieveZone

func (c *Client) CheckRetrieveZone(ctx context.Context, data *CheckRetrieveZoneRequest) (*CheckRetrieveZoneResponse, error)

func (*Client) CreateCustomLine

func (c *Client) CreateCustomLine(ctx context.Context, data *CreateCustomLineRequest) (*CreateCustomLineResponse, error)

func (*Client) CreateRecord

func (c *Client) CreateRecord(ctx context.Context, data *CreateRecordRequest) (*CreateRecordResponse, error)

func (*Client) CreateUserZoneBackup

func (c *Client) CreateUserZoneBackup(ctx context.Context, data *CreateUserZoneBackupRequest) (*CreateUserZoneBackupResponse, error)

func (*Client) CreateZone

func (c *Client) CreateZone(ctx context.Context, data *CreateZoneRequest) (*CreateZoneResponse, error)

func (*Client) DeleteRecord

func (c *Client) DeleteRecord(ctx context.Context, data *DeleteRecordRequest) error

func (*Client) DeleteUserZoneBackup

func (c *Client) DeleteUserZoneBackup(ctx context.Context, data *DeleteUserZoneBackupRequest) error

func (*Client) DeleteZone

func (c *Client) DeleteZone(ctx context.Context, data *DeleteZoneRequest) error

func (*Client) ListCustomLines

func (c *Client) ListCustomLines(ctx context.Context, data *ListCustomLinesRequest) (*ListCustomLinesResponse, error)

func (*Client) ListDomainStatistics

func (c *Client) ListDomainStatistics(ctx context.Context, data *ListDomainStatisticsRequest) (*ListDomainStatisticsResponse, error)

func (*Client) ListLines

func (c *Client) ListLines(ctx context.Context, data *ListLinesRequest) (*ListLinesResponse, error)

func (*Client) ListRecordAttributes

func (c *Client) ListRecordAttributes(ctx context.Context, data *ListRecordAttributesRequest) (*ListRecordAttributesResponse, error)

func (*Client) ListRecordDigestByLine

func (c *Client) ListRecordDigestByLine(ctx context.Context, data *ListRecordDigestByLineRequest) (*ListRecordDigestByLineResponse, error)

func (*Client) ListRecordSets

func (c *Client) ListRecordSets(ctx context.Context, data *ListRecordSetsRequest) (*ListRecordSetsResponse, error)

func (*Client) ListRecords

func (c *Client) ListRecords(ctx context.Context, data *ListRecordsRequest) (*ListRecordsResponse, error)

func (*Client) ListRecordsAdvance

func (c *Client) ListRecordsAdvance(ctx context.Context, data *ListRecordsAdvanceRequest) (*ListRecordsAdvanceResponse, error)

func (*Client) ListUserZoneBackups

func (c *Client) ListUserZoneBackups(ctx context.Context, data *ListUserZoneBackupsRequest) (*ListUserZoneBackupsResponse, error)

func (*Client) ListZoneStatistics

func (c *Client) ListZoneStatistics(ctx context.Context, data *ListZoneStatisticsRequest) (*ListZoneStatisticsResponse, error)

func (*Client) ListZones

func (c *Client) ListZones(ctx context.Context, data *ListZonesRequest) (*ListZonesResponse, error)

func (*Client) ListZonesNameServer

func (c *Client) ListZonesNameServer(ctx context.Context, data *ListZonesNameServerRequest) (*ListZonesNameServerResponse, error)

func (*Client) QueryBackupSchedule

func (c *Client) QueryBackupSchedule(ctx context.Context, data *QueryBackupScheduleRequest) (*QueryBackupScheduleResponse, error)

func (*Client) QueryDomainStatistics

func (*Client) QueryRecord

func (c *Client) QueryRecord(ctx context.Context, data *QueryRecordRequest) (*QueryRecordResponse, error)

func (*Client) QueryZone

func (c *Client) QueryZone(ctx context.Context, data *QueryZoneRequest) (*QueryZoneResponse, error)

func (*Client) QueryZoneStatistics

func (c *Client) QueryZoneStatistics(ctx context.Context, data *QueryZoneStatisticsRequest) (QueryZoneStatisticsResponse, error)

func (*Client) RestoreUserZoneBackup

func (c *Client) RestoreUserZoneBackup(ctx context.Context, data *RestoreUserZoneBackupRequest) (*RestoreUserZoneBackupResponse, error)

func (*Client) RetrieveZone

func (c *Client) RetrieveZone(ctx context.Context, data *RetrieveZoneRequest) (*RetrieveZoneResponse, error)

func (*Client) SetAccessKey

func (c *Client) SetAccessKey(ak string)

func (*Client) SetSecretKey

func (c *Client) SetSecretKey(sk string)

func (*Client) SyncFullRecordsV2

func (c *Client) SyncFullRecordsV2(ctx context.Context, data *SyncFullRecordsV2Request) (*SyncFullRecordsV2Response, error)

func (*Client) UpdateBackupSchedule

func (c *Client) UpdateBackupSchedule(ctx context.Context, data *UpdateBackupScheduleRequest) (*UpdateBackupScheduleResponse, error)

func (*Client) UpdateCustomLine

func (c *Client) UpdateCustomLine(ctx context.Context, data *UpdateCustomLineRequest) (*UpdateCustomLineResponse, error)

func (*Client) UpdateRecord

func (c *Client) UpdateRecord(ctx context.Context, data *UpdateRecordRequest) (*UpdateRecordResponse, error)

func (*Client) UpdateRecordSet

func (c *Client) UpdateRecordSet(ctx context.Context, data *UpdateRecordSetRequest) (*UpdateRecordSetResponse, error)

func (*Client) UpdateRecordStatus

func (c *Client) UpdateRecordStatus(ctx context.Context, data *UpdateRecordStatusRequest) (*UpdateRecordStatusResponse, error)

func (*Client) UpdateZone

func (c *Client) UpdateZone(ctx context.Context, data *UpdateZoneRequest) (*UpdateZoneResponse, error)

type CreateCustomLineRequest

type CreateCustomLineRequest struct {
	IpSegments []string `form:"IpSegments" json:"IpSegments,omitempty"`
	NameCN     *string  `form:"NameCN" json:"NameCN,omitempty"`
	Remark     *string  `form:"Remark" json:"Remark,omitempty"`
}

type CreateCustomLineResponse

type CreateCustomLineResponse struct {
	Line *string `form:"Line" json:"Line,omitempty"`
}

type CreateRecordRequest

type CreateRecordRequest struct {
	Host   *string `form:"Host" json:"Host,omitempty"`
	Line   *string `form:"Line" json:"Line,omitempty"`
	Remark *string `form:"Remark" json:"Remark,omitempty"`
	TTL    *int64  `form:"TTL" json:"TTL,omitempty"`
	Type   *string `form:"Type" json:"Type,omitempty"`
	Value  *string `form:"Value" json:"Value,omitempty"`
	Weight *int64  `form:"Weight" json:"Weight,omitempty"`
	ZID    *int64  `form:"ZID" json:"ZID,omitempty"`
}

type CreateRecordResponse

type CreateRecordResponse struct {
	CreatedAt   *string  `form:"CreatedAt" json:"CreatedAt,omitempty"`
	Enable      *bool    `form:"Enable" json:"Enable,omitempty"`
	FQDN        *string  `form:"FQDN" json:"FQDN,omitempty"`
	Host        *string  `form:"Host" json:"Host,omitempty"`
	Line        *string  `form:"Line" json:"Line,omitempty"`
	Operators   []string `form:"Operators" json:"Operators,omitempty"`
	PQDN        *string  `form:"PQDN" json:"PQDN,omitempty"`
	RecordID    *string  `form:"RecordID" json:"RecordID,omitempty"`
	RecordSetID *string  `form:"RecordSetID" json:"RecordSetID,omitempty"`
	TTL         *int64   `form:"TTL" json:"TTL,omitempty"`
	Tags        []string `form:"Tags" json:"Tags,omitempty"`
	Type        *string  `form:"Type" json:"Type,omitempty"`
	UpdatedAt   *string  `form:"UpdatedAt" json:"UpdatedAt,omitempty"`
	Value       *string  `form:"Value" json:"Value,omitempty"`
	Weight      *int64   `form:"Weight" json:"Weight,omitempty"`
}

type CreateUserZoneBackupRequest

type CreateUserZoneBackupRequest struct {
	ZID *int64 `form:"ZID" json:"ZID,omitempty"`
}

type CreateUserZoneBackupResponse

type CreateUserZoneBackupResponse struct {
	BackupTime *string `form:"BackupTime" json:"BackupTime,omitempty"`
}

type CreateZoneRequest

type CreateZoneRequest struct {
	Remark   *string `form:"Remark" json:"Remark,omitempty"`
	ZoneName string  `form:"ZoneName" json:"ZoneName"`
}

type CreateZoneResponse

type CreateZoneResponse struct {
	CacheStage        *int64  `form:"CacheStage" json:"CacheStage,omitempty"`
	ConfigurationCode *string `form:"ConfigurationCode" json:"ConfigurationCode,omitempty"`
	CreatedAt         *string `form:"CreatedAt" json:"CreatedAt,omitempty"`
	ExpiredTime       *int64  `form:"ExpiredTime" json:"ExpiredTime,omitempty"`
	InstanceID        *string `form:"InstanceID" json:"InstanceID,omitempty"`
	LastOperator      *string `form:"LastOperator" json:"LastOperator,omitempty"`
	RecordCount       *int64  `form:"RecordCount" json:"RecordCount,omitempty"`
	Remark            *string `form:"Remark" json:"Remark,omitempty"`
	TradeCode         *string `form:"TradeCode" json:"TradeCode,omitempty"`
	UpdatedAt         *string `form:"UpdatedAt" json:"UpdatedAt,omitempty"`
	ZID               *int64  `form:"ZID" json:"ZID,omitempty"`
	ZoneName          *string `form:"ZoneName" json:"ZoneName,omitempty"`
}

type CustomerLine

type CustomerLine struct {
	CreatedAt  *string  `form:"CreatedAt" json:"CreatedAt,omitempty"`
	IPSegments []string `form:"IPSegments" json:"IPSegments,omitempty"`
	Line       *string  `form:"Line" json:"Line,omitempty"`
	NameCN     *string  `form:"NameCN" json:"NameCN,omitempty"`
	Remark     *string  `form:"Remark" json:"Remark,omitempty"`
	UpdatedAt  *string  `form:"UpdatedAt" json:"UpdatedAt,omitempty"`
}

type DeleteRecordRequest

type DeleteRecordRequest struct {
	RecordID *string `form:"RecordID" json:"RecordID,omitempty"`
}

type DeleteUserZoneBackupRequest

type DeleteUserZoneBackupRequest struct {
	BackupID *string `form:"BackupID" json:"BackupID,omitempty"`
	ZID      *int64  `form:"ZID" json:"ZID,omitempty"`
}

type DeleteZoneRequest

type DeleteZoneRequest struct {
	ZID *int64 `form:"ZID" json:"ZID,omitempty"`
}

type ListCustomLinesRequest

type ListCustomLinesRequest struct {
	IPSegment  *string `form:"-" json:"-"`
	Line       *string `form:"-" json:"-"`
	NameCN     *string `form:"-" json:"-"`
	PageNumber *string `form:"-" json:"-"`
	PageSize   *string `form:"-" json:"-"`
	Remark     *string `form:"-" json:"-"`
	SearchMode *string `form:"-" json:"-"`
}

type ListCustomLinesResponse

type ListCustomLinesResponse struct {
	CustomerLines  []CustomerLine `form:"CustomerLines" json:"CustomerLines,omitempty"`
	IPSegmentCount *int64         `form:"IPSegmentCount" json:"IPSegmentCount,omitempty"`
	PageNumber     *int64         `form:"PageNumber" json:"PageNumber,omitempty"`
	PageSize       *int64         `form:"PageSize" json:"PageSize,omitempty"`
	TotalCount     *int64         `form:"TotalCount" json:"TotalCount,omitempty"`
}

type ListDomainStatisticsRequest

type ListDomainStatisticsRequest struct {
	End        *string `form:"-" json:"-"`
	Name       *string `form:"-" json:"-"`
	PageNumber *string `form:"-" json:"-"`
	PageSize   *string `form:"-" json:"-"`
	SearchMode *string `form:"-" json:"-"`
	Start      *string `form:"-" json:"-"`
	Threshold  *string `form:"-" json:"-"`
	ZID        *string `form:"-" json:"-"`
}

type ListDomainStatisticsResponse

type ListDomainStatisticsResponse struct {
	Data  []TopGroupStat `form:"Data" json:"Data,omitempty"`
	Page  *int64         `form:"Page" json:"Page,omitempty"`
	Size  *int64         `form:"Size" json:"Size,omitempty"`
	Total *int64         `form:"Total" json:"Total,omitempty"`
}

type ListLinesRequest

type ListLinesRequest struct {
	Hierarchy  *string `form:"-" json:"-"`
	PageNumber *string `form:"-" json:"-"`
	PageSize   *string `form:"-" json:"-"`
	Type       *string `form:"-" json:"-"`
	ZID        *string `form:"-" json:"-"`
}

type ListLinesResponse

type ListLinesResponse struct {
	Lines      []TopLineResponse `form:"Lines" json:"Lines,omitempty"`
	PageNumber *int64            `form:"PageNumber" json:"PageNumber,omitempty"`
	PageSize   *int64            `form:"PageSize" json:"PageSize,omitempty"`
	TotalCount *int64            `form:"TotalCount" json:"TotalCount,omitempty"`
}

type ListRecordAttributesRequest

type ListRecordAttributesRequest struct {
	ZID *string `form:"-" json:"-"`
}

type ListRecordAttributesResponse

type ListRecordAttributesResponse struct {
	BackupSchedules       []int64  `form:"BackupSchedules" json:"BackupSchedules,omitempty"`
	LineLevelLimit        []int64  `form:"LineLevelLimit" json:"LineLevelLimit,omitempty"`
	LoadBalancerLimit     *int64   `form:"LoadBalancerLimit" json:"LoadBalancerLimit,omitempty"`
	RecordStatisticsLimit *bool    `form:"RecordStatisticsLimit" json:"RecordStatisticsLimit,omitempty"`
	RecordTierLimit       *int64   `form:"RecordTierLimit" json:"RecordTierLimit,omitempty"`
	TTLs                  []int64  `form:"TTLs" json:"TTLs,omitempty"`
	Types                 []string `form:"Types" json:"Types,omitempty"`
	WeightLimit           *int64   `form:"WeightLimit" json:"WeightLimit,omitempty"`
}

type ListRecordDigestByLineRequest

type ListRecordDigestByLineRequest struct {
	Line *string `form:"Line" json:"Line,omitempty"`
}

type ListRecordDigestByLineResponse

type ListRecordDigestByLineResponse struct {
	Line          *string        `form:"Line" json:"Line,omitempty"`
	RecordDigests []RecordDigest `form:"RecordDigests" json:"RecordDigests,omitempty"`
}

type ListRecordSetsRequest

type ListRecordSetsRequest struct {
	Host        *string `form:"-" json:"-"`
	PageNumber  *string `form:"-" json:"-"`
	PageSize    *string `form:"-" json:"-"`
	RecordSetID *string `form:"-" json:"-"`
	SearchMode  *string `form:"-" json:"-"`
	ZID         *string `form:"-" json:"-"`
}

type ListRecordSetsResponse

type ListRecordSetsResponse struct {
	PageNumber *int64             `form:"PageNumber" json:"PageNumber,omitempty"`
	PageSize   *int64             `form:"PageSize" json:"PageSize,omitempty"`
	RecordSets []TopRecordSetResp `form:"RecordSets" json:"RecordSets,omitempty"`
	TotalCount *int64             `form:"TotalCount" json:"TotalCount,omitempty"`
}

type ListRecordsAdvanceRequest

type ListRecordsAdvanceRequest struct {
	Enable          *string `form:"-" json:"-"`
	GTMDomainFilter *string `form:"-" json:"-"`
	Host            *string `form:"-" json:"-"`
	LastOperator    *string `form:"-" json:"-"`
	Line            *string `form:"-" json:"-"`
	Name            *string `form:"-" json:"-"`
	OrderKey        *string `form:"-" json:"-"`
	PageNumber      *string `form:"-" json:"-"`
	PageSize        *string `form:"-" json:"-"`
	SearchMode      *string `form:"-" json:"-"`
	SearchOrder     *string `form:"-" json:"-"`
	SubPageNumber   *string `form:"-" json:"-"`
	SubPageSize     *string `form:"-" json:"-"`
	TTL             *string `form:"-" json:"-"`
	Type            *string `form:"-" json:"-"`
	Value           *string `form:"-" json:"-"`
	ZID             *string `form:"-" json:"-"`
}

type ListRecordsAdvanceResponse

type ListRecordsAdvanceResponse struct {
	PageNumber       *int64         `form:"PageNumber" json:"PageNumber,omitempty"`
	PageSize         *int64         `form:"PageSize" json:"PageSize,omitempty"`
	SubDomains       []TopSubDomain `form:"SubDomains" json:"SubDomains,omitempty"`
	TotalCount       *int64         `form:"TotalCount" json:"TotalCount,omitempty"`
	TotalRecordCount *int64         `form:"TotalRecordCount" json:"TotalRecordCount,omitempty"`
}

type ListRecordsRequest

type ListRecordsRequest struct {
	Host        *string `form:"-" json:"-"`
	Line        *string `form:"-" json:"-"`
	PageNumber  *string `form:"-" json:"-"`
	PageSize    *string `form:"-" json:"-"`
	RecordSetID *string `form:"-" json:"-"`
	SearchMode  *string `form:"-" json:"-"`
	SearchOrder *string `form:"-" json:"-"`
	Type        *string `form:"-" json:"-"`
	Value       *string `form:"-" json:"-"`
	ZID         *string `form:"-" json:"-"`
}

type ListRecordsResponse

type ListRecordsResponse struct {
	PageNumber *int64              `form:"PageNumber" json:"PageNumber,omitempty"`
	PageSize   *int64              `form:"PageSize" json:"PageSize,omitempty"`
	Records    []TopRecordResponse `form:"Records" json:"Records,omitempty"`
	TotalCount *int64              `form:"TotalCount" json:"TotalCount,omitempty"`
}

type ListUserZoneBackupsRequest

type ListUserZoneBackupsRequest struct {
	ZID *string `form:"-" json:"-"`
}

type ListUserZoneBackupsResponse

type ListUserZoneBackupsResponse struct {
	BackupInfos []BackupInfo `form:"BackupInfos" json:"BackupInfos,omitempty"`
}

type ListZoneStatisticsRequest

type ListZoneStatisticsRequest struct {
	End        *string `form:"-" json:"-"`
	Name       *string `form:"-" json:"-"`
	PageNumber *string `form:"-" json:"-"`
	PageSize   *string `form:"-" json:"-"`
	SearchMode *string `form:"-" json:"-"`
	Start      *string `form:"-" json:"-"`
	Threshold  *string `form:"-" json:"-"`
}

type ListZoneStatisticsResponse

type ListZoneStatisticsResponse struct {
	Data       []TopGroupStat `form:"Data" json:"Data,omitempty"`
	PageNumber *int64         `form:"PageNumber" json:"PageNumber,omitempty"`
	PageSize   *int64         `form:"PageSize" json:"PageSize,omitempty"`
	Total      *int64         `form:"Total" json:"Total,omitempty"`
}

type ListZonesNameServerRequest

type ListZonesNameServerRequest struct {
	ZIDs *string `form:"-" json:"-"`
}

type ListZonesNameServerResponse

type ListZonesNameServerResponse struct {
	ZonesNameServer []ZoneNameServerInfo `form:"ZonesNameServer" json:"ZonesNameServer,omitempty"`
}

type ListZonesRequest

type ListZonesRequest struct {
	AboutToExpire *string `form:"-" json:"-"`
	Key           *string `form:"-" json:"-"`
	OrderKey      *string `form:"-" json:"-"`
	PageNumber    *string `form:"-" json:"-"`
	PageSize      *string `form:"-" json:"-"`
	Remark        *string `form:"-" json:"-"`
	SearchMode    *string `form:"-" json:"-"`
	SearchOrder   *string `form:"-" json:"-"`
	Stage         *string `form:"-" json:"-"`
	TradeCode     *string `form:"-" json:"-"`
}

type ListZonesResponse

type ListZonesResponse struct {
	Total *int64            `form:"Total" json:"Total,omitempty"`
	Zones []TopZoneResponse `form:"Zones" json:"Zones,omitempty"`
}

type QueryBackupScheduleRequest

type QueryBackupScheduleRequest struct {
	ZID *string `form:"-" json:"-"`
}

type QueryBackupScheduleResponse

type QueryBackupScheduleResponse struct {
	CountLimit *int64 `form:"CountLimit" json:"CountLimit,omitempty"`
	Schedule   *int64 `form:"Schedule" json:"Schedule,omitempty"`
}

type QueryDomainStatisticsRequest

type QueryDomainStatisticsRequest struct {
	End   *string `form:"-" json:"-"`
	Name  *string `form:"-" json:"-"`
	Start *string `form:"-" json:"-"`
	ZID   *string `form:"-" json:"-"`
}

type QueryDomainStatisticsResponse

type QueryDomainStatisticsResponse []TopStat

type QueryRecordRequest

type QueryRecordRequest struct {
	FQDN     *string `form:"-" json:"-"`
	Line     *string `form:"-" json:"-"`
	PQDN     *string `form:"-" json:"-"`
	RecordID *string `form:"-" json:"-"`
	Type     *string `form:"-" json:"-"`
	Value    *string `form:"-" json:"-"`
}

type QueryRecordResponse

type QueryRecordResponse struct {
	CreatedAt   *string  `form:"CreatedAt" json:"CreatedAt,omitempty"`
	Enable      *bool    `form:"Enable" json:"Enable,omitempty"`
	FQDN        *string  `form:"FQDN" json:"FQDN,omitempty"`
	Host        *string  `form:"Host" json:"Host,omitempty"`
	Line        *string  `form:"Line" json:"Line,omitempty"`
	Operators   []string `form:"Operators" json:"Operators,omitempty"`
	PQDN        *string  `form:"PQDN" json:"PQDN,omitempty"`
	RecordID    *string  `form:"RecordID" json:"RecordID,omitempty"`
	RecordSetID *string  `form:"RecordSetID" json:"RecordSetID,omitempty"`
	TTL         *int64   `form:"TTL" json:"TTL,omitempty"`
	Tags        []string `form:"Tags" json:"Tags,omitempty"`
	Type        *string  `form:"Type" json:"Type,omitempty"`
	UpdatedAt   *string  `form:"UpdatedAt" json:"UpdatedAt,omitempty"`
	Value       *string  `form:"Value" json:"Value,omitempty"`
	Weight      *int64   `form:"Weight" json:"Weight,omitempty"`
}

type QueryZoneRequest

type QueryZoneRequest struct {
	UseAllocateNameServer *string `form:"-" json:"-"`
	ZID                   *string `form:"-" json:"-"`
}

type QueryZoneResponse

type QueryZoneResponse struct {
	AllocateDNSServerList []string `form:"AllocateDNSServerList" json:"AllocateDNSServerList,omitempty"`
	ConfigurationCode     *string  `form:"ConfigurationCode" json:"ConfigurationCode,omitempty"`
	ExpiredTime           *int64   `form:"ExpiredTime" json:"ExpiredTime,omitempty"`
	InstanceNo            *string  `form:"InstanceNo" json:"InstanceNo,omitempty"`
	IsNSCorrect           *bool    `form:"IsNSCorrect" json:"IsNSCorrect,omitempty"`
	RealDNSServerList     []string `form:"RealDNSServerList" json:"RealDNSServerList,omitempty"`
	RecordCount           *int64   `form:"RecordCount" json:"RecordCount,omitempty"`
	Remark                *string  `form:"Remark" json:"Remark,omitempty"`
	Stage                 *int64   `form:"Stage" json:"Stage,omitempty"`
	Status                *int64   `form:"Status" json:"Status,omitempty"`
	TradeCode             *string  `form:"TradeCode" json:"TradeCode,omitempty"`
	UpdatedAt             *string  `form:"UpdatedAt" json:"UpdatedAt,omitempty"`
	ZoneName              *string  `form:"ZoneName" json:"ZoneName,omitempty"`
}

type QueryZoneStatisticsRequest

type QueryZoneStatisticsRequest struct {
	End   *string `form:"-" json:"-"`
	Start *string `form:"-" json:"-"`
	ZID   *string `form:"-" json:"-"`
}

type QueryZoneStatisticsResponse

type QueryZoneStatisticsResponse []Stat

type RecordDigest

type RecordDigest struct {
	LineNameCN *string `form:"LineNameCN" json:"LineNameCN,omitempty"`
	Name       *string `form:"Name" json:"Name,omitempty"`
	Type       *string `form:"Type" json:"Type,omitempty"`
}

type RestoreUserZoneBackupRequest

type RestoreUserZoneBackupRequest struct {
	BackupID *string `form:"BackupID" json:"BackupID,omitempty"`
	ZID      *int64  `form:"ZID" json:"ZID,omitempty"`
}

type RestoreUserZoneBackupResponse

type RestoreUserZoneBackupResponse struct {
	TotalRecord *int64 `form:"TotalRecord" json:"TotalRecord,omitempty"`
}

type RetrieveZoneRequest

type RetrieveZoneRequest struct {
	ZoneName *string `form:"ZoneName" json:"ZoneName,omitempty"`
}

type RetrieveZoneResponse

type RetrieveZoneResponse struct {
	Host     *string `form:"Host" json:"Host,omitempty"`
	Txt      *string `form:"Txt" json:"Txt,omitempty"`
	ZoneName *string `form:"ZoneName" json:"ZoneName,omitempty"`
}

type Stat

type Stat struct {
	Error     *int64 `form:"error" json:"error,omitempty"`
	NotExists *int64 `form:"not_exists" json:"not_exists,omitempty"`
	Success   *int64 `form:"success" json:"success,omitempty"`
	Timestamp *int64 `form:"timestamp" json:"timestamp,omitempty"`
	Total     *int64 `form:"total" json:"total,omitempty"`
}

type SyncFullRecordsV2Request

type SyncFullRecordsV2Request struct {
	Await                 *bool                                                                `form:"Await" json:"Await,omitempty"`
	DomainWeightEnable    *bool                                                                `form:"DomainWeightEnable" json:"DomainWeightEnable,omitempty"`
	IncludeTypes          *string                                                              `form:"IncludeTypes" json:"IncludeTypes,omitempty"`
	RecordSetWeightEnable *bool                                                                `form:"RecordSetWeightEnable" json:"RecordSetWeightEnable,omitempty"`
	SyncAll               *bool                                                                `form:"SyncAll" json:"SyncAll,omitempty"`
	SyncConf              *string                                                              `form:"SyncConf" json:"SyncConf,omitempty"`
	Zones                 map[string]map[string]map[string]map[string]map[string]AddressConfig `form:"Zones" json:"Zones,omitempty"`
}

type SyncFullRecordsV2Response

type SyncFullRecordsV2Response struct {
	TaskID      *string `form:"TaskID" json:"TaskID,omitempty"`
	TotalRecord *int64  `form:"TotalRecord" json:"TotalRecord,omitempty"`
}

type TOPError

type TOPError struct {
	Code      string `form:"Code" json:"Code"`
	CodeN     int64  `form:"CodeN" json:"CodeN"`
	Message   string `form:"Message" json:"Message"`
	RequestID string `form:"RequestId" json:"RequestId"`
}

func NewTOPError

func NewTOPError(respMeta *TopRespMeta) *TOPError

func (*TOPError) Error

func (err *TOPError) Error() string

func (*TOPError) GetCode

func (err *TOPError) GetCode() int64

type TopGroupStat

type TopGroupStat struct {
	CacheStage *int64  `form:"CacheStage" json:"CacheStage,omitempty"`
	Error      *int64  `form:"Error" json:"Error,omitempty"`
	Name       *string `form:"Name" json:"Name,omitempty"`
	NotExists  *int64  `form:"NotExists" json:"NotExists,omitempty"`
	Success    *int64  `form:"Success" json:"Success,omitempty"`
	Timestamp  *int64  `form:"Timestamp" json:"Timestamp,omitempty"`
	Total      *int64  `form:"Total" json:"Total,omitempty"`
	ZID        *int64  `form:"ZID" json:"ZID,omitempty"`
}

type TopLineResponse

type TopLineResponse struct {
	Children    []TopLineResponse `form:"Children" json:"Children,omitempty"`
	FatherValue *string           `form:"FatherValue" json:"FatherValue,omitempty"`
	ID          *string           `form:"ID" json:"ID,omitempty"`
	IpSegment   *string           `form:"IpSegment" json:"IpSegment,omitempty"`
	Level       *int64            `form:"Level" json:"Level,omitempty"`
	Name        *string           `form:"Name" json:"Name,omitempty"`
	PartName    *string           `form:"PartName" json:"PartName,omitempty"`
	Type        *int64            `form:"Type" json:"Type,omitempty"`
	Value       *string           `form:"Value" json:"Value,omitempty"`
}

type TopRecordResponse

type TopRecordResponse struct {
	CreatedAt   *string  `form:"CreatedAt" json:"CreatedAt,omitempty"`
	Enable      *bool    `form:"Enable" json:"Enable,omitempty"`
	FQDN        *string  `form:"FQDN" json:"FQDN,omitempty"`
	Host        *string  `form:"Host" json:"Host,omitempty"`
	Line        *string  `form:"Line" json:"Line,omitempty"`
	Operators   []string `form:"Operators" json:"Operators,omitempty"`
	PQDN        *string  `form:"PQDN" json:"PQDN,omitempty"`
	RecordID    *string  `form:"RecordID" json:"RecordID,omitempty"`
	RecordSetID *string  `form:"RecordSetID" json:"RecordSetID,omitempty"`
	TTL         *int64   `form:"TTL" json:"TTL,omitempty"`
	Tags        []string `form:"Tags" json:"Tags,omitempty"`
	Type        *string  `form:"Type" json:"Type,omitempty"`
	UpdatedAt   *string  `form:"UpdatedAt" json:"UpdatedAt,omitempty"`
	Value       *string  `form:"Value" json:"Value,omitempty"`
	Weight      *int64   `form:"Weight" json:"Weight,omitempty"`
}

type TopRecordSetResp

type TopRecordSetResp struct {
	FQDN          *string `form:"FQDN" json:"FQDN,omitempty"`
	Host          *string `form:"Host" json:"Host,omitempty"`
	ID            *string `form:"ID" json:"ID,omitempty"`
	Line          *string `form:"Line" json:"Line,omitempty"`
	PQDN          *string `form:"PQDN" json:"PQDN,omitempty"`
	Type          *string `form:"Type" json:"Type,omitempty"`
	WeightEnabled *bool   `form:"WeightEnabled" json:"WeightEnabled,omitempty"`
}

type TopRespError

type TopRespError struct {
	Code    string `form:"Code" json:"Code"`
	CodeN   int64  `form:"CodeN" json:"CodeN"`
	Message string `form:"Message" json:"Message"`
}

type TopRespMeta

type TopRespMeta struct {
	Action    string       `form:"Action" json:"Action"`
	Error     TopRespError `form:"Error" json:"Error"`
	Region    string       `form:"Region" json:"Region"`
	RequestID string       `form:"RequestId" json:"RequestId"`
	Service   string       `form:"Service" json:"Service"`
	Version   string       `form:"Version" json:"Version"`
}

type TopResponse

type TopResponse struct {
	ResponseMetadata TopRespMeta     `form:"ResponseMetadata" json:"ResponseMetadata"`
	Result           json.RawMessage `form:"Result" json:"Result"`
}

type TopStat

type TopStat struct {
	Error     *int64 `form:"Error" json:"Error,omitempty"`
	NotExists *int64 `form:"NotExists" json:"NotExists,omitempty"`
	Success   *int64 `form:"Success" json:"Success,omitempty"`
	Timestamp *int64 `form:"Timestamp" json:"Timestamp,omitempty"`
	Total     *int64 `form:"Total" json:"Total,omitempty"`
}

type TopSubDomain

type TopSubDomain struct {
	HasNext       *bool               `form:"HasNext" json:"HasNext,omitempty"`
	Host          *string             `form:"Host" json:"Host,omitempty"`
	IsGTMDomain   *bool               `form:"IsGTMDomain" json:"IsGTMDomain,omitempty"`
	LastOperator  *string             `form:"LastOperator" json:"LastOperator,omitempty"`
	Line          *string             `form:"Line" json:"Line,omitempty"`
	LineNameCN    *string             `form:"LineNameCN" json:"LineNameCN,omitempty"`
	Name          *string             `form:"Name" json:"Name,omitempty"`
	Records       []TopRecordResponse `form:"Records" json:"Records,omitempty"`
	TTL           *int64              `form:"TTL" json:"TTL,omitempty"`
	Type          *string             `form:"Type" json:"Type,omitempty"`
	UpdatedAt     *string             `form:"UpdatedAt" json:"UpdatedAt,omitempty"`
	WeightEnabled *bool               `form:"WeightEnabled" json:"WeightEnabled,omitempty"`
}

type TopZoneResponse

type TopZoneResponse struct {
	CacheStage        *int64  `form:"CacheStage" json:"CacheStage,omitempty"`
	ConfigurationCode *string `form:"ConfigurationCode" json:"ConfigurationCode,omitempty"`
	CreatedAt         *string `form:"CreatedAt" json:"CreatedAt,omitempty"`
	ExpiredTime       *int64  `form:"ExpiredTime" json:"ExpiredTime,omitempty"`
	InstanceID        *string `form:"InstanceID" json:"InstanceID,omitempty"`
	LastOperator      *string `form:"LastOperator" json:"LastOperator,omitempty"`
	RecordCount       *int64  `form:"RecordCount" json:"RecordCount,omitempty"`
	Remark            *string `form:"Remark" json:"Remark,omitempty"`
	TradeCode         *string `form:"TradeCode" json:"TradeCode,omitempty"`
	UpdatedAt         *string `form:"UpdatedAt" json:"UpdatedAt,omitempty"`
	ZID               *int64  `form:"ZID" json:"ZID,omitempty"`
	ZoneName          *string `form:"ZoneName" json:"ZoneName,omitempty"`
}

type UpdateBackupScheduleRequest

type UpdateBackupScheduleRequest struct {
	Schedule *int64 `form:"Schedule" json:"Schedule,omitempty"`
	ZID      *int64 `form:"ZID" json:"ZID,omitempty"`
}

type UpdateBackupScheduleResponse

type UpdateBackupScheduleResponse struct {
	CountLimit *int64 `form:"CountLimit" json:"CountLimit,omitempty"`
	Schedule   *int64 `form:"Schedule" json:"Schedule,omitempty"`
}

type UpdateCustomLineRequest

type UpdateCustomLineRequest struct {
	IpSegments []string `form:"IpSegments" json:"IpSegments,omitempty"`
	Line       *string  `form:"Line" json:"Line,omitempty"`
	NameCN     *string  `form:"NameCN" json:"NameCN,omitempty"`
	Remark     *string  `form:"Remark" json:"Remark,omitempty"`
}

type UpdateCustomLineResponse

type UpdateCustomLineResponse struct {
	Line *string `form:"Line" json:"Line,omitempty"`
}

type UpdateRecordRequest

type UpdateRecordRequest struct {
	Host     string  `form:"Host" json:"Host"`
	Line     string  `form:"Line" json:"Line"`
	RecordID string  `form:"RecordID" json:"RecordID"`
	TTL      *int64  `form:"TTL" json:"TTL,omitempty"`
	Type     *string `form:"Type" json:"Type,omitempty"`
	Value    *string `form:"Value" json:"Value,omitempty"`
	Weight   *int64  `form:"Weight" json:"Weight,omitempty"`
}

type UpdateRecordResponse

type UpdateRecordResponse struct {
	CreatedAt   *string  `form:"CreatedAt" json:"CreatedAt,omitempty"`
	Enable      *bool    `form:"Enable" json:"Enable,omitempty"`
	FQDN        *string  `form:"FQDN" json:"FQDN,omitempty"`
	Host        *string  `form:"Host" json:"Host,omitempty"`
	Line        *string  `form:"Line" json:"Line,omitempty"`
	Operators   []string `form:"Operators" json:"Operators,omitempty"`
	PQDN        *string  `form:"PQDN" json:"PQDN,omitempty"`
	RecordID    *string  `form:"RecordID" json:"RecordID,omitempty"`
	RecordSetID *string  `form:"RecordSetID" json:"RecordSetID,omitempty"`
	TTL         *int64   `form:"TTL" json:"TTL,omitempty"`
	Tags        []string `form:"Tags" json:"Tags,omitempty"`
	Type        *string  `form:"Type" json:"Type,omitempty"`
	UpdatedAt   *string  `form:"UpdatedAt" json:"UpdatedAt,omitempty"`
	Value       *string  `form:"Value" json:"Value,omitempty"`
	Weight      *int64   `form:"Weight" json:"Weight,omitempty"`
}

type UpdateRecordSetRequest

type UpdateRecordSetRequest struct {
	ID            string `form:"ID" json:"ID"`
	WeightEnabled bool   `form:"WeightEnabled" json:"WeightEnabled"`
}

type UpdateRecordSetResponse

type UpdateRecordSetResponse struct {
	FQDN          *string `form:"FQDN" json:"FQDN,omitempty"`
	Host          *string `form:"Host" json:"Host,omitempty"`
	ID            *string `form:"ID" json:"ID,omitempty"`
	Line          *string `form:"Line" json:"Line,omitempty"`
	PQDN          *string `form:"PQDN" json:"PQDN,omitempty"`
	Type          *string `form:"Type" json:"Type,omitempty"`
	WeightEnabled *bool   `form:"WeightEnabled" json:"WeightEnabled,omitempty"`
}

type UpdateRecordStatusRequest

type UpdateRecordStatusRequest struct {
	Enable   *bool   `form:"Enable" json:"Enable,omitempty"`
	RecordID *string `form:"RecordID" json:"RecordID,omitempty"`
}

type UpdateRecordStatusResponse

type UpdateRecordStatusResponse struct {
	CreatedAt   *string  `form:"CreatedAt" json:"CreatedAt,omitempty"`
	Enable      *bool    `form:"Enable" json:"Enable,omitempty"`
	FQDN        *string  `form:"FQDN" json:"FQDN,omitempty"`
	Host        *string  `form:"Host" json:"Host,omitempty"`
	Line        *string  `form:"Line" json:"Line,omitempty"`
	Operators   []string `form:"Operators" json:"Operators,omitempty"`
	PQDN        *string  `form:"PQDN" json:"PQDN,omitempty"`
	RecordID    *string  `form:"RecordID" json:"RecordID,omitempty"`
	RecordSetID *string  `form:"RecordSetID" json:"RecordSetID,omitempty"`
	TTL         *int64   `form:"TTL" json:"TTL,omitempty"`
	Tags        []string `form:"Tags" json:"Tags,omitempty"`
	Type        *string  `form:"Type" json:"Type,omitempty"`
	UpdatedAt   *string  `form:"UpdatedAt" json:"UpdatedAt,omitempty"`
	Value       *string  `form:"Value" json:"Value,omitempty"`
	Weight      *int64   `form:"Weight" json:"Weight,omitempty"`
}

type UpdateZoneRequest

type UpdateZoneRequest struct {
	Remark *string `form:"Remark" json:"Remark,omitempty"`
	ZID    *int64  `form:"ZID" json:"ZID,omitempty"`
}

type UpdateZoneResponse

type UpdateZoneResponse struct {
	CacheStage        *int64  `form:"CacheStage" json:"CacheStage,omitempty"`
	ConfigurationCode *string `form:"ConfigurationCode" json:"ConfigurationCode,omitempty"`
	CreatedAt         *string `form:"CreatedAt" json:"CreatedAt,omitempty"`
	ExpiredTime       *int64  `form:"ExpiredTime" json:"ExpiredTime,omitempty"`
	InstanceID        *string `form:"InstanceID" json:"InstanceID,omitempty"`
	LastOperator      *string `form:"LastOperator" json:"LastOperator,omitempty"`
	RecordCount       *int64  `form:"RecordCount" json:"RecordCount,omitempty"`
	Remark            *string `form:"Remark" json:"Remark,omitempty"`
	TradeCode         *string `form:"TradeCode" json:"TradeCode,omitempty"`
	UpdatedAt         *string `form:"UpdatedAt" json:"UpdatedAt,omitempty"`
	ZID               *int64  `form:"ZID" json:"ZID,omitempty"`
	ZoneName          *string `form:"ZoneName" json:"ZoneName,omitempty"`
}

type ZoneNameServerInfo

type ZoneNameServerInfo struct {
	AllocateDNSServerList []string `form:"AllocateDNSServerList" json:"AllocateDNSServerList,omitempty"`
	IsNSCorrect           *bool    `form:"IsNSCorrect" json:"IsNSCorrect,omitempty"`
	Name                  *string  `form:"Name" json:"Name,omitempty"`
	RealDNSServerList     []string `form:"RealDNSServerList" json:"RealDNSServerList,omitempty"`
	Stage                 *int64   `form:"Stage" json:"Stage,omitempty"`
	ZID                   *int64   `form:"ZID" json:"ZID,omitempty"`
}

Jump to

Keyboard shortcuts

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