Documentation
¶
Index ¶
- Constants
- type Client
- func (c *Client) DomainCreate(request *DomainCreateRequest) (response *DomainCreateResponse, err error)
- func (c *Client) DomainDelete(request *DomainDeleteRequest) (response *DomainDeleteResponse, err error)
- func (c *Client) DomainList(request *DomainListRequest) (response *DomainListResponse, err error)
- func (c *Client) RecordCreate(request *RecordCreateRequest) (response *RecordCreateResponse, err error)
- func (c *Client) RecordDelete(request *RecordDeleteRequest) (response *RecordDeleteResponse, err error)
- func (c *Client) RecordList(request *RecordListRequest) (response *RecordListResponse, err error)
- func (c *Client) RecordModify(request *RecordModifyRequest) (response *RecordModifyResponse, err error)
- func (c *Client) RecordStatus(request *RecordStatusRequest) (response *RecordStatusResponse, err error)
- func (c *Client) SetDomainStatus(request *SetDomainStatusRequest) (response *SetDomainStatusResponse, err error)
- type Data
- type Domain
- type DomainCreateRequest
- type DomainCreateResponse
- type DomainDeleteRequest
- type DomainDeleteResponse
- type DomainListRequest
- type DomainListResponse
- type Info
- type Record
- type RecordCreateRequest
- type RecordCreateResponse
- type RecordDeleteRequest
- type RecordDeleteResponse
- type RecordListRequest
- type RecordListResponse
- type RecordModifyRequest
- type RecordModifyResponse
- type RecordStatusRequest
- type RecordStatusResponse
- type SetDomainStatusRequest
- type SetDomainStatusResponse
Constants ¶
View Source
const APIVersion = "2019-05-28"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
func NewClient ¶
func NewClient(credential *common.Credential, region string, clientProfile *profile.ClientProfile) (client *Client, err error)
func (*Client) DomainCreate ¶
func (c *Client) DomainCreate(request *DomainCreateRequest) (response *DomainCreateResponse, err error)
func (*Client) DomainDelete ¶
func (c *Client) DomainDelete(request *DomainDeleteRequest) (response *DomainDeleteResponse, err error)
func (*Client) DomainList ¶
func (c *Client) DomainList(request *DomainListRequest) (response *DomainListResponse, err error)
func (*Client) RecordCreate ¶
func (c *Client) RecordCreate(request *RecordCreateRequest) (response *RecordCreateResponse, err error)
func (*Client) RecordDelete ¶
func (c *Client) RecordDelete(request *RecordDeleteRequest) (response *RecordDeleteResponse, err error)
func (*Client) RecordList ¶
func (c *Client) RecordList(request *RecordListRequest) (response *RecordListResponse, err error)
func (*Client) RecordModify ¶
func (c *Client) RecordModify(request *RecordModifyRequest) (response *RecordModifyResponse, err error)
func (*Client) RecordStatus ¶
func (c *Client) RecordStatus(request *RecordStatusRequest) (response *RecordStatusResponse, err error)
func (*Client) SetDomainStatus ¶
func (c *Client) SetDomainStatus(request *SetDomainStatusRequest) (response *SetDomainStatusResponse, err error)
type Domain ¶
type Domain struct { ID *string `json:"id" ` Name *string `json:"name"` Punycode *string `json:"punycode"` Grade *string `json:"grade"` Owner *string `json:"owner"` ExtStatus *string `json:"ext_status"` TTL *int `json:"ttl"` MinTTL *int `json:"min_ttl"` DnspodNs *[]string `json:"dnspod_ns"` Status *string `json:"status"` QProjectID *int `json:"q_project_id"` }
type DomainCreateRequest ¶
type DomainCreateRequest struct { *tchttp.BaseRequest Domain *string `json:"Domain" name:"Domain"` ProjectId *int `json:"ProjectId,omitempty" name:"ProjectId"` }
func NewDomainCreateRequest ¶
func NewDomainCreateRequest() (request *DomainCreateRequest)
func (*DomainCreateRequest) FromJsonString ¶
func (r *DomainCreateRequest) FromJsonString(s string) error
func (*DomainCreateRequest) ToJsonString ¶
func (r *DomainCreateRequest) ToJsonString() string
type DomainCreateResponse ¶
type DomainCreateResponse struct { *tchttp.BaseResponse Code *int `json:"code,omitempty" name:"code"` Message *string `json:"message,omitempty" name:"message"` CodeDesc *string `json:"codeDesc,omitempty" name:"codeDesc"` Data *struct { Domain *struct { ID *int `json:"id"` Punycode *string `json:"punycode"` Domain *string `json:"domain"` } `json:"domain"` } `json:"data"` }
func NewDomainCreateResponse ¶
func NewDomainCreateResponse() (response *DomainCreateResponse)
func (*DomainCreateResponse) FromJsonString ¶
func (r *DomainCreateResponse) FromJsonString(s string) error
func (*DomainCreateResponse) ToJsonString ¶
func (r *DomainCreateResponse) ToJsonString() string
type DomainDeleteRequest ¶
type DomainDeleteRequest struct { *tchttp.BaseRequest Domain *string `json:"Domain" name:"Domain"` }
func NewDomainDeleteRequest ¶
func NewDomainDeleteRequest() (request *DomainDeleteRequest)
func (*DomainDeleteRequest) FromJsonString ¶
func (r *DomainDeleteRequest) FromJsonString(s string) error
func (*DomainDeleteRequest) ToJsonString ¶
func (r *DomainDeleteRequest) ToJsonString() string
type DomainDeleteResponse ¶
type DomainDeleteResponse struct { *tchttp.BaseResponse Code *int `json:"code,omitempty" name:"code"` Message *string `json:"message,omitempty" name:"message"` CodeDesc *string `json:"codeDesc,omitempty" name:"codeDesc"` Data *struct { Record *struct { ID *string `json:"id"` Name *string `json:"name"` Status *string `json:"status"` Weight *int `json:"weight"` } `json:"record"` } `json:"data"` }
func NewDomainDeleteResponse ¶
func NewDomainDeleteResponse() (response *DomainDeleteResponse)
func (*DomainDeleteResponse) FromJsonString ¶
func (r *DomainDeleteResponse) FromJsonString(s string) error
func (*DomainDeleteResponse) ToJsonString ¶
func (r *DomainDeleteResponse) ToJsonString() string
type DomainListRequest ¶
type DomainListRequest struct { *tchttp.BaseRequest Offset *int `json:"Offset,omitempty" name:"Offset"` Length *int `json:"Length,omitempty" name:"Length"` Keyword *string `json:"Keyword,omitempty" name:"Keyword"` QProjectId *int `json:"QProjectId,omitempty" name:"QProjectId"` }
func NewDomainListRequest ¶
func NewDomainListRequest() (request *DomainListRequest)
func (*DomainListRequest) FromJsonString ¶
func (r *DomainListRequest) FromJsonString(s string) error
func (*DomainListRequest) ToJsonString ¶
func (r *DomainListRequest) ToJsonString() string
type DomainListResponse ¶
type DomainListResponse struct { *tchttp.BaseResponse Code *int `json:"code,omitempty" name:"code"` Message *string `json:"message,omitempty" name:"message"` CodeDesc *string `json:"codeDesc,omitempty" name:"codeDesc"` Data *struct { Info *struct { DomainTotal *int `json:"domain_total"` } Domains *[]struct { ID *int `json:"id" name:"ID"` Status *string `json:"status"` GroupID interface{} `json:"group_id"` SearchEnginePush *string `json:"searchengine_push"` IsMark *string `json:"is_mark"` TTL *string `json:"ttl"` CnameSpeedup *string `json:"cname_speedup"` Remark *string `json:"remark"` CreatedOn *string `json:"created_on"` UpdatedOn *string `json:"updated_on"` QProjectID *int `json:"q_project_id"` Punycode *string `json:"punycode"` ExtStatus *string `json:"ext_status"` SrcFlag *string `json:"src_flag"` Name *string `json:"name"` Grade *string `json:"grade"` GradeTitle *string `json:"grade_title"` IsVip *string `json:"is_vip"` Owner *string `json:"owner"` Records *string `json:"records"` MinTTL *int `json:"min_ttl"` VipStartAt *string `json:"vip_start_at,omitempty"` VipEndAt *string `json:"vip_end_at,omitempty"` VipAutoRenew *string `json:"vip_auto_renew,omitempty"` } `json:"domains"` } `json:"data"` }
func NewDomainListResponse ¶
func NewDomainListResponse() (response *DomainListResponse)
func (*DomainListResponse) FromJsonString ¶
func (r *DomainListResponse) FromJsonString(s string) error
func (*DomainListResponse) ToJsonString ¶
func (r *DomainListResponse) ToJsonString() string
type Record ¶
type Record struct { ID *int `json:"id"` TTL *int `json:"ttl"` Value *string `json:"value"` Enabled *int `json:"enabled"` Status *string `json:"status"` UpdatedOn *string `json:"updated_on"` QProjectID interface{} `json:"q_project_id"` Name *string `json:"name"` Line *string `json:"line"` LineID *string `json:"line_id"` Type *string `json:"type"` Remark *string `json:"remark"` Mx *int `json:"mx"` Hold *string `json:"hold,omitempty"` }
type RecordCreateRequest ¶
type RecordCreateRequest struct { *tchttp.BaseRequest Domain *string `json:"Domain" name:"Domain"` SubDomain *string `json:"SubDomain" name:"SubDomain"` RecordType *string `json:"RecordType" name:"RecordType"` RecordLine *string `json:"RecordLine" name:"RecordLine"` Value *string `json:"Value" name:"Value"` TTL *int `json:"TTL,omitempty" name:"TTL" ` Mx *int `json:"MX,omitempty" name:"MX"` }
func NewRecordCreateRequest ¶
func NewRecordCreateRequest() (request *RecordCreateRequest)
func (*RecordCreateRequest) FromJsonString ¶
func (r *RecordCreateRequest) FromJsonString(s string) error
func (*RecordCreateRequest) ToJsonString ¶
func (r *RecordCreateRequest) ToJsonString() string
type RecordCreateResponse ¶
type RecordCreateResponse struct { *tchttp.BaseResponse Code *int `json:"code,omitempty" name:"code"` Message *string `json:"message,omitempty" name:"message"` CodeDesc *string `json:"codeDesc,omitempty" name:"codeDesc"` Data *struct { Record *struct { ID *string `json:"id"` Name *string `json:"name"` Status *string `json:"status"` Weight *int `json:"weight"` } `json:"record"` } `json:"data"` }
func NewRecordCreateResponse ¶
func NewRecordCreateResponse() (response *RecordCreateResponse)
func (*RecordCreateResponse) FromJsonString ¶
func (r *RecordCreateResponse) FromJsonString(s string) error
func (*RecordCreateResponse) ToJsonString ¶
func (r *RecordCreateResponse) ToJsonString() string
type RecordDeleteRequest ¶
type RecordDeleteRequest struct { *tchttp.BaseRequest Domain *string `json:"Domain" name:"Domain"` RecordID *int `json:"RecordID,omitempty" name:"RecordID"` }
func NewRecordDeleteRequest ¶
func NewRecordDeleteRequest() (request *RecordDeleteRequest)
func (*RecordDeleteRequest) FromJsonString ¶
func (r *RecordDeleteRequest) FromJsonString(s string) error
func (*RecordDeleteRequest) ToJsonString ¶
func (r *RecordDeleteRequest) ToJsonString() string
type RecordDeleteResponse ¶
type RecordDeleteResponse struct { *tchttp.BaseResponse Code *int `json:"code"` Message *string `json:"message"` CodeDesc *string `json:"codeDesc"` }
func NewRecordDeleteResponse ¶
func NewRecordDeleteResponse() (response *RecordDeleteResponse)
func (*RecordDeleteResponse) FromJsonString ¶
func (r *RecordDeleteResponse) FromJsonString(s string) error
func (*RecordDeleteResponse) ToJsonString ¶
func (r *RecordDeleteResponse) ToJsonString() string
type RecordListRequest ¶
type RecordListRequest struct { *tchttp.BaseRequest Domain *string `json:"domain" name:"domain"` Offset *int `json:"Offset,omitempty" name:"offset"` Length *int `json:"Length,omitempty" name:"length"` SubDomain *string `json:"SubDomain,omitempty" name:"subDomain"` RecordType *string `json:"RecordType,omitempty" name:"recordType"` QProjectID *int `json:"QProjectID,omitempty" name:"qProjectID"` }
func NewRecordListRequest ¶
func NewRecordListRequest() (request *RecordListRequest)
func (*RecordListRequest) FromJsonString ¶
func (r *RecordListRequest) FromJsonString(s string) error
func (*RecordListRequest) ToJsonString ¶
func (r *RecordListRequest) ToJsonString() string
type RecordListResponse ¶
type RecordListResponse struct { *tchttp.BaseResponse Code *int `json:"code"` Message *string `json:"message"` CodeDesc *string `json:"codeDesc"` Data *Data `json:"data"` }
func NewRecordListResponse ¶
func NewRecordListResponse() (response *RecordListResponse)
func (*RecordListResponse) FromJsonString ¶
func (r *RecordListResponse) FromJsonString(s string) error
func (*RecordListResponse) ToJsonString ¶
func (r *RecordListResponse) ToJsonString() string
type RecordModifyRequest ¶
type RecordModifyRequest struct { *tchttp.BaseRequest Domain *string `json:"Domain" name:"Domain"` SubDomain *string `json:"SubDomain" name:"SubDomain"` RecordID *int `json:"RecordID" name:"RecordID"` RecordType *string `json:"RecordType" name:"RecordType"` RecordLine *string `json:"RecordLine" name:"RecordType"` Value *string `json:"Value" name:"Value"` TTL *int `json:"TTL,omitempty" name:"TTL"` Mx *int `json:"MX,omitempty" name:"MX"` }
func NewRecordModifyRequest ¶
func NewRecordModifyRequest() (request *RecordModifyRequest)
func (*RecordModifyRequest) FromJsonString ¶
func (r *RecordModifyRequest) FromJsonString(s string) error
func (*RecordModifyRequest) ToJsonString ¶
func (r *RecordModifyRequest) ToJsonString() string
type RecordModifyResponse ¶
type RecordModifyResponse struct { *tchttp.BaseResponse Code *int `json:"code,omitempty" name:"code"` Message *string `json:"message,omitempty" name:"message"` CodeDesc *string `json:"codeDesc,omitempty" name:"codeDesc"` Data *struct { Record *struct { ID *string `json:"id"` Name *string `json:"name"` Status *string `json:"status"` Value *string `json:"value"` Weight *int `json:"weight"` } `json:"record"` } `json:"data"` }
func NewRecordModifyResponse ¶
func NewRecordModifyResponse() (response *RecordModifyResponse)
func (*RecordModifyResponse) FromJsonString ¶
func (r *RecordModifyResponse) FromJsonString(s string) error
func (*RecordModifyResponse) ToJsonString ¶
func (r *RecordModifyResponse) ToJsonString() string
type RecordStatusRequest ¶
type RecordStatusRequest struct { *tchttp.BaseRequest Domain *string `json:"domain" name:"Domain"` SubDomain *string `json:"subDomain" name:"SubDomain"` RecordID *int `json:"recordId" name:"RecordID"` RecordType *string `json:"recordType" name:"RecordType"` RecordLine *string `json:"recordLine" name:"RecordLine"` Value *string `json:"value" name:"Value"` TTL *int `json:"TTL,omitempty" name:"TTL"` Mx *int `json:"MX,omitempty" name:"MX"` }
func NewRecordStatusRequest ¶
func NewRecordStatusRequest() (request *RecordStatusRequest)
func (*RecordStatusRequest) FromJsonString ¶
func (r *RecordStatusRequest) FromJsonString(s string) error
func (*RecordStatusRequest) ToJsonString ¶
func (r *RecordStatusRequest) ToJsonString() string
type RecordStatusResponse ¶
type RecordStatusResponse struct { *tchttp.BaseResponse Code *int `json:"code,omitempty" name:"code"` Message *string `json:"message,omitempty" name:"message"` CodeDesc *string `json:"codeDesc,omitempty" name:"codeDesc"` Data *struct { Record *struct { ID *string `json:"id"` Name *string `json:"name"` Status *string `json:"status"` Weight *int `json:"weight"` } `json:"record"` } `json:"data"` }
func NewRecordStatusResponse ¶
func NewRecordStatusResponse() (response *RecordStatusResponse)
func (*RecordStatusResponse) FromJsonString ¶
func (r *RecordStatusResponse) FromJsonString(s string) error
func (*RecordStatusResponse) ToJsonString ¶
func (r *RecordStatusResponse) ToJsonString() string
type SetDomainStatusRequest ¶
type SetDomainStatusRequest struct { *tchttp.BaseRequest Domain *string `json:"domain" name:"Domain"` ProjectId *int `json:"ProjectId,omitempty" name:"ProjectId"` }
func NewSetDomainStatusRequest ¶
func NewSetDomainStatusRequest() (request *SetDomainStatusRequest)
func (*SetDomainStatusRequest) FromJsonString ¶
func (r *SetDomainStatusRequest) FromJsonString(s string) error
func (*SetDomainStatusRequest) ToJsonString ¶
func (r *SetDomainStatusRequest) ToJsonString() string
type SetDomainStatusResponse ¶
type SetDomainStatusResponse struct { *tchttp.BaseResponse Code *int `json:"code,omitempty" name:"code"` Message *string `json:"message,omitempty" name:"message"` CodeDesc *string `json:"codeDesc,omitempty" name:"codeDesc"` }
func NewSetDomainStatusResponse ¶
func NewSetDomainStatusResponse() (response *SetDomainStatusResponse)
func (*SetDomainStatusResponse) FromJsonString ¶
func (r *SetDomainStatusResponse) FromJsonString(s string) error
func (*SetDomainStatusResponse) ToJsonString ¶
func (r *SetDomainStatusResponse) ToJsonString() string
Click to show internal directories.
Click to hide internal directories.